Repository navigation
Commit 9ccd43c
committed
Refuse an evicted-read replay of a later passage that may have become a twin
Review of the previous commit found that, without the Planner's read, a replay of a
multi-passage card was checked against where the card stands for its first passage
only. A later passage was judged by its anchor, which can have been recovered by
digest onto an identical copy of a rewritten paragraph, so the replay was reported as
captured while the same input with the read retained was refused.
Without the read, a replay is now accepted only for a card standing beside the one
passage it was opened on. A card with several passages is refused, with the cause
that the server no longer has that read, until the Planner reads the document again;
a retry at a fresh revision is judged normally and stays idempotent. The decisions
guide states this.
Assistant-model: Claude Sonnet 5.5
Assistant-workflow: goal (run 29d6269b-6026-4c1f-8a50-399c757f21c0)
Assistant-duration: unmeasured converged, estimated unmeasured
Assistant-verification: red before fix passed: with the one-line change reverted, the new capture-decisions test (a card on two passages, the second rewritten beside an identical copy, the read evicted by nine later outlines, then a replay) failed and all 35 pass with it
Assistant-verification: bun test unit passed: GIT_CONFIG_GLOBAL=/dev/null bun test on this head (6813 pass, 0 fail, 22 skipped for TEST_DATABASE_URL)
Assistant-verification: bun run types passed: whole workspace and e2e, on this head
Assistant-verification: bun run ci passed: dprint, oxlint (72 existing warnings, none new), tokens and design checks, on this head
Assistant-verification: bun run e2e passed: 43 tests across harness-decisions-deck, planner-decisions, run-card, planner-attachment, open-ended-decisions, decision-prose and inline-decision-deck on this head
Assistant-verification: bun run test:postgres unavailable: not run, storage is unchanged
Co-authored-by: Alex Lavaee <lavaman131@github.com>1 parent fe6bef9 commit 9ccd43c
3 files changed
Lines changed: 33 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
0 commit comments