fix: Scoped gate starts inherit the run epoch; thread it through the build chain (change 0467) - #349
Merged
danielhanold merged 9 commits intoSep 29, 2026
Conversation
Docket-Plan-Path: docs/superpowers/plans/2026-09-28-document-run-epoch-in-the-docket-build-task-gate-drive-start.md
…467) precheckScopedStart now resolves the start's effective run epoch (scopedRunEpoch) and Admit substitutes it into its own copy of the request before the epoch gate, the scoped admission record, finished- incumbent reconciliation, and the admission ticket. A scoped start that presents no epoch inherits the one its scope pinned (first and successor starts alike); presenting a different epoch fails scopedIdentityMatch as scope-identity-mismatch before anything is reserved. An epoch-less scope leaves the presented value governing, unchanged. Mutation evidence: dropping the substitution reddens the two inheritance tests (stale-run-epoch / empty slot epoch); dropping the epoch clause in scopedIdentityMatch reddens the two foreign-epoch tests (admitted).
…tarts; guard it (change 0467)
…rompt (change 0467)
… re-run (change 0467, review fix-1)
…pe's run epoch (change 0467, review fix-2)
…och (change 0467, review fix-3)
… (change 0467, review fix-4)
danielhanold
force-pushed
the
fix/document-run-epoch-in-the-docket-build-task-gate-drive-start
branch
from
September 29, 2026 06:03
d383b43 to
cd24449
Compare
danielhanold
deleted the
fix/document-run-epoch-in-the-docket-build-task-gate-drive-start
branch
September 29, 2026 06:04
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.
↩ Change 0467 — Scoped gate starts inherit the run epoch; thread it through the build chain
Summary
gate.drive.startnow inherits the run epoch pinned on its scope (a foreign presented epoch is still refused); the build-owner advisory precheck instartBudgetedBuildreconciles with that same effective epoch.docket-implement-next,docket-build,docket-build-taskthread--run-epochinto everyprepare-scopeand build-owned start; task workers never handle it, except the repair worker's build-owned post-fix re-run.cursor-rules/run-gate.md/AGENTS.mdnow copy the<epoch>into the implement-next dispatch prompt; the Codexagent.enterrequest file carries it too.Results:
docs/results/2026-09-28-document-run-epoch-in-the-docket-build-task-gate-drive-start-results.mdReview
Reviewer rung:
docket-review-deep(no build record from the resumed run -> standard default; diff > 1500 changed lines bumped one step).stale-run-epoch)7fb799d08startBudgetedBuildadvisory precheck reconciled with the presented, not the scope's, epoch6c9226f54agent.enterrequest file did not carry the run epoch18db4ba15c7a4c8e29Full suite re-run after the fixes: green (66/66).
command: go run ./cmd/docket development test
result: green
head_sha: cd24449
ran_at: 2026-09-29T06:03:04Z