codeburn/src/act
AgentSeal fea66a80d3 fix(act): report scale, corrupt-journal safety, and under-claim gaps (#606)
Bug-hunt follow-ups on the realized-savings report:

- Scale the displayed estimate to the measured window so the Estimated and
  Realized columns are comparable: mcp/archive use the per-session baseline
  times the post-window session count, read-edit uses deficitThen times the
  same edits denominator as realized (so realized never exceeds it). The
  at-apply estimate stays in --json as estimatedAtApply next to
  estimatedForWindow; the footer states the scaling and that mcp/archive
  realized figures are derived from session counts, not independently
  measured.
- Never crash on a corrupt journal: records without a string status or a
  parseable string `at` are skipped and surfaced ("N malformed records
  skipped"); the optimize header computation is additionally wrapped so any
  error just drops the header.
- Zero post-window sessions now reads "not measurable: no sessions in the
  window yet" instead of measured-zero.
- The optimize header sums only normal-confidence measured rows (under-claim);
  low-confidence rows stay visible in act report only.
- Tests: floor discipline on non-integer mcp and read-edit products (a ceil
  mutation fails), the project-scope keeper subtraction, the archive
  estimate==realized tautology, malformed-journal robustness, and the
  low-confidence header exclusion.
2026-07-03 13:36:36 +02:00
..
apply.ts fix(act): refuse to apply a plan whose target changed since it was built 2026-07-03 11:20:59 +02:00
backup.ts fix(act): support directory moves for archive actions 2026-07-03 10:14:48 +02:00
cli.ts feat(act): realized savings measurement (codeburn act report) (#606) 2026-07-03 13:04:37 +02:00
journal.ts fix(act): harden undo, apply, and locking against review findings 2026-07-03 10:07:22 +02:00
optimize-apply.ts feat(act): realized savings measurement (codeburn act report) (#606) 2026-07-03 13:04:37 +02:00
plans.ts fix(act): refuse to apply a plan whose target changed since it was built 2026-07-03 11:20:59 +02:00
report.ts fix(act): report scale, corrupt-journal safety, and under-claim gaps (#606) 2026-07-03 13:36:36 +02:00
types.ts feat(act): realized savings measurement (codeburn act report) (#606) 2026-07-03 13:04:37 +02:00
undo.ts fix(act): support directory moves for archive actions 2026-07-03 10:14:48 +02:00