Repository navigation
P5 O5 entry split: main's composition moves verbatim to src/main/app.ts; src/main/index.ts is the entry - #398
Merged
Merged
Conversation
…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)
Owner
Author
|
The packaged app's entry: 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.
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 editsrc/main/app.tsfrom here on. Mechanical; no behaviour change.src/main/index.tsis the entry (out/main/index.js, package.json'smain): 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), thenimport('./app'). A rejected import is rethrown as an uncaught exception, as a throw in the old top level was. The render host's--render-hostbranch arrives with O5 M3.src/main/app.tsis today'sindex.tsbelow that bootstrap, verbatim (the body is byte-identical; three imports dropped, the bootstrap's).refuseTestLaunchOnDefaultProfile()and thewindow-all-closedlistener stay the app's.app.tsis an input of main's build of its own (out/main/app.js), not a deferred chunk: electron-vite emits chunks underout/main/chunks/, where the app's__dirname-relative paths (the preloads, the renderer's page,mawsd.js) would break. Checked on the build: everyjoin(__dirname, …)of the app's is inout/main/app.js; the chunks reading__dirnameare the same two as on master.ROOT_THROUGH_ENTRY) follows the root toapp.ts(test/services/boundary.test.tsadds the entry's refusal); the four root-composition suites import./app;src/main/index.test.tspins the bootstrap's order and that the app root loads after it.Validation Evidence
e2e:cross-buildagainst 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--gates packagedon the same head (run noted in a comment when it ends).pnpm build:main-preloadthenpnpm vitest run src/main/index.test.ts src/engine-host/bundle-guard.test.ts(19 passed), the four retargeted suites andtest/services/boundary.test.ts(33 passed),pnpm typecheck, eslint on the touched files.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)