Problem
packages/runtime-host/src/desktop-e2e-execution-candidate-main.ts is a second copy of the real candidate startup (execution-candidate-main.ts), forked only for Desktop E2E. It re-implements startup with a FakeBackend subclass, hardcoded OAuth stubs, bootstrapRuntimePolicy: false, and idleGraceMs: 500, and is selected by module name at apps/desktop/src/main/runtime-host-boot.ts:501 under MAKA_E2E=1.
It is a fork of a lifecycle authority that must be hand-synced and has already drifted (it lacks the real main's startup-failure classification and policy bootstrap). The real main already accepts composition overrides, so the fork is avoidable.
Desired outcome
One candidate entrypoint with an E2E composition/flag override. Desktop E2E keeps its deterministic backend; production startup is unchanged.
Alternatives or workarounds
Keep the fork and continue hand-syncing two copies of the same startup path.
Acceptance
Related
Problem
packages/runtime-host/src/desktop-e2e-execution-candidate-main.tsis a second copy of the real candidate startup (execution-candidate-main.ts), forked only for Desktop E2E. It re-implements startup with aFakeBackendsubclass, hardcoded OAuth stubs,bootstrapRuntimePolicy: false, andidleGraceMs: 500, and is selected by module name atapps/desktop/src/main/runtime-host-boot.ts:501underMAKA_E2E=1.It is a fork of a lifecycle authority that must be hand-synced and has already drifted (it lacks the real main's startup-failure classification and policy bootstrap). The real main already accepts composition overrides, so the fork is avoidable.
Desired outcome
One candidate entrypoint with an E2E composition/flag override. Desktop E2E keeps its deterministic backend; production startup is unchanged.
Alternatives or workarounds
Keep the fork and continue hand-syncing two copies of the same startup path.
Acceptance
desktop-e2e-execution-candidate-main.tsand its package subpath export are removedruntime-host-boot.tsselects the single candidate main with an E2E override (flag or composition), not a separate moduleFakeBackendbackendRelated