Commit fe1515b
feat: ship closing payload schema with init and session_start
Agents frequently guess wrong field names for closing-payload.json,
causing validation failures on session_close. Two fixes:
1. gitmem init now creates .gitmem/closing-payload-template.json with
exact field names (survives context compaction)
2. session_start/refresh results include closing_payload_schema so
agents have the schema in-context without reading a file
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 69fb223 commit fe1515b
3 files changed
+63
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
509 | 539 | | |
510 | 540 | | |
511 | 541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
53 | 81 | | |
54 | 82 | | |
55 | 83 | | |
| |||
539 | 567 | | |
540 | 568 | | |
541 | 569 | | |
| 570 | + | |
542 | 571 | | |
543 | 572 | | |
544 | 573 | | |
| |||
1027 | 1056 | | |
1028 | 1057 | | |
1029 | 1058 | | |
| 1059 | + | |
1030 | 1060 | | |
1031 | 1061 | | |
1032 | 1062 | | |
| |||
1195 | 1225 | | |
1196 | 1226 | | |
1197 | 1227 | | |
| 1228 | + | |
1198 | 1229 | | |
1199 | 1230 | | |
1200 | 1231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| |||
0 commit comments