Repository navigation
Conversation
32c0c7f to
f9a670a
Compare
f9a670a to
1bd6512
Compare
690c6ff to
76b611f
Compare
97b4433 to
ac8a864
Compare
380458e to
4b059e5
Compare
4c1a8af to
8193e24
Compare
c4ef356 to
f5f1966
Compare
f5f1966 to
a297b67
Compare
|
Closing because this stage is already implemented on current main (
I reviewed the complete patch and discussion against the current implementation and tests. This is a redundant stage closure, not a claim that every broader STA-4150 activation or live-topology requirement is complete. |
ELI5
A logical browser page can live either on the server or in a client Electron webview. This change prevents Orca from swapping that engine underneath the same page ID: the exact old placement must be retired before any new one can be created.
What Changed
Why
STA-4150 requires explicit runtime-owned placement and forbids silent migration between client and server engines. Without this barrier, a retry or reconnect could overwrite the placement record while the prior Electron WebContents or server page remained alive, creating split authority and unsafe cleanup.
This remains inert scaffolding. It adds no production caller, RPC/event, exchanged field, capability advertisement, Electron/renderer path, or server-placement behavior. The future lifecycle coordinator must fence commands and network, settle exact close/destroy or reclaim, and only then retire the placement.
Linked Issue
STA-4150
Visual Proof
N/A — no rendered UI or production behavior is activated.
Testing
Parent behavior: 3/3 initial causal tests failed because occupied placements were overwritten.
Focused candidate: 26/26 placement, lease, capability-downgrade, and replacement tests passed.
Full
src/main/runtime+src/main/browser: 4,946 passed, 5 existing skips.Adjacent RPC/protocol/mixed-version wire: 26/26 passed.
Full typecheck, native/type-aware audits, changed-code audit, formatting, reliability manifest, max-lines ratchet, and diff checks passed.
Three fresh correctness, security/performance, and Electron-lifecycle reviews found no publication blocker.
I manually validated the deterministic runtime behavior locally
Automated tests added
Review
Please review replacement error precedence, exact-token retirement, capacity retention, generation monotonicity, and the intentionally inactive production surface.
Checklist