refactor(rebuild): add durable transaction store - #6468
Conversation
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in the Show a code coverage summary of the most covered files.
TypeScript / code-coverage/cliThe overall coverage in the Show a code coverage summary of the most covered files.
Updated |
PR Review Advisor (Nemotron Ultra) — BlockedMerge posture: Do not merge until addressed Action checklist
Findings index
🚨 Required before mergeAddress these before merging unless a maintainer explicitly overrides the advisor with rationale.
|
E2E Advisor RecommendationRequired E2E: None Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
|
E2E Target RecommendationRequired E2E targets: None Full E2E target advisor summaryE2E Target AdvisorBase: Required E2E targets
Optional E2E targets
Relevant changed files
|
PR Review Advisor — Changes requestedMerge posture: Do not merge yet Action checklist
Findings index
Review findings by urgency: 0 required fixes, 3 items to resolve/justify, 0 in-scope improvements
|
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Advisor follow-up at
|
Final advisor disposition at
|
Custom-root boundary rationale at
|
Exact-head advisor disposition at 21467fdGPT reports zero required findings. Its remaining custom-root warning is covered by the explicit internal dependency-injection trust boundary and removal condition in the prior maintainer rationale; the implementation validates the injected root downward while production HOME resolution validates user-controlled ancestors. The module split remains the bounded V1 follow-up already recorded. Nemotron repeated the same overridden EXDEV, macOS F_FULLFSYNC, and immediate module-split requests. Candidate publication is same-directory by construction and injected EXDEV fails closed; strict sudden-power-loss durability on macOS is outside the documented contract; the cohesive V1 store remains intact for this security review. No new correctness finding remains on this head. The PR remains draft. |
|
Closing this draft stack as requested while the broader human-and-agent lifecycle architecture is reconsidered. |
Summary
Adds the persistence foundation for resumable sandbox rebuilds. The V1 store records explicit intent, phase, receipts, failures, and revisions without changing public CLI behavior.
Related Issue
Fixes #6434.
Changes
RebuildTransactionRecordV1withprepared,old_deleted,replacement_created, andcompletedphases.0700/0600permissions.Advisor resolution
REVISION_CONFLICTwithout overwriting the winner.NOT_FOUNDbehavior is covered for every mutation method.EXDEVnow fails with an explicit invariant error instead of risking a non-atomic fallback.Type of Change
Quality Gates
Verification
npm run check:diffnpx tsc -p tsconfig.cli.json --noEmitnpx vitest run --project cli src/lib/state/rebuild-transaction.test.ts src/lib/state/rebuild-transaction-validation.test.ts src/lib/state/rebuild-transaction-concurrency.test.ts— 37 passed; cross-process integration: 1 passedSigned-off-by: Julie Yaunches jyaunches@nvidia.com