Repository navigation
Record a session's own writes in a CLI journal; report a deleted item apart from a failed read (#3642) - #3662
Conversation
Code Review SummaryReview Type: Initial review (no prior reviews or comments on PR #3662). The design is sound and small. The CLI records Requirements Check
FindingsCritical IssuesNone. Suggested Improvements
Nitpicks
RecommendationCOMMENT: there are no merge blockers. Findings 1, 3 and 5 would be worth fixing in this PR, since each one either contradicts an acceptance criterion or reintroduces the mis-attribution the change is meant to remove. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: COMMENT (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
|
Addressed review:
Also fixed an unused-parameter clippy failure that removing the delete entry exposed. Tests: CLI 308 passed, 🤖 Generated with Claude Code |
…gin stops reading shell lines, and report a deleted item apart from a failed read (closes #3642) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
e045a01 to
df7b243
Compare
Closes #3642.
The CLI now journals node writes (id, database, new version) to
<home>/.nodespace/journals/<session>.jsonlwhenNODESPACE_WRITE_JOURNALnames a session. The Claude Code plugin sets that variable at session start and after a/clear, and reads the journal only when the watched item's version moved: a version the journal holds is the session's own. The shell-line write attribution (mayWrite,isRead, the forced check before a write, the re-read after one, in-flight counters) is deleted.node context --version-only --jsonon a missing node prints{"error":"not_found","node_id":...}and exits non-zero; the plugin refuses tool calls for that, and still says nothing for any other failed read. A hiddenjournal end <session>removes a session's journal and journals idle for an hour.Tests: CLI unit and integration tests,
test:plugin(script, loop, background, nodespace-tool writes through the journal; concurrent foreign write; deleted item; unreadable journal).🤖 Generated with Claude Code