Repository navigation
fix(ci): isolate default gate refs and run evidence - #313
Merged
Merged
Conversation
Derive bounded default labels from the committed plan and semantic call inputs. Preserve explicit final labels. Give every invocation an owned output directory, rename it with the run id, and always print both paths at exit. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Begin the transcript after admission, keep validation diagnostics on stderr, and print an explicit no-evidence tail for preflight exits. Preserve the original refusal regression test. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Node canonicalizes import.meta.url but keeps argv[1] as spelled, so the main-module guard silently skipped the CLI from a symlinked checkout path and ci-gate pushed no Pool-Demand hint. Compare realpaths, as ci-gate-peer.mjs and ci-gate-alerts.mjs already do. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
ci-gate's pushed ref is read from its output now, so the fixture's sha binding and its reassignments after each commit were never read. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
The note's command substitution ended in a failed (( )) test when the path count was within AFFECTED_BOUND, giving the assignment status 1, which exits a caller running under bash -e. An if leaves both cases at status 0. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Oct 28, 2026
… evidence by run (#313) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 29, 2026
…t, O8/O13 fixes) One textual conflict: - .github/scripts/e2e-default-specs.test.mjs: both sides moved the bare total from 98 to 99, O9 for e2e/lane-a.spec.ts and O3-A for e2e/spine-lock.spec.ts. Merged: 100 (116 e2e/*.spec.ts, 16 excluded by testIgnore/testMatch), both notes kept, O9's first. The relaunch case's 'bare set's N specs' regex, which auto-merged at 99 (identical on both sides), is set to 100 too. Auto-merged and checked: gate.yml (CLASS1_E2E keeps lane-a beside master's lists; HOSTED_MAC_JOBS is master's packaged); ci-gate-pool-demand.test.mjs keeps 2x37 (Lane: hosted) and 2x35 (Runner: macos), no group added by master; routes.json and address-paths.json equal a fresh regeneration; wireFingerprint() 162aa56eba3e5352, master's. src/main/index.ts auto-merged; the lane A composition's guard against O3-A's refused spine follows separately. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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.
What changes for callers
Callers no longer need to invent
--labelvalues to run different gate configurations on the same commit. The default label contains a bounded branch/gate/lane description and a 12-hex SHA-256 configuration fingerprint. It includes the committed tree's resolved plan, normalized gate/default-beside sets, runner and hosted-route variables, peer trailers, live/affected selection and evidence flags. Identical calls retain their ref and may supersede each other.Explicit
--labelkeeps its existing sanitizing and reserved-final routing. Derived labels start withauto-, so even a branch namedh-finalcannot silently select a final-bundle runner.After preflight, every invocation owns a separate local directory, including identical calls. It starts as
ci-pending.<invocation>/and gains the run id when Actions identifies the run. There is no sha-only alias and no shared report-directory deletion. The final two lines printci-gate: transcript in …andci-gate: reports in …/, including green runs, red runs and post-preflight errors. A validation/preflight refusal preserves its error on stderr and instead printsci-gate: transcript: none (stopped before a run)andci-gate: reports: none (stopped before a run); no evidence exists to find. Reports may be empty when green or when artifacts cannot be downloaded; download policy remains failure-only.Path change
refs/heads/ci/<branch-or-gate>-<sha8>refs/heads/ci/auto-<branch-or-gate>-<gates-and-lane>-<config-hash>-<sha8>/tmp/maws-review/gates/ci-<sha8>.log/tmp/maws-review/gates/ci-<sha8>-<run-id>-<invocation>/transcript.log/tmp/maws-review/gates/ci-<sha8>//tmp/maws-review/gates/ci-<sha8>-<run-id>-<invocation>/reports/Example on this PR's commit
af58ad97, branchci-gate-default-label, with current repository defaults (pool,macos,direct) and--peer none. These refs were computed by the new helper; the run IDs/tokens below are illustrative, not additional hosted runs:--gates static --class1a pool:ci/auto-ci-gate-default-label-static-pool-e706a0a139c1-af58ad97→/tmp/maws-review/gates/ci-af58ad97-12345678901-Ab3dEf/transcript.logand siblingreports/.--gates e2e:document --runner macos --lane hosted:ci/auto-ci-gate-default-label-e2e-document-hosted-34793e395384-af58ad97→/tmp/maws-review/gates/ci-af58ad97-12345678902-Gh4jKl/transcript.logand siblingreports/.Helpers that read the old sha-only path directly must use the printed tail instead. The architect's landing notes and O3-B's helpers under
~/.local/share/p5-o3-bneed that migration when this lands; those other-session files were deliberately not edited.Consumers updated
ci-gate.test.mjs,ci-gate-preemptions.test.mjs,ci-gate-pool-demand.test.mjs: discover refs/paths instead of reconstructing sha-only names; cleanup only each invocation's directory.ci-gate-hosted.shcontract and its focused path fixture; hosted artifacts are also checked through the whole launcher.scripts/,.github/anddocs/for the old path/ref shapes.Verification
Green static gate on this commit: typecheck, lint, build and 378/378 gate-script tests passed. Launched from the separate pristine master worktree with
--gates static --class1a pool --peer none --label ci-gate-default-label-static. Its gate-script job collected the new behavior-test file throughscripts/*.test.mjs.TDD: the new regression first failed because static and hosted calls both pushed
ci/feature-work-<sha8>. Focused local checks pass: launcher 22, pool-demand 18, preemptions 10, hosted 2, identity/path cases 7, and the unchanged refusals file 18. The added symlinked-CLI regression also went RED (silent empty demand) then GREEN; the CLI entry guard now matches the siblings' realpath comparison. No full suites ran on the MacBook.The default-label helper reuses the existing committed-tree planner. If that planner is absent/unsupported, it warns and fingerprints the configuration alone rather than blocking a launch, matching the existing advisory planner behavior.
Do not merge: the MAWS architect lands this change.
Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)