Skip to content

gate: --live runs the paid live e2e groups with their run flags on; a live run takes them alone, and they run only in one (Decision Log 75) - #67

Merged
SSFSKIM merged 3 commits into
masterfrom
gate-live
Oct 19, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Lands after P3-F's landing, per the architect, so it does not re-gate that merge: it touches the lane files gate.yml, gate-plan.mjs, ci-gate.sh and ci-gate-refusals.sh (Decision Log 57). The architect writes the gate-offload entry when they land it, Decision Log 75. No Decision Log entry is written here. The new comments already cite Decision Log 75.

Why

Pushed through ci-gate.sh, 5 of the 7 paid live e2e groups built and then reported skipped. Each live spec skips itself unless its run flag is '1', and the gate never set those flags:

group flag its spec needs set before this PR
e2e:library-live MAWS_LIBRARY_LIVE no
e2e:document-live MAWS_LIVE_DOCUMENT no
e2e:presentations-live, e2e:design-systems-live, e2e:send-to-live MAWS_LIVE no
e2e:design-live, e2e:dashboard-live MAWS_LIVE yes, by its package script

The change

It follows the --evidence / Evidence: yes plumbing.

  • scripts/ci-gate.sh --live writes a Live: yes trailer and shows it in the push line.
  • gate-plan.mjs reads the trailer, or the new live workflow_dispatch input, the way it reads evidence: on a dispatch the input decides, and a pushed trailer is ignored. It emits a live output. The run's summary says Live: yes (MAWS_LIVE, MAWS_LIBRARY_LIVE, MAWS_LIVE_DOCUMENT at 1). and the plan's stdout says live: yes.
  • gate.yml:
    • adds the live dispatch input;
    • adds a LIVE_E2E list naming the seven groups, beside LINUX_E2E, POOL_E2E and LIBREOFFICE_E2E;
    • adds the plan job's live output;
    • on the e2e job only, sets MAWS_LIVE, MAWS_LIBRARY_LIVE and MAWS_LIVE_DOCUMENT to ${{ needs.plan.outputs.live == 'true' && '1' || '' }}. When the plan does not say live, all three are empty, and every spec reads empty as off (!== '1').
  • No cap logic. Each spec caps its own spend with --max-budget-usd, taken from its MAWS_*_MAX_USD variable or an in-spec default: library-live US$0.30, document-live 1, presentations-live 0.75, design-systems-live 0.75, send-to-live 0.50, dashboard-live 0.75, design-live 1 (its script sets MAWS_LIVE_MAX_USD=1). Seven groups at their defaults come to at most US$5.05.
  • scripts/ci-gate-refusals.sh. When the mini refuses jobs, it prints a relaunch line, and that line now carries --live. Every live group is Mac work, so this is the path a live run is most likely to take. Before, a relaunch made as printed would have skipped five groups and spent on two.
  • scripts/ci-gate-alerts.mjs is unchanged. It reads ci-gate.sh's flags, not trailers. A live group is placed like any other lane group, so on a macOS lane the pre-push check already counts it as a Mac job.
  • Header comments of the three files, and §3.4 of the plan doc (the paragraph listing --evidence), describe the flag.

The guard, both ways: a live run takes the live groups alone, and a live group runs only in a live run

Both rules use the plan's existing refuse() path.

  • A live run takes the live groups alone. The plan refuses a live run unless every gate it asks for is a LIVE_E2E group:
    gate-plan: a live run takes only the live e2e groups (e2e:library-live, …, e2e:dashboard-live), not e2e:default: ask with Gates: naming those alone (ci-gate.sh --live --gates e2e:<group>,…)
    
    When no Gates: trailer is given, the message names "the default set" instead of listing every gate in it.
  • A live group runs only in a live run. The plan refuses a LIVE_E2E group in a run that is not live:
    gate-plan: e2e:design-live run only in a live run, a paid one: ask with Live: yes (ci-gate.sh --live)
    
    Without this, --gates e2e:design-live or e2e:dashboard-live without --live would still spend. Their scripts set MAWS_LIVE=1 inline, which overrides the job's empty value. The other five live groups would build and skip. With the refusal, --live is the one switch. No set run today names a live group, and CLASS1_E2E holds none.

