Repository navigation
fix(test): preserve memory promotion failure coverage - #119529
vincentkoc wants to merge 1 commit into
Conversation
Punchcard-Session: amber-workshop-river-yr
|
Codex review: found issues before merge. Reviewed August 27, 2026, 1:18 AM ET / 05:18 UTC. ClawSweeper reviewWhat this changesThis PR replaces the Memory Core promotion test’s filesystem-write spy with a wrapper that throws from the atomic replacement pre-rename hook. Merge readinessKeep open for explicit maintainer handling: this member-authored, Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherMemory Core promotes recalled notes into a user’s flowchart LR
A[Promotion candidate] --> B[Promotion flow]
B --> C[Atomic temporary-file write]
C --> D[Rename into MEMORY.md]
C --> E[Write failure]
E --> F[Existing memory retained]
E --> G[Candidate remains retryable]
Decision needed
Why: The PR is member-authored and carries the protected Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +21. Total +21 across 1 file. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the current-main direct temporary-handle write-failure coverage and manually close this branch as superseded, or rebase it to that same boundary if its independent history is needed. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: the branch throws from pre-rename after staging, while current main injects on the captured promotion temporary-file handle before the atomic rename. Is this the best way to solve the issue? No—the direct temporary-file handle injection on current main is the better boundary because it proves the write operation, whereas the proposed hook only proves later cleanup behavior. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 036e635c71cb. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
Closing as superseded by #119633 ( |
What Problem This Solves
Resolves a Beta 8 prerelease validation failure where the memory-core extension shard repeatedly failed its EFBIG promotion-write test after the atomic writer moved behind the SDK security runtime.
Why This Change Was Made
The test now injects the write failure through
replaceFileAtomic's stable pre-rename hook instead of spying onfs.writeFile, which no longer observes the descriptor-backed write path. The full promotion flow remains covered: the originalMEMORY.mdstays intact, the candidate remains eligible, and the promotion temp file is cleaned up.User Impact
No runtime behavior changes. Release validation once again proves that a failed atomic memory promotion cannot replace the user's existing memory file.
Evidence
30978787306, shardchecks-node-extensions-shard-7.13979b6f83175c99be2ea622fe7c92b88802440730983224224:pnpm check:changed: passedgit diff --check: passed.AI-assisted: yes. The maintainer reviewed the diff, reproduced the original failure, and verified the exact-head proof above.