Commit c17e244
codejunkie99
fix(.agent): address post-merge codex review round
Written by Minimax-M2.7 in Claude Code Harness.
- [P1] write_candidates now does a claim-level terminal check
against accepted lessons before the slug-based lifecycle
lookup. Cluster-membership shifts can change `conditions`
(intersection of shared tokens) and therefore the pattern id,
so accepted patterns could re-stage under a new slug and bypass
the "status=accepted = terminal" guard. Checking by claim text
is stable regardless of id drift. Provisional and legacy
lessons remain absent from the terminal set, so they still
allow re-review.
- [P2] graduate.py now detects a partial-completion retry and
completes the candidate move without re-appending to
lessons.jsonl. Previously, if semantic writes succeeded but
mark_graduated crashed, the next retry saw its own prior
lesson in LESSONS.md and heuristic_check rejected it as a
self-duplicate, leaving the candidate stuck. The retry path
now recognizes the lesson_id already exists and skips
duplicate-check + append, just finishing the move.1 parent a369df9 commit c17e244
2 files changed
Lines changed: 39 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
58 | 80 | | |
59 | 81 | | |
60 | 82 | | |
| |||
73 | 95 | | |
74 | 96 | | |
75 | 97 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 98 | + | |
| 99 | + | |
80 | 100 | | |
81 | 101 | | |
82 | | - | |
| 102 | + | |
83 | 103 | | |
84 | 104 | | |
85 | 105 | | |
| |||
0 commit comments