Evidence. I checked which specs read the three flags, using git grep over the whole tree except docs.

  • e2e:default would spend. It is in CLASS1_E2E. It runs the bare playwright test, whose config excludes harness specs and panel specs but no live spec. The pin in e2e-default-specs.test.mjs lists all seven live specs among default's own specs. Under the flags, a class-1 set would run six of them inside default, up to US$4.05 of in-spec caps. The seventh, design-live, would fail its budget preflight there, because MAWS_LIVE_MAX_USD is unset outside its own script. A narrower rule would have to forbid at least e2e:default.
  • No other class-1 group reads the flags today.
    • Of the 33 other class-1 e2e groups, 31 run named spec files, and none of those files reads the flags.
    • e2e:dashboard uses playwright.dashboard.config.ts, whose testMatch is its acceptance list: four dashboard specs, none of them live.
    • e2e:desk-web runs in apps/desk-web, where nothing reads the flags.
    • The other *-live specs in default's set skip on flags of their own, which the gate never sets: MAWS_C7_LIVE, MAWS_C11_LIVE, MAWS_C12_LIVE, MAWS_E8_LIVE, MAWS_P1_LIVE_*, MAWS_PANEL_LIVE, MAWS_DASHBOARD_LIVE_DATA.
    • vitest.config.ts adds the paid live project only under MAWS_LIVE=1, but no e2e job runs vitest, and the unit job never gets the flags.
  • Why not a narrower first rule. A rule that allows other gates beside the live groups is supported by today's tree, but only by convention. MAWS_LIVE is a generic name: the C3 vitest live suite, test/live and five e2e specs all share it, so a new live case in any group's spec would most likely gate on it. The gate would then turn it on without anyone asking. The strict rule loses nothing a live run needs; at most a caller runs class 1a and the live groups as two runs instead of one. So: the strict rule.

On a Linux lane the existing LINUX_E2E refusal still applies, so a live run is Mac work there too.

Tests

node --test on gate-plan, ci-gate-refusals, ci-gate-alerts and ci-gate-preemptions: 37 of 37 pass locally. Four new cases in gate-plan.test.mjs and one in ci-gate-refusals.test.mjs:

  • The live output. A trailer, Live: no, no trailer, and a dispatch where the input is true, false or absent. As with evidence, a dispatch's input overrides a pushed trailer.
  • The first refusal, with its exit status and wording, for four sets: e2e:default beside a live group, a fake group (e2e:library), class 1a, and the default set. A dispatch is refused the same way.
  • The second refusal: a live group with no trailer, with Live: no, or on a dispatch without the input, even when a pushed trailer says yes.
  • Workflow and specs agree. The flags gate.yml's e2e job sets under live must be exactly the three. Each LIVE_E2E group's one spec must skip on one of them. This guards against a new live group being added whose spec skips on a flag the gate does not set, which would bring back the bug above.
  • The relaunch line carries --live, both for refused jobs and for a refused plan job.

Each new case fails when what it checks is broken. With either refusal removed, its case fails. With MAWS_LIVE_DOCUMENT renamed in gate.yml, the agreement case fails. Without the relaunch line's --live, the relaunch case fails. eslint is clean on the three changed .mjs files, shellcheck is clean on ci-gate-refusals.sh, and actionlint reports only an existing warning, in unit-darwin.

Review. One medium review, run on Opus. Its two P2 findings are fixed in the second commit: the relaunch line dropped --live, and design-live and dashboard-live spent without it. Its P3 asked to write or stop citing Decision Log 75. That is dismissed, because the architect assigned the number and writes the entry at landing.

No live run has gone through the gate yet; this PR is the means to do one.

For the architect at landing

  • Decision Log 48 ruled that live e2e runs on the MacBook through the slot, not on the mini. Its reasons were that the mini's login keychain is not reliably unlocked, so a mid-job SecurityAgent dialog can stall the queue, and that a live run spends from the owner's account. This PR only adds the means. Whether the mini runs live is Decision Log 75's call.
  • What a live run needs from the runner. The live specs need the installed engine and ClaudeUsage's relay on the runner. Without either, a spec reports blocked: relay or blocked: engine as a skip, and does not fail.
  • e2e:p1-live is not in LIVE_E2E. It skips on flags of its own (MAWS_P1_LIVE_*), which this PR does not set.

