Skip to content

Releases

v2.102.0 — One reader for Markdown headings; a release run that spares the disk

Choose a tag to compare

@github-actions github-actions released this 23 Nov 13:17

Why.

  • The gates read Markdown headings with about ten patterns of their own (#443, found in Kenni's registry checker). The inputs were found on v2.101.0:

    • ## with "Regel" on the next line read as the heading "Regel";
    • a fence line such as ```suffix closed a code block;
    • a fence marker inside an HTML comment hid everything after it;
    • U+2028 split a heading.

    A design contract could thereby treat a clause as defined that the rendered document does not show.

  • tools/release.py stopped on a full disk with a traceback and left a half-written version bump. The suite filled pytest's default temp directory, about 15 GB per run.

What changes.

  • [required] One reader for headings. markdown_read.py (new, stdlib only) owns headings(), visible_lines() and ambiguity_problem(). The record readers (fenced_lines, readable, uncommented) move there unchanged and stay importable from check_review.

    • Gates on the reader: the design-contract gate, the overlays gate, the plan-structure gate, the product frame, the decisions gate, Spec Kit, and the Transitions and Decisions headings. Each reads headings by CommonMark's ATX rules: indent up to 3, never across a line, closing # stripped.
    • What counts as visible: the reader sees only the text the record readers see.
  • [required] A file that reads two ways is red. Every gate that reads headings asks ambiguity_problem on the same file and fails hard on:

    • fence drift, for example ```suffix;
    • a comment that closes inside a fence;
    • U+2028 and other odd line separators;
    • an inline comment spanning a heading;
    • an unclosed comment;
    • a fence indented 4+ spaces without a matching closer;
    • <!-->.

    No gate guesses which reading the renderer takes. Template docs are clean, and in Kenni no gated file goes red (4452 files scanned).

  • [recommended] Behaviour changes, named:

    • a heading inside an HTML comment no longer counts (for example as a required plan section);
    • an indented heading (up to 3 spaces) counts everywhere;
    • a bare ## never joins the next line;
    • the design-contract Trace also ends at a level-1 heading;
    • an ADR ## Status indented 4 or more spaces is indented code and no longer counts.
  • [optional] tools/release.py. These are maintainer tooling changes; adopters are unaffected.

    • It checks free space (RELEASE_MIN_FREE_GB, default 18) before the bump.
    • It runs the suite in its own temp folder and removes it afterwards.
    • If a step fails before staging, it restores exactly the files the bump and the SBOM wrote, and never the release notes.

Effect.

  • Every gate reads the same headings a reader sees. A document whose fences or comments can be read two ways is reported instead of read silently.

Changed sections.

  • overlays.md (Overlays: project notes on template docs; What an overlay says)

Update.

  • Pure update. Overlay anchors keep their hashes, checked against the v2.101 reader for every rendered template doc and all of Kenni's anchors.
  • A project file that reads two ways now fails its gate. The message names the line and what to change.
  • Not read, as before: headings in list items, block quotes or raw HTML blocks, and setext headings outside the plan-structure gate.

Details: Plan #443

v2.101.0 — Shared behaviour across surfaces

Choose a tag to compare

@github-actions github-actions released this 21 Nov 18:10

Why. Kenni tracks shared behaviour with different delivery and proof status on Web, iPhone and Mac. In v2.100 a plan citing separate contracts could fail because they used the same ID prefix.

What changes.

  • [required] A shared plan can scope its design citations under ### Surface: <surface> within the Design Contract Trace. The gate and review bundle use the same scope.
  • [recommended] Check a decision-critical technical assumption at an existing consumer during planning. The first execution task can supply a new test.
  • [optional] Record a target issue per surface. Projects can enable implementation references and story groups in the feature registry.
  • [optional] The rounds report counts verdicts, distinct reviewed scopes and verdicts with unknown scope.

Effect. A team can review one user goal across surfaces and see where implementation or proof is still due.

Changed sections.

  • workflow.md (Workflow, Plan)
  • modules/design-contracts.md (Module: design-contracts, Binding a plan to its contract, Declaring the contract)
  • modules/feature-registry.md (Module: feature-registry — the feature inventory, One entry per file, Acceptance items, Writing rule and split rule, Configuration, Hard vs. best-effort (no false-green))
  • modules/telemetry.md (Module: telemetry, The KPI cockpit)

Update. Pure update. Existing plans and scalar issue references keep working. Projects opting into implementation references should first inventory the required code references.

Details: v2.101 specification · #441

v2.100.0 — Hardening behind an intact guard; four review rules; one rule for report membership

Choose a tag to compare

@github-actions github-actions released this 20 Nov 23:11

Why.

  • Downstream (Kenni #488), a consolidation behind guards that stayed in force ran two days as Tier 3. The template had no way to tier hardening below Tier 3 (#434).
  • Kenni's reviews use four rules the template lacked: the feature contract first, process ideas reported but not applied, a field trace to the terminal state, one follow-up issue per cause (#436).
  • Kenni had to copy the report-membership rule out of check_review.report_of. That project delta made every template update of the file a review (#439).

What changes.

  • [recommended] Hardening behind an intact guard may be Tier 2 (risk-tiers.md). The exception has a limit, three conditions and exclusions.
    • Limit: it applies only when Tier 3 follows from the security surface alone.
    • Conditions:
      1. the tier claim runs the consumer search and names the surviving guard per path, with file:line;
      2. two tests prove it: the hardened check alone, red against the previous version, and the surviving guard blocking the attack without the hardening;
      3. the hardening lands at the boundary's owner.
    • Excluded: any change at a boundary's only enforcement point, a loosened or removed security control, any change to gate code, and template updates that migrate enforcement.
    • Floor: a change under the exception never goes below Tier 2. The table, the four questions and the categories are unchanged.
  • [recommended] Four review rules (review-checklist.md, refute.md):
    • the report states the feature contract in one sentence after its header block;
    • process ideas go under ## Process ideas and are never applied in the review;
    • the terminal-state bullet gains the vocabulary persisted | emitted | displayed | cached | ignored by design | future work, and a table for fields carried across persistence, an API or a worker; a field without one blocks at the usual threshold;
    • follow-up issues are grouped by cause, the cause named once.
  • [optional] check_review.report_matches_work is the public report-to-work predicate ("issue", "slug" or None). report_of uses it and behaves as before, and tidy.py calls it instead of a one-element report_of.

Effect.

  • Hardening that cannot reopen a boundary no longer pays the Tier-3 ritual.
  • A review names what the change is for before its findings, and keeps its own process ideas out of the diff.

Changed sections.

  • risk-tiers.md (Risk Tiers)
  • review-checklist.md (Review Checklist; Does the declared tier hold?; Completeness)
  • refute.md (Refuting a plan; What happens with the findings)
  • modules/github-issues.md (Discovered work keeps the form and the trail)
  • .claude/commands/review.md
  • .github/prompts/review.prompt.md

Update.

  • Pure update. No new configuration key.
  • Kenni: take v2.99 and v2.100 in one update. Its scripts/process/check_review.py then takes the template's report_matches_work, and afterwards the file is the render.

Details: Plan #434 #436 #439

v2.99.0 — A retired story keeps its id; no green gate without git; one rule for review passes

Choose a tag to compare

@github-actions github-actions released this 20 Nov 07:54

Why.

  • Kenni could not dissolve duplicate stories. An empty story was refused, and a deleted one broke every plan that named it and freed its id for reuse (#428).
  • On a fresh branch whose tip equals origin/main, a lagging local main became the base, so changes already on main read as new (#429).
  • With git missing or timing out, the base search read "no fork point" and the base-scoped gates passed with a note (#430).
  • attest.py wrote Tier-2 passes the review gate then rejected, and the append-only journal had to be edited by hand (#418).
  • attest read registry shorthand as plan criteria and missed loop-generated test titles (#423). A pre-existing refute finding always had to become an issue (#421). The steward's start example lacked --track (#420).

What changes.

  • [required] No gate is green when git cannot run. One probe (process_git.repo_probe, git rev-parse --git-dir under LC_ALL=C) runs at the gate runner's entry and before every base search. A directory without .git that git searched upward stays today's "no range" note. Anything else fails hard with git cannot run (…): no git on PATH, a timeout, dubious ownership, a stale worktree .git file, a GIT_DIR that names nothing. The base search reads strictly. The registry gate, --assign-ids, check_issues, dispatch, the plan and UI gates and the review gate's history fail closed. GitReadError now lives in process_git; check_review re-exports it.

  • [required] A story can retire as a tombstone. A story with the field retired_into (the stories its content moved to, or []) and acceptance: [], with every id it ever had under retired, is green. It counts as no missing coverage and its id stays known to the plan gate. It needs no tests, no status and no issue. Hard:

    • an item left in acceptance, or no acceptance key;
    • an empty retired, or split_into on a retired entry;
    • tests on the tombstone;
    • a retired_into naming an unknown story or itself, or closing a cycle. Chains are allowed.

    With stable_ids, a tombstone of the base that disappears is hard (paired by id). A ref to a tombstone's item is a note naming its successors, and hard when there are none.

  • [required] attest refuses a pass the gate would reject. check_review.independence_problems is the one owner of the pass arithmetic: Tier 2+ needs non-implementing and bundle, Tier 3 cross-model or single-family. attest.py checks it before writing anything.

  • [recommended] A lagging local main no longer decides the base. When a remote ref contains the tip, a local ref of the same name (or another remote) that is only behind it is skipped. A tip on the integration branch then has no base, as it should. A merge push keeps today's rule word for word. The merge push judging its range from the server's main is #431.

  • [recommended] attest reads registry shorthand and loop titles.

    • , #AC5 and /AC73 after a qualified SID#ACn are registry refs.
    • A bare AC<n> that the registry resolves to an item of a story the plan names makes attest refuse with "qualify AC<n> as <SID>#AC<n> (line N)" instead of demanding a report line. A plan's own declared AC<n> stays its criterion.
    • Template-literal test titles with ${…} match like .each titles, and path::`Title` names a test.
  • [optional] A pre-existing finding below the threshold stays a residual. refute.md owns the rule. A pre-existing finding becomes an issue when it breaks an AC or DoD of merged work, is a correctness or security defect on main, or the owner decides so. Otherwise it is named as residual <label>: <reason> in the REFUTE line's summary (with github-issues: FINDING … action=accept).

  • [recommended] process_git.git_ignored is the public owner of "does git ignore it" (None: git cannot tell). check_issues._git_ignored stays as a wrapper with its old signature.

  • [optional] The steward's start example shows [--track <name>], required on a first start once steering.tracks is set. A docs test pins every start example.

Effect.

  • A project can merge and dissolve stories without breaking plans or freeing ids.
  • A broken git can no longer turn the gates green.
  • attest writes only what the gate accepts, and its refusals say what to qualify.

Changed sections.

  • refute.md (What happens with the findings)
  • tower.md (Dispatch and the model policy)
  • verification-independence.md (The review bundle — the portable interface to any reviewer)
  • modules/feature-registry.md (Stable ids; Hard vs. best-effort (no false-green); new: Retiring a story)
  • .claude/commands/steward.md (Loop)

Update.

  • Pure update. One new story field, retired_into; no new configuration key.
  • A clone with dubious ownership, a stale worktree .git file or a dangling GIT_DIR now fails the gates instead of passing them: fix the clone (git config --global --add safe.directory <path>).
  • A script that imports check_issues._git_ignored keeps working; switch it to process_git.git_ignored.

Details: Plan #418 #420 #421 #423 #428 #429 #430; follow-up #431

v2.98.0 — The train loses no hours to foreign causes

Choose a tag to compare

@github-actions github-actions released this 16 Nov 13:06

Why.

  • Measured in Kenni (last 50 trains): an issue waited a median 4.8 h against 1.1 h of work; 21 of 50 trains ended red; a bisect took up to 3.7 h; the plan phase took a median 346 s before every train.
  • The last two Kenni trains ran 6 h and 4 h, red for reasons outside the passengers' code — a full disk, and a review finding about a commit that only mentioned another issue — and the bisect took most of the time (#424, #425, #426).

What changes.

  • [recommended] A full disk blames nobody. The train checks the disk under its worktrees and the temp directory (PROCESS_DISK_LIMIT_PCT, default 90 %) before building a tree, before the gates and around each suite run. Over the limit it halts: result="environment", red_path="disk-full", nobody blamed, nothing merged, passengers dropped earlier still reported. A red run that leaves the disk full is an abort under the v2.95 rule, without waiting for load and without a fresh base. A passenger that fills the disk inside its own tree is still found; one that leaves files outside it halts the train instead of being blamed. dispatch's disk refusal inside a suite writes an abort line. train-phases counts disk-full apart.
  • [recommended] The plan phase reads only branches that can board. A branch with no archived plan of its own and no review-pass report is counted after its ahead/behind check and gets a short line (not read further: it cannot board); the expensive reads are skipped. Decisions stay the same. In a bench with 200 such branches the plan took 7.3 s instead of 12.9 s. PROCESS_TRAIN_PLAN_PROFILE prints the time per section.
  • [optional] A claim by (#N) names its commit and the way out. The rule is unchanged: (#N) at the end of a subject and closing words claim the issue. The review finding now names each claiming commit and says how to resolve it (reword to see #N, drop the closing word, or review #N's plan); a Closes #N written by the train names the passenger. commits.md tells a claim from a reference. finish shows a red gate's findings instead of only its summary line.

Effect.

  • Trains stop losing hours to a full disk; the plan phase stops growing with stale branches; a commit that only mentions another issue is fixed in one step.

Changed sections.

  • commits.md (Message format)
  • testing.md (Unmeasurable is not red)
  • tower.md (Dispatch and the model policy)
  • train.md (Departure; The run; Red, undefined, aborted)
  • modules/telemetry.md (The KPI cockpit)

Update.

  • Pure update. No new configuration key.
  • A train on a disk over 90 % now halts as disk-full instead of running; free space or set PROCESS_DISK_LIMIT_PCT.
  • train.py plan shows branches that cannot board in one short line.

Details: Plan #424 #425 #426

v2.97.0 — Steering with limits: open work measured and held, lanes for heavy runs

Choose a tag to compare

@github-actions github-actions released this 13 Nov 19:18

Why.

  • Comparing Kenni with a second adopter project (#411–#417): the template costs both about the same per commit, yet Kenni moves slower — 65 issues in progress at once, 156 opened against 26 closed in two weeks, 32 template releases in 30 days. The improvement loop measured none of it.
  • outcomes read only the 100 most recently updated issues and 50 sub-issues per epic, so a long-running product epic was invisible (#417).

What changes.

  • [recommended] outcomes reads every open issue and every issue changed in the window, paged and under a budget (rateLimit, a page cap). Sub-issues are read past 50 and resolved only for a label:/title: marker. A cut list says complete: false and names the cut; an epic whose sub-issues were not all read is missing, never usable.
  • [optional] New reading process_kpis.py intake (telemetry): issues opened and closed per week, the open backlog, and the issues in progress (label and the workers' latest reports, other hosts fetched first) with claim time, days since the claim and growth — commits on their branches and commits landed through their merge events.
  • [optional] process_context.py --cost measures the anchor load: an entry_load block with lines and tokens per harness anchor, subtree anchors and overlays per command; --trend gives the same sums at each template release.
  • [recommended] template_update.py --dry-run names what an update requires: per release since the installed one its [required] changes and the counts of the others, and the overlays whose anchored sections the template changed.
  • [optional] Release notes carry a mark from this release on: every change is [required], [recommended] or [optional]. required means security, a broken contract, data loss or a defect that blocks work.
  • [required] Work-in-progress limits from the mandate. A new steering block (optimization.md; the key names of an existing project's block are kept): dispatch.py start holds an issue's first start to its track's limit (wip_per_track, process_issues_in_progress for the track process), exits 3 at the limit and names it; --over-wip "<reason>" starts anyway and records it. Once tracks is set, a first start needs --track <name> — a steward that starts work without it is refused. In progress counts both hosts (reports published and fetched on a first start; the train and finish publish their done); silent work is dormant after 14 days. A grown issue (growth_max_commits, growth_max_days) gets a "split or finish" note.
  • [recommended] The process share has a limit. share and the tower judge the process-only share against steering.process_share_max over its weeks (default 40 % over 4); the weekly pass ranks an action when it is over.
  • [optional] Update cadence. template_update.py --dry-run names the last update and, with steering.kit_update_cadence_days, whether the next is due, due now (a [required] change) or can wait.
  • [recommended] finish --tests and the train hold lane full. Two heavy runs on one host no longer overlap; the train holds it from after the preboard to before its push. A train that cannot take it ends lane-held, nobody blamed. Only with the template's lane.py.
  • [recommended] report.py refuses a worker that is no branch (or a detached HEAD): the train and the tower match reports by branch. done and idle may name a known branch already deleted after its merge.

Effect.

  • The steward and the weekly pass see open work and growth, not only merged work, and the steward starts nothing in a full track; an update can be batched when nothing in it is required.

Changed sections.

  • optimization.md (Goals and how they are measured; The process as a check graph)
  • improvement-weekly.md (Inputs; Steps; Report)
  • releases.md (Updating the process template)
  • testing.md (Test economy)
  • tower.md (Dispatch and the model policy)
  • train.md (Departure; The run; Red, undefined, aborted)
  • modules/github-issues.md (Example label schema)
  • modules/telemetry.md (The KPI cockpit)
  • commands/prime.md, commands/report.md, commands/steward.md (Loop; Housekeeping)

Update.

  • New optional configuration: the mandate's steering block. Without it nothing changes in dispatch.
  • With steering.tracks set, every first start needs --track <name>: update the steward's overlay and any script that calls dispatch.py start or queue add; file work already running with dispatch.py track --issue N --track <name>.
  • A report under a name that is no branch now exits 2.
  • outcomes makes more gh calls (a few pages per run); on a large repository a run can end complete: false.

Details: Plan v2.96, Plan v2.97 #411 #412 #413 #414 #415 #416 #417

v2.95.0 — A load abort is no finding about a passenger

Choose a tag to compare

@github-actions github-actions released this 11 Nov 08:00

Why.

  • In Kenni, red trains used 37 % of train minutes, 971 of their 1,196 minutes in retry and bisect (process audit, PR #407).
  • Train 0519 was a load timeout in a test with a 10 s budget at load 8.2; the base alone was green, yet the search for a culprit took almost three hours.
  • Today a lane that stays busy, or a project watchdog, ends as an ordinary red. Under make -k an exit 75 becomes make's exit 2. The train then searches and drops a passenger who caused nothing.

What changes.

  • A marker the train sets and reads. For every suite run the train creates an empty file under <git-common-dir>/process-train/suite-abort/ and passes its path as PROCESS_SUITE_ABORT, only to suite runs and preboard probes, never to gates, preflight, deploy or push. A tool that aborts a run for load or a time limit appends one line. lane.py does so when a lane stays busy.
  • A run that aborts blames nobody. A non-zero exit with a marker line, or an exit 75 at the top level, is an abort.
    • The train waits until the load drops below the CPU count (at most 600 s) and repeats the run once on a rebuilt tree.
    • If the repeat aborts too, a fresh base run decides. After a green base the run goes once more: its green or red stands, so a load that passed meanwhile blames nobody. Only if it aborts again it counts red, so a test that hangs every time is still found and its passenger dropped. A red base ends as base-red. An aborted base ends the round as suite-aborted, result environment: nobody blamed, nothing merged.
    • An aborted run never feeds the green memo, a merge certificate or the tree cache. A preboard probe that aborts boards unchecked.
  • Reporting. Passengers dropped earlier in the same train for a real red are reported on every environment stop and on a red base; a passenger that only conflicted is not.
  • Telemetry. red_path="suite-aborted", run kind retry_abort, rounds[].aborts with reason, wait and how the wait ended. train-phases names suite aborts apart from a red preflight and counts consecutive trains that stopped on the same kind and subject (the line's first two words).
  • Unchanged: without a marker and without an exit 75 at the top level, the train decides as before. A green run stays green.

Effect.

  • A load spike or a busy lane costs one repeat and at most a fresh base and one more run, instead of a search over all passengers and a wrong drop.

Changed sections.

  • train.md (The run; Red, undefined, aborted (new))
  • testing.md (Unmeasurable is not red)

Update.

  • Pure update. No new configuration key.
  • For projects:
    • A lane that stays busy now ends as an abort, not red, also under make -k.
    • A project watchdog can report an abort by appending a line to $PROCESS_SUITE_ABORT (O_APPEND, without O_CREAT).
    • Nested runs and tests that provoke an abort on purpose should run without the variable; otherwise a real red costs extra runs.
    • An exit 75 at the top level of the suite is an abort.

Details: Plan PR #407

v2.94.0 — Less repetition in the run; measurements the tools write

Choose a tag to compare

@github-actions github-actions released this 10 Nov 21:30

Why.

  • A process audit of the template and of Kenni's history (PR #407) found that a work runs the same checks several times on unchanged content, and that texts invite review rounds the code does not require.
    • finish said a rebase voids review digests, which no longer exist since v2.53; a clean rebase keeps the review.
    • workflow.md archived the plan before the bundle, the other rules after the pass.
    • The finish tail listed publish_and_prune steps for other branches' specs.
    • Plan-review bundles ran the full gate runner although the plan reviewer reads no code.
  • Merge-only checks were hard only in the push hook. finish and the train found such a red only when the push was refused.
  • Decisions about the process lacked data that no tool recorded: cost per phase, size at the first review, regressions, who found a finding.
  • Owner decision 2026-11-10: the template is frozen until 2026-12-08 — no new rules, gates or required lines. This release only removes effort, corrects text and adds measurements that tools write.

What changes.

  • Texts.
    • The rebase text in finish (four places) and in releases.md: a rebase that applies cleanly keeps the review; a conflict resolution needs a new round.
    • workflow.md and commits.md: the plan is archived after the review pass, in a commit of its own.
    • MAINTAINING.md records the freeze.
    • test_select: a stack that selects through its select command no longer reports every source file without a map entry as "skipped here" (Kenni #2954).
  • finish.
    • The tail lists only the branch's own specs; without a fork point it lists all, marked "range unknown".
    • /finish starts with finish.py --apply (without a train: --apply --tests); the separate preview run is gone. --apply prints the own specs' publish_and_prune lines.
    • Without a remote, the local merge reuses the gate result check() saw in the same process on the same HEAD, with a clean tree and the same target.
  • Merge target for the gates. finish and the train pass PROCESS_PUSH_TARGETS to the gate runner, so merge-only checks block there, before the push. The train passes none for its base or for a tree equal to the base, which are never pushed. A merge-only red now goes through the train's search for the culprit instead of a refused push. The merge hook still runs its gates (no memo in this release).
  • Plan-review bundles run no preflight. /plan runs the gates after the plan commit, before the bundle.
  • /speckit-analyze and /speckit-converge are optional at every tier. No incident and no gate stood behind them as Tier 3 steps.
  • Measurements, written by tools or computed by readers, never by an agent:
    • SIZE work=<id> round=<r> lines=<n> files=<n>: attest writes it beside each code-review REVIEW line — the branch's changed lines without tests, bookkeeping, lock files and changelogs. The REVIEW line itself is unchanged. The bundle header prints the same number. No reader computes from it yet.
    • COST work=<issue> phase=<p> wall_seconds=<n> tokens=<n>|- [not-measured: <reason>]: finish --apply writes one line per phase in a commit of its own, docs: record cost — #<issue>, directly before the archive commit. The phase history now records phase starts. No line without a dispatch record, an issue in the branch name or a fork point. process_kpis.py cost reads the lines.
    • Regression suspicion in process_kpis.py works --window: for each fix commit, git blame at its parent names the merge that wrote the changed lines. A line of an earlier work's merge is a suspicion of that work's regression; review fixes, later phases of the same issue, lock files and changelogs are not. Counted apart from Regression-of: trailers. Nothing is written.
    • A finding without by= takes the model family of its round's single REVIEW line in rounds and coverage, shown apart from by= in the report.

Effect.

  • Fewer gate runs per work: none for a plan-review bundle, one fewer in finish, and a merge-only red is caught before the push.
  • Fewer review rounds started by stale texts.
  • The project's history starts carrying cost per phase, size per review round and a regression count, without an agent writing a line.

Changed sections.

  • commits.md (Merging)
  • journal-state-plans.md (Journal; Retention — growth is unbounded by design)
  • releases.md (Updating the process template)
  • workflow.md (Plan; Review)
  • speckit.md (Setup (once per repo, after the copier render); The Tier 2+ flow)
  • telemetry.md (The KPI cockpit)
  • /finish, /plan

Update.

  • Pure update. No new configuration key, no new line for agents.
  • For projects:
    • New journal lines SIZE and COST, only with the telemetry module; compaction keeps them.
    • An extra commit docs: record cost — #<issue> before the archive commit of finish --apply.
    • phases/<issue>.json carries starts.
    • Merge-only checks block in finish and in the train instead of at the push.
    • /finish starts with --apply.

Details: Plan PR #407

v2.93.0 — Stable acceptance ids; a design GO only with full coverage

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:47

Why.

  • An acceptance item's id was only unique per story. A deleted item left a gap that --assign-ids refilled, and moving text up renumbered items silently. A plan citing NAV-US-003#AC19 could then mean another item, and attest read that AC19 as a criterion of the work (#404 I4).
  • A design round reached GO without anyone checking that every visible acceptance item had a design state or an owner decision. Nothing listed the round's states, viewports and themes, so "covered" was a claim in a review file (#404 B).
  • The review template's unfilled choice GO | GO with conditions | NO GO read as GO.

What changes.

  • Stable ids, compared at the fork point (#404 I4).
    • A deleted item goes into the story's retired list, optionally with split_into naming its successors. A retired id is never reused.
    • The checker reads the registry at the fork point (merge_base) and checks every story that exists there and today:
      • a base id must not vanish without retired;
      • a new id must be higher than every base id;
      • an item's text must not move to another id.
    • Without a base (no registry there yet, an unreadable or invalid base configuration, a symlink or a non-UTF-8 blob, a shallow clone, criss-cross, the integration base itself), the checker gives a note, never an error and never a silent OK.
    • References <Story>#AC<n> must point at an existing item. A reference to a retired id with split_into is a note.
    • --assign-ids numbers from the maximum, the base included, so it never reuses an id the base held.
    • stable_ids: false in feature-registry.json turns the comparison off. It counts only when both the base and the branch say false, so a branch cannot lift the duty for itself.
  • attest reads NAV-US-003#AC19 as a registry reference, not a plan criterion. An own AC-19 and a bare AC19 still count.
  • Design rounds list their states (#404 B).
    • A round folder carries states.json: surfaces, stories, viewports, themes, variants, the element map (each element with one owner and an optional role), and views with their states. not_applicable holds catalogue states with a reason.
    • state_catalogue on the registry entry names the states every view must answer. The catalogue is the union of the base and the branch, so a push cannot drop a state for its own GO.
    • The duty starts when a push touches the round: a new reference, draft → accepted, a changed review path, seal or review file, or a new entry file.
    • An accepted, sealed round is checked hard only when the push touches it. Registry or catalogue changes elsewhere give notes, so cleaning up stories never turns unrelated pushes red.
  • Anchors and computed coverage.
    • An item's design holds anchors <round>/<view>#<state>. The registry checker validates them when the design-contracts module is active.
    • An item is visible to a round when it has no owned_by and its surfaces meet the round's. It is covered by an anchor or by an owner decision with an ID: DECISION <date> owner <ID>: change|drop <Story>#AC<n> — <reason>. In a contract, a decision counts only bound to its round (owner <round>/<ID>).
    • An accepted entry with GO whose round has an uncovered visible item is an error that names each item.
    • Coverage lost against the fork point is an error for an item that exists and is visible at both ends. Deleted stories and retired items do not count.
    • check_design_contracts.py --coverage <surface> prints the table, and the review bundle shows it.
  • Decision lines. An unfilled choice (GO | GO with conditions | NO GO, GO / NO GO, GO or NO GO) is no decision. A table after the line does not hide it. Decisions in HTML comments and reasons left as placeholders (<reason>, TODO, …) decide nothing.

Effect.

  • A reference to an acceptance item keeps meaning the same item across releases, and a renumbering shows up in the gate.
  • A design GO states, in a computed table, which items it covers and why.

Changed sections.

  • feature-registry.md (Acceptance items; Writing rule and split rule; Stable ids (new); Configuration; Migration; Hard vs. best-effort (no false-green))
  • design-contracts.md (The registry entry; Hard vs. best-effort (no false-green); The round's state list and element map (new); Coverage — computed, and a GO only with all of it (new); Seed)
  • round-README.md (Contents; states.json — state list and element map (new); Workflow of a round)
  • surface-contract.md (9. Decisions)
  • independent-review.md

Update.

  • Projects that delete acceptance items list them in retired, or set "stable_ids": false in feature-registry.json. The setting takes effect once the update is merged, because it is read at the base.
  • A design round that a push touches needs states.json in its folder; templates/states.example.json shows the form. Owner decisions on items carry an ID, and items carry design anchors.

Details: Plan #404

v2.92.0 — One registry checker for template and project; tokens from Claude Code transcripts

Choose a tag to compare

@github-actions github-actions released this 09 Nov 12:55

Why.

  • Downstream, the project ran its own feature-registry checker beside the template's. It had a different layout, a different story shape and status, and tests per platform. Its 1714 acceptance items were plain strings, referenced by position (#404).
  • Token cost was never measured. The transcripts glob could not address Claude Code's per-project directory, so cost --issue, models and finish said not measured (#403).

What changes.

  • Configurable registry checker (#404 part A, owner decision).

    • docs/process/feature-registry.json holds the template defaults, and a project's choices go into docs/process/feature-registry.local.json. Without a local file the checker behaves as before, apart from the item ids below.
    • A capabilities layout puts one directory per capability, with a head file _capability.json that carries the id prefix, and one file per story.
    • Configurable:
      • the id pattern;
      • required story fields;
      • platforms (surfaces) and shared proof layers;
      • tests or per-platform test_mapping;
      • an issue list;
      • an optional story status;
      • roots for test references;
      • planned: placeholders;
      • retired fields.
    • Unknown configuration keys fail.
    • Both configuration files count as gate code.
  • Acceptance items carry an id (AC<n>, unique per story; references are <story>#AC<n>). Optional item fields are validated where present:

    • surfaces;
    • state (proven/target, per platform possible; a target needs an issue);
    • tests per platform;
    • owned_by for behaviour a shared layer such as the backend proves for every platform.

    An item without any platform has an implicit one.

  • Test references: the file must exist. A ::node is checked segment by segment (AST for Python, substring otherwise), as a note by default or as a failure with node_check: hard. A planned: placeholder is never proof.

  • One loader for every reader. The product-frame, issues and plan-structure gates read the registry through the new core module registry_config.py.

    • The issues gate checks existence with batched GraphQL queries instead of one gh call per reference.
    • Its rule "done needs an issue", which no configuration could reach any more, is gone.
    • The plan-structure gate takes the story pattern from the registry only where the local registry file exists at the integration ref.
  • Migration: check_feature_registry.py --assign-ids [--write] numbers items by position, takes the next free number on a collision, reports ids that do not conform, and keeps the files' formatting.

  • Tokens from Claude Code (#403).

    • The placeholder {worktree_slug} follows Claude Code's project-directory rule; the recommended glob is ~/.claude/projects/{worktree_slug}/**/*.jsonl.
    • A session file counts only when its cwd is the worktree, and its subagent files follow it.
    • The phase history keeps time windows per issue and branch, so every phase of an issue counts, even after the chain stopped the session. A reused branch name, a reopened issue and two issues alternating on one branch are attributed right.
    • One owner, dispatch.token_reason, names why tokens are missing: not-configured, no-record, no-files, remote or partial.
  • Testing guidance: a fake returns its producer's real wire format, with time zones; time-dependent suites run outside UTC; failure paths are tested from later states too.

  • Probe build: a cheap build from the design package alone, before the freeze, finds the places an implementer would have to improvise.

Effect.

  • The project can drop its own checker and keep only project rules. On the project's real registry, the checker finds exactly the 1714 items without an id, and --assign-ids --write migrates them.
  • Token cost per issue becomes measurable for Claude Code sessions.

Changed sections.

  • feature-registry.md (rewritten: Proven behaviour and addressable targets — not a work log; Acceptance items; Writing rule and split rule; Test refs; Configuration; Overlay: the project's choices; Migration)
  • github-issues.md (Prerequisites (optional); The issue field)
  • telemetry.md (The KPI cockpit)
  • testing.md (What earns a test beyond the happy path)
  • design-contracts.md (Probe build — a completeness check before the freeze)
  • workflow.md (Spike)
  • journal-state-plans.md (Plans)
  • overlays.md (Where an overlay lives)

Update.

  • Projects with acceptance items without an id run python scripts/process/check_feature_registry.py --assign-ids --write once.
  • Items that already carry surfaces or tests need the project's surfaces in feature-registry.local.json.
  • For token measurement, set "transcripts": "~/.claude/projects/{worktree_slug}/**/*.jsonl" in model-policy.local.json; with CLAUDE_CONFIG_DIR, use that path.

Details: Plan #404 #403