diff --git a/core/CONTRACT.md b/core/CONTRACT.md index a8568896..34662df7 100644 --- a/core/CONTRACT.md +++ b/core/CONTRACT.md @@ -154,6 +154,9 @@ runner reliability or speed) go to the front of the merge line, ahead of feature work, through the repository's queue priority if it has one. Infra-only fixes may use the infra-only route above. +Finish planned base updates before starting checks. Wait for an identical check +already queued or running at the same head and fingerprint. Before a fallback +check on a published head, run `loopzero ready` and reuse any receipt it accepts. The builder runs each full local gate once and records its command, exact head SHA, environment fingerprint (from consumer AGENTS.md/docs), result, time and log path. Builders, reviewers and coordinators reuse green receipts at the same head and @@ -203,9 +206,10 @@ Freeze new work on Codex evidence projections. Simplify or delete them when they Preserve the approved head; optional suggestions do not justify edits. - After an approved ordinary delta with blocking findings resolved, one more delta can review a suffix of verified base merges containing a conflict. Otherwise, merge with readiness passing or split a head that needs more review. -- After an approved primary or a delta review, take base changes by merging the - base into the existing branch. Readiness and hosted eligibility can inherit - coverage only across proven clean base merges. A request_changes primary +- When a base update is needed after a published review, merge the configured + base into the existing branch to preserve reviewed ancestry. Readiness and + hosted eligibility can inherit coverage only across proven clean base merges. + A request_changes primary additionally requires resolution of every blocking finding. Source commits, modified merges, and rebases that rewrite the reviewed commit require review coverage for the new head. diff --git a/core/skills/implement/SKILL.md b/core/skills/implement/SKILL.md index fd485570..798c8940 100644 --- a/core/skills/implement/SKILL.md +++ b/core/skills/implement/SKILL.md @@ -19,6 +19,8 @@ freeze them. Change Acceptance only with a recorded reason in Notes, before implementing the change. For changes touching guards, auth, permissions, sessions, secrets or trust boundaries, record a short design pass in Notes before the first code edit: threats, invariants and chosen approach. +When deduplicating tests, list their distinct assertions before editing, +keep each in a surviving test, and record where in the PR body. Use [write-tests](../write-tests/SKILL.md) to prove the bounded acceptance. Map migration, authorization, locking/concurrency and policy edge cases to tests diff --git a/core/skills/work-issue/SKILL.md b/core/skills/work-issue/SKILL.md index 73e4ae31..d2be8ef0 100644 --- a/core/skills/work-issue/SKILL.md +++ b/core/skills/work-issue/SKILL.md @@ -29,6 +29,9 @@ include required completion in the closing delivery. A child does not own its pa Recheck collisions, live acceptance, prior delivery and ownership before publication and merge. Reconcile changes before proceeding. On approval, run readiness at the approved head and defer optional changes. +Before queueing, check the candidate merged with the current base against +every repository size cap, including the combined effect of any batch. +Verify the replacement is installed and works before retiring a deployment workaround. Before a source edit for [delta](../../CONTRACT.md#review-budget), name the unmet criterion or verified defect. Own review, CI and post-merge acceptance waits. Use the [acceptance evidence](reference.md#acceptance-evidence) and