Lane-file rule

  • Paths: .github/workflows/gate.yml, .github/scripts/gate-plan.mjs, .github/scripts/gate-plan.test.mjs, scripts/ci-gate.sh, scripts/ci-gate-refusals.sh, scripts/ci-gate-refusals.test.mjs, and the §3.4 paragraph of docs/doperpowers/plans/2026-10-14-gate-offload.md.
  • Base: fbc3e13 (origin/master).

Gate

Class 1a on the head 3b82d49: 39211299654, attempt 1, success. Static, unit and probes ran on the pool, and the static job's gate-script tests passed 52 of 52. ci-gate: run 39211299654 success.

The first commit alone (f9e49bb) was also green: 39210345074.

No live group has run through the gate. That run spends money, and it is the architect's to ask for.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

@chatgpt-codex-connector

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 ⚠️ Failed 2026-10-19T06:49:37.232883Z 3b82d49 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

SSFSKIM added a commit that referenced this pull request Oct 19, 2026
…the fix waves, the hand-back set on S de71da9, the valid measure rerun, the paid reruns on the mini) and the P3-F tracking row; gate-offload spec: Decision Log 75 (the hand-back set under the quiet flag, the Parsec posture finding and the posture go, the mini live route and #67, the slot script's holder token); ledger: P3-F's landing line
… live run takes those groups alone

Pushed through ci-gate.sh, five of the seven live groups built and reported
skipped: the gate never set MAWS_LIBRARY_LIVE, MAWS_LIVE_DOCUMENT or MAWS_LIVE.
`ci-gate.sh --live` writes a `Live: yes` trailer; gate-plan.mjs reads it, or the
new `live` dispatch input the way `evidence` is read, and emits a `live` output;
gate.yml's e2e job sets the three flags to 1 under it and to '' otherwise. Each
spec caps its own spend, so the gate carries no cap.

The plan refuses a live run unless every gate it asks for is one of gate.yml's
new LIVE_E2E groups. e2e:default's bare `pnpm e2e` collects all seven live specs
(e2e-default-specs.test.mjs's pin), so under the flags a class-1 set would run
six of them inside default, up to US$4.05 of in-spec caps, and fail design-live's
budget preflight. No other class-1 group reads the flags today, but MAWS_LIVE is
the generic name the C3 vitest suite and five e2e specs share, so a narrower rule
would rest on that convention holding.
…ches live

The review of the first commit found two ways a paid run could still go wrong.
e2e:design-live and e2e:dashboard-live set MAWS_LIVE=1 in their own package
scripts, so naming one without --live still spent. The plan now refuses a
LIVE_E2E group in a run that is not live, which makes --live the one switch;
without this, the other five live groups would build and skip.

The relaunch line ci-gate-refusals.sh prints after the mini refuses jobs dropped
--live. Every live group is Mac work, so a relaunch made as printed would have
skipped five groups and spent on two. It now carries --live.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
…w-up that fails it (Decision Log 75's reading rule meanwhile)

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit 9c355b7 into master Oct 19, 2026
SSFSKIM added a commit that referenced this pull request Oct 19, 2026
SSFSKIM added a commit that referenced this pull request Oct 19, 2026
… its merge duplicate removed with it

The test-side fix e3f5ce7 (P3-F SHELL) landed with P3-F at fc8d0cc; the hand-back gate's unit job on the final source was green (p3f-final 39202806940). The lane-side clause, repeated unit runs with no unhandled error, is met by CI-opt's five unit runs on the pool on master 93f5de2 after the landing, each rc=0 with 0 unhandled error or rejection lines, 1545 files and 20862 tests passed, 7 files and 73 tests skipped as standing: 39217125288, 39218244088, 39219614629, 39220939617, 39222281863. Master since then adds #67 (gate files, the spec, the tracker) and docs commits, none loaded by the MainArea suite. The row existed twice after the P3-F landing merge (master's original from 8c74755 and P3-F's revised copy); both lines go.
SSFSKIM added a commit that referenced this pull request Oct 31, 2026
… master 90d7732: hosted-Mac cap and quota repos as repository variables, ci-gate's REPO from origin) and ci-kit side (#185 per-owner App installation, #184 the guest lane's repository, sandbox #67 probe targets), deployed and baked green

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