dango-tech/adlc5
ADLC5 workflow skills and local kernel tools for AI coding agents.
Changelog
[Unreleased]
[5.3.2] — Quality governance and bounded context
Added
- Benchmark, host qualification, brownfield-scale, feature dependency, ownership, SAST/dependency-gate, release-evidence, and context-budget improvements.
Changed
- Standard and high-risk profiles require integration and security evidence.
[5.3.1] — Release packages on immutable releases
5.3.1 ships the 5.3.0 changes below; the v5.3.0 release has no packages.
Fixed
- Release packages: with immutable releases on, GitHub refuses assets added after a release is published, so the v5.3.0 package upload failed.
release-plugin-packages.ymlnow attaches packages to a draft release (attach_draftwithrelease_tag), checking that it is still a draft and targets the commit it built; publishing the release then pushes the attached archives to GitHub Packages. See agent plugins.
[5.3.0] — Pulse token use and late file anchors
Added
- Pulse workflow summary: the board shows each feature's spec, stories, delivery, check results and review notes. Snapshots gain an optional
summary. - Pulse usage without hooks: when a feature has no hook ledger, Pulse falls back to transcript token totals from matched sessions, on the board and the terminal band, labeled as transcript-based. Transcript sessions show as unpriced.
- Pulse links: project cards are fully clickable, Codex session IDs open
codex://threads/<id>, and on the local all-projects board, worktree, spec, receipt and event paths link to their files (never in shared snapshots). adlc5 config set KEY VALUE --scope machine|project|worktree. It rewrites the target file as JSON, so comments in it are lost.- Approved late file anchor: a
high_riskfeature that reached Implement with only command anchors can now add a file-backed acceptance criterion. Record the user'sanchor_addition_approval(acceptance ID and file sha256) withevidence approve, then runanchors lock. The approval is audited in the completion ledger andclarity.history, and existing checks, review and PR approval stay fresh. See evidence-backed completion. Fixes #31.
Changed
- Token burn guidance: Implement builds each story in a fresh
build-implementersubagent, never inline; each lifecycle starts in a fresh thread; orchestrators wait with one long blocking wait instead of short polls. This is guidance, not enforced at runtime.
Fixed
- Duplicate policy keys: the error now names the key and both lines, including in the fallback YAML parser, instead of a bare "duplicate YAML key".
- High-risk features without a file anchor:
anchors locknow fails withfile_anchor_requiredwhen thehigh_riskprofile (orautopilot.require_anchors: true) has noevidence.type: fileacceptance criterion. Before, the lock passed and the feature only failed atpr-ready, after Implement, when a file anchor can no longer be added (#31).
[5.2.0] — Agent-product governance
Added
- Agent-product governance: state field
product_type(software|agent). For agent products,plan-completeadds theagent_governancecheck, which requiresdesign/1d-agent-governance.mdwith all eight sections filled (suitability and autonomy, tool inventory, trust boundaries, runtime limits, interruptibility, attribution and audit, monitoring, red-team and evals). Plan's STRIDE pass covers agentic threats,@qaPhase 1 adds an agent red-team step, Specify adds an Autonomy & agency NFR, and Discover asks whether an agent is the right tool. See agent governance. - GitHub Packages: each release also publishes the four host archives to
ghcr.io/dango-tech/adlc5-<host>-plugin:<version>, pulled back and checksum-verified after upload. See Downloads.
Fixed
- Skill registry:
core/skill-registry.yamllists all skills (13 were missing: design critic, TDD, complexity review, infra, deploy, autoresearch experimenter, and the seven PBE skills); a contract test now fails on drift. - Pulse band after entering a worktree: the band now shows the worktree's workspace instead of the main checkout's.
- Duplicate hooks in the ADLC5 repo: the classic Claude hook template moved from
.claude/settings.jsontotemplates/claude-settings.json, so working in this repo with the plugin no longer runs the usage and engagement hooks twice.init-workspace.sh --with-hooks --hooks-platform claudeinstalls the same.claude/settings.jsonas before, and now also works from a plugin package.adlc5-setupno longer reports a project.mcp.jsonserver that Claude settings turn off withdisabledMcpjsonServers.
[5.1.0] — Pulse, supervised runner and requirements readiness
Added
- ADLC5 Pulse (5.1.0): on-demand CLI/MCP snapshots, cached terminal band and handoff, a self-contained offline board using the existing brand, read-only gate receipts bound to canonical inputs and mutable dependencies, and the
@adlc5-pulseskill across all three plugin packages. Usage shows an attributable subtotal with unknown coverage preserved. See Pulse. - Claude Desktop Pulse qualification: use the host plugin-root API and awaited refresh, surface action failures, and support upload packages without top-level PATH executables.
- Pulse card and board now show evidence-backed outcome success, observed cost savings for matched direct/candidate runs, escaped defects, and rework; unavailable metrics remain Not measured.
- Supervised headless Codex runner:
adlc5 rundrives the existing navigator with isolated Codex CLI workers, worktree isolation, attempt checkpoints, retry escalation, kill-switch and timeout supervision, kernel-ingested evidence, and per-attempt usage records.adlc5 answerresumes a pending human question;adlc5 setup modelsandadlc5 config showmanage and inspect user-selected Codex tiers. MCP exposes run and answer operations. - Acceptance traceability: code specs map each acceptance criterion to declared named checks; spec lint and story verification reject missing or stale mappings.
Fixed
- Runner adapters and recovery: Cursor token usage is read from the CLI's actual camelCase counters; Claude Code's observed model is read from
modelUsage; usage from failed attempts is kept in the ledger. The runner now reuses a host-created worktree that is on its own named branch, no longer resets uncommitted changes when resuming after a human question, hands off at PR review with exit code 10 instead of failing, reads the worker deadline from the feature'swall_clock_cap_minutes, requires an explicit host, passes--trustto headless Cursor, uses the QA brief for the QA step, and never moves a reasoning-tier step down a tier on retry. Worker prompts put the per-attempt id last so workers share a cacheable prefix. - Verification could never pass: closed attempt records did not carry the step or story, so the runner found no coder sessions for the review and the retry ladder never escalated. They now do.
- Rework loop: failed checks or a rejected review route to a coder with the findings, then to a fresh review, capped by
verification_per_story. - Worktree for a dirty main checkout is created at
.worktrees/FEATUREand the feature state is moved, not copied; later runs from the main checkout are redirected. - Cost: Codex cached input is no longer double-counted; OpenAI list prices added to
core/model-prices.yaml;~/.adlc5/model-prices.yamllayers user prices on top. - Summary: deviations are recorded and listed, including briefs over the per-tier pack budget.
Changed
- Model IDs are user-selected rather than shipped as defaults; repo configuration is shared in the Git common directory and machine paths stay in
workspace.json. - Benchmark results have not qualified the runner yet. M2 requires six runs each for the docs and real-code features; cross-host adapters and storage changes remain gated on those measurements.
[5.0.0] — Claude Code plugin and MCP/kernel path contracts
Major version: the MCP transport framing changes (standard newline-delimited stdio replaces Content-Length framing) and kernel subprocesses now inherit the caller's cwd. Lifecycle state schema stays 3.0; existing .adlc5/ state is unaffected. Skill versions are synchronized to 5.0.0.
Added
-
Claude Code plugin (local package):
.claude-plugin/plugin.json,.mcp.json,hooks/claude.json(SessionStart, UserPromptSubmit, PreToolUse, Stop),bin/adlc5/bin/adlc5-run, the sharedadlc5-setupskill (scripts/plugin-setup.sh), and a deterministic archive builderscripts/package-plugin.py(tar.gz + zip, installed packages carry an immutable.adlc5-package.jsonmarker). Claude hook wrappers resolve the current plugin runtime (CLAUDE_PLUGIN_ROOT) before any workspace binding.init-workspace.shgains--no-council-agentsand--refresh-runtime(scripts/rebind-runtime.pyrepairs only a staleadlc5_root). Tests:scripts/tests/test-claude-plugin.py. -
Added repository context initialization and deterministic local intelligence indexes for brownfield and greenfield workspaces (
.agents/constitution and gitignored.agent-cache/), with CLI, MCP, installation, and lifecycle integration.repo-spec initwrites constitution beside existing.agents/skills/;repo-spec reconcilecopies useful leftover.agent/yaml/schema into.agents/without overwriting, then documents what to keep vs delete. -
Cost-optimization pass (lifecycle model/token spend, not a state-schema change): four levers, additive and off-by-default except where noted.
- Per-feature
execution_policyoverride:.adlc5/{feature}/policies.yamlmay now setmodel_routing.execution_policy: explicit, which wins over theconfig.yamlglobal default for that feature only, routingimplement-1-buildsubagents to the cheap execution tier. New templatetemplates/policies-standard.yaml.examplefills the gap between tiny and high-risk; it andtemplates/policies-tiny.yaml.exampleship withexplicit,templates/policies-high-risk.yaml.exampleships withinheritexplicitly.resolve-model.shoutput gainsexecution_policy_source("config"|"feature_policy"). - Machine-checkable code specs:
tasks/code-spec/{story-id}.mdnow carries a required YAML frontmatter block (story_id,files_to_create/files_to_modify,tests[],acceptance_criteria, optionalsignatures[]), validated by newscripts/tasks/spec-lint.py(./scripts/adlc5 spec-lint). This backs thetasks-2-code-spec-completegate, replacing the previous "directory has.mdfiles" check. Skeleton:templates/feature-docs/code-spec.md. - Deterministic per-story verification: new
scripts/verify-story.py(./scripts/adlc5 verify-story) mechanically checks file boundary (git-changed files vs. declared spec), declared tests present and passing, lint clean, no obvious debug leftovers, and best-effort signature cross-check against.agent-cache/symbols.json— before@assure-verifierreasons about what's actually left. Feedsimplement-2-verifyandpr-readyadditively (adeterministic_verify_{story-id}check) only for stories whose code spec has frontmatter; a no-op for features without it. - Priced usage ledger: new
core/model-prices.yaml(a dated pricing snapshot, not a live billing API)../scripts/adlc5 usage summary/usage fleetnow attach an estimatedcost_usdper bucket (by_model/by_stage/by_feature/totals); amodel_idmissing from the table reportscost_usd: nulland is listed underunpriced_modelsinstead of silently costing$0. - New shared parser
scripts/lib/simple_yaml.py(no PyYAML dependency) backs both the pricing table and code-spec frontmatter parsing.
- Per-feature
Changed
-
scripts/adlc5-mcp.pynow speaks standard newline-delimited MCP stdio (it previously usedContent-Lengthframing, which standard clients do not send), validates tool arguments, keeps child processes off the protocol stream, resolves an explicit consumer workspace, and refuses workspaces inside an installed package. -
scripts/adlc5runs delegated scripts from the caller's cwd (was the framework root), so--workspace .and relative file arguments resolve against the consumer repository. -
The Claude engagement-gate hook no longer returns
permissionDecision: allowin warn mode (it granted edits without the user's permission prompt); warn adds context only andenforcestill denies. -
tasks-2-code-spec-complete(and thereforetasks-complete) now fails a code spec whose frontmatter is missing or malformed, not just an emptytasks/code-spec/directory. An in-flight feature with pre-existing code specs written before this change will need frontmatter added (./scripts/tasks/spec-lint.pyreports exactly what each file is missing) before that gate passes again.
[4.0.1] — Current information and A2UI correction
Changed
- Added a mandatory current-information policy for volatile versions, APIs, protocols, provider capabilities, security guidance, and current recommendations. Specify/Plan must verify official primary sources and record
last_verified, status, and source URLs. - Updated the AI-agent orchestration guide to the current A2UI landscape: v0.9.1 is stable, v1.0 is a release candidate, and v1 removes protocol-level
theme/primaryColorso branding remains renderer-owned. - Synchronized the five core lifecycle skills plus cross-cutting SOUL with framework/plugin version 4.0.1; auxiliary skills retain independent component versions and persisted lifecycle state remains schema 3.0.
- Updated generated consumer
AGENTS.md, model/interaction/memory/governance guides, templates, and auxiliary handoffs to the canonical Specify → Plan → Tasks → Implement lifecycle; retired commands remain only in explicit deprecation/history/legacy-alias references. - Made Bash and Python state readers prefer valid schema-v3
state.json, with explicit delivery/forge fallbacks for older workspaces; canonical memory, coverage, retry, and PR-body paths now share that contract. - Aligned PR-review instructions and generated bodies with
implement.pr, including the required agent-attribution trailer, and verified links after governance files are copied into a consumer workspace. - Removed the canonical
pr-readycompletion cycle: evidence is checked atimplement-5-pr, thenstage_status.implementmay transition tocompleted. - Hardened PR, deploy, verifier-waiver, and project-wiki approvals to reject agent-authored or missing human provenance; wiki promotion now validates completed schema-v3 Implement state before any mutation.
- Fixed autonomous terminal routing so
implement-5-prevaluatespr-readyand returnsdoneinstead of advancing to itself. - Confined project-wiki promotion targets to
wiki/entities/orwiki/concepts/, validated before the first write. - Aligned production-ready guidance with profile routing: QA is mandatory when the selected profile enables
implement-4-qa, not fabricated for profiles that explicitly skip it. - Reject unknown wiki promotion actions and symlinked wiki roots that resolve outside the workspace/wiki boundary.
- Parse QA clearance from an exact authoritative status field with
BLOCKEDdominance, and validate canonical state against the full schema before preferring it over legacy fallback state.
Existing consumer AGENTS.md files are intentionally never overwritten by init-workspace.sh; merge the current-information rule from templates/AGENTS.project.md when upgrading an existing workspace.
[4.0.0] — Evidence-driven work graph controls
Breaking changes
- High-risk work now requires acceptance definitions to be locked before Implement and fresh-session/different-model verifier evidence before Verify and
pr-ready. - Evaluated runs qualify as successful only with passing profile quality gates, zero escaped defects, and finite non-negative usage correlated by
run_idandnode_id. - Canonical schema-v3
state.jsonnow takes precedence over stale legacydelivery/state.json. The persisted state schema remains3.0; this is a framework/workflow major release, not a state-format rewrite.
Added
- Explicit tiny, standard, and high-risk routes with validated story dependency graphs and parallel file-ownership checks.
- Acceptance-manifest locking with file digests, command-definition checks, approved relocking, and a local Git ref for ordinary worktree-tamper detection.
- Node-level telemetry, usage, retry, finding, outcome, successful-spend, and failed-spend evaluation without a blended quality score.
- SOUL 4.0 keeps its five guards but makes them graph/evidence-aware: preserve consumer acceptance, select the minimum sufficient profile, honor dependency/file ownership, require independent verification, and optimize cost only after the quality floor.
Migration
- Re-run
./scripts/install.sh(or the platform-specific update path) so skills, policies, and kernel scripts match 4.0.0. - For in-flight high-risk features, run
./scripts/adlc5 anchors lock --feature NAMEbefore Implement and recordimplement.verification.independencebefore Verify. - Keep
schema_version: "3.0"; no state-version edit is required. Remove or ignore stale legacydelivery/state.jsononce canonical state is authoritative. - Treat
refs/adlc5/anchors/*as local worktree-tamper references. They are not transferred by normal Git remotes and do not defend against a repository writer; use external human signing when that actor is in scope.
[3.2.0] — Fleet-wide usage rollup
Added
adlc5 usage fleet: scripts/memory/usage-ledger.pyfleetcommand aggregatesusage-ledger.jsonlacross every feature in a workspace — active.adlc5/{feature}/dirs plus archived snapshots under.adlc5/_archive/— withtotals/by_model/by_stage/by_featurebreakdowns and a--active-onlyflag to exclude archived features. Closes the gap whereusage summarywas scoped to a single feature and there was no workspace-wide token/cost view. Wired through the façade:./scripts/adlc5 usage fleet --workspace . [--active-only] [--format json|markdown]
[3.1.0] — Docs evidence + schema_version alignment
Added
- Evidence + diagrams: docs/ADLC5.md "Why SDD-first" section + lifecycle/gate flowchart; docs/ADLC5-kernel.md "Evidence" table + layered architecture diagram +
state setcall-path sequence diagram; core/sdd-model.md stage-status state diagram — each points at the enforcing script/file rather than asserting the strategy in prose
Changed
schema_versionaligned to the framework's 3.x line:"2.0"→"3.0"across core/state-schema.json, core/gates.yaml, core/personas.yaml, core/skill-registry.yaml, platform/runner/runner-manifest.yaml, scripts/lib/state_v2.py,init-feature.sh,pilot-autopilot.sh. Pure relabeling — the state shape is unchanged. Breaking for state files created before this release: an in-flight.adlc5/{feature}/state.jsonwithschema_version: "2.0"will failadlc5 state set(schema_version_locked) andpilot-autopilot.sh(schema 3.0 state required) until you edit that field to"3.0"by hand or re-runinit-feature.shcore/skill-registry.yamlframework_versionand plugin manifests (.cursor-plugin/plugin.json,platform/codex-plugin/plugin.json) now trackcore/VERSION(3.1.0)docs/ADLC5-kernel.mdretitledADLC5 — Fat Kernel (3.x); hardcoded3.0.0version references replaced with a pointer tocore/VERSIONso this doc doesn't go stale on the next bump
[3.0.0] — Fat deterministic kernel façade
Added
- Kernel façade:
./scripts/adlc5—gate/pack/clarity/phase/pilot/state get|set/resolve-model/version - Schema-validated
state set:scripts/lib/state_v2.py— merge/replace,state-schema.jsonchecks, atomic write - Plan: docs/ADLC5-kernel.md (repo-root layout; VERSION = 3.0.0)
- Path lift: framework content moved from
v2/to repo root (core/,skills/,docs/,platform/,templates/,dogfood/);v2/scriptsmerged intoscripts/(pilot-v2.sh→pilot-autopilot.sh) - Skills cite façade for spine ops (
adlc5,specify,plan,tasks,implement,discover,qa,deploy,adlc5-design-critic) - Plugin metadata:
.cursor-plugin/plugin.json,platform/codex-plugin/plugin.json
Added (MCP + Discover)
- MCP transport:
scripts/adlc5-mcp.py— stdio tools mirror façade (adlc5_*);.cursor-plugin/mcp.json - Discover prefs:
facilitation_mode(ask_onlydefault),assumption_policy(refusedefault);council_enabledunchanged/orthogonal
Added (plugin packaging)
- Cursor Agent Plugin:
.cursor-plugin/—plugin.json(adlc5.kernel/adlc5.mcp), shimsrun-adlc5.sh/run-mcp.sh, README - Codex metadata:
platform/codex-plugin/aligns VERSION + runtime pointers (skills still viainstall.sh) install.sh: printsADLC5_ROOT+ kernel/MCP paths; Antigravity stub recordsADLC5_ROOTfile (skills symlink behavior unchanged)
Notes
phase applyunavailable —advance-phase.shis suggest-only; usestate setafter HITL- Optional local Cursor plugin publish / A2A are next slices
[2.1.0] — Multi-platform model profiles + agent self-update
Added
platform_profiles+model_routingin config.example.yaml (per-host tier IDs,execution_policy: inherit|explicit)- Resolver: scripts/resolve-model.sh + scripts/lib/model_routing.py
- Pilot spawn JSON: additive
recommended_model/ resolver fields from scripts/pilot-autopilot.sh - Agent self-update: scripts/update-adlc5.sh —
--self/--global/--dry-run - Per-platform model templates:
templates/{cursor,claude,codex,opencode,hermes,gemini}-models.md - Version reporting:
install.sh/verify-install.sh--print-version(source:core/VERSION)
Changed
- Tier rename clarity:
executionpreferred;implementationremains a supported alias - Default
execution_policy: inheritpreserves prior “inherit parent for build” behavior - Flat
model_profilesretained as fallback for unknown platforms / older configs
Docs
- core/guides/model-matrix.md, platform-tooling.md
- shared/docs/INSTALL.md § Agent self-update
[2.0.0] — ADLC5 v2 SDD-first lifecycle
Added
- Core: Specify → Plan → Tasks → Implement — docs/ADLC5.md
- Unified state:
schema_version: "2.0"in.adlc5/{feature}/state.json - v2 skills:
skills/{adlc5,specify,plan,tasks,implement}with integrated autopilot (scripts/pilot-autopilot.sh) - Memory automation:
scripts/memory/{compact-stage,generate-pack,budget-check} - Git workstreams: scripts/git-orchestrate.sh
- Task visualization: scripts/tasks/render-board.sh
- Quality gates wired:
policies.autopilot.quality_gatesenforced in scripts/check-gates.py under autonomous mode - Podman dev template: templates/podman/
- Cloud runner stubs: platform/runner/, scripts/runner/dispatch.sh
- Install:
./scripts/install.sh - Production-ready governance:
templates/definition-of-done.md,skills/adlc5/governance/*(production-ready, autopilot-stage-picker, verifier-rules). - Navigator:
@adlc5runscheck-gates.py --gate pr-readyand mandatory AskQuestion on every invocation (phases/00-navigator.md). - Gate catalog:
assure-3-qa,assure-4-pr-reviewer, policy-drivencustom_gates/required_gatesincheck-gates.py. - Scripts:
sync-verification-report.sh,scripts/lib/policies_load.py,scripts/lib/phase-order.sh. - Pilot:
resume_from,stop_at_phase, telemetrystage_picker/gate_fail. - init-workspace.sh: copies
.adlc5/governance/andpolicies.yaml.exampleto consumer projects.
Changed
@adlc5-pilotdeprecated — use@adlc5withautopilot.mode: autonomous- Assure: Ladder
assure-1…assure-4;stage_status.assure: completedrequirespr-readypass. - Verifier: Must maintain
verify/verification-report.md;pass-with-warningsrequires lifecycleverifier_waiver. - README / INSTALL: Document that forge verified ≠ production-ready.
Docs
- dogfood/README.md
- Production-ready: scripts/check-gates.py
--gate pr-ready