Skip to content

Keep No workspace copies and first sends in private folders - #714

Merged
sambitcreate merged 5 commits into
mainfrom
feature/workspace-isolation-backlog
Nov 6, 2026
Merged

sambitcreate merged 5 commits into
mainfrom
feature/workspace-isolation-backlog

Conversation

@sambitcreate

@sambitcreate sambitcreate commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

A populated No workspace copy/fork retained its source's private folder and mutable access setting. A first send that allocated a new folder also invalidated its already-selected skill. The host now reserves private workspace assignments across first-send, fork/copy, and supported phone creation until commit and cleanup settle. New populated copies/forks get independent empty folders and Ask first access. First-send skills keep their original selection authority while the turn belongs to the destination. iOS follows the returned workspace while checking fork lineage; Android already did. Existing shared copies and migrated shared homes keep their data.

Stacked on #718 (feature/owner-bound-chat-reads), which owns the reviewed UUID and owner-bound read correction. That dependency was merged normally; its implementation was preserved. Current main c975f6e77760d183e4fa548785ffde49423b5cb5 was also merged normally. Remote remains revision 53, with the complete main test chain retained. No new wire contract or runtime network fetch is introduced here.

The initial #714 head c8295f11ba1856ca9b3ab0f5f182260a8f0ad465 had a separate startup regression: eager workspace-singleton imports changed circular initialization, leaving the chat application service's llmClient undefined. The workspace service is now resolved inside the first-send and fork workspace callbacks. Reservation and cleanup behavior is unchanged by that correction.

Validation:

  • A real Electron startup/register-and-invoke control reproduced chats:create throwing on requiresAppendReconciliation on the original head and again on Keep No workspace copies and first sends in private folders #714 merged with current main (b22394caefda87835558cd52a1fb253ddb8a40f2). The same create/read control and ordinary No workspace/Workspace settings follow-up sends pass on current main. With only the lazy-import correction, all three controls pass with zero retries, before introducing the Keep locally owned chats accessible when a UUID trips the child privacy filter #718 dependency.
  • 196 focused service, first-message, fork, workspace, Remote, transcript synchronization, draft, and privacy tests pass after integration. Root TypeScript, E2E TypeScript, scoped ESLint, and React Doctor pass.
  • 48 distinct Electron E2Es pass in Cua Space with zero retries, covering queues, Steer, interrupted questions/replies, ordinary second sends, startup IPC, private fork/copy navigation and file/access isolation, and the selected-skill first turn. This includes 32 of the original job's 33 failing cases. The new selected-skill assertion initially inspected the automatic title request; after correcting it to inspect the turn requests, its focused run passes.
  • iOS: both focused fork XCTest methods pass on iOS 26.5, including the returned-private-workspace composer handoff. Android: both focused fork tests pass, covering private-workspace navigation/cache and attachment prefill.
  • Independent read-only security investigation and candidate review completed for the original isolation implementation; shared reservation exclusion covers the confirmed concurrent-empty-home race. The startup follow-up only changes when the existing workspace dependency is resolved.

The original Linux x64 job reported 33 distinct E2E failures before its one-hour budget expired. This was a product regression, not an infrastructure-only interruption. No manual hosted rerun was requested here, and test timeout, retry, and fail-on-flaky policies were not weakened. The coordinator owns hosted CI and review polling. Keep this PR and its dependency open.

Local environment gap: follow-through-lifecycle.spec.ts:64 (replaced-worktree/drain case) cannot get past git:createWorktree in the gVisor Space. Its statfs reports availableBytes=9223372034644681000 (about 8 EiB), which fails the unchanged capacity guard's safe-integer check. The exact same case fails with the same WorktreeCapacityUnavailableError on unchanged main c975f6e77760d183e4fa548785ffde49423b5cb5. This is not counted as a passing test. No capacity bypass or test-policy change was introduced.

Limits: full Electron/native suites and physical-device acceptance have not run. Cua Space coverage is Linux arm64; hosted Linux x64/macOS exact-head checks, including the capacity-blocked case, remain outstanding. Older iOS clients with the previous workspace-equality check need the companion update to open new No workspace forks. PR #716 remains untouched at f6710cb9bb93eced7a198b47805a665efb6f8a79.

CI flakes on 602164f74

Run 42186086604, attempt 1, had two failures. The whole run was rerun once, as the repo rules allow.

  • iOS: AidenChatTests.testCatalogRevocationRedactsPublishedTranscriptBeforePurgeCompletes failed with "Expected caller to reach held chat write" (job 127788780111). This PR's iOS app change is only the fork response check, and it does not edit this test.
  • Electron E2E (3/4): tests/e2e/bots-persistence.spec.ts:10 timed out waiting for the Bot's self-intro, passed on retry, and failed the job under --fail-on-flaky-tests (job 127827299073). The same spec also failed on Clean up Cua Spaces after e2e runs #780 in run 42173069005, on a commit without this PR's changes.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes Reviewed the private-folder assignment, first-send skill handoff, copy/fork lifecycle, and native-client integration across all changed files; 226 focused tests passed. Native mobile suites and full Electron E2E were not run in this review.

  • Shared reservations: Main-process assignment excludes concurrent private-folder claims and retains uncertain commit targets for reconciliation.
  • First sends: Private-folder allocation now happens after receipt replay checks, preserving the selected skill's source authority while binding the saved chat and prepared turn to the destination.
  • Copies and forks: No workspace copies receive separate empty folders and independent access; named-workspace sharing and existing persisted data remain unchanged.
  • Client handoff: Desktop refreshes workspace metadata before opening copies, iOS validates fork lineage and follows the returned workspace, and Android coverage verifies distinct-workspace caching.
  • Documentation and tests: Product and API guidance describe the behavior, with focused coverage for isolation, reservation exclusion, cleanup, replay, skills, and mobile composer handoffs.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@sambitcreate
sambitcreate changed the base branch from main to feature/owner-bound-chat-reads November 3, 2026 01:21

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes Reviewed the delta since c8295f1, focusing on the startup initialization fix, dependency integration, and added Electron behavior coverage.

  • Deferred workspace initialization: Replaced eager workspace-singleton imports with callback-local dynamic imports in first-send and fork wiring, preserving assignment and cleanup behavior; production bundle inspection confirmed deferred evaluation.
  • Expanded Electron coverage: Added startup create/read IPC checks, private copy/fork file and access isolation with follow-up sends, and selected-skill first-turn coverage after private-folder allocation.
  • Integrated dependencies: Merged current main and the owner-bound chat-read dependency, and recorded startup reproduction and validation limits in project memory.

Validation: 178 focused tests passed, along with application/E2E type checks, scoped ESLint, and the standalone production Electron bundle build. Electron E2E was not run here: the full build failed because pkg-config could not find gio-unix-2.0 and libsecret-1; Linux prerequisite configuration was also blocked by sudo: The "no new privileges" flag is set, which prevents sudo from running as root. Native suites were not rerun in this review.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

Base automatically changed from feature/owner-bound-chat-reads to main November 3, 2026 15:51
Keep main's workspace lookup for chat analytics with the main-owned private folder assignment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes Reviewed the d84cbc2..602164f merge delta, focusing on the interaction between private-folder first sends and the workspace-aware analytics now on main.

  • Integrated current main: Merged origin/main while retaining callback-local workspace-service loading, private-folder reservation, source-bound skill validation, and destination-bound first-turn execution.
  • Preserved creation analytics: Replaced the old boolean workspace check with the real workspace record, so durable first sends report chat_created once with the established folder, scratch, worktree, or none classification without changing replay or cleanup behavior.
  • Validated affected paths: 153 focused first-send, workspace, fork, analytics, and Remote tests passed, along with the root TypeScript check. The broader worktree suite passed 14/15; its interrupted-worktree rollback case failed twice in code identical to current main, before the PR-modified committer runs, so it is not a PR-scoped regression.

Pullfrog  | ⚠️ this action is pinned to a commit SHA, which freezes the cleanup step — switch to @v0 or keep the SHA fresh with Dependabot | View workflow run | Using GPT Sol | 𝕏

@sambitcreate
sambitcreate merged commit 123654c into main Nov 6, 2026
54 of 57 checks passed
@sambitcreate
sambitcreate deleted the feature/workspace-isolation-backlog branch November 6, 2026 18:32
sambitcreate added a commit that referenced this pull request Nov 6, 2026
Brings in #714, #781 and #782. Keeps the Aiden hooks row in the plans
index. Hook scopes are unaffected by #714: No workspace chats have no
workspace scope, whichever private folder they land in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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