Skip to content

P5 O5 entry split: main's composition moves verbatim to src/main/app.ts; src/main/index.ts is the entry - #398

Merged
SSFSKIM merged 1 commit into
masterfrom
p5-o5-entry-split
Oct 31, 2026
Merged

SSFSKIM merged 1 commit into
masterfrom
p5-o5-entry-split

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 31, 2026

Copy link
Copy Markdown
Owner

The wave 2 interface ledger's first shared-file rule (docs/doperpowers/ledgers/2026-10-31-p5-wave2-interfaces.md): O5's split of main's entry lands first and alone, so O4 and O7 edit src/main/app.ts from here on. Mechanical; no behaviour change.

  • src/main/index.ts is the entry (out/main/index.js, package.json's main): the bootstrap every mode shares (the stdio guard, the SIGUSR1 inspector refusal, MAWS_USER_DATA, the mock-keychain and disabled-features switches, registerStoreSchemes() from ./artifacts/protocol), then import('./app'). A rejected import is rethrown as an uncaught exception, as a throw in the old top level was. The render host's --render-host branch arrives with O5 M3.
  • src/main/app.ts is today's index.ts below that bootstrap, verbatim (the body is byte-identical; three imports dropped, the bootstrap's). refuseTestLaunchOnDefaultProfile() and the window-all-closed listener stay the app's.
  • app.ts is an input of main's build of its own (out/main/app.js), not a deferred chunk: electron-vite emits chunks under out/main/chunks/, where the app's __dirname-relative paths (the preloads, the renderer's page, mawsd.js) would break. Checked on the build: every join(__dirname, …) of the app's is in out/main/app.js; the chunks reading __dirname are the same two as on master.
  • The lint rule for main's root (ROOT_THROUGH_ENTRY) follows the root to app.ts (test/services/boundary.test.ts adds the entry's refusal); the four root-composition suites import ./app; src/main/index.test.ts pins the bootstrap's order and that the app root loads after it.

Validation Evidence

  • The whole gate set on head 8156f2d (tree 31000abfa6f2695110d1a1dcfe645780fc62bbf5), class 1a on the pool, the hosted lane, e2e:cross-build against b2c3c78 (wire 3.11 against this tree's 3.12): scripts/ci-gate.sh <worktree> --gates all --lane hosted --class1a pool --runner macos --peer b2c3c785f → ci-gate: run 41195164204 success (attempt 1; static, unit 1–4/4, unit:darwin, probes and 42 e2e groups green, no flaky line). https://github.com/SSFSKIM/MAWS/actions/runs/41195164204
  • The packaged app's entry: --gates packaged on the same head (run noted in a comment when it ends).
  • Locally: pnpm build:main-preload then pnpm vitest run src/main/index.test.ts src/engine-host/bundle-guard.test.ts (19 passed), the four retargeted suites and test/services/boundary.test.ts (33 passed), pnpm typecheck, eslint on the touched files.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

…ts; src/main/index.ts is the entry

The entry runs the bootstrap every mode of the binary shares (the stdio guard, the SIGUSR1 inspector refusal,
MAWS_USER_DATA, the mock-keychain and disabled-features switches, the store's scheme registration), then loads the
app's root by a deferred import. app.ts is today's index.ts below that bootstrap, unchanged: the default-profile
refusal and the window-all-closed listener stay the app's. app.ts is a build input of its own, so out/main/app.js lands
beside index.js and its __dirname-relative paths (the preloads, the renderer's page, mawsd.js) are unchanged. The
lint rule for main's root follows it to app.ts; the root-composition suites import ./app; a dispatcher test pins the
bootstrap's order. The render host's mode dispatch arrives with O5 M3.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@SSFSKIM

SSFSKIM commented Oct 31, 2026

Copy link
Copy Markdown
Owner Author

The packaged app's entry: --gates packaged --runner macos on head 8156f2d → ci-gate: run 41197808345 success (packaged 1/2 and 2/2). https://github.com/SSFSKIM/MAWS/actions/runs/41197808345

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

@SSFSKIM
SSFSKIM merged commit 3239a67 into master Oct 31, 2026
SSFSKIM added a commit that referenced this pull request Oct 31, 2026
…3239a67, Outcomes and retrospective written; P5 Decision Log 169 records wave 2's first landings (#398, #399, #401), their cadence and the owner's answers; the ledger and the tracker gain their rows

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