Repository navigation
chore(openspec): upgrade to OpenSpec 2.1.1 with a strict-warning baseline - #245
Conversation
…line OpenSpec 1.14.1 made a requirement longer than 500 characters a warning, which `validate --strict` fails; 67 existing warnings would block every push. `npm run openspec:validate` now runs scripts/openspec_strict_gate.mjs, which keeps --strict but tolerates the warnings recorded in openspec/strict-baseline.json, so new or longer requirements and any other new warning still fail. OpenSpec 2.0 removed the /opsx: commands. On Linux, 2.x links .claude/skills into .agents/skills, and Windows checkouts with core.symlinks=false cannot follow the links, so the skills are committed as real files and the gate rejects tracked symlinks there.
The gate named an overlong requirement by counting every '### Requirement:' line in the spec, while the validator counts only the headers directly under '## Requirements', outside fenced code. A fenced example would have shifted the names and let a new overlong requirement borrow a baselined key. A missing git binary now fails instead of skipping the symlink check.
OpenSpec 2.1.1 requires Node 22.20 or newer. The gate now says so, with the version it found and the one-off hook bypass, instead of failing inside npx.
|
Automated review: REQUEST_CHANGES I'm the reviewer lane for the OpenSpec 2.1.1 upgrade. Let me start by looking at the actual diff and the key files.The opsx commands exist on Let me inspect the validator's JSON output and warning provenance.The gate ignores Automated review
Scope reviewed: I ran the gate on the tree ( 1. DefectsD1 — blocking, high — D2 — blocking, medium — Non-blocking observations:
2. Inventory
3. Design verdict
Net call: ship smaller — two small fixes: point the npm script at 4. Release readinessNo release beyond landing. Dev machines need Node ≥ 22.20.0 — the gate names the floor before spawning (verified in code order); 5. SecurityRisk lens no: no auth surface, no untrusted input to renderer/export/query/shell. The gate spawns a fixed argv; the spawn itself is shell-free (which is what makes D1 bite). |
A baseline key named only the capability and requirement, so a new change that grew or re-added a baselined requirement matched the old key and passed. Delta warnings now key by change, spec warnings by spec, and a spec warning carries only from a change that has since been archived. The gate also fails when validate returns no report, and callers run the pinned CLI through Node instead of npx, which cannot be spawned without a shell on Windows.
Quality report
Gate: passedDead code, lint findings and banned patterns on lines this pull request adds. Silence a false positive in
Proof weightLines added and removed per path class, from
Product +1 lines against proof +384 lines (tooling, specs, scripts). Measures on added lines
Test runtimeThis run against the median of the last 5 successful
|
|
Automated review: APPROVE Rechecking the correction round. First, what changed since the head I reviewed (a6844fb).Both my findings are addressed: D1 via
Reviewed Prior findings — recheckD1 (Windows spawn, was blocking) — fixed. D2 (status-envelope false pass, was blocking) — fixed. Re-verified all three holes close: a New surface — the change-scoped keys and carry rule, attacked
Residual notes (non-blocking)
Inventory deltas this roundGate copy parity re-verified byte-identical ( Design verdictShip. The change-scoped keying removes the one real ambiguity of the previous scheme (delta vs spec debt sharing a key), the carry rule implements exactly the contract's semantics (inactive cid + exact capability + name), and the fail-closed gaps are closed. Byte-identical hand-maintained copies are the operator's recorded choice and verified in step. |
Summary
@fission-ai/openspecat exactly 2.1.1 (was ^1.14.0).validate --strictfails on warnings. 1.14.0: 99/99 pass; 2.1.1: 67 warnings, 0 errors.npm run openspec:validate, which the lefthook pre-push hook runs throughscripts/openspec_validate.ps1, now runsscripts/openspec_strict_gate.mjs. It keeps--strict, but tolerates the warnings inopenspec/strict-baseline.json(67 keys, all overlong requirements). New or longer requirements and any other new warning fail./opsx:commands are removed (OpenSpec 2.0 dropped them). The OpenSpec skills are committed as real files in.agents/skillsand.claude/skills. On Linux 2.x writes.claude/skillsas symlinks, and Windows checkouts withcore.symlinks=falsewould get text files instead, so the gate rejects tracked symlinks there./opsx:references replaced with skill names.node node_modules/@fission-ai/openspec/bin/openspec.jsand the gate spawns it with the running Node, so validation works on native Windows (npx shims can't be spawned without a shell there). The gate exits 2 on a missing report, an empty report, or a failed run with no issues, and names the Node 22.20 floor.Test plan
diff -rof the 12 skill pairs: identical; no mode-120000 entries