Repository navigation
feat(e83): truth in the cockpit — fix the drift the red team found - #233
Merged
Merged
Conversation
Story e83s05. Block semantics unchanged; JSON now carries trigger.
Story e83s01. sync-version-mirrors writes release.last_tag; sync-skills stamps the skill count into package.json and mcp-server.js.
Story e83s02. Foreign links are reported on a separate line.
Story e83s03. Publishes source breakdown and a staleness flag.
Story e83s04. Zero drift warnings against the new baseline.
Epic e83 stories s01-s05 complete.
check-catalog-drift.sh hung in the story-verify gate. Logic now lives in scripts/lib/check-catalog-drift.py; behaviour unchanged.
The epic.yaml verify lines called run-story-verify.sh, so a done story re-entered the gate without end. Real checks now live in verify-e83.sh, and run-story-verify.sh rejects a self-referential verify.
Task verify lines began with ! and were rejected as prose.
…lpath Findings 1, 6, 8 of the independent review. Others are low severity and left.
Receipts: per-row skip, tz-correct latest entry, backfilled label, no tree mutation in verify. Story-verify guard covers wrappers via env var, with a regression test. Bug status uses the fixed vocabulary.
Terminal verdict is a single Preflight gates run.
sync-post.sh built the .pi and gemini manifest descriptions from
"${skill_count} skills — ${pkg_desc}", but package.json's description is
already stamped with the count by stamp-skill-counts.sh, so a sync emitted
"80 skills — 80 agent skills …".
This test pins the invariant — the live count appears exactly once — and
fails on the current tree.
stamp-skill-counts.sh writes the live count into package.json's description
("80 agent skills …"), and sync-post.sh then prefixed the count again for
.pi/package.json and gemini-extension.json, producing
"80 skills — 80 agent skills …".
The committed artifacts predate the stamp, so sync-skills.sh could not
reproduce what the branch commits and CI's
`git diff --exit-code .pi .gemini/extensions/bigpowers` went red on every run.
Strip the leading count before re-prefixing; sync is idempotent again and
regenerates the committed text exactly.
Picks up e83s01-s05 as done plus the new test-manifest-skill-count-once.sh link. Generated content only; report timing churn was reverted rather than committed.
… gate specs/AUDIT_LATEST.md and specs/security/REVIEW.md still described fix/guard-git-flag-normalize (PR #194, 2 commits) while this branch carries 15 commits, yet assert-epic-gate.sh release reported "audit-code verified". Replace both with reviews of the real diff and record the gate defect as BUG-2026-11-07-assert-epic-gate-fail-open.
… bug Generated by compliance/trace runs after BUG-2026-11-07-assert-epic-gate-fail-open was registered and the spec-version-gap bug bundle was first emitted.
e83s03 taught build-receipts.sh to label a blended reading "mixed" and verify-e83.sh asserts that label, but validate-okf-kinds.sh allowed only measured/estimated/backfilled/absent. CI's sync job therefore failed on the committed specs/receipts.json. Accept "mixed" and strengthen the validator while doing it: a mixed reading must carry value.source_breakdown, its keys must be known sources, and the parts must sum to value.story_count. A "mixed" label without evidence stays a failure.
The local gate set never ran validate-okf.sh over specs/, so compliance and run-verification-gates.sh both reported green while CI's sync job was red on e83s03. Add an okf-bundles gate covering the same six directories CI covers, so the two lists cannot drift apart silently.
|
🎉 This PR is included in version 2.95.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainhas been serving stale cockpit data.release.last_tag; e83s02 counts only bigpowers-owned skill links; e83s03 labels receipt metrics measured/estimated/backfilled honestly; e83s04 re-baselines VISION and the catalog; e83s05 names the trigger behind anACTIVE_WORKblock.sync-post.shstamped the skill count twice (80 skills — 80 agent skills …), sosync-skills.shcould not reproduce the committed.pi/.geminimanifests and CI generated-artifact drift gate went red on every run. Red-then-green test included.AUDIT_LATEST.mdandsecurity/REVIEW.md(both described PR fix(hooks): judge git argv instead of command substrings in guard-git #194, 2 commits) with reviews of this branch real 18-commit diff.BUG-2026-11-07-assert-epic-gate-fail-open: the release gate passed on that stale evidence, so it would green-light an unaudited branch.Verify
npm run compliance— exit 0bash scripts/run-verification-gates.sh— 62/62 deterministic, combined PASSbash scripts/trace-stories.sh --strict— exit 0bash scripts/verify-e83.sh e83s01..e83s05— 5/5Co-authored-by(P1)specs/ artifacts
specs/AUDIT_LATEST.md— rewritten for this branchspecs/security/REVIEW.md— rewritten for this branch, no HIGH findingsspecs/bugs/BUG-2026-11-07-assert-epic-gate-fail-open.md— newspecs/verifications/e83-verify.yaml,specs/verifications/CATALOG-BASELINE-2026-11-07.yamlspecs/state.yaml,specs/execution-status.yaml,specs/release-plan.yaml— e83 rolled to done