policy: exceptional implementation rule - #164
Conversation
Deploying ystack with
|
| Latest commit: |
8dff272
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b316b3f5.fabrica-6yx.pages.dev |
| Branch Preview URL: | https://codex-exceptional-implementa.fabrica-6yx.pages.dev |
Codex reviewer (cross-vendor, read-only)Reviewed-head: 9accd6a Posted verbatim by The new escalation rules do not wire into the existing resumable-state behavior. Both initial implementation and review-time exception approvals can leave the workflow unable to continue on the intended branch or PR. Full review comments:
|
Codex reviewer (cross-vendor, read-only)Reviewed-head: 8f1ca0c Posted verbatim by The new exception workflow can leave contradictory state labels and does not provide the operator enough information to resolve its main escalation path. Its global testing rule also conflicts with an existing supported bootstrap exception. Full review comments:
|
Codex reviewer (cross-vendor, read-only)Reviewed-head: b6b65fd Posted verbatim by The new rule is given to Claude coders but is not reliably visible to the independent Codex reviewer in target repositories. This leaves the central review requirement unenforced. Review comment:
|
needs-human — round-capThe final authoritative review of
Local full gates and remote CI are green, but this PR is not Recommended resolution: create a separate strict-subset issue/PR that delivers the accepted rule through a target Proposed follow-up issue creation was not performed because it requires the operator's explicit approval. |
Codex reviewer (cross-vendor, read-only)Reviewed-head: 8dff272 Posted verbatim by The new resumable handoff state conflicts with existing tracking behavior, so an interrupted re-entry can become permanently invisible. Review comment:
|
Scoped final review dispositionThe remaining P2 is not a blocker and receives no code change. The new re-entry rule says The round-cap P1 is resolved by the operator-approved scope-down and strict-subset follow-up #165. This PR remains open and unmerged for human review. |
|
The operator-authorized strict-subset follow-up is now recorded as issue #165 and G1 PR #166. PR #166 is CI-green and has a clean authoritative review at #164 remains scoped to ystack policy/review, universal coder/manager behavior, and the Claude-facing target template. It remains open and unmerged for human review. |
Add one exceptional implementation rule
This is the independent P1 policy concern from #163. It closes a real gap: ystack already requires tests, one concern, and durable artifact links, but it did not require root-cause fixes or govern implementation workarounds and source comments.
What changed
AGENTS.mdnow defines the complete root-cause-first exception and non-blanket comment floor.REVIEW.mdmakes unexplained, self-granted, copied, untested, or lifecycle-free exceptions Important blockers while keeping ordinary comment wording a nit.routines/coder.mdsends an implementation-time exception back to the accepted artifact gate instead of letting the coder improvise a workaround.routines/coder-revision.mdprevents review feedback from authorizing a quick workaround or copied exception.templates/target-CLAUDE.mdgives Claude-based target coders the same baseline and permits zero optional comments without erasing required notices, directives, documentation, invariants, or exception provenance. It now states plainly that independent reviewer delivery is separate.manager/CLAUDE.mdandtemplates/yshifu-command.mdpreserve a paused exception decision on the same branch or PR and select the correct resume mode.Every exception must be accepted before implementation, isolated behind one private boundary, regression-tested in CI, linked to a durable record, and carry a temporary removal condition or permanent external invariant plus re-evaluation trigger. A link or PR discussion records provenance; it is not approval. Exceptions never waive CI, independent review, authorization boundaries, target safety rules, constitution rules, or human merge.
Enforcement boundary
No generic cross-language comment scanner or structured exception registry is added here. A central prose/regex gate would either check only wording or misclassify valid licenses, directives, generated code, and language-specific documentation. The mechanically reliable parts are explicit instead: every exception's regression test runs in target CI, and a lint/type/deterministic invariant check is required when the target can express it reliably. Root-cause and tradeoff judgment remains in review.
Scope and activation
target-CLAUDE.mdreaches that reviewer.AGENTS.mdandREVIEW.mdare operator-driven constitution changes.scripts/install.shafter merge.Proof
Verified in a clean detached worktree at
8dff2721ffd511da23b846ed23ec684f58ca4cd8:git diff --checkpassed.readyon pause/failure, missing operator decision context, unsafe raw handoff data, undefined dirty-state digests, base movement mistaken for corruption, missing fix-mode race checks, and accidental application to add-CI/greenfield process gates.Closes #163