Skip to content

Releases

v0.13.0 — DET-016 for TODO literals + review fixes

Choose a tag to compare

@krus210 krus210 released this 23 Sep 18:57
cbcfe19

Fixed

  • check_exceptions no longer crashes the pre-commit hook on an unquoted
    expires: YYYY-MM-DD (YAML loads it as a date, not a string).
  • validate_servicemap.py exits 2 on an unreadable file, as documented;
    apply_upstream.py exits 1 (not 2) on an invalid reverse-scan JSON.
  • check_architecture.py --write without --apply-upstream-fixes is now a usage error.
  • Go linter: -h exits 0; usage() lists subcommands in stable order.

Changed

  • Breaking: the TODO-literal check is now DET-016. DET-006 stays
    reserved for idempotency downgrades, as the catalog documents. Entries in
    exceptions[] with rule: DET-006 that were meant for TODO literals must
    be renamed to rule: DET-016. Older entries below (0.5.0, 0.6.0) that call
    the TODO check DET-006 describe 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_failure vocabulary, per-linter
    output files in /archspec:validate); pyproject.toml version synced with the plugin manifests.

v0.12.1 — init/bootstrap discoverable on skills-only installs

Choose a tag to compare

@krus210 krus210 released this 11 Jul 09:27
562da5a

v0.12.0 — cross-platform skills (Codex / opencode) + npx skills install

Choose a tag to compare

@krus210 krus210 released this 11 Jul 09:15
68e9646

v0.11.1 — implement skill, plan-review gate, monorepo validate

Choose a tag to compare

@krus210 krus210 released this 11 Jun 05:43
183836e

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-implement skill — the write-side counterpart of investigate. Consumes the .archplan.md artifact (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-architecture and 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 to docs/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 emits Plan-review: APPROVED after <N> round(s), <summary>.

Changed (0.11.0)

  • The investigate change diagram is now a sequenceDiagram (sync ->> vs async -), alt/else for every terminal branch, %% new markers); a flowchart is allowed only for intra-service branch logic.
  • /archspec:validate is 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}" in validate, check-architecture, and architecture-sync — when archspec runs as an installed plugin, CLAUDE_PROJECT_DIR points at the consumer repo, which has no bin/, hooks/, or linters/.
  • architecture-sync documents 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

Choose a tag to compare

@krus210 krus210 released this 10 Jun 11:18
e374bc3

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-class edge_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(...) or resp, _ := svc.Call(...)) when on_failure is 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 *Batch sibling exists in code (the GetDistance/GetDistancesBatch N+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 from events.published/events.consumed. WARN, not BLOCK: AST-only (method-name + subject-shape), no receiver-type proof.

Changed

  • ServiceMap (Go linters) now parses dependencies.downstream.sync[] and events.{published,consumed}[].
  • AI-008 severity raised from the reserved INFO to WARN (conservative matcher).

v0.9.0 — investigate guardrails: edge_cases bridge + reference-spec + sharper self-review

Choose a tag to compare

@krus210 krus210 released this 31 May 19:02
0335484

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 concrete edge_cases[] entry in the YAML patch. It persists in the contract, renders into ARCHITECTURE.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 on city_id, not city_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.declined vs an invented task.offer_rejected) instead of renaming silently. Hint, never override.
  • Definition-of-done checklist (step 10) — a green go build / go test clears 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 & actor is now a first-class clarify dimension, split out of Entry point & ownership, with an explicit rule that every sub-question inside a dimension is its own checkbox.
  • architecture-investigate output 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 the city_id / recompute regressions in code automatically. Both remain specified-but-unimplemented; this release strengthens the skill-level guards and the edge_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

Choose a tag to compare

@krus210 krus210 released this 31 May 12:27
31feac1

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-investigate clarify 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.yaml set for events.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

Choose a tag to compare

@krus210 krus210 released this 30 May 13:46
22d5649

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

Choose a tag to compare

@krus210 krus210 released this 30 May 13:24
d8a9122

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 via AskUserQuestion. 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-investigate ends with the full loop (sync → implement → /archspec:validate → /archspec:check-architecture) instead of stopping at /archspec:sync.
  • /archspec:validate gains a "Do not dismiss findings" note: a passing go build/go test does not clear a linter/LSP finding.

Full changelog: see CHANGELOG.md [0.7.0].

v0.6.0 — deterministic upstream sync + truthful state + scanner gaps

Choose a tag to compare

@krus210 krus210 released this 02 May 13:10
2ed5817

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 .proto parsing, scoped to the matching service { ... } block; sibling-proto fallback covers admin/public splits sharing one .proto package.
  • 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_hint on HTTP findings.
  • DEP-005 catches orphan write endpoints; is_read_endpoint understands 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 in dependencies.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: 500ms default (waiting for service-mesh telemetry).
  • service.kind: gateway schema extension.

See CHANGELOG.md for the full list.

Full Changelog: v0.5.0...v0.6.0