Repository navigation
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilityarea: sandboxOpenShell sandbox lifecycle, runtime, config, or recoverygood first issueSmall, clear, safe task for new contributorshelp wantedMaintainers welcome external contribution
Description
Objective
Remove duplicate recovery-manifest and environment fixtures from the older rebuild harness.
Evidence
test/helpers/rebuild-flow-harness.tsduplicatessnapshotEnvfromtest/helpers/rebuild-flow-test-support.ts.- The same harness duplicates
makePreparedRecoveryManifestfromsrc/lib/actions/sandbox/rebuild-flow-test-fixtures.ts. test/helpers/rebuild-flow-test-harness.tsalready consumes the canonical implementations.
Scope
- Make the older harness import the canonical environment and recovery-manifest fixtures.
- Delete only the duplicate implementations.
- Do not alter fixture values, mock behavior, production source, test titles, or assertions.
Relationships
- Parent Epic: Consolidate test support and enforce test-suite boundaries #8345
- Blocked by: None. Work can start independently.
- Blocks: Refactor rebuild test harnesses into a shared core with generic and Deep Agents Code profiles #8359 — it builds the shared harness only after these duplicate fixtures are removed.
Why this is a good first issue
Both canonical owners and duplicate definitions are named, and the newer harness demonstrates the intended reuse.
Acceptance criteria
snapshotEnvhas one shared implementation for both rebuild harnesses.makePreparedRecoveryManifesthas one implementation.- No compatibility wrapper or transitional reimplementation remains.
- Existing consumers pass unchanged.
- The change has a negative net LOC delta.
Validation
npx vitest run --project cli src/lib/actions/sandbox/rebuild-dcode-*.test.ts src/lib/actions/sandbox/rebuild-prepared-recovery.test.ts src/lib/actions/sandbox/rebuild-local-provider-recreate.test.ts src/lib/actions/sandbox/rebuild-hermes-post-restore.test.ts
npm run typecheck:cliMetadata
Metadata
Assignees
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilityarea: sandboxOpenShell sandbox lifecycle, runtime, config, or recoverygood first issueSmall, clear, safe task for new contributorshelp wantedMaintainers welcome external contribution
Activity
test(sandbox): reuse rebuild flow fixtures (NVIDIA#8380)