Skip to content

fix(ci): isolate default gate refs and run evidence - #313

Merged
SSFSKIM merged 5 commits into
masterfrom
ci-gate-default-label
Oct 28, 2026
Merged

SSFSKIM merged 5 commits into
masterfrom
ci-gate-default-label

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 28, 2026

Copy link
Copy Markdown
Owner

What changes for callers

Callers no longer need to invent --label values 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 --label keeps its existing sanitizing and reserved-final routing. Derived labels start with auto-, so even a branch named h-final cannot 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 print ci-gate: transcript in … and ci-gate: reports in …/, including green runs, red runs and post-preflight errors. A validation/preflight refusal preserves its error on stderr and instead prints ci-gate: transcript: none (stopped before a run) and ci-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

Output Old shape New shape
Default ref refs/heads/ci/<branch-or-gate>-<sha8> refs/heads/ci/auto-<branch-or-gate>-<gates-and-lane>-<config-hash>-<sha8>
Transcript /tmp/maws-review/gates/ci-<sha8>.log /tmp/maws-review/gates/ci-<sha8>-<run-id>-<invocation>/transcript.log
Reports /tmp/maws-review/gates/ci-<sha8>/ /tmp/maws-review/gates/ci-<sha8>-<run-id>-<invocation>/reports/

Example on this PR's commit af58ad97, branch ci-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:

  • Class 1a, --gates static --class1a pool: ci/auto-ci-gate-default-label-static-pool-e706a0a139c1-af58ad97 → /tmp/maws-review/gates/ci-af58ad97-12345678901-Ab3dEf/transcript.log and sibling reports/.
  • Hosted, --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.log and sibling reports/.

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-b need that migration when this lands; those other-session files were deliberately not edited.

Consumers updated

  • Launcher output, watch-error scratch file, report downloads and hosted-report destination.
  • 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.sh contract and its focused path fixture; hosted artifacts are also checked through the whole launcher.
  • Gate-offload documentation, E1/E2 plans and GO-M's generic instructions. Historical evidence paths for completed runs remain unchanged. Audited scripts/, .github/ and docs/ 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 through scripts/*.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)

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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T20:57:56.411112Z af58ad9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit bbd8b7e into master Oct 28, 2026
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
SSFSKIM deleted the ci-gate-default-label branch October 28, 2026 20:55
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant