Phase 15: extend debug diag with compaction source and delivery branch

Log sourceInferred, isIdle, deliveryBranch on session_compact and
mid_turn_deliver after steer for B-003 troubleshooting.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-18 23:01:47 +07:00
parent c98a1ff7be
commit 84535def76
3 changed files with 64 additions and 7 deletions
+10
View File
@@ -22,6 +22,12 @@ describe("buildReinjectDiagSnapshot", () => {
[{ name: "beta" }],
new Set(["gamma"]),
["alpha"],
{
compactionSource: "auto",
sourceInferred: true,
deliveryBranch: "steer",
isIdle: false,
},
),
).toEqual({
tracked: ["alpha"],
@@ -29,6 +35,10 @@ describe("buildReinjectDiagSnapshot", () => {
registered: ["beta"],
planned: ["alpha"],
pending: ["alpha"],
compactionSource: "auto",
sourceInferred: true,
deliveryBranch: "steer",
isIdle: false,
});
});
});