Skip to content

feat(browser): bound page reconciliation execution - #14756

Closed
Jinwoo-H wants to merge 1 commit into
sta-4150-browser-navigation-grant-lease-fencingfrom
sta-4150-browser-page-reconciliation-execution
Closed

Jinwoo-H wants to merge 1 commit into
sta-4150-browser-navigation-grant-lease-fencingfrom
sta-4150-browser-page-reconciliation-execution

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​365 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​365
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​255 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​251

Summary

  • execute immutable client-page reconciliation plans with a global reclaim/close proof barrier before any restore
  • bound action fanout and per-action deadlines, propagate parent cancellation, and never retry ambiguous mutations
  • attempt independent safe work while reporting exact failed action identities
  • register the executor in the existing browser route reliability gate

Causal evidence

The #14754 tip has a deterministic planner but no executor: the new executor oracle is red because the production module does not exist. The candidate makes every reclaim and close settle positively before restore work can start; any rejection, timeout, or abort blocks all restores and requires a fresh authenticated plan.

Validation

  • focused planner/executor: 2 files / 45 tests
  • affected placement, lease, reconnect, command, route, and RPC package: 18 files / 212 tests
  • mixed-version terminal wire: 5 / 5
  • Node, CLI, and web typecheck
  • changed-code quality: zero findings
  • 87 reliability gates, max-lines ratchet, localization, skill manifests, formatting, and diff checks
  • full lint reaches only the pre-existing origin/main type-aware warning at config/scripts/pr-test-loc-summary.test.mjs:88; native audit and all later lint subchecks pass

Compatibility and scope

No exchanged field, opcode, capability, payload, publication, placement default, persisted state, SSH/WSL adapter, workspace shape, UI, dependency, or server/offscreen behavior changes. The executor is callback-driven and has no production caller yet, so old clients and current browser placement remain unchanged.

Timeout cancellation is cooperative. Concrete adapters must also fence every late callback by exact authority and generation before this executor is activated.

Linear: STA-4150

Stacked on #14754. Draft only; do not merge or mark ready.

@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-page-reconciliation-execution branch 2 times, most recently from ee71edd to bfe20d5 Compare August 15, 2026 10:24
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-navigation-grant-lease-fencing branch from 3452293 to 9fe7182 Compare August 15, 2026 11:34
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-page-reconciliation-execution branch from bfe20d5 to 8acc22a Compare August 15, 2026 11:34
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-navigation-grant-lease-fencing branch from 9fe7182 to 993b99b Compare August 15, 2026 12:30
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-page-reconciliation-execution branch from 8acc22a to 450e56e Compare August 15, 2026 12:30
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-navigation-grant-lease-fencing branch from 993b99b to 408d8c4 Compare August 16, 2026 09:09
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-page-reconciliation-execution branch from 450e56e to 1255493 Compare August 16, 2026 09:09
@OrcaWin

OrcaWin commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Closing because this bounded reconciliation executor is already on main (a93e31a9339).

I compared the full four-file patch and discussion. src/main/runtime/browser-host/browser-host-page-reconciliation-executor.ts is identical to the proposed executor apart from its relocated shared-protocol import. It preserves the global reclaim/close proof barrier, bounded concurrency and deadlines, independent safe work, exact failure reporting, parent cancellation, timer/listener cleanup, and handled late rejections. The adjacent test suite retains every introduced case, with the fixture updated for the newer same-runtime reclaim restriction and the timeout test name corrected.

browser-host-page-reconciliation-orchestration.ts now invokes it with authenticated inventory/authority checks, a single attempt per lease, consumed-inventory protection, lease-fence cancellation, and reservation cleanup. The earlier inert execution stage is fully superseded; this does not assert the entire browser acceptance matrix is finished.

@OrcaWin OrcaWin closed this Oct 26, 2026
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.

2 participants