docs(plan-04): expand adapter-host plan to bite-sized executable form#17
Merged
Conversation
0799f3b to
dfee182
Compare
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.
dfee182 to
a025b3f
Compare
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 viasuperpowers: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:
@dycode/adapter-sdkadditive bump → 0.2.0 — newAdapterFlavorliteral (pty | structured | mcp | verifier), requiredmanifest.flavor, optionalmanifest.concurrencyCap, optionalAdapterPlugin.configSchemaslot003-adapters+AdapterRepository(CRUD over theadapterstable)loader.ts(dynamicimport()+ manifest validation),discovery.ts(walks~/.dycode/adapters/node_modules),registry.ts(in-memory map),host.ts(composes the three + install/uninstall allowlist)assertCapability()refuses any operation requiring a capability the manifest did not declareInstanceController(per-instancecreate/start/cancel/health/dispose) +node-ptychannel forflavor: 'pty'+ 30s health-probe scheduler emittingagent.statusChangedAdapterEvent → EventLogEntrytranslator, persistence + bus publish, all 7 event variants coveredadapter.list/install/uninstall/configure+runtime.scan, wired through the Plan 03 dispatcher,configurevalidates against the per-pluginconfigSchema,scanemitsruntime.detectedfor newly registered idsDycodeClientagainst a spawned daemon child — no real CLI requireddycoded adapter listCLI subcommanddocs/architecture/adapter-host.md, refreshed rootCLAUDE.md, package maps, roadmap row flippedfeature_list.jsonF15–F20 +PROGRESS.mdentry +v0.0.4-plan-04tagVerification
bash scripts/verify.sh— gates 1–4 green (typecheck, lint, format, test; 135 tests across 20 files)pnpm exec prettier --checkon the plan file — cleanTest plan
CLAUDE.md)superpowers:subagent-driven-developmentfor actual Plan 04 executionLinked design
docs/superpowers/specs/2026-05-23-dycode-design.md§5 — Adapter plugin SDKdocs/superpowers/plans/README.md— roadmap (Plan 04 row staysnot starteduntil execution)Generated by Claude Code