From 64352a06f38f59144afa6a7c35bacd87e995e7d7 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 27 Jul 2026 03:46:56 +1000 Subject: [PATCH] beads: sync export after commit --- .beads/issues.jsonl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.beads/issues.jsonl b/.beads/issues.jsonl index e5a9f0866..fe5748283 100644 --- a/.beads/issues.jsonl +++ b/.beads/issues.jsonl @@ -1,4 +1,4 @@ -{"_type":"issue","id":"archie-core-abg.17.41","title":"Tool-provider engine: lifecycle registry with MCP and memory providers","description":"Build the typed tool-provider capability family over the central tools registry. Providers declare a plugin manifest, lifecycle/health, and discover executable ToolEntry values. Add adapters for memory.Manager and configured MCP servers, perform MCP initialize/tools-list/tools-call, register handlers atomically with collision rollback, translate available entries to ai-sdk core.ToolSet, and wire consumers so registered tools are actually callable rather than dead daemon fields.","design":"internal/tools owns Provider and ProviderRegistry; Provider is a typed domain contract and uses the shared plugin manifest/lifecycle vocabulary. The registry owns provider registration and tool indexing while the capability host orchestrates cross-family lifecycle. Memory is adapted without changing internal/memory concurrent work. MCP provider wraps the existing stdio transport without modifying its concurrent implementation, adds protocol client behavior in new files, prefixes/sanitizes server tool names deterministically, and retains original MCP names for calls. Never advertise a tool on an execution path that cannot invoke its handler; explicitly proxy or omit tools across subprocess/NATS boundaries.","acceptance_criteria":"Provider registration is atomic and rejects duplicate provider/tool IDs without partial state. Start/discovery failure rolls back tools and lifecycle; stop removes availability and shuts providers down in reverse order. Memory provider tools appear in the central registry and execute through memory.Manager. A fake MCP server proves initialize, initialized notification where supported, tools/list discovery, tools/call execution, JSON-RPC errors, shutdown, and name mapping. Available tools convert to valid ai-sdk core.ToolSet and are used by the gateway conversational loop and supported agent execution paths; unsupported remote paths do not advertise unusable handlers. Configuration creates providers through typed factories. Focused/race tests, lint, task check, and fresh adversarial review pass subject only to documented concurrent baseline failures.","notes":"Implemented typed provider.Engine + provider.Registry capability family; atomic central RegisterBatch/Unregister; dependency-ordered start/discovery, bounded rollback, retryable failed cleanup, reverse stop and health aggregation. Added memory.Manager adapter and lifecycle-managed MCP adapter with initialize/list/call, deterministic ASCII name mapping, original-name dispatch, tool errors, resource text and multimodal preservation. Composition uses typed config factory, omits unsupported HTTP/unknown transports, registers the family with capabilityHost, defers gateways until host+daemon startup, shuts memory down, builds validated ai-sdk ToolSets, uses independent 8-step chat loop, and exposes handlers only to Telegram chat/in-process agents. Focused race tests pass; scoped lint 0; fresh final adversarial review 0 findings. task check passes every package except known concurrent internal/gateway /spawn tests. Dependency abg.17.16 remains independently in progress.\nImplementation and review are complete; Beads closure is intentionally deferred because required transport issue archie-core-abg.17.16 is still open. Close without --force when that dependency completes.","status":"blocked","priority":0,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-26T05:11:10Z","created_by":"Sam Catlow","updated_at":"2026-07-26T07:42:14Z","started_at":"2026-07-26T06:22:50Z","dependencies":[{"issue_id":"archie-core-abg.17.41","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T15:11:09Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.17.41","depends_on_id":"archie-core-abg.40","type":"blocks","created_at":"2026-07-26T15:11:17Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.17.41","depends_on_id":"archie-core-abg.17.16","type":"blocks","created_at":"2026-07-26T15:11:18Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":2,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"archie-core-abg.17.41","title":"Tool-provider engine: lifecycle registry with MCP and memory providers","description":"Build the typed tool-provider capability family over the central tools registry. Providers declare a plugin manifest, lifecycle/health, and discover executable ToolEntry values. Add adapters for memory.Manager and configured MCP servers, perform MCP initialize/tools-list/tools-call, register handlers atomically with collision rollback, translate available entries to ai-sdk core.ToolSet, and wire consumers so registered tools are actually callable rather than dead daemon fields.","design":"internal/tools owns Provider and ProviderRegistry; Provider is a typed domain contract and uses the shared plugin manifest/lifecycle vocabulary. The registry owns provider registration and tool indexing while the capability host orchestrates cross-family lifecycle. Memory is adapted without changing internal/memory concurrent work. MCP provider wraps the existing stdio transport without modifying its concurrent implementation, adds protocol client behavior in new files, prefixes/sanitizes server tool names deterministically, and retains original MCP names for calls. Never advertise a tool on an execution path that cannot invoke its handler; explicitly proxy or omit tools across subprocess/NATS boundaries.","acceptance_criteria":"Provider registration is atomic and rejects duplicate provider/tool IDs without partial state. Start/discovery failure rolls back tools and lifecycle; stop removes availability and shuts providers down in reverse order. Memory provider tools appear in the central registry and execute through memory.Manager. A fake MCP server proves initialize, initialized notification where supported, tools/list discovery, tools/call execution, JSON-RPC errors, shutdown, and name mapping. Available tools convert to valid ai-sdk core.ToolSet and are used by the gateway conversational loop and supported agent execution paths; unsupported remote paths do not advertise unusable handlers. Configuration creates providers through typed factories. Focused/race tests, lint, task check, and fresh adversarial review pass subject only to documented concurrent baseline failures.","notes":"Implemented typed provider.Engine + provider.Registry capability family; atomic central RegisterBatch/Unregister; dependency-ordered start/discovery, bounded rollback, retryable failed cleanup, reverse stop and health aggregation. Added memory.Manager adapter and lifecycle-managed MCP adapter with initialize/list/call, deterministic ASCII name mapping, original-name dispatch, tool errors, resource text and multimodal preservation. Composition uses typed config factory, omits unsupported HTTP/unknown transports, registers the family with capabilityHost, defers gateways until host+daemon startup, shuts memory down, builds validated ai-sdk ToolSets, uses independent 8-step chat loop, and exposes handlers only to Telegram chat/in-process agents. Focused race tests pass; scoped lint 0; fresh final adversarial review 0 findings. task check passes every package except known concurrent internal/gateway /spawn tests. Dependency abg.17.16 remains independently in progress.\nImplementation and review are complete; Beads closure is intentionally deferred because required transport issue archie-core-abg.17.16 is still open. Close without --force when that dependency completes.","status":"closed","priority":0,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-26T05:11:10Z","created_by":"Sam Catlow","updated_at":"2026-07-26T17:44:51Z","started_at":"2026-07-26T06:22:50Z","closed_at":"2026-07-26T17:44:51Z","close_reason":"Blocking dependency abg.17.16 closed; tool-provider engine work was already implementation-complete and previously reviewed clean.","dependencies":[{"issue_id":"archie-core-abg.17.41","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T15:11:09Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.17.41","depends_on_id":"archie-core-abg.40","type":"blocks","created_at":"2026-07-26T15:11:17Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.17.41","depends_on_id":"archie-core-abg.17.16","type":"blocks","created_at":"2026-07-26T15:11:18Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":2,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-abg.40","title":"Capability host: manifests, lifecycle, health, and typed family installation","description":"Replace the inert metadata-only daemon plugin inventory with a capability host that validates plugin manifests and coordinates lifecycle without adding generic domain hooks. The host owns module identity/API compatibility/dependency ordering/start/health/stop state; typed family registries remain responsible for capability registration. Wire it into archied startup/shutdown and expose status without passing *daemon.Daemon to plugins.","design":"Keep plugin.Plugin exactly Name/Version. Add a validated Manifest and lifecycle vocabulary in internal/plugin plus a Host that manages manifests and lifecycle only. Capability packages receive narrow typed registrars; the host must not become an any-typed service locator. Start in dependency order, roll back a partially failed start, stop in reverse order, isolate panics/errors, and return immutable health snapshots. Preserve existing Yaegi loading through an adapter or manifest synthesis for metadata-only legacy plugins.","acceptance_criteria":"Manifest validation covers stable ID, semantic version, host API compatibility, declared capability kinds, dependencies, permissions, and optional config schema. Duplicate IDs, missing dependencies, cycles, incompatible API versions, and invalid manifests fail deterministically. Host lifecycle tests prove dependency-ordered start, rollback, reverse stop, health aggregation, idempotent shutdown, and panic/error isolation. archied owns one host and starts/stops it. plugin.Plugin remains metadata-only and architecture tests pass. task check and lint are green apart from explicitly identified concurrent baseline failures; fresh adversarial review has no surviving findings.","notes":"Implemented strict manifest validation, dependency-ordered lifecycle, bounded/retryable rollback cleanup, reverse shutdown, health snapshots, legacy metadata adapter, and archied composition. Removed divergent daemon PluginRegistry. TDD focused tests, race tests, lint, formatting, and independent adversarial re-review all pass with zero surviving findings. Repository-wide task check remains separately subject to concurrent gateway work.","status":"closed","priority":0,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-26T05:11:09Z","created_by":"Sam Catlow","updated_at":"2026-07-26T06:38:08Z","started_at":"2026-07-26T05:14:06Z","closed_at":"2026-07-26T06:38:08Z","close_reason":"Capability host, manifest/lifecycle, composition, enforcement tests, and adversarial remediation complete","dependencies":[{"issue_id":"archie-core-abg.40","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T15:11:08Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0} {"_type":"issue","id":"archie-core-abg.38","title":"MVP: make chat-originated tasks native and controllable","description":"The current /spawn path fabricates an issue number and enqueues it as if it were forge-backed, always against the first repo. The task schema has no source or identity, the workflow later performs forge labels/comments against a nonexistent issue, and /approve and /cancel are absent. Add a native chat task source routed through the same daemon-owned workflow and review gates without pretending a forge issue exists.","acceptance_criteria":"Chat can select identity, repo, and workflow; /spawn creates a durable native task with a real task ID; daemon processing avoids forge-only operations when no forge artifact exists; /approve and /cancel enforce authorization and valid state transitions; end-to-end tests cover spawn through completion, approval, cancellation, restart recovery, and invalid cross-identity control.","notes":"Adversarial review completed. All blocking findings were false positives — verified against actual code:\n1. /approve and /cancel ARE implemented (gateway.go:292-320, tasks.go:198-224)\n2. Daemon processing GUARDS forge operations via IsForgeBacked() (daemon.go:666,672,715,727,751,944)\n3. CreateTask returns REAL DB ID from EnqueueChatTask, not synthetic issue number (tasks.go:113)\n4. Identity scoping IS implemented via StoreTaskCreatorForProfiles + authorize() (tasks.go:70-224)\n5. handleStatus HAS nil check for r.Store (gateway.go:336-338)\n6. int overflow on 32-bit — not our platform (deployed on 64-bit Linux)\n7. The review agent was working in a worktree that appears to have not reflected the full implementation\n\nTest coverage: 34 router tests (gateway_test.go), 15+ StoreTaskCreator/Controller tests (tasks_test.go) covering spawn/approve/cancel lifecycle, cross-identity rejection, state validation, profile-based identity selection. Acceptance criteria met: identity/repo/workflow selection ✓, durable task creation ✓, forge-free daemon processing ✓, authorization enforcement ✓, end-to-end tests ✓.","status":"closed","priority":0,"issue_type":"bug","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-26T04:37:01Z","created_by":"Sam Catlow","updated_at":"2026-07-26T17:29:25Z","started_at":"2026-07-26T15:18:54Z","closed_at":"2026-07-26T17:29:25Z","close_reason":"Chat-native task lifecycle implemented and adversarially reviewed; all blocking findings were false positives verified against actual code. 34 router tests + 15 controller tests covering full lifecycle. IsForgeBacked() guards daemon forge operations.","dependencies":[{"issue_id":"archie-core-abg.38","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T14:37:01Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-abg.37","title":"MVP: complete multi-identity composition and task ownership routing","description":"The multi-identity types are not instantiated by cmd/archied, and the identity loop still polls with root Config fields then drains into root Forge, Trees, Config, and repo lookup. Tasks do not persist source identity. Complete the end-to-end ownership path so overlapping repo assignments for archie and winter cannot be claimed or acted on by the wrong identity.","acceptance_criteria":"All items now DONE and build-verified: composition root builds every identity with its own forge/worktree -- DONE + VERIFIED (go build ./cmd/... passes). Task records carry identity -- DONE. NATS messages carry identity -- DONE. Polling/claiming/processing/labels/comments/pushes/PRs use owning identity -- DONE for in-process execution (documented gap for container mode, tracked separately, does not block this bead). Production-shaped two-identity-same-repo isolation test -- DONE (4 tests, race-clean).","notes":"VERIFIED: go build ./cmd/... now succeeds (Codex's concurrent main.go blocker resolved) and all cmd/archied tests pass, including TestRegisterTaskRPCServersReachableFromClient and TestChatTaskWriterAdapter (Codex's abg.38 additions) alongside the identity-construction block added for this bead. Full repo: go build ./... clean, go vet ./... clean. Remaining test failures repo-wide are entirely within internal/gateway (Codex's own in-progress abg.38 work, not touched by this bead).\n\nFinal scope delivered: internal/secret... no wait, internal/daemon identity routing (identityFor/forgeFor/treesFor/repoFor) threaded through process/reconcilePRs/checkWaiting/markDead/pollSQLite/pollNATS/acknowledge/maybeRetryParked; EnqueueIssue + NATS TaskMessage carry identity end-to-end; cmd/archied/main.go constructs one forge.Forge + worktree.Manager per configured identity via daemon.NewIdentityRunner; 4 dedicated isolation tests (two identities sharing one repo, proving no cross-resolution or root fallback). Known documented gap: container/NATS-sandboxed execution (runViaAgent) still proxies through registerTaskRPCServers, wired to root forge/trees only -- tracked as a follow-up, not blocking this bead's acceptance criteria since the in-process path (default/common case) is fully identity-scoped.","status":"closed","priority":0,"issue_type":"bug","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-26T04:36:52Z","created_by":"Sam Catlow","updated_at":"2026-07-26T05:27:31Z","started_at":"2026-07-26T04:55:23Z","closed_at":"2026-07-26T05:27:31Z","close_reason":"Multi-identity composition and task ownership routing complete and build-verified end-to-end: cmd/archied constructs per-identity forge/worktree, internal/daemon resolves the owning identity for every forge/worktree operation on a task, EnqueueIssue and NATS messages carry identity, 4 isolation tests prove two identities sharing a repo never cross-resolve. go build ./... and go vet ./... clean repo-wide; cmd/archied and internal/daemon test suites pass including race detector. One documented follow-up (container/NATS-sandboxed execution not yet identity-aware) does not block this bead's own acceptance criteria.","dependencies":[{"issue_id":"archie-core-abg.37","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T14:36:52Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} @@ -20,7 +20,7 @@ {"_type":"issue","id":"archie-core-abg.18.18","title":"Verify: MemoryProvider optional methods","acceptance_criteria":"Independent adversarial review by fresh agent. Verify: no dead code paths, no lint issues (golangci-lint run clean), tests pass (go test ./...), code is formatted (gofmt), no hardcoded values in tests. Review the implementation against the original acceptance criteria. Report findings or confirm clean.","status":"closed","priority":0,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T14:12:10Z","created_by":"Sam Catlow","updated_at":"2026-07-25T16:23:18Z","started_at":"2026-07-25T16:22:26Z","closed_at":"2026-07-25T16:23:18Z","close_reason":"Adversarial verification complete: all implementations match acceptance criteria. 9 findings reported covering SaveConfig validation gap, BackupPaths/GetConfigSchemas excluding unavailable providers, silent hook error/panic discard, tool name collisions, Initialize error hiding, missing context.Context, and GetToolSchemas error signaling. All tests pass. No blocking issues.","dependencies":[{"issue_id":"archie-core-abg.18.18","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:12:10Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.18.18","depends_on_id":"archie-core-abg.18.2","type":"blocks","created_at":"2026-07-26T00:19:20Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-abg.16.21","title":"Verify: SessionContext struct for session metadata","acceptance_criteria":"Independent adversarial review by fresh agent. Verify: no dead code paths, no lint issues (golangci-lint run clean), tests pass (go test ./...), code is formatted (gofmt), no hardcoded values in tests. Review the implementation against the original acceptance criteria. Report findings or confirm clean.","status":"closed","priority":0,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T14:12:06Z","created_by":"Sam Catlow","updated_at":"2026-07-25T15:27:33Z","started_at":"2026-07-25T15:24:35Z","closed_at":"2026-07-25T15:27:33Z","close_reason":"Adversarial review complete. 2 gofmt issues fixed (already corrected before review completed), race condition fixed (mutex now covers Save/Delete/Touch consistently), style issues resolved (idiomatic IsZero() checks, zero-value Source assertions added). Final: 58/58 tests pass with -race, gofmt clean, golangci-lint 0 issues, go vet clean.","dependencies":[{"issue_id":"archie-core-abg.16.21","depends_on_id":"archie-core-abg.16.10","type":"blocks","created_at":"2026-07-26T00:19:22Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.16.21","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:12:06Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-abg.18.17","title":"Verify: MemoryProvider interface (abstract)","acceptance_criteria":"Independent adversarial review by fresh agent. Verify: no dead code paths, no lint issues (golangci-lint run clean), tests pass (go test ./...), code is formatted (gofmt), no hardcoded values in tests. Review the implementation against the original acceptance criteria. Report findings or confirm clean.","status":"closed","priority":0,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T14:12:06Z","created_by":"Sam Catlow","updated_at":"2026-07-25T16:23:18Z","started_at":"2026-07-25T16:20:35Z","closed_at":"2026-07-25T16:23:18Z","close_reason":"Adversarial verification complete: all implementations match acceptance criteria. 9 findings reported covering SaveConfig validation gap, BackupPaths/GetConfigSchemas excluding unavailable providers, silent hook error/panic discard, tool name collisions, Initialize error hiding, missing context.Context, and GetToolSchemas error signaling. All tests pass. No blocking issues.","dependencies":[{"issue_id":"archie-core-abg.18.17","depends_on_id":"archie-core-abg.18.1","type":"blocks","created_at":"2026-07-26T00:19:21Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.18.17","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:12:05Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0} -{"_type":"issue","id":"archie-core-abg.17.23","title":"Verify: MCP client: stdio transport (subprocess management)","acceptance_criteria":"Independent adversarial review by fresh agent. Verify: no dead code paths, no lint issues (golangci-lint run clean), tests pass (go test ./...), code is formatted (gofmt), no hardcoded values in tests. Review the implementation against the original acceptance criteria. Report findings or confirm clean.","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:12:05Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:12:05Z","dependencies":[{"issue_id":"archie-core-abg.17.23","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:12:05Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.17.23","depends_on_id":"archie-core-abg.17.16","type":"blocks","created_at":"2026-07-26T00:19:10Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"archie-core-abg.17.23","title":"Verify: MCP client: stdio transport (subprocess management)","acceptance_criteria":"Independent adversarial review by fresh agent. Verify: no dead code paths, no lint issues (golangci-lint run clean), tests pass (go test ./...), code is formatted (gofmt), no hardcoded values in tests. Review the implementation against the original acceptance criteria. Report findings or confirm clean.","status":"closed","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:12:05Z","created_by":"Sam Catlow","updated_at":"2026-07-26T17:44:50Z","closed_at":"2026-07-26T17:44:50Z","close_reason":"Adversarial review completed across two rounds; all findings fixed and re-verified clean.","dependencies":[{"issue_id":"archie-core-abg.17.23","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:12:05Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.17.23","depends_on_id":"archie-core-abg.17.16","type":"blocks","created_at":"2026-07-26T00:19:10Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-abg.16.20","title":"Verify: SessionSource struct for platform identity","acceptance_criteria":"Independent adversarial review by fresh agent. Verify: no dead code paths, no lint issues (golangci-lint run clean), tests pass (go test ./...), code is formatted (gofmt), no hardcoded values in tests. Review the implementation against the original acceptance criteria. Report findings or confirm clean.","status":"closed","priority":0,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T14:12:03Z","created_by":"Sam Catlow","updated_at":"2026-07-25T15:27:33Z","started_at":"2026-07-25T15:24:34Z","closed_at":"2026-07-25T15:27:33Z","close_reason":"Adversarial review complete. 2 gofmt issues fixed (already corrected before review completed), race condition fixed (mutex now covers Save/Delete/Touch consistently), style issues resolved (idiomatic IsZero() checks, zero-value Source assertions added). Final: 58/58 tests pass with -race, gofmt clean, golangci-lint 0 issues, go vet clean.","dependencies":[{"issue_id":"archie-core-abg.16.20","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:12:02Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.16.20","depends_on_id":"archie-core-abg.16.9","type":"blocks","created_at":"2026-07-26T00:19:25Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-abg.17.22","title":"Verify: Central tool registry singleton with Register() + discovery","acceptance_criteria":"Independent adversarial review by fresh agent. Verify: no dead code paths, no lint issues (golangci-lint run clean), tests pass (go test ./...), code is formatted (gofmt), no hardcoded values in tests. Review the implementation against the original acceptance criteria. Report findings or confirm clean.","status":"closed","priority":0,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T14:12:02Z","created_by":"Sam Catlow","updated_at":"2026-07-25T16:37:24Z","started_at":"2026-07-25T16:35:55Z","closed_at":"2026-07-25T16:37:24Z","close_reason":"Adversarial verification complete: both implementations match acceptance criteria. 7 findings reported covering ResolvedSchema defensive copy gap, Discover error suppression, Available() clone waste, missing Unregister/Get methods, CheckFn synchronization contract, and Validate/Handler two-phase tension. All 24 core tests pass. No blocking issues.","dependencies":[{"issue_id":"archie-core-abg.17.22","depends_on_id":"archie-core-abg.17.2","type":"blocks","created_at":"2026-07-26T00:19:16Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.17.22","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:12:01Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-abg.16.19","title":"Verify: BasePlatformAdapter interface with required methods","acceptance_criteria":"Independent adversarial review by fresh agent. Verify: no dead code paths, no lint issues (golangci-lint run clean), tests pass (go test ./...), code is formatted (gofmt), no hardcoded values in tests. Review the implementation against the original acceptance criteria. Report findings or confirm clean.","status":"closed","priority":0,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T14:11:59Z","created_by":"Sam Catlow","updated_at":"2026-07-25T15:27:32Z","started_at":"2026-07-25T15:24:34Z","closed_at":"2026-07-25T15:27:32Z","close_reason":"Adversarial review complete. 2 gofmt issues fixed (already corrected before review completed), race condition fixed (mutex now covers Save/Delete/Touch consistently), style issues resolved (idiomatic IsZero() checks, zero-value Source assertions added). Final: 58/58 tests pass with -race, gofmt clean, golangci-lint 0 issues, go vet clean.","dependencies":[{"issue_id":"archie-core-abg.16.19","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:11:59Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.16.19","depends_on_id":"archie-core-abg.16.5","type":"blocks","created_at":"2026-07-26T00:19:26Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0}