Skip to content

DRAFT PI-005: Global Settings with zero authored presentation pages - #27

Draft
jamespatrickjackson-lang wants to merge 1 commit into
fix/pi-004-page-id-reservations-20261114from
fix/pi-005-global-zero-pages-20261114
Draft

jamespatrickjackson-lang wants to merge 1 commit into
fix/pi-004-page-id-reservations-20261114from
fix/pi-005-global-zero-pages-20261114

Conversation

@jamespatrickjackson-lang

@jamespatrickjackson-lang jamespatrickjackson-lang commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

PI-005 zero authored pages: Global Settings/environment as project opening state (DRAFT)

Owner-approved invariant: presentation pages are optional viewer/presentation states. Project layers, sources, render controls, editor and world-scene overlays are not owned by page identities. Opening a project selects its existing Global Settings/world environment with zero, one or many authored pages; no auto-saved fallback page is invented.

Stacked independence: This draft PR #27 is a one-commit review of only the PI-005 delta atop the final PI-004 PR #25 head 122fd0f3a6608d741582cf421a2d360a7f25de9b. Exact PI-005 head: 5aad92bddb9030580b26ff9b455c63298951da2f. Retarget to main only after a separately approved PI-004 merge/review. No PR is merged.

Six-file B-only delta

  • src/pages/loadPages.ts: permits pageOrder: []; loader returns an empty pages collection rather than throwing or creating a saved page.
  • src/pages/PageController.tsx: uses existing ENVIRONMENT_SENTINEL through a transient non-persisted environment view adapter compatible with existing scene manager methods. On Global Settings startup, no authored page or first-page pose is applied; it uses the existing mountScene camera and environment-configured lens FOV, project/global layers, effective styles, and enabled environment scene overlays. The no-page reapply path runs on settings changes and final-page deletion instead of returning early. The view is never added to project pageOrder or saved as a page JSON.
  • src/editor/EditorContext.tsx: allows delete-last, final Sub Master removal and archive-last; returns to Global Settings when the last active page is removed; preserves project layers and issued page identity ledger.
  • src/editor/PagePanel.tsx: removes last-page delete and archive UI guards.
  • tests/tools/zero-page-global-environment.test.mjs: five focused new source/helper tests, including pure production transient-view generation and environment-overlays/layer identity invariance.
  • tests/tools/page-id-reservations.test.mjs: updates the historical last-page guard assertion to the newly approved PI-005 behavior.

No Utah FORGE, Woodjam, Shahbazi project, raw/prepared scientific data, provenance, authored page or image asset changes; no scene transition/SceneManager refactoring; no shared W4/W1 infrastructure changes.

RED/GREEN receipts

  • RED test-only 1e6d58af13e8d52b111b5af5a99658104d64899c: Actions #43647452731, 692 PASS / 5 intended PI-005 FAIL, build PASS.
  • GREEN exact head Actions #43648183535 (push) and #43648187473 (PR): 699/699 source tests PASS, 0 fail, build PASS and configured checks SUCCESS.

Important evidence limits

  • Source/pure adapter tests confirm empty manifest path and intended environment operations, not a mounted browser or actual Save/reopen. No development-writer access, live UI browser acceptance, fault injection or real scientific output check was performed. The separately successful W4 isolated static preflight is a non-writer harness, not permission for dev persistence tests.
  • Environment opening camera position/target currently come from the existing mountScene camera (rather than a newly introduced serialized environment camera pose). Environment lens FOV is applied. A new persisted global camera-position schema would require an explicit separate owner decision.
  • PI-004-issued IDs remain permanent on Save via the dependency. Actual filesystem Save/reopen with zero pages, mutation guards, archive integrity and protected source hashes require a separately authorized isolated synthetic development writer environment.
  • PR #22 remains intentionally RED and untouched; any future adaptation of its old allocator signature must preserve negative regression meaning.

Disposition: separate source-level review candidate, not browser persistence acceptance, main merge or deployment.

@jamespatrickjackson-lang
jamespatrickjackson-lang force-pushed the fix/pi-005-global-zero-pages-20261114 branch from 7d30ba4 to e68b6ed Compare November 14, 2026 22:24
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