Repository navigation
fix(dev): reject unknown spec statuses before writes (Z2-SPEC-STATUS) - #767
Merged
Merged
Conversation
Test-First: scripts/lib/dev-spec-close.test.mjs::SPEC-STATUS: unknown status refuses without write
Test-First: scripts/lib/dev-spec-close.test.mjs::SPEC-STATUS: unknown status refuses without write
Cuarroc
marked this pull request as ready for review
October 9, 2026 00:01
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
34 of 53 tasks
This was referenced Oct 9, 2026
Contributor
Merge Queue Status
This pull request spent 24 minutes 31 seconds in the queue, including 13 minutes 2 seconds running CI. Required conditions to merge
|
This was referenced Oct 9, 2026
This was referenced Oct 9, 2026
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.
Unbekannte Statuswerte werden beim Abschließen einer Spec jetzt abgewiesen.
Dadurch bleiben bei Tippfehlern sowohl die Spec als auch das Register in STAND unverändert.
Du musst nichts tun; das unabhängige Review veranlasst Root.
Report
Package: Z2-SPEC-STATUS · Review tier: B
Goal / benefit: Reject unknown spec statuses before any Spec/STAND write.
Parent / ticket / owner: Serverreserve 3 / Z2; ticket 77c993f3; srv-z2-spec-status.
Authority: Root item 5, dispatched by Chief; contract at PLAN commit
36241d17181ce8cd4e7bc0c02e4ef1803f820043(pending #749 at start).Native evidence:
get_goalreturnedgoal: null;create_goalreturnedstatus: activewith the bounded implementation, validation, verified push and draft handover objective. Milestoneget_goalretained that objective and active status. Parent acceptance remains with Root.Base:
a8f00322b510dd48df67cc50ad0650b879902e40Candidate:
8ba6f2737442f42f018f3752346e5d94b83e28f9Scope: Only the two dispatched files; 29 additions / 0 deletions, below 180 ALL. No seam, gate, shared-helper or dependency changes.
What changed
scripts/lib/active-specs.mjs:7contract (aktiv,historisch,entwurf) in spec-close and refuse all other values with exit 3 before any write or HQ invocation.scripts/lib/dev-spec-close.test.mjs:71, using temporary fixtures and an injected runner. Coveraktvi,historic,Aktiv, andunknown, both dry-run and--apply --hq; assert unchanged file bytes, error text, exit code, and zero runner calls.Evidence
Observed 2026-10-09, Linux, Node
v24.21.0(node --version, exit 0). Every command completed in the foreground.git rev-parse HEADbefore editsnpm run dev:start-checknode --test --test-name-pattern='SPEC-STATUS: unknown status refuses without write' scripts/lib/dev-spec-close.test.mjsbefore fixaktvi: spec unchangedfailed because the file became historical; test committed first asc09c6aff469ba11450eec5d8fea578766a997e9dnode --test scripts/lib/dev-spec-close.test.mjsbash scripts/ci/red-first.shbash scripts/ci/secret-scan.shbefore each commitbash scripts/ci/gates.sh lane prepushin the assigned worktree and Cargo slotgit push -u origin codex/z2-spec-statusgit ls-remote origin codex/z2-spec-status8ba6f2737442f42f018f3752346e5d94b83e28f9git diff --numstat origin/main...HEADgit status --shortNICHT ABGEDECKT
#[cfg(windows)]tests (including ConPTY/DPAPI) and Windows clippy branches are not covered; Windows lane runs in the merge queue.lage-jetztmirror were unavailable; live Git/PR sources were read instead.Reviews and disposition
Review: pending, Root dispatches (Tier B: one reviewer outside OpenAI). No independent review performed by this worker; no review findings received.
Open points / handover
Implemented, locally tested, pushed and remote SHA verified. Draft handover only; not independently reviewed, accepted or merged. Root owns candidate-bound external review, acceptance and subsequent queue integration. No implementation blocker or scope adaptation.
Root-Abnahme (09.10.2026, head 8ba6f27)
scripts/dev/spec-close.mjs:18ALLOWED_STATUSES duplicates ERLAUBT from active-specs.mjs:7dev-spec-close.test.mjs:71is meaningfulTier B: author Codex gpt-6-astra (OpenAI); reviewer Anthropic family, verdict approve bound to head 8ba6f27. Report: ~/pa-orch/reports/review-pr767-anthropic-r1-8ba6f27.md.