Repository navigation
Compare removal-only edits and notebook cells with the working tree (CF-5) - #328
Merged
Merged
Conversation
Two kinds of patch read as "Not compared": an Edit that only removed text, and any NotebookEdit. Claude Code's Edit needs old_string to be unique unless replace_all is set, so text an edit only removed is not in the file afterwards. It now holds while that text stays gone, and reads as changed once the text is back. In a MultiEdit, a removal whose text another edit puts back is not checked. A NotebookEdit (Claude Code 2.1.302: notebook_path, cell_id, new_source, edit_mode) is checked in the .ipynb's cells. A replaced cell must have that id and source, an inserted cell that source, and a deleted cell's id must be gone. A delete that names no cell, or a file that is not a readable notebook, stays Not compared. Also pins down that a deleted attachment cannot be opened and nothing is revealed, the evidence for CF-8's "Missing artifact" row. Part of #278 (CF-5), tracker #273. Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 19, 2026
[P1][CF-5] Add provenance-aware citations, command evidence, and owned artifact actions to chat
#278
Closed
Coven-Harness: Claude Code / claude-opus-5-5
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage-agent
View coverage of the 3 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. |
BunsDev
added a commit
that referenced
this pull request
Oct 19, 2026
Brings in #328 (CF-5 removal-only and notebook comparison). Coven-Harness: Claude Code / claude-opus-5-5
BunsDev
added a commit
that referenced
this pull request
Oct 19, 2026
Coven-Harness: Claude Code / claude-opus-5-5
BunsDev
added a commit
that referenced
this pull request
Oct 19, 2026
… cycle 15) (#331) * Name what is still open for each fidelity child in status.md (steward cycle 15) "Still open" listed only CF-4, live-provider acceptance and VoiceOver. CF-3, CF-5, CF-6 and CF-7 dropped off as their first slices landed, but #276 to #281 are all still open. Each now names what remains, from its issue and the #273 checkpoints. Coven-Harness: Claude Code / claude-opus-5-5 * Drop CF-5 comparison from Still open now that #328 landed it Coven-Harness: Claude Code / claude-opus-5-5 * Rewrap the Still open line Coven-Harness: Claude Code / claude-opus-5-5
13 tasks
This was referenced Oct 26, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #278 (CF-5), tracker #273. The claim is here. This takes CF-5's last offline items and the evidence for CF-8's "Missing artifact" row.
What changes
Compare with working tree (from #302) read two kinds of patch as "Not compared". Both are now compared, in
main/engine/patch-state.ts.An
Editthat only removed text. Claude Code's Edit needsold_stringto be unique unlessreplace_allis set, so after the edit that text isn't in the file. The verdict:A
MultiEditchecks its added text and its removed text together. A removal whose text another edit in the same MultiEdit puts back proves nothing, so it isn't checked. An edit with no text on either side stays "Not compared".A
NotebookEdit. Claude Code 2.1.302's input isnotebook_path,cell_id?,new_source,cell_type?andedit_mode(replace,insertordelete, defaulting toreplace); the source is the CLI's bundled tool text. The verdicts are checked in the.ipynb's cells:cell_idnames the cell it went after.As before, only verdicts reach the window, and nothing is written or run.
A missing attachment. A new test pins down that opening an attachment whose file was deleted is refused ("no longer on disk") and reveals nothing. Together with the existing tests, it covers CF-8's "Missing artifact" negative variant. Those existing tests cover:
..and non-canonical paths;Tests, red first
test/patch-state.test.ts: two tests that pinned the old "Not compared" behaviour are replaced by four new ones:All four failed against
main(cad3e54), and all 21 tests in the file pass now.test/attachment-commands.test.ts: the deleted-attachment test passed at once. It records behaviour the store already had, as evidence rather than a new feature.Checks on
7e1d27emacOS (Apple Silicon), Node 24.18.1, pnpm 10.34.5. The load average was about 15–22.
pnpm buildpnpm typecheckpnpm --filter @modex/desktop testpnpm --filter @modex/store-desktop testturn-patch-state,conversation-evidence,attachmentsNot run locally: the full
pnpm test:e2e. CI runs it.Still open on #278
resultsare opaque JSON. There's no sample without a live Codex run, and Val has said not to make live runs for now.Coven-Harness: Claude Code / claude-opus-5-5