Skip to content

[P0.4] Builtin (react/plan) engines ignore the worktree workspace_path — isolation is a silent no-op #715

Description

@frankbria

Severity: high | Category: data-integrity | Phase: P0.4

Problem

BuiltinReactAdapter.run(...workspace_path...) never uses workspace_path; it builds ReactAgent(workspace=self._workspace) (the original repo). So --isolation worktree with the default engine edits the MAIN repo and deletes an untouched worktree. The batch path additionally spawns cf work start with cwd=worktree where .codeframe/ doesn't exist → FileNotFoundError, failing every worktree-isolated batch task.

Evidence

codeframe/core/adapters/builtin.py:68

Acceptance criteria

  • Builtin engines thread workspace_path into ReactAgent/Agent tool + lint execution, OR worktree isolation is hard-rejected for builtin engines with a clear error.
  • Batch worktree path passes the workspace root explicitly instead of relying on cwd.

Dependencies

blocked by #714 ([P0.3])


Filed from the SaaS launch-readiness audit. Atomic: one developer, one session. Work order: strictly P0.1 → P3.12 (no forward dependencies).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0-blocker-betaCritical blocker - must fix before beta testingpriority:hightype:bugSomething is broken and needs fixing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions