Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
Add the remaining agent home folders (.factory, .grok, .pi, .omp, .hermes, .commandcode) to the real-home write guard and clear their inherited home/config overrides, including Droid's FACTORY_HOME_OVERRIDE, before tests pick their own homes. No runtime, wire, storage, desktop, or mobile behavior changes.
8c3306e to
fa1715f
Compare
ELI5
Tests must never write into the agent folders in your real home directory. This adds the remaining agent folders to the guard that stops that.
What Changed
Standalone. Rebased onto main at 3d3d28c; it has no dependencies and can merge on its own. Commit
fa1715fc87..factory,.grok,.pi,.omp,.hermesand.commandcodeto the real-home write guard inconfig/scripts/test-runtime/environment/vitest-real-agent-home-write-guard.ts.FACTORY_HOME_OVERRIDE) before tests choose their own homes.Why
Later PRs in this stack test Droid, which keeps its state under
~/.factory. Without the guard, a test that resolves a home from an inherited variable could write into the developer's real folders.Linked Issue
Fixes #47824
Visual Proof
N/A: test configuration only.
Testing
Local macOS only.
ORCA_CODE_QUALITY_BASE=stablyai/main pnpm check:changedpassed on this commit after the rebase (format, oxlint, typecheck, tests importing the change, selected ratchets).pnpm test --maxWorkers=6) on this branch: 1308 test files passed, 3 failed, 15 skipped. The failing files also fail on main at 3d3d28c on this machine:agent-cli-update-timeout(timing),bot-upcoming-copy(locale),worktree-removal-real-git(temp-dir cleanup).golden-fresh-profile-terminalfailed the same way on main. Not rerun after the rebase.Not run: Linux, Windows, or SSH remote hosts.
Changed test files:
Performance
None, because this only runs in test setup.
Risk
Level: Low
Only test runs are affected: a test that still points at one of these real folders now fails instead of writing there. Back out with a plain revert.
AI Disclosure
Review
Self-reviewed this PR's single commit for correctness, security, and performance. Merge order:
Agent skill upstream boundary
Notes
Considered security, macOS/Linux/Windows paths, SSH remote hosts, mobile compatibility, folder workspaces, and performance. Execution coverage is limited to the checks listed under Testing.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Merge message