Repository navigation
Releases
v0.13.0 — DET-016 for TODO literals + review fixes
Fixed
check_exceptionsno longer crashes the pre-commit hook on an unquoted
expires: YYYY-MM-DD(YAML loads it as a date, not a string).validate_servicemap.pyexits 2 on an unreadable file, as documented;
apply_upstream.pyexits 1 (not 2) on an invalid reverse-scan JSON.check_architecture.py --writewithout--apply-upstream-fixesis now a usage error.- Go linter:
-hexits 0;usage()lists subcommands in stable order.
Changed
- Breaking: the TODO-literal check is now
DET-016.DET-006stays
reserved for idempotency downgrades, as the catalog documents. Entries in
exceptions[]withrule: DET-006that were meant for TODO literals must
be renamed torule: DET-016. Older entries below (0.5.0, 0.6.0) that call
the TODO checkDET-006describe the id as it was at that time. - Docs: aligned with the code (architecture-audit ids in the catalog, planned
AI rules marked, schema path, Go version,on_failurevocabulary, per-linter
output files in/archspec:validate);pyproject.tomlversion synced with the plugin manifests.
v0.12.1 — init/bootstrap discoverable on skills-only installs
v0.12.0 — cross-platform skills (Codex / opencode) + npx skills install
v0.11.1 — implement skill, plan-review gate, monorepo validate
Combined release: v0.11.0 + v0.11.1.
Closes the pipeline gaps that let an end-to-end run ship four critical bugs with green unit tests: the plan drifted from the investigation (topology flipped to sync RPC, an invented downstream method, dropped snapshot reuse) and the code drifted from the plan (nil-wired gateway, a declared event with no emit site on the retry path, a new field that never reached the public edge, dedup marked before its side effects) — and no checkpoint caught either drift. Theme: persist the plan, review it independently, and prove plan↔code conformance before calling the work done.
Added (0.11.0)
/archspec:implement+architecture-implementskill — the write-side counterpart of investigate. Consumes the.archplan.mdartifact (refuses without one), applies the YAML patch and re-syncs generated docs before coding, writes a coding plan with a conformance table (archplan element → task → test) and a method-existence gate (every downstream call greps to a real contract/proto method), implements with TDD, then runs five conformance passes: nil-wiring in composition roots, declared events without emit sites, new fields not threaded end-to-end (incl. seeds/fixtures), dedup marked before side effects, and a requirement→file:line evidence table. Finishes with monorepo/archspec:validate+/archspec:check-architectureand an independent fresh-context diff review (Implement-review: CLEAN after <N> round(s)). Commits, never pushes.- Persisted archplan artifact in
architecture-investigate(step 9b) — the full output contract is written todocs/plans/<date>-<slug>.archplan.md, the only file the skill writes. The plan-writer and implementation subagents read files, not chat history. - Independent plan-review gate (step 9c) — a fresh-context reviewer subagent adversarially grades the archplan against a 10-point rubric (requirement trace, no invented methods, reuse-vs-recompute, batch endpoints, topology & ownership, end-to-end field threading incl. seeds, dedup & atomicity, no surviving
# UNCONFIRMED, terminal branches, diagram↔YAML conformance). REVISE loops are bounded at 3 rounds, then findings escalate to the user. Always emitsPlan-review: APPROVED after <N> round(s), <summary>.
Changed (0.11.0)
- The investigate change diagram is now a
sequenceDiagram(sync->>vs async-),alt/elsefor every terminal branch,%% newmarkers); a flowchart is allowed only for intra-service branch logic. /archspec:validateis monorepo-aware — discovers every*/docs/SERVICE_MAP.yaml(no root-contract assumption), runs the per-language linters per service with that service's contract and code dir, and groups the report per service.- Plugin assets resolve via
ARCHSPEC_ROOT="${CLAUDE_PLUGIN_ROOT:-$CLAUDE_PROJECT_DIR}"invalidate,check-architecture, andarchitecture-sync— when archspec runs as an installed plugin,CLAUDE_PROJECT_DIRpoints at the consumer repo, which has nobin/,hooks/, orlinters/. architecture-syncdocuments the monorepo discipline: sync runs from each service's directory; only check-architecture runs from the repo root.
Changed (0.11.1)
- Plan-review rubric: per-attempt identity rule — any ID reused across retry/reassignment attempts must be regenerated per attempt or be part of every consumer's dedup key; "dedup on
<ID>remains, no key change" in a retry loop is a REVISE. - Implement conformance passes: wiring pass verifies client default addresses/ports against the target service's actual listen port; threading pass requires declared public routes to match the router registration string-for-string (proved by a handler test on the documented path); dedup pass traces a literal second-attempt event through every consumer's dedup logic.
- Solo degradation made visible: when the executing agent cannot dispatch subagents, both gates emit
Plan-review: SELF-ONLY .../Implement-review: SELF-ONLY ...instead of APPROVED/CLEAN.
Field validation
Tested end-to-end on a 12-service Go monorepo (Smart Task Reassignment): the plan-review gate caught a BLOCKING or MAJOR finding in each of 4 rounds (unimplementable recompute fallback; dedup mark before side effects; JetStream delivery semantics assumed on core NATS; dedup-key collision between sibling topics in one store). The resulting implementation graded 0 CRITICAL / 0 HIGH against the reference rubric.
v0.10.0 — state-ownership lens + AI-007/008/009 linters
Closes a class of failure observed end-to-end: investigate designed a cross-service state transition (offer rejection) but never selected the system-of-record service that owns the state — an orchestrator (matching-service) absorbed a transition owned by task-service via a synchronous RPC, bypassing its outbox and its reassignment counter. Theme: make ownership a forced, reviewable decision, and ship the behavioural linters that catch the code-side residue.
Added
- State-ownership (system-of-record) lens in
architecture-investigate. A new clarify dimension forces enumerating every piece of persistent state the change touches and naming its system-of-record service; the write must originate in that service's own write path, never a sync RPC reaching into a foreign aggregate. A new forcing State-ownership map artifact (step 8b) makes the decision visible the way the fan-out trace makes event subscribers visible. A foreign-aggregate sync mutation is a named deviation, and ownership findings are first-classedge_cases[]entries. - Topology preference: owner-applies-async-command over foreign-aggregate sync RPC, surfaced both in the clarify gate and the self-review loop.
- Self-review anti-patterns: foreign-state mutation via a sync RPC; idempotency asserted but not traced under replay; N+1 where a batch endpoint exists.
- AI-007
swallowed-errors(WARN) — flags a downstream call whose return is discarded via blank_(_ = svc.Call(...)orresp, _ := svc.Call(...)) whenon_failureis declared. WARN, not BLOCK: AST-only, cannot prove the receiver is the declared downstream client. - AI-008
redundant-call(WARN) — flags a singular method called inside a loop when a*Batchsibling exists in code (theGetDistance/GetDistancesBatchN+1). Pure code-pattern heuristic — not tied to declared downstream. - AI-009
undeclared-event(WARN, v1 = NATS topics) — flags NATS Publish/Subscribe to a topic (literal or package-level const) absent fromevents.published/events.consumed. WARN, not BLOCK: AST-only (method-name + subject-shape), no receiver-type proof.
Changed
ServiceMap(Go linters) now parsesdependencies.downstream.sync[]andevents.{published,consumed}[].- AI-008 severity raised from the reserved
INFOtoWARN(conservative matcher).
v0.9.0 — investigate guardrails: edge_cases bridge + reference-spec + sharper self-review
Hardens architecture-investigate against a failure class observed end-to-end: the skill already had the right checks and even found several cross-service bugs verbatim — but the findings died as chat prose, the code shipped them anyway, and the validation loop was never run. Theme: carry every finding into code, and don't call it done on a green build.
Added
- Risk →
edge_cases[]bridge (step 8a) — every gap / deviation /# UNCONFIRMED/ join-key risk must become a concreteedge_cases[]entry in the YAML patch. It persists in the contract, renders intoARCHITECTURE.md, and DET-003 blocks the commit until its test path exists (DET-007 stops silent removal). Closes the failure mode where a verbatim finding ("join oncity_id, notcity_name") never reached the code. - Reference / golden architecture spec ingest (step 2a) — optional cross-check of proposed event/RPC names, dedup keys, and invariants against a reference spec; names a divergence (canonical
offer.declinedvs an inventedtask.offer_rejected) instead of renaming silently. Hint, never override. - Definition-of-done checklist (step 10) — a green
go build/go testclears none of the validate / check-architecture / edge_cases boxes. - Six new self-review anti-patterns (step 9) — recompute-vs-reuse snapshot, attempt id from consumer memory vs event payload, two events outside one outbox transaction, notification despite a failed state transition, terminal guard narrower than real input states, and finding-left-as-prose.
Changed
Trusted identity & actoris now a first-class clarify dimension, split out ofEntry point & ownership, with an explicit rule that every sub-question inside a dimension is its own checkbox.architecture-investigateoutput contract gains Reference cross-check, Risk register (edge_cases), and Definition of done sections.
Notes / backlog
- The deeper net for two of these bugs is a behavioural linter:
AI-008(redundant-call) and a new join-key-consistency linter would catch thecity_id/ recompute regressions in code automatically. Both remain specified-but-unimplemented; this release strengthens the skill-level guards and theedge_cases[]bridge that forces a test.
216 Python + 16 Go tests green, ruff clean.
v0.8.0 — async-ordering checks + fan-out trace + self-review loop in investigate
The v0.7.0 clarify gate interrogates the requirements but never the design the skill itself draws, so architectural bugs that emerge from the proposal still slipped through. This release closes that class.
Added
- Async-state & event-ordering dimension in the
architecture-investigateclarify gate — does the trigger read/mutate state a different async path writes, and can the two reorder (trigger before the write lands; a stale/replayed event after it)? - Event/key fan-out trace (step 7) — scan the full
SERVICE_MAP.yamlset forevents.published/events.consumed/ topic names / dedup & join keys; enumerate all producers and consumers; every dead-end branch needs a terminal state + notification; undetermined fan-out →# UNCONFIRMED. A single event carrying two semantic roles (matching trigger and premature client notification) is now prohibited — split into separate events or block the YAML patch. - Self-review loop (step 9) — re-run the checklist plus a named anti-pattern list against the skill's own diagram and YAML, looping to a clean pass and emitting
Self-review: <N> pass(es), <findings or "no findings">.
Changed
- Sharpened Entry point & ownership (wire the full client → public edge → owner reference flow; never trust a client-supplied identity), Identity & join keys (what happens when a lookup fails to resolve, and is it silent?), and Failure & terminal paths (a terminal for every dead-end branch).
211 tests pass; ruff check . clean.
v0.7.1 — skill output docs
Added
- Document concrete outputs for archspec commands and autopilot skills.
- Add task-service Mermaid init-output examples for context, container, and sequence diagrams.
- Bump package and plugin metadata to 0.7.1.
v0.7.0 — clarify-ambiguities gate + validation loop in investigate
Highlights
archspec:investigate now interrogates ambiguous cross-service requirements before proposing contract edits, and wires the post-implementation validation loop so the behavioural linters actually run.
Added
- Clarify-ambiguities gate in
architecture-investigate— a fixed checklist of distributed-systems ambiguity dimensions (entry point & ownership, delivery semantics & idempotency, numeric limits/boundaries, identity & join keys, failure/terminal paths, write-path conformance), asked viaAskUserQuestion. A dimension may be skipped only by quoting the contract field that settles it; inventing answers into the YAML is forbidden. - Deviation guard — proposed edits that change who owns an action, sidestep
consistency.write_path.pattern, or relax a declared invariant must be flagged and explicitly confirmed.
Changed
architecture-investigateends with the full loop (sync → implement →/archspec:validate→/archspec:check-architecture) instead of stopping at/archspec:sync./archspec:validategains a "Do not dismiss findings" note: a passinggo build/go testdoes not clear a linter/LSP finding.
Full changelog: see CHANGELOG.md [0.7.0].
v0.6.0 — deterministic upstream sync + truthful state + scanner gaps
Highlights
Deterministic upstream remediation (Bucket 1). New apply_upstream.py merges reverse_scan consumers into dependencies.upstream[] with surgical YAML editing — manual provenance preserved, bare-string entries upgraded. check_architecture.py --apply-upstream-fixes runs the same merge across an entire monorepo (dry-run by default; --write to commit).
Write-path heuristic + DEP-001b (Bucket 2). Seed consistency.write_path.pattern flips from outbox to direct. The new SKILL.md decision matrix requires both events.published and dependencies.storage[] for outbox. DEP-001b flags outbox declared without storage — catches stateless gateways that the old heuristic mislabeled.
Scanner gaps (Bucket 3).
- gRPC RPC method enumeration via
.protoparsing, scoped to the matchingservice { ... }block; sibling-proto fallback covers admin/public splits sharing one.protopackage. - NATS
<dynamic>markers for unresolved subjects + outbox-wrapper heuristic; brace-balanced wrapper-range suppression keeps independent dynamic publish call sites visible. - HTTP openapi auto-discovery →
contract_hinton HTTP findings. - DEP-005 catches orphan write endpoints;
is_read_endpointunderstands both gRPC camelCase and HTTP-verb-prefixed names.
Truthful state vocabulary (Bucket 4). New markers not-implemented (gap), not-documented (no schema), not-measured (no metric). Schema enums; SKILL.md 3b/3c smart defaults from observed storage/openapi/SLA. New diagnostics:
- IDEMP-001 / IDEMP-002 (idempotency truthfulness — catches
storage: "redis: ..."declared without a Redis entry independencies.storage[]) - DOC-001 / DOC-002 (contract gaps)
- SLA-001 (strict-mode
not-measured)
Compatibility
Existing SERVICE_MAP.yaml files remain valid; TODO continues to be flagged as DET-006. Marker migration is semantic — done by hand per field.
Out of scope (next releases)
- Scanner-level Go comment stripping (deferred — see plan §5.8).
timeout: 500msdefault (waiting for service-mesh telemetry).service.kind: gatewayschema extension.
See CHANGELOG.md for the full list.
Full Changelog: v0.5.0...v0.6.0