Repository navigation
fix: scheduled reviews re-run on unchanged items because the review cache is unreachable - #1053
masatohoshino wants to merge 10 commits into
Conversation
The exact-event workflow reserves the durable review lease in its own write-token step, so it must invoke the review command with `--skip-start-comment`. The same flag decided `coordinationEnabled`, which `reviewStructuralCacheProbeDecision` consults before anything else, so scheduled deliveries returned `coordination_disabled` and re-ran full hydration plus Codex on unchanged items. Because the probe never ran, `preHydrationStructuralRecord` stayed null and the seeding branch could not persist a receipt for the next review either, so the cache could not bootstrap even once. Coordination now also holds when a reserved lease is supplied, and the structural cache path claims that lease instead of posting a second start comment. The single-lease invariant that `--skip-start-comment` protects is unchanged: the claim reuses the freshness and winner checks the hydrated path already ran, now shared through one helper, and a reservation that no longer describes the item fails the run for the recovery lane exactly as before. openclaw#1036 landed the `explicit_dispatch` half of this; the two flags that produce both gates sit on adjacent lines of the same invocation. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Codex review: needs real behavior proof before merge. Reviewed August 8, 2026, 12:07 AM ET / 04:07 UTC. ClawSweeper reviewWhat this changesThis PR lets scheduled review deliveries claim their workflow-reserved lease and reuse eligible structural-cache receipts rather than rehydrate and rerun Codex for unchanged items. Merge readiness⛔ Blocked until stronger real behavior proof is added - 6 items remain Keep open: the patch still permits a structural-cache hit when the target head changes between the initial probe and lease-held revalidation, so it can reuse a verdict whose within-run target context changed. Priority: P1 Review scores
Verification
How this fits togetherThe exact-event workflow turns scheduled queue work into a review command and supplies a durable lease. The review command checks a structural receipt, then either republishes the prior verdict or hydrates GitHub context and runs a new review. flowchart LR
A[Scheduled queue delivery] --> B[Exact-event workflow]
B --> C[Reserved review lease]
C --> D[Structural cache check]
D --> E[Lease-held revalidation]
E -->|unchanged inputs| F[Reuse prior verdict]
E -->|changed inputs| G[Hydrate and review]
F --> H[Publish review state]
G --> H
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Retain the intended cross-review tolerance for unrelated default-branch progress, but require target-head equality between the initial structural record and the lease-held revalidation record before reusing a verdict. Do we have a high-confidence way to reproduce the issue? Yes, by source: two otherwise identical structural records with different target heads pass the revalidation call at src/clawsweeper-review-command-workflow.ts:598 because the changed decision no longer compares that field. Is this the best way to solve the issue? No: ignoring target movement across separate scheduled reviews is reasonable, but using that same relaxed comparison during a single lease-held revalidation loses the existing within-run stability safeguard. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 985651bf6642. LabelsLabel justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (19 earlier review cycles; latest 8 shown)
|
Drives the shipped review command against a live issue in a repository the proof author owns, so the reserved-lease claim and the receipt-persistence path are exercised rather than inferred from the probe decision alone. The claim branch emits `structural-cache-start-comment=reserved`, and a second run persists `review_structural_target_head_sha` where the first run wrote `unknown` — the production symptom, reproduced and then cleared. Also records what the run did not reach: the structural cache still misses with `activity_changed`, because the lease comment `reserve-review-lease` posts moves the item's `updated_at` past the owned-sync markers recorded in the prior report. The model-skipping hit that run did produce came from the content stage, whose coordination the pre-existing post-hydration claim already satisfies, so it is not attributed to this change. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Clearing the coordination gate alone did not restore cache reuse. The exact-event workflow posts its lease reservation before invoking the review command, so on that lane the reservation is always the item's newest activity, and it necessarily lands after the sync markers the prior review recorded. `activityCoveredByReview` therefore read ClawSweeper's own write as reporter activity and returned `activity_changed`, so scheduled deliveries kept hydrating and rerunning Codex even once they reached the decision. The reservation is now validated before the cache decision instead of after it, and its timestamp is passed in as the owned-activity boundary. Only the reservation this run has already elected as its lease winner can widen that window, and it widens it to its own timestamp and no further: activity after the reservation, including a reporter comment, still forces hydration. Validating first also removes a second GitHub probe, because the claim below reuses the result. Proof: a live scheduled delivery on an unchanged item now reports `cache-hit structural-unchanged skip-hydration-model` with `structural_cache_hits=1` and `hydrations=0`, where the same item previously missed with `activity_changed`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
… blocker The reservation lookup was unconditional once the probe passed, so every structural miss on the reserved-lease lane paid a GitHub read it did not need. Decide first without the owned boundary; only when the sole reason is `activity_changed` validate the reservation and re-decide with it. The cache-hit path still reuses that validation when it ran, and elects the reservation itself when the decision hit for other reasons, so no path claims the lease twice and none skips claiming it. Re-verified end to end after the change: a live scheduled delivery on an unchanged item reports `cache-hit structural-unchanged skip-hydration-model` with `structural_cache_hits=1` and `hydrations=0`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The structural decision compared the target repository's default branch head across reviews. That head advances for reasons that have nothing to do with the item under review, so on a repository whose default branch moves faster than the review cadence the comparison can never match and the cache reuses nothing. openclaw/openclaw advanced its default branch 100 times in the 21h11m ending 2026-08-07 — roughly once every 13 minutes — against a daily cadence over 5,536 open items, so every scheduled pass re-ran a full review. Staleness stays bounded by the ceiling the probe already enforces: a recorded verdict is reused for at most REVIEW_STRUCTURAL_CACHE_MAX_AGE_DAYS before a full review runs regardless of what main did. No new constant is introduced, and the record still carries targetHeadSha so a single run can verify main held still across its own pre- and post-hydration probes. Proof: one unrelated commit on the target branch — a comment appended to a README, where the item is about a different file — previously turned a `cache-hit ... hydrations=0` run (8 s) into `target_changed` with a full hydration and Codex re-run (103 s). The same item on the same advanced main now reports `structural_cache_hits=1` and `hydrations=0`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The pull-request path was only covered indirectly. `sourceRevision` hashes `snapshot.pull.baseSha`, which invites the reading that an advancing default branch would invalidate pull requests anyway through `source_changed`. It does not: `baseRefOid` is pinned at pull-request synchronisation rather than tracked to the base branch. openclaw/openclaw#118777 still reported base `d2c8fd2e` (2026-08-03T16:46:14Z) on 2026-08-07 with `main` at `9aa24e8f` (05:02:50Z) — three and a half days and roughly 450 commits later — and four open pull requests updated within the same hour reported four different base oids, which they could not if the field followed the branch. The regression pins both directions: an advanced target head alone reuses the verdict, while synchronising the pull request onto a new base still returns `source_changed`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The live-GitHub runs executed on the author's host, which does not satisfy the controlled-environment envelope AGENTS.md asks for on code-bearing changes. This records a Docker-backed Crabbox `local-container` lease at the current head with the provider, runtime, image digest, lease id, artifact hash, and capture time, plus the 271-test focused run and the proof harness executed inside it. The envelope limits are recorded with it rather than omitted: the lease is a local container rather than the organization's AWS capacity, the base image needs jq/zip/unzip/gh installed before the workflow-shell assertions can run at all, Actions hydration is skipped because local emulation rejects pnpm/action-setup, and the live-GitHub runs are not repeated inside the lease because it is kept free of GitHub credentials. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Recording a current-head capture in the repository advances the head past the head the capture names, so the committed envelope always identifies an older commit than the one under review. Re-running and re-committing reproduces the same off-by-one, because the recording commit is itself the change. The document now holds only the method, the commands, and the limits. The capture — provider, image, lease, artifact hash, head, timestamp — belongs in the pull request body, which AGENTS.md names as the place to keep proof current and which can be updated without moving the head. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Maintainer triage note while this waits on proof: the bug is real and worth fixing — scheduled re-reviews of unchanged items burn Codex spend and API quota every pass. Two asks before this can land:
No urgency from our side — the fix direction is right. 🦞 |
|
Superseded by #1067, now merged — thank you for this one. Your diagnosis was exactly right: scheduled deliveries never reached the structural cache, and the re-review churn was burning real model spend. What changed in the landed shape: instead of relocating review preparation, the cache path claims the scheduled delivery's supplied lease inside the existing flow and re-evaluates staleness against the reservation timestamp, which kept the diff at +463/−64 with your test approach preserved. The merged commit carries your Co-authored-by credit, and the maintainer note about preferring the smallest trustworthy seam is thanks to your PR making the tradeoff concrete. 🦞 |
|
'm honored to have been able to help. I learned a lot from seeing how you narrowed the fix down to the smallest trustworthy seam — really elegant. Thank you for the credit, too! 🦞 |
Closes #1052.
What Problem This Solves
Fixes an issue where ClawSweeper re-reviews an unchanged item on every scheduled pass and can publish a different verdict each time, because the structural review cache is unreachable on the lane that runs those passes.
Terminology, because the two are easy to conflate: the exact-event workflow is the
sweep.ymljob that runs every review for a target repository, and a scheduled delivery is one class of payload that job carries — the queue's cadence work, as opposed to a webhook event or a maintainer command.That workflow reserves the durable review lease in its own write-token step, so it must invoke the review command with
--skip-start-comment. The same flag decidedcoordinationEnabled, whichreviewStructuralCacheProbeDecisionconsults before anything else, so scheduled deliveries returnedcoordination_disabledand re-ran full hydration plus Codex. This is a property of the invocation rather than a sampled rate:.github/workflows/sweep.yml:1229passes the flag unconditionally, so no delivery through that job could have had a different value.Because the probe never ran,
preHydrationStructuralRecordstayednulland the seeding branch could not persist a receipt for the next review either. The cache could not bootstrap even once.Clearing that gate exposed two more conditions on the same path. All three had to go before a scheduled pass could reuse anything:
activity_changed— the reservation the workflow posts before invoking the command is itself the item's newest activity, landing after the sync markers the prior review recorded, so ClawSweeper's own write read as reporter activity.target_changed— the decision compared the target repository's default branch head across reviews. That head advances for reasons unrelated to the item, so where it moves faster than the review cadence the key can never match.openclaw/openclawadvanced it 100 times in the 21h11m ending 2026-08-07T00:06Z — about once every 13 minutes — against a daily cadence over 5,536 open items (2,150 pull requests, 3,386 issues), so every scheduled pass there re-ran a full review.Contributors see this as verdict churn on a frozen head. On openclaw/openclaw#118777 the head
ed699913b2acf0ec158e705afa289cc2d4c59358never moved and the body was never edited, yet re-scans walked the rating from🦞 diamondto🦪 silverand revokedproof: sufficienttogether withstatus: 👀 ready for maintainer look. Two of those re-reviews were scheduled deliveries: runs https://github.com/openclaw/clawsweeper/actions/runs/30955548730 and https://github.com/openclaw/clawsweeper/actions/runs/31049170523. The cost side is visible in the queue revision counters carried in clawsweeper run titles; read at 2026-08-07T00:12Z,openclaw/openclaw#84599stood at 389,#40088at 307, and#38283at 293.Why This Change Was Made
coordinationEnabledis now true when a reserved lease is supplied, the structural cache path claims that reserved lease instead of posting a second start comment, the validated reservation covers its own activity, and the target branch head is no longer compared across reviews.Those are one change, not two. Widening the coordination decision alone would send the cache path into
postReviewStartStatusComment, which is exactly the second lease that--skip-start-commentexists to prevent —prepareReviewCommandthrows today if a supplied lease arrives without that flag. Making the cache path claim the reserved lease is what makes the widening safe.Two things change together in
src/clawsweeper-review-command-workflow.ts. The structural-cache probe calls read the preparation's coordination decision, and the cache's lease acquisition claims a supplied lease when there is one. The reservation is now validated before the cache decision rather than after it, and its timestamp is passed to that decision asownedReservationUpdatedAt, because the workflow posts that comment before invoking this command — so on this lane the reservation is always the item's newest activity, andactivityCoveredByReviewwould otherwise read ClawSweeper's own write as reporter activity and returnactivity_changed. Only the reservation this run has already validated as its lease winner may widen that window, and it widens it to its own timestamp and no further: activity after the reservation still forces hydration. The freshness and winner checks are not new — the hydrated claim path already ran them. They move into a helper because the cache path now needs the identical check before hydration; the alternative is a second copy of the same lease-election logic, which is the thing most likely to drift. The extraction moves those statements without changing their order or conditions.The target branch head is dropped from the cross-review comparison rather than made conditional, so no new constant enters the code. The record still carries
targetHeadSha, and a single run still uses it to check thatmainheld still across its own pre- and post-hydration probes; what goes is only the comparison against the previous review. Periodic re-review is bounded by the ceiling the probe already enforces,REVIEW_STRUCTURAL_CACHE_MAX_AGE_DAYS: a recorded verdict is reused for at most that long before a full review runs regardless of whatmaindid. The cost is that obsolescence caused bymain— animplemented_on_mainlanding in files the item never touched — is noticed at that ceiling rather than on the next daily pass.When the reserved lease no longer describes the item, the cache path takes the same action the hydrated path already took for that condition: increment
leaseAcquisitionFailures, record the item inleaseAcquisitionFailureDetails, and let the run fail at the end so the recovery lane requeues it, rather than silently dropping the item from the batch. That branch is intended parity with the existing hydrated behavior and is not covered by a new test; it is called out here so a reviewer checks it by reading, and the shared helper is what makes the two paths comparable at a glance.Which deliveries this affects
reviewStructuralCacheProbeDecisionchecksexplicitDispatchbeforecoordinationEnabled, andAUTOMATIC_REVIEW_SOURCE_ACTIONSinsrc/clawsweeper-review-preparation.tscontains exactlyscheduled_hot_intakeandscheduled_normal_backfillafter #1036.explicit_dispatchafter fix(review): stop scheduled review storms on unchanged issues #1036 and then stopped atcoordination_disabled. They carry the cadence buckets indocs/scheduler.md— activity-driven hourly, recent-item and pull-request daily, older-issue weekly — and they are what this change fixes.@clawsweepercommands,legacy_dispatch, and unknown or missing actions, is still classified explicit by that same set and still short-circuits one gate earlier, unchanged by this PR. That is the intended behavior for a requested review.#118777's most recent re-review is therefore not covered here: it arrived with
source_action: artifact_retention_recovery(run https://github.com/openclaw/clawsweeper/actions/runs/31081165269), which is not in the automatic set. Whether a publication-recovery requeue should re-derive a verdict rather than republish the recorded one is a separate question.Why a pull request's base does not move with the default branch
A reasonable worry about dropping the target-head comparison is that pull requests would still miss, because
sourceRevisionhashessnapshot.pull.baseShaand a base change would invalidate them anyway. That does not happen, becausebaseRefOidis pinned at pull-request synchronisation rather than tracked to the base branch:baseRefOidd2c8fd2e710f9f20f08938502063170e8554c228mainhead at time of writing9aa24e8f2e822290a4c4f785d48031f93c3f9fbbThat pull request's base has not moved in three and a half days, across roughly 450 commits on
main. Four other open pull requests updated within the same hour report four different base oids (65d2222a,f87d8bb7,a6b20789,f87d8bb7); if the field tracked the branch they would all equal the current head.So for a pull request, an advancing default branch changes neither
baseShanor the source revision that hashes it. What still invalidates is the pull request actually being synchronised onto a new base, which is a real change to the item. Both directions are pinned by a regression intest/review-structural-cache.test.ts.Non-goals
REVIEW_STRUCTURAL_CACHE_MAX_AGE_DAYS): a recorded verdict is reused for at most that long before a full review runs regardless of whatmaindid.User Impact
A scheduled delivery can now reach and use the structural cache instead of being turned away before it is consulted. Where the default branch advances between passes — the case that motivated this — no scheduled pass previously reused a verdict at all, so every one of them re-ran a full review. Where such a pass satisfies every existing eligibility check the cache already enforced — a completed keep-open review under the same policy and model and less than 14 days old, an unchanged bounded source revision, an unchanged target head and pull head, and a claimable lease — it reuses the recorded verdict rather than re-running Codex. This change adds no eligibility relaxation; it only stops the lane from failing the coordination precondition by construction.
Runs that create their own start comment behave exactly as before: the non-supplied-lease branch still calls
postReviewStartStatusCommentwith the same arguments. Explicit dispatches, maintainer requests, and@clawsweeper re-reviewstill force fresh work.What the evidence below does and does not establish:
hitwhere it returnedcoordination_disabled, on the shipped modules.unknown, and a subsequent scheduled delivery reuses the recorded verdict withhydrations=0— no GitHub hydration and no Codex call.mainwas also unchanged and with a review already on file, was still hydrated and re-reviewed in full.Evidence
One caveat first:
pnpm run checkas a single aggregate command is not clean in my local sandbox. It also runstest/repair/target-validation.test.ts, which fails 13 tests there because the sandbox cannot create/tmp/node-coverage-*or spawn its contained commands. Those same 13 fail on unmodifiedmainat2eb1787e0d183a84f29e84614b84f228037ba69fin the same sandbox, so they are environmental rather than caused by this change. That suite is untouched here, and this PR's own CI check is where it executes in a clean environment.With that suite excluded, the focused run is clean: 269 tests, 0 failures on Node 24.18.0. Static policy checks, formatting, all three TypeScript builds, and lint pass.
Two tests are added:
test/review-preparation.test.ts— "a reserved review lease keeps coordination enabled under--skip-start-comment", covering the production pairing plus the three cases that must keep their existing answer.test/review-structural-cache.test.ts— "an advanced target head alone does not force hydration" and "a pull request survives target-branch movement but not its own base sync", covering both item kinds plus the age ceiling that still bounds reuse.test/review-structural-cache.test.ts— "the exact-event lane's own invocation reaches the structural receipt", composing the shipped preparation decisions into the real probe using the workflow's own flags.Both are anchored to this change. Restoring the previous expression in
isReviewCoordinationEnabled(return !skipStartComment;), rebuilding, and re-runningnode --test test/review-preparation.test.ts test/review-structural-cache.test.tsfails exactly those two and no existing test: 48 tests, 46 pass, 2 fail.Real Behavior Proof
Claim: a scheduled delivery of an unchanged item reuses its recorded verdict without hydrating GitHub or calling Codex, including when the target branch has advanced since that verdict was recorded.
Level: module-level proof against the built
dist/output using production argument values, plus a production observation that narrows the pre-fix reason by elimination. Not a live end-to-end trace; see Limits.Exercised surface: the built
parseArgs,suppliedReviewStartLeaseFromArgs,isExplicitReviewDispatch,isReviewCoordinationEnabled, andreviewStructuralCacheProbeDecision. Post-fix captures taken at5ba31b23; pre-fix capture taken from a clean checkout of2eb1787e0d183a84f29e84614b84f228037ba69f.Scenario and fixture: the harness parses the flag list out of
.github/workflows/sweep.ymlrather than restating it, and aborts if production stops passing--skip-start-comment,--review-lease-owner, and--review-source-actiontogether. Every argument value comes from one real delivery — openclaw/clawscan#7, reviewed by clawsweeper run https://github.com/openclaw/clawsweeper/actions/runs/31131759207 withsourceAction: scheduled_hot_intakeand the durable lease marker that run published — so the fixture is not assembled from different items. No production module is stubbed or replaced; the one synthetic value is the prior review record standing in for a completed keep-open review. The probe decision is the last thing the harness observes, which is why its final line is labelled as an implication.Command and environment:
pnpm run build && node docs/proof/review-cache-coordination-gate/run-proof.mjs, Node 24.18.0, Linux.Observed result — pre-fix, at
2eb1787e0d183a84f29e84614b84f228037ba69f:Post-fix, same command, same workflow flags:
explicitDispatchis alreadyfalseon both sides, which is #1036 working as intended.Production observation for the pre-fix side: run https://github.com/openclaw/clawsweeper/actions/runs/31131759207 reviewed openclaw/clawscan#7 starting 2026-08-06T23:36:45Z, from clawsweeper head
3f368a3e394d76c31584fce700cee9a62485cb66— after #1036 merged at 2026-08-06T18:01Z. The other reasons the probe could have returned are excluded by public state at that moment:explicit_dispatchsourceAction: scheduled_hot_intake, which #1036 made automaticmissing_review/incomplete_reviewtarget_changedopenclaw/clawscanmainlast moved 2026-08-03T16:01:55Z, three days earlierpull_head_changedbb644fe1646cbd7f74c81947259ec5b042fad776That run logged
--skip-start-commenttaking effect and no cache reuse:A pull request whose head had not moved in three days, on a repository whose
mainhad not moved in three days, with a review record already on file, was hydrated and re-reviewed in full.End-to-end run against a live GitHub item
The captures above stop at the probe decision, so the reserved-lease claim and
the receipt-persistence path were driven through the shipped
reviewcommandagainst a real issue in a repository I own
(https://github.com/masatohoshino/clawsweeper-cache-proof issue 1). Nothing ran
against a production target. Leases came from
pnpm run reserve-review-lease,the same command
sweep.ymluses, so no marker was hand-written. The runner wasthe branch at
5ba31b23, built from a copy of that tree whose only difference isone added
generic_fallbacksentry so my own account is onboarded the wayopenclaw/*andsteipete/*already are; no source file differs and that entryis not in this PR.
The claim branch this PR adds runs. Emitted only by that branch:
Reaching it requires the probe to pass coordination, the structural decision to
hit, and the claim to elect the reserved lease through the same freshness checks
the hydrated path uses. On
mainthe same invocation stops atcoordination_disabledfirst.The receipt is persisted. Two runs differing only in whether a prior
completed review existed:
That reproduces the production symptom — reports published with
review_structural_target_head_sha: unknown— and then clears it.The cache hits, with no hydration and no Codex. A run that stopped at
activity_changedbefore the reservation was recognised now reuses the recordedverdict. Same item, same reserved lease:
The carried report records
review_cache_hit: trueandreview_structural_cache_hit: true.hydrations=0is the point: 8 seconds end toend, against 70-150 seconds for the full reviews that preceded it.
An unrelated commit on the target branch no longer costs a full review. The runs above kept the target repository's
mainstill. Advancing it by one commit that has nothing to do with the item — a comment appended toREADME.md, where the item is aboutsrc/slug.js— was enough to lose the hit before this change:Same item, same reserved-lease flow, same advanced
main, after the change:8 seconds instead of 103, with no Codex call.
Not attributed to this PR. An earlier run in the same sequence skipped the
model through the content stage (
cache-hit content-unchanged skip-model),whose coordination comes from
Boolean(acquiredReviewLease)and is alreadysatisfied on
mainby the pre-existing post-hydration claim. It is mentionedbecause it happened, not as evidence. The durable review comment these runs
needed was published with
apply-decisions --sync-comments-only --skip-dashboard,the documented local apply repro, not by the production publication lane.
Controlled environment run (Crabbox
local-container)The runs above executed on my host. This repeats the focused validation inside a Docker-backed Crabbox lease at the current head, which is the controlled envelope
AGENTS.mdasks for on code-bearing changes.local-container(Docker)defaultubuntu:26.04@sha256:678c6550cc43645e08669028bc177f50be4e7c5b8cca677067b1914d4afc7a03cbx_bfb55b2eb06c(slugcache-gate-proof3, containerc3bc5926759d, typeubuntu_26.04)5ba31b2373e0c2bd132e0d116d9ce1a3dcb69764— the current PR headcbx_bfb55b2eb06c-artifacts.tgz, 9147 bytes, sha256fdf8e568d7bd83e8ddaf8eeaab4de0da070e2a5f355478c6051a88b304ddaa02The artifact tarball only exists on my machine, so the trace it holds is reproduced verbatim below. Nothing is elided; the three files are the whole capture.
env.txt:harness.txt:tests.txt, final block (tests_exit=0):Crabbox syncs the working tree without
.git, so the lease cannot report a commit id of its own. Rather than assert one, the capture hashes the files under test, and those hashes are checkable against this head's blobs by anyone with the branch.All four match. The lease also built
dist/itself —dist/review-structural-cache.jsis stamped2026-08-07 06:22:16 +0000andgrep -c target_changedover it returns0— so the code that ran is this head's, not a synced build.This capture lives in the PR body rather than in a commit on purpose. Recording it in the repository advances the head past the head it names, which is how the previous two revisions of this section ended up identifying an older commit.
AGENTS.mdasks for the proof to be kept current in the PR body, and a body edit does not move the head.docs/proof/review-cache-coordination-gate/README.mdcarries the method, the commands, and the limits; this table is the capture.Artifact contents are
env.txt,harness.txt, andtests.txt. Scanning all three fortoken|secret|password|ghp_|github_pat|api[_-]?key|bearer|authorizationreturns 11 matches, every one a test name (for example "local-review scrubs both GitHub and GitHub Enterprise token aliases"). No credential, endpoint, or private URL is present; the lease never held GitHub credentials.Envelope limits, stated so the run is reproducible rather than flattering: the lease is a local Docker container on my machine rather than the organization's AWS Crabbox capacity, and
.crabbox.yamltargetsprovider: aws— this run overrode it with--provider local-container, the Linux path the provider documentation describes. The base image ships withoutjq,zip,unzip, andgh; installing them is part of the run, because without them 29 workflow-shell assertions fail on missing tooling rather than on behaviour.--no-hydrateis used because the repository's Actions hydration rejectspnpm/[email protected]under local Actions emulation. The live-GitHub end-to-end runs are not repeated inside the lease, which is kept free of GitHub credentials.Artifact:
docs/proof/review-cache-coordination-gate/— the runnable harness plus a README holding both captures and this observation.Limits:
Disclosure: AI was used to investigate the lane, write the fix, and review it.