Skip to content

Wait for original-document bootstrap admission - #236

Merged
canvascoding merged 4 commits into
mainfrom
codex/original-bootstrap-read-fence
Nov 8, 2026
Merged

canvascoding merged 4 commits into
mainfrom
codex/original-bootstrap-read-fence

Conversation

@canvascoding

@canvascoding canvascoding commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

A first open of a freshly uploaded original .txt file can overlap an ordinary workspace tree/read fence. The shared bootstrap owner currently uses fail-fast admission, so the session returns COLLABORATION_FILE_LIFECYCLE_BUSY before any native document exists. Use the existing bounded admission wait before the bootstrap callback. Current authority is still checked after admission; active rooms/reservations and uncertain commits keep their existing protections. No mutation or client retry is added.

Strengthen browser input preconditions: resize cases resolve an accessible workspace before opening the panel, require an actually focused page and retained capture through the move; mobile deletion waits until DOM and ProseMirror agree on the selected text. The explicit workspace avoids the temporary loading boundary remounting during the drag. Result assertions, retries and suite selection are unchanged.

Validation completed:

  • Reproduced the 409 through the compiled candidate's real HTTP session endpoint while holding a genuine shared PostgreSQL admission fence; one request, unchanged file bytes and target rows/xmin.
  • Added a regression that fails before the production change. All 31 original-bootstrap PostgreSQL 18 families pass after it, including one state/receipt after admission, bounded persistent contention and current revocation while waiting.
  • All 40 API-key original-import groups pass across principal, owner, actual HTTP and MCP boundaries, including lost commit acknowledgements and current revocation.
  • Production build and local Linux image build succeeded. On the compiled fixed image, one real HTTP session waits through a held read fence and succeeds (200 in 2478 ms), preserving the original bytes and exact native text.
  • All five focused Studio resize runs and five mobile selection/deletion/history cases pass with zero retries, skips or flaky results. The only test-source overlay on the compiled image is the panel workspace precondition; product code is identical.
  • Installed SDK 0.1.2 acceptance passes against actual REST and MCP, key rotation/revocation and two live Yjs editors. All eight installed runtime files match current source; the wheel is from the earlier successful release-commit CI with byte-identical SDK source.
  • The original single Notebook runtime and protected database rows, Yjs states and file bytes are restored and verified. The 31-family bootstrap regression now runs in the portable native CI suite; CI configuration contracts pass all 19 checks.

Still pending before release: final-head CI/review, fresh release-source SDK artifacts, and full final release-image acceptance. The previous unpublished candidate is held; no production rollout has been performed for this change.

@canvascoding
canvascoding marked this pull request as ready for review November 8, 2026 17:55
@canvascoding
canvascoding merged commit 2b004fc into main Nov 8, 2026
15 checks passed
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