Repository navigation
v1.92.74.0 pregate: clear --run-url refuses a failed or unfinished run of the lane's own workflow (GSTA-203 PR 8) - #3841
Merged
Merged
Conversation
… lane with no profile (red, GSTA-203 PR 6) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…lane with no profile (GSTA-203 PR 6) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… null run read (GSTA-203 PR 6) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ofile (red, GSTA-203 PR 6 fix-check) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…step (GSTA-203 PR 6 fix-check) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… and only its run clears it; the ready conflict hint names each lane's own workflow (GSTA-203 PR 6) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… lane's own workflow (red, GSTA-203 PR 8) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…he lane's own workflow (GSTA-203 PR 8) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…STA-203 PR 8 review) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t the link passed (GSTA-203 PR 8 review) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… lists the no-profile refusals (GSTA-203 PR 8 docs audit) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai
Bot
changed the base branch from
gsta203-pr6-clear-workflow-check
to
main
November 2, 2026 07:38
|
😎 This pull request was merged. |
…pr8-clear-red-run Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # docs/pregate.md # lib/pregate/index.ts # test/pregate-clear-runs.test.ts
3 tasks done
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.
Stack: this PR was stacked on #3832, which landed as 35817ba (v1.92.62.0). It now targets
main. 35817ba was merged in once under the rule 19 grant; the PR 6 hunks resolve to main's side, andgit diff origin/main...HEADis the PR 8 product diff alone. The receipt was carried from d7bf9e7 (same product patch-id).What changed
#3832 made
gstack-pregate clear --remote <workflow.yml/job> --run-url <url>check the run's workflow on a requires-remote lane with no run profile. That clear now also refusesPREGATE_RECEIPT_INVALIDwhen the run of the lane's own workflow:run_in_progress. The fix line says to wait for it to finish green.success(failure,cancelled,timed_out, …):run_not_success. The fix line says to rerun the workflow and clear with the green run.A green run now records
https://github.com/<repo>/actions/runs/<id>/attempts/<n>, the attempt it judged, instead of the link you passed. The check reuses the run already read throughdeps.run, which returns the newest attempt. So a/job/<id>or/attempts/<n>link is judged by the whole run. The job itself is not checked:deps.jobsreturns no job id, so matching a job link would cost a new API read. docs/pregate.md says this.docs/pregate.md now names
windows-smoke.yml/windows-smokeas the free tier's Windows smoke lane, next to the narrowerfree-tests.yml/cso-windows-launcherandwindows-setup-e2e.yml/windows-setuplanes. docs/troubleshooting.md now lists the refusals for--run-urlon a lane with no profile.Proof (failing first)
a.ymlall cleareda.yml/job(0 pass 1 fail, receivedcleared https://github.com/fx/fx/actions/runs/300). b9dbccf fixes it. A green run of the right workflow still clears (negative control)./attempts/1link that has to record/attempts/2when attempt 2 is the newest. 9ffcf9d fixes it.Testing
bun run typecheck: clean. Test typecheck ratchet: 814 known diagnostics, none new.PREGATE_REMOTE: tree=48f1b33b4e97fe2b5ac566cf653f97803288fbcf tests=10723 failed=0 spent=0.05. No VMs left afterward.gstack-pregate verify:PREGATE_VERIFY: ok pregate requires-remote cleared is current for tree 48f1b33b4e97.Review
There were two rounds, the R51 cap. In round 1 the specialist and red-team passes found nothing, and the outside voice (gpt-6.1-sol) came back clean. The native adversarial pass reported three findings:
deps.jobscan't do cheaply today.--bundle-lanestill clear without a run check. Both routes predate this PR and are documented.In round 2 (full depth on the gate class, at tree 1ffe65db) the specialist and red-team passes found nothing.
Review notes
gstack-review-planreturnedNEXT: done, so those two lines shipped as below-floor notes with no further review round.Documentation
Status: updated: two factual corrections bring the pregate docs in line with the stricter
gstack-pregate clear --run-url(GSTA-203 PR 8).Scope: base 2b3a798 to head 9ffcf9d on
gsta203-pr8-clear-red-run(4 committed files: lib/pregate/index.ts, docs/pregate.md, changelog.d/gsta203-pr8-clear-red-run.md, test/pregate-clear-runs.test.ts; nothing staged, unstaged or untracked). Docs audited: docs/pregate.md in full, the Pre-gate section of docs/troubleshooting.md, and the --run-url route in docs/ship-policy.md. captain.md, README, CONTRIBUTING, ARCHITECTURE, AGENTS.md, CLAUDE.md, unattended.md and captain templates were grep-checked and make no --run-url claims.Documentation health:
--run-urlsentence no longer says "keeps today's recording, with one check"; thePREGATE_REMOTE_UNCLEAREDroute now says to wait for the job to finish green before clearing.PREGATE_RECEIPT_INVALIDnow lists the no-profile--run-urlrefusals (run_ref_invalid,api_error,workflow_mismatch,run_in_progress,run_not_success); thePREGATE_REMOTE_UNCLEAREDfix says to wait for a green run.Coverage:
clear --run-urlgreen-run check and attempt-URL receipt: reference yes (docs/pregate.md, docs/troubleshooting.md), how-to yes (docs/ship-policy.md by-hand route), tutorial no, explanation yes (docs/pregate.md run evidence).Diagram drift: none; no diagram names the changed code.
Approvals
Source: gstack-approvals record for gsta203-pr8-clear-red-run (display only; not an approval citation).