Skip to content

maws-app: the filter, the overlay, the secret scan and the hosted Mac's setup (hosted Macs M1) - #151

Merged
SSFSKIM merged 4 commits into
masterfrom
hosted-mac-m1
Oct 26, 2026
Merged

SSFSKIM merged 4 commits into
masterfrom
hosted-mac-m1

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 26, 2026

Copy link
Copy Markdown
Owner

M1 of ci-kit's spec docs/doperpowers/specs/2026-10-26-maws-hosted-mac-design.md (branch maws-hosted-mac-spec). It adds the parts of MAWS that run some Mac e2e groups on GitHub's hosted Macs through the public repository SSFSKIM/maws-app:

  • The filter. .github/scripts/maws-app-tree.sh <git dir> <sha> <empty dir> turns one MAWS commit into the tree maws-app runs CI on, deterministically.
    • It works from git objects only. It removes .github/workflows/, .smns, research/, the evidence directory (the CLI probe file stays), the parity-bench recordings and the mockup shots.
    • It replaces the owner's four addresses with placeholders. It writes the overlay, and prints v2.
    • It refuses a commit that has a symlink on a path it enters, or an overlay file that is not a regular file.
  • The overlay (.github/maws-app/): the public README.md and hosted-mac.yml. hosted-mac.yml is the only workflow on maws-app.
    • It is triggered only by a push to ci/hosted/**, its 6-hourly sweep, or a dispatch. It reads no secret and has no pull_request trigger.
    • Its jobs: plan reads the request's trailers; e2e runs on macos-26 behind a stale guard; result writes the result commit; sweep removes refs older than 6 h.
  • The secret scan. .github/scripts/maws-app-scan.sh <dir> runs a pinned gitleaks 8.30.1, checked by sha256, and fails closed.
    • gitleaks.toml inlines gitleaks' default rules verbatim. Extending the default config would also inherit its file exemptions, which skip pnpm-lock.yaml, vendored code, images and minified files.
    • Its allowlist is 8 entries covering a full scan's 3,413 false positives. Each entry gives its reason and lists exact values, or value shapes.
    • Nothing inside the scanned tree can quiet it: inline gitleaks:allow comments and a .gitleaksignore are ignored.
  • The setup action. A GitHub-hosted Mac step, runner.environment == 'github-hosted' && runner.os == 'macOS', which does not run on self-hosted runners.
    • It sets the display to 1920x1080 at 1x and prints ci-kit desktop: … display 1920x1080@1x. It fails the job on any other display.

Gate lists, gate.yml's jobs, gate-plan.mjs and ci-gate.sh are untouched (M2 wires them).

Validation Evidence

  • Class 1a static gate on the head (gate-offload Decision Log 57): scripts/ci-gate.sh /private/tmp/maws-hosted-m1 --gates static --label hosted-m1 → ci-gate: run 40276188707 success. The gate-script tests: pass 174, fail 0. That includes maws-app-tree.test.mjs (10) and maws-app-scan.test.mjs (8).
  • The tests cover:
    • two exports of one sha are byte-identical;
    • excluded paths are absent, p1-e8/g0-cli-probe.txt is present, and .github/maws-app/ is absent;
    • none of the four addresses remains, binaries included;
    • .github/workflows/ holds exactly hosted-mac.yml, and the README is the overlay's;
    • the workflow has no secrets. reference and no pull_request trigger;
    • committed symlinks, in the overlay and in the tree, are refused, and no outside file changes;
    • the sweep fails on a failed ref listing;
    • a planted random token is found, including in six kinds of file the default config used to skip, and beside the allowlisted saved pages;
    • the current tree scans clean;
    • a failed scanner download exits 1.
  • The public half, by hand on maws-app (Concrete Steps):
    • request: run 40272084391 success, 20 passed, display 1920x1080@1x; its result commit was written;
    • cancel: 40272130960 ended cancelled, and the cancel's run 40272211679 planned nothing;
    • a request whose ref was deleted before its e2e job started: 40272348101 stopped at the stale guard in 6 s, with no setup, build or test;
    • a past deadline: 40272484704, hosted: stale request in 4 s;
    • sweep by dispatch on the final main: 40276522078 success. maws-app holds only main.
  • Acceptance 5: re-running the filter on request 1's MAWS-Source, then git add -A --force and git write-tree, gives the request's tree.
  • maws-app's state (part of acceptance 7):
    • main is 6d44bb9, the v2 tree of 21bad07. It was fast-forwarded after a clean full-tree scan.
    • Ruleset 25857219 on main blocks deletion and non-fast-forward pushes, with no bypass.
    • No runners. The one deploy key is maws-hosted-mac.
    • Fork-PR approval is all_external_contributors.
  • Reviews:
    • a spec-compliance task review, and doperpowers:reviewer-high (the spec's rung for M1);
    • four findings, all fixed in 6f05cb5 and 21bad07:
      • the saved-page allowlist was path-wide;
      • gitleaks' default file exemptions skipped the lockfile;
      • an overlay symlink was dereferenced;
      • a failed sweep listing passed green;
    • both re-reviews clean.

Residue

  • The gitleaks rules have no committed generator. gitleaks.toml's rules section is gitleaks 8.30.1's default config with its file exemptions removed. The file's header names the source and the changes. Moving the gitleaks pin means rebuilding that section from the new release; a small committed generator (or a scan-time fetch of the pinned default config, sha-checked) would make that mechanical.
  • ci-kit's setup installs the LibreOffice cask on every macOS job, libreoffice input or not (the input is Linux-only). On a hosted Mac it is a large share of the setup's brew time. This is a ci-kit change, out of this initiative's scope.

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

.github/scripts/maws-app-tree.sh (filter v2) writes the tree SSFSKIM/maws-app runs CI on from
one MAWS commit: git archive, less .github/workflows/, .smns, research/, the evidence but the
probe cli.test.ts reads, the bench's recordings and the mockups' screenshots; the owner's four
addresses redacted as bytes, everywhere; the overlay (.github/maws-app/, read from the commit
itself) written to README.md and .github/workflows/hosted-mac.yml, then removed.

hosted-mac.yml runs one request's group on macos-26 and answers on ci/result/<suffix>; a
Hosted-Cancel commit cancels through the concurrency group; the stale guard stops a job that
starts past its deadline or whose ref no longer points at it; the schedule sweeps refs older
than 6 hours and warms main's caches, the only ones a ci/hosted/ branch can restore.

The setup action sets a GitHub-hosted Mac's display to 1920x1080 at 1x, prints the desktop's
line (fails on any other display), and caches the pnpm store and Electron's download there as
on hosted Linux.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
.github/scripts/maws-app-scan.sh scans a directory with gitleaks 8.30.1, pinned by version and
by its archive's sha256 and downloaded with curl when PATH lacks that release, under gitleaks'
default rules and .github/maws-app/gitleaks.toml. It fails closed: a finding, or a scanner it
cannot download, verify or run, exits 1 with `maws-app-scan: refused`; a finding is printed as
its file, line and rule, never its value. No .gitleaksignore or inline allow in the scanned
tree is honoured. The allowlist covers the 3,413 findings of a full scan of the filtered tree,
each entry with why its values are not credentials; the filter removes it from the published
tree.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
gitleaks.toml no longer extends gitleaks' default configuration, whose global allowlist exempts
lockfiles, images, fonts, vendored and minified code and any gitleaks.toml: it carries 8.30.1's
default rules itself (less two path-only allowlists for a node_modules README), keeps that
allowlist's values and drops its paths. The browser probe's saved pages allow only their saved
values, not every finding under their directory. A fresh full scan of the filtered tree finds
nothing new. Tests: a credential in each formerly exempt kind of file is found, a new Google key
beside or inside a saved page is found, and a symlink out of the scanned directory is not
followed.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
…iled listing, no warm-up

The filter refuses a commit with a symlink at a directory it enters or at an overlay file,
reads the overlay from git's objects, and replaces the files it writes, so an export never
reads or writes outside its directory; the redaction's walk follows no link. The overlay's sweep
reads the whole ci/ ref listing before it loops and fails when the listing fails, where the
process substitution ended an empty loop green; commit ages come from gh's own jq. The warm job
and the hosted-macOS cache lines in the setup action are gone: a cache saved on a ci/hosted/
branch is that branch's alone, and the hits measured no gain. Tests: a symlinked overlay file
and a symlinked evidence directory are refused with the host files untouched, a link elsewhere
is published as the link, and the sweep step runs against a fake gh.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T05:59:30.578644Z 21bad07 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 added a commit to SSFSKIM/ci-kit that referenced this pull request Oct 26, 2026
Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit a61cab6 into master Oct 26, 2026
SSFSKIM added a commit that referenced this pull request Oct 26, 2026
…PRs #151, #154); two debt rows (browser-comment's dpr cases, presentations' sample index)

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