Repository navigation
Releases
v1.29.0 — ship readiness during the work, checks 47/48/49
Ship readiness during the work, not at the end. From one real ship that ship.py refused with 23 blockers at once after 31 rounds of implementing.
- #65 — the verdict line of an
implementingset (and--open) carriesship-ready: N blockers + M planned without built_on:, from the sameship_blockers()thatship.pyrefuses on. Check 47:changes[].fixes: [D1]; every fixing change built and the defect stillopen→ DRIFT. - #66 — check 48 (candidate):
kind: plannedentries with nobuilt_on:whose file has commits sincedates.drafted/tracking.base_sha(validated before it reaches git; literal pathspecs). Check 20 no longer reports undatedplannedfiles of later phases as missing while a set that dates what it builds isimplementing(first half of #54). - #69 — check 49 (candidate): decisions dated after the tests doc's
regenerated_on:that it never names;untested_because:opts one out. - #68 —
evidence.md: a red revert control proves the fix's efficacy by default, the cause only under four conditions. - #70 —
--next-tag;handoff.mdsays never buildRead:/Edits:lines by hand. Item 3 needs no change (the extra doc was registered; an unregistered one is already check 9). - #67 — accepted risks sharing expiry and reason print once. The shared
accepted_risks:schema is deferred (facts.py add-attemptrefuses YAML anchors).
Second-model review found 6 bugs (check 20 skip too wide, same-day commits, non-ASCII and subdirectory paths, pathspec magic, --open under --as-status), all fixed with regression tests. All suites pass (audit 373/373). On 9 real sets only the ship-ready line and new candidates change; one set loses 3 false CONTRADICTIONs (the #54 case).
v1.28.0: bundled PyYAML, eval suite with a no-plugin baseline
Why
The first claude plugin eval run of feature-spec found that, in a clean environment (the eval sandbox), every script failed on import yaml. Anyone installing the plugin on a machine without PyYAML hit the same wall.
What
Bundled PyYAML. The scripts use the PyYAML installed on the machine (with its C loader when present) and otherwise the pure-Python PyYAML 6.0.3 in scripts/_vendor/yaml/ — copied unmodified from the PyPI sdist, whose sha256 was checked against PyPI's JSON API (scripts/_vendor/README.md records version, URL and hash; MIT license included). It is the same library, not a different parser, so a registry parses the same everywhere. README no longer asks for pip install pyyaml.
CI job tests-without-pyyaml runs every suite with no PyYAML installed.
Eval suite (evals/, run with evals/run.sh): four cases, each run with the plugin and without it. A case scaffolds a throwaway git repo from tests/fixtures, gives the agent one task and grades what it did — the scripts it ran (command patterns) and the files afterwards — not what it said.
| case | with | without | what differs |
|---|---|---|---|
| new | 1.0 | 0.0 | without the skill the set is never scaffolded |
| sync | 1.0 | 0.67 | without it a derived doc (release notes) gets patched by hand |
| audit | 1.0 | 0.71 | without it the agent reads everything instead of audit.py --open |
| handoff | 1.0 | 1.0 | the fixture's own log already teaches the stub rule — not discriminating yet |
Lessons baked into the cases: an LLM judge (Haiku) was inconsistent on long answers, so audit is graded by regex on the final message; command regexes accept escaped quotes; git does not run inside the eval sandbox on macOS, so the sync case uses the _facts.synced.yml snapshot (as most real sets do) instead of git history.
Verification
All 8 suites green with and without PyYAML installed (a venv with none loads scripts/_vendor/yaml). claude plugin validate . passes. Eval cost: about $2 estimated per pass with a claude.ai login (plan quota, not billed).
Release: v1.28.0 (plugin.json version, README row, install pins). Merge with a merge commit.
v1.27.1 — registry edits through the Edit tool, old text copied from a Read
Registry edits go through the Edit tool, with the old text copied from a Read instead of retyped from memory in a Python heredoc. On 2026-11-06, 22 of 36 such retyped edits failed on YAML indentation.
v1.27.0 — feature-spec as a Claude Code plugin
Why
Seven projects loaded feature-spec through a symlink to the working checkout (.claude/skills/feature-spec -> ~/Documents/work/skills/feature-spec, directly or via ~/.agents/skills). Every session ran whatever branch that checkout was on; for a day they loaded unreleased code.
What
.claude-plugin/plugin.json("skills": "./", version1.27.0) and.claude-plugin/marketplace.json(single plugin,source: "./"). Install:claude plugin marketplace add CesarRivasP/feature-spec+claude plugin install feature-spec@feature-spec;#v1.27.0pins a tag. Claude Code records version and commit, copies the plugin to its cache, and updates only onclaude plugin update.- The skill stays at the repo root.
SKILL.mdnow says its files live at${CLAUDE_SKILL_DIR}, soscripts/…andreferences/…resolve the same as a plugin and as a plain skill folder. agents/spec-*.mdregister asfeature-spec:spec-strong/-mid/-cheap;references/parallel.mdnames them.- README: install as a plugin; remove project copies and symlinks (both would load and compete for the same requests).
Verified
claude plugin validate .passes (only warning: no icon, optional).- Installed in an isolated
CLAUDE_CONFIG_DIRfrom this checkout:claude plugin details feature-spec→ Skills (1), Agents (3), version 1.27.0, gitCommitSha recorded; always-on ~276 tokens per session, ~4.4k on invoke. - From the installed cache copy:
audit.py,--getandsync.pyrun on a real set. - All 8 test suites green.
CI (#62): every push to main and every PR runs the eight test suites on Linux and checks that the plugin validates, installs from the checkout into a throwaway config and loads one skill and three agents. First run: tests 1m11s, plugin 11s.
Release: v1.27.0 (README row; version in plugin.json). Merge with a merge commit.
v1.26.0 — check 46 doc 02 vs the code, audit 2-5x faster
What
Check 46 — doc 02 code blocks vs the tree ([script + human], candidates only, runs once the set is implementing or shipped). A fenced block in a doc whose id starts with 02 that names exactly one repo file (fence info string, or one backticked path on the line above) is compared, on normal form, with that file at the branch the set names (tracking.branch / shipped_in, untracked files from disk). Candidate when its lines no longer appear in it as a contiguous run.
- Real case: the code gained a guard that the doc never got; whoever rebuilt from the doc reintroduced the bug. Lines in order inside a compact region with a few lines inserted stay a candidate.
- Doc 02 stays paste-ready: blocks are never replaced by anchors.
- Skipped:
diff/patch, untagged or text/log/console fences, blocks whose line above opens withantes:/before:, the before-part of a block with// antes…// después. - Not stale: a block matching, as one contiguous run, another file
changes[]declares (the line above named the source of a move); an excerpt of keys in a data/config file. In code, lines present but reordered or spread ARE a candidate. - Comment prefixes follow the language (
#is code in C/CSS/Rust,--outside SQL/Lua); a comment that elides (// … body identical to X) splits the block.
Speed — GitTree reads through one git cat-file --batch process; the datum regex is built per doc from the values present; YAML uses the C loader with a pure-parser re-parse on error so line:col messages are unchanged; check 21's id-in-prose regex became a token set. tests/test_perf.py generates a 312 KB / 16-doc / 100-file-on-branch set in a tmp repo, runs the old paths (FEATURE_SPEC_SLOW=1) and the new ones, and asserts byte-identical text, --json and --doc-index, plus identical reports for four broken YAMLs.
Measured
- Generated set: 54.4 s → 9.6 s (×5.7).
- Real sets,
--jsonidentical between paths: 4.18 → 0.85 s, 3.88 → 1.41 s, 4.12 → 2.53 s, 2.97 → 1.77 s. - Check 46 on real sets: 19 → 6 candidates on an implementing set after the false positives found there; 0 on the set of the real case.
Review
Second-model review (Claude Opus) of check 46: five false negatives — a plain comment starting with "before"/"current" switched a block off; the excerpt rule hid reordered and removed lines in code; the changes[] alternative accepted a spread excerpt of an unrelated file; "old"/"current" inside a path or mid-sentence counted as a pre-change marker; #, --, * were dropped as comments in C, CSS, Rust. All fixed; each is a case in tests/fixtures/doc02-code-drift that the previous code missed.
Verification
test_audit.py 356/356 across 71 fixtures; test_perf.py identical on every path; ship, facts, triage, render, sync, new, rotate green.
Release: v1.26.0 (README row and clone pin bumped). Merge with a merge commit.
v1.25.0 — lossless grouping, check 45
What
- Lossless grouping of repeated findings (text output). Findings of one severity, check and message template print once:
DRIFT ×N:with the message (values every member shares written as they are), then every member with only the values that differ, then the check line. Groups of 1-2 print as before;--fullprints each. Counts, exit code,--json,--baseline/--write-baselineunchanged. On a real set with 32 DRIFT: 14.5 KB → 10.4 KB. - Check 45 (
POLISH): history inside the registry. A key whose name ends in a date (outcome_2026_09_04) or anote:over 600 characters: move it verbatim to the_log.mdround that produced it and leavesee: _log.md R<n>. Never fires on, or inside, the prose the rules keep in the registry (outcome,correction,retired_because,falsified_by,accepted,conditions,claim,item,value,attempts), on anote:next to acorrection:or a retraction (evidence.md puts the long story there), or on a dated number.
Review
Reviewed by a second model (Claude Opus): two bugs in check 45 (it descended into exempt fields; it contradicted evidence.md on note:) and a member-line ambiguity — all fixed, each with a test that fails without the fix. While testing on a real set, member lines split dates (2026 09 03) and the header turned a shared instruction into a placeholder; also fixed and tested.
Verification
test_audit.py 346/346 across 70 fixtures; ship, facts, triage, render, sync, new, rotate green.
Release: v1.25.0 (README row and clone pin bumped). Merge with a merge commit.
v1.24.0 — new.py, rotate.py, --open in: lines
What
scripts/new.py— the deterministic half ofnew: profile walk (nearest wins, spelled from the repo root), sibling list (never decided), a registry with only template keys,_log.mdwith the R1 stub, doc 01's headings in the profile's language; runsauditon the result. Refuses if any of its three files exists, rejects bad slugs and multi-line titles, exits non-zero when the result does not parse.scripts/rotate.py— executes the_log.mdrotation--rotate-planonly printed. Needs the rotation stub open (· rotateas the action field); keeps_log.md.origuntil the archive and the kept part reassemble the original byte for byte; re-reads the log right before replacing it; fsyncs; keeps permissions; refuses a symlink; flags a leftover archive from an interrupted run.rotate_plansplit into a structured plan and its printer;--rotate-planoutput byte-identical to v1.23.0 on five real logs. Nested HTML comments in the log template no longer count as rounds.--openin:lines — under each open entry, the doc spans that cite it (from--doc-index), grouped by file, sure citations beforemaybe;--compactprints a count and every item line fits 80 characters;--jsongainssections.- Return contract (
references/parallel.md, templates,agents/spec-*.md) — file runners keep every finding in the delivery and return a summary of at most 40 lines withoverflow:; the merge reads the delivery.claudesubagents stay read-only and return everything as text.agy's JSON is redirected to the delivery file by the main session. Rule 1: a subagent writes nothing in the set except its own delivery.
Measured on real sets
- Largest real log (192 KB, 2888 lines): rotated to 273 lines + a 2625-line archive; preamble + archive body + kept part == original.
--openon a 307 KB registry: 38 KB within:lines (31.8 KB without), 9.7 KB with--compact.new.pyon a real repo layout: the new set audits clean.
Review
Reviewed by a second model (Claude Opus). Blocker: new.py overwrote an existing _log.md when _facts.yml was missing. That and seven other bugs are fixed, each with a test that fails without the fix. Two more found while re-testing on real data (--open grew to 49 KB with headings in in: lines; --compact item lines at 123 characters) are fixed and tested too.
Verification
test_audit.py 331/331 across 69 fixtures; test_rotate.py 15/15 and test_new.py 12/12 (new); ship, facts, triage, render, sync green.
Release: v1.24.0 (README row and clone pin bumped). Merge with a merge commit.
v1.23.0 — audit --doc-index and --cites
Why
--index maps the registry, but the docs had no map: real sets carry up to 5.8k lines in 16 docs, and a round that touches two entries read them whole.
What
audit.py <dir> --doc-index: per doc ofdocs[], every heading with its line spanL<a>-<b>, and under it the registry entries the section cites on its own lines — by qualified key (limits.foo), by id (D24), or by a datum's value.--jsongives the same data withown_end,maybeandskipped.--doc-index --cites KEY [KEY ...]: the sections citing each entry, as the span of the lines that cite it and the section's full span. A top-level key with entries aggregates them; a top-level scalar exits 2.- A citation must name exactly one entry: a value shared by several entries cites none (real case: a date in 23 fields made every changelog section cite the same 13 decisions); one-letter ids (
D1,R2, also Cloudflare product names) are listed asmaybe; a numeric value needs 4+ digits and cannot be part of a decimal or a percentage, while a sentence's own period still counts. - The heading scanner is line-based: fences (``` / ~~~), HTML comments opening a line, BOM, CRLF and trailing hashes handled; docs it could not read are listed as
skipped.
Measured on real sets
20–32 KB of index for 230–450 KB of docs, 0.4–0.7 s. Spans checked by hand against the files; citations spot-checked against the text.
Review
Reviewed by a second model (Claude Opus; the OpenCode and Gemini accounts were out of quota). Its eight bugs and two risks were fixed, each with a test that fails without the fix. One more false negative found on a synthetic set after that fix (timeout 30000.) is fixed and tested too.
Verification
tests/test_audit.py 330/330 across 69 fixtures; ship, facts, triage, render, sync green.
Release: v1.23.0 (README row and clone pin bumped). Merge with a merge commit.
v1.22.1 — sync.py without git
Why
Run on the set that motivated v1.22.0, sync.py exited 2: that registry is in .git/info/exclude, so git show REF:_facts.yml has nothing to return. 36 of the 64 real sets on disk keep _facts.yml out of git the same way (or have no repo), which left sync.py unusable on most of them.
What changes
--init-basewrites_facts.synced.yml, a byte copy of the registry, beside_facts.yml. Refuses if it exists (exit 2) unless--force. Run it once, when the docs are known to match the registry.- The old registry is the first base that exists:
--from-file PATH,--from REF,_facts.synced.yml, gitHEAD(tracked and not ignored). None: exit 2 naming--init-baseand--from-file. The first output line names the base used. - A fully clean
--apply(exit 0, no ambiguous value left, no doc skipped) moves the snapshot forward, atomically. Otherwise the old snapshot stays, so the unapplied change shows again next run. A dry run never writes it. - Sets tracked in git with no snapshot behave exactly as in v1.22.0; no snapshot is created for them.
- The
_prefix keeps the snapshot out ofdocs[]and the anchor checks; audit output on a fixture holding it is unchanged.
Verification
tests/test_sync.py 13/13 (new: a set with no git repo through init → edit → dry run → apply, init over an existing snapshot, snapshot kept when a value stays ambiguous, --from-file, snapshot wins over HEAD, no base at all). tests/test_audit.py 329/329; ship, facts, triage, render green.
On a copy of the real set: a renamed changes[].file was found and replaced in both doc lines that cited it, the Edits line printed, the snapshot moved forward; a one-character value change was refused as ambiguous and listed with its lines.
Release: v1.22.1 (README row and clone pin bumped). Merge with a merge commit.
v1.22.0 — sync.py, audit --get and --compact
Why
Measured on the largest real sets the skill has run on (registries up to 307 KB, sets up to ~720 KB): the scripts are fast (1–5 s, under 70 MB peak RSS), so the cost of a round is the text that lands in the agent's context and the mechanical work the agent does by hand. A Rust port was evaluated and rejected for the same reason.
Audit output
audit.py --get KEY [KEY ...]prints the exact YAML of single registry entries under# KEY L<a>-<b>, sharing the span logic with--index. Unknown key exits 2. Replaces--index+ offset reads.--open --compactcuts each open item to one line of 80 characters (31.8 KB → 8.6 KB on the largest set).--openstays whole by default, becausehandoff --sessionreads it.--compactwithout--openexits 2.- The human-pass block prints checks with candidates in full and every other check as one
check <id> <name>line, so none is skipped by omission;--fullrestores the descriptions. Plain audit output −21 to −32% on three real sets.--jsonunchanged.
sync.py
scripts/sync.py <spec_dir> [--from REF] [--apply] diffs _facts.yml at REF (default HEAD) against disk and replaces each changed value in the docs in scope, with the provenance view's word boundaries and the audit's stage gating (both imported, not reimplemented).
- Dry run by default;
--applywrites atomically (temp file +os.replace). - Never guesses: a value shared by several paths, part of another datum, under 3 characters, or without a new value is reported, not applied (exit 1).
- Never writes
_log.mdorlegacy/deriveddocs; changeddecisions.*are listed with theircited_in:. - Skips a doc that changed since the plan (exit 1); warns when
HEADequals disk (pass--from); exits 2 on an untracked or ignored registry.
Docs
SKILL.md mode rows, scripts and tests lists; mode-audit, mode-sync, mode-handoff, handoff.md, parallel.md and the inbox brief template name the new flags. Subagents have no Bash, so parallel.md has the main session paste --get output into the brief.
Review
Implemented by Orca workers, then reviewed by a second model (OpenCode, Kimi K3.1 Pro) against the code. The review moved --compact to opt-in, kept every human-pass check named, and added the stale-doc check, atomic writes and base-ref warning to sync.py.
Verification
tests/test_audit.py 329/329 across 69 fixtures; test_sync.py 9/9 (new, temporary git repo); test_ship.py, test_facts.py, test_triage.py, test_render.py green.
Release: v1.22.0 (README row and clone pin bumped). Merge with a merge commit.