Skip to content

Keep canonical read paths valid through directory changes - #237

Merged
canvascoding merged 2 commits into
mainfrom
codex/readonly-path-observation
Nov 8, 2026
Merged

canvascoding merged 2 commits into
mainfrom
codex/readonly-path-observation

Conversation

@canvascoding

@canvascoding canvascoding commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

After a successful move, a read can observe a regular canonical backlink file and then miss its exact directory entry during a concurrent file publication. The read-only guard interprets those contradictory filesystem observations as WORKSPACE_PATH_ALIAS. A controlled real-filesystem rename/return reproduces the rejection with the exact original bytes intact. Refresh both filesystem observations once for read-only checks when they disagree. Stable case aliases and every observed symlink remain rejected; mutation checks retain their original single observation and no write is repeated.

The Studio navigation test now waits for the existing visible header workspace ID before opening menus. The trace showed the initial /api/workspaces response completing after the click, allowing the keyed Studio boundary to replace the open menu. All feature, permissions, cold-availability and disabled-Undo assertions remain.

Validation completed:

  • Real filesystem regression is red on the prior product: 8 pass, 3 fail. With the change all 11 pass, including canonical files/parents returning, missing suffixes, late symlinks, case-folding aliases, unchanged mutation checks and bounded continuous changes.
  • Regular collaboration contracts: 71 existing cases plus the 11 new filesystem cases pass. The new cases run in test:all and in portable Native API/SDK CI, with retained evidence.
  • Existing native file readers: 5 native-reader cases, 10 collaborative route cases and read-only metadata policy tests pass. CI fixture configuration: 19 pass. Targeted ESLint passes.
  • The prior official image's full acceptance retained 332 passed/2 failed/1 blocked/102 existing skips in the regular profile and all 50 collaboration cases passed. The prior runtime and protected data were restored. That candidate remains unpublished.

Current-source production and Linux image builds pass. On that compiled image, all six original HTML move cases pass (desktop/iPhone, three runs each), both complete Studio cases pass, and installed SDK 0.1.2 passes actual REST/MCP, key lifecycle and two live Yjs editors. Zero retries, skips or flaky results. The SDK artifact is from the previous successful release-commit CI; all eight installed SDK runtime files match current source byte for byte. The original runtime, protected database rows, file bytes and anchors are restored and verified.

Pending: exact-head CI/review and final release-image acceptance.

@canvascoding
canvascoding marked this pull request as ready for review November 8, 2026 21:27
@canvascoding
canvascoding merged commit 98e24bc 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