Skip to content

docs(plan-04): expand adapter-host plan to bite-sized executable form#17

Merged
carlomigueldy merged 2 commits into
mainfrom
claude/whats-next-nXm1y
May 24, 2026
Merged

docs(plan-04): expand adapter-host plan to bite-sized executable form#17
carlomigueldy merged 2 commits into
mainfrom
claude/whats-next-nXm1y

Conversation

@carlomigueldy

Copy link
Copy Markdown
Owner

Summary

Replaces the 66-line Plan 04 stub (docs/superpowers/plans/2026-05-23-plan-04-adapter-host.md) with a 4,200-line bite-sized executable plan written via superpowers:writing-plans. The expanded plan follows the same shape as Plan 03: every task has complete code blocks, exact commands, and expected output — no placeholders, no "TBD".

What the plan covers

26 TDD-style tasks delivering the full adapter plugin host vertical slice:

  1. @dycode/adapter-sdk additive bump → 0.2.0 — new AdapterFlavor literal (pty | structured | mcp | verifier), required manifest.flavor, optional manifest.concurrencyCap, optional AdapterPlugin.configSchema slot
  2. Persistence — migration 003-adapters + AdapterRepository (CRUD over the adapters table)
  3. Host quartetloader.ts (dynamic import() + manifest validation), discovery.ts (walks ~/.dycode/adapters/node_modules), registry.ts (in-memory map), host.ts (composes the three + install/uninstall allowlist)
  4. Capability gateassertCapability() refuses any operation requiring a capability the manifest did not declare
  5. LifecycleInstanceController (per-instance create/start/cancel/health/dispose) + node-pty channel for flavor: 'pty' + 30s health-probe scheduler emitting agent.statusChanged
  6. IPC bridgeAdapterEvent → EventLogEntry translator, persistence + bus publish, all 7 event variants covered
  7. IPC handlersadapter.list/install/uninstall/configure + runtime.scan, wired through the Plan 03 dispatcher, configure validates against the per-plugin configSchema, scan emits runtime.detected for newly registered ids
  8. Fixture adapter + end-to-end Vitest spec that exercises the full lifecycle through DycodeClient against a spawned daemon child — no real CLI required
  9. dycoded adapter list CLI subcommand
  10. Docs — new docs/architecture/adapter-host.md, refreshed root CLAUDE.md, package maps, roadmap row flipped
  11. Close-outfeature_list.json F15–F20 + PROGRESS.md entry + v0.0.4-plan-04 tag

Verification

  • bash scripts/verify.sh — gates 1–4 green (typecheck, lint, format, test; 135 tests across 20 files)
  • pnpm exec prettier --check on the plan file — clean
  • Plan self-review checklist included — spec §5 coverage map, placeholder scan, type-consistency scan

Test plan

  • Plan file lints + formats clean
  • Reviewer reads the plan front-to-back, scores ≥ 10/10 on consistency / scalability / maintainability / correctness (project rule from root CLAUDE.md)
  • Plan is then ready to be picked up via superpowers:subagent-driven-development for actual Plan 04 execution

Linked design

  • docs/superpowers/specs/2026-05-23-dycode-design.md §5 — Adapter plugin SDK
  • docs/superpowers/plans/README.md — roadmap (Plan 04 row stays not started until execution)

Generated by Claude Code

@carlomigueldy carlomigueldy force-pushed the claude/whats-next-nXm1y branch from 0799f3b to dfee182 Compare May 24, 2026 08:32
Replaces the 66-line stub with a 4,200-line plan written via
superpowers:writing-plans. 26 TDD-style tasks cover the full vertical
slice: AdapterFlavor + configSchema additions to @dycode/adapter-sdk,
migration 003 + AdapterRepository, the loader/discovery/registry/host
quartet, capability gate, InstanceController lifecycle, node-pty
channel, health-probe scheduler, AdapterEvent → EventLogEntry bridge,
adapter.list/install/uninstall/configure + runtime.scan handlers,
canonical fixture adapter, end-to-end lifecycle spec, dycoded adapter
list CLI, deep doc + map updates, and F15-F20 close-out.
@carlomigueldy carlomigueldy force-pushed the claude/whats-next-nXm1y branch from dfee182 to a025b3f Compare May 24, 2026 13:02
Captures that Plan 04's plan file has been expanded from a 66-line stub
to a 4,200-line bite-sized executable plan, with the implementation
itself still pending Plan 03 shipping first.
@carlomigueldy carlomigueldy merged commit 16cd592 into main May 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant