Files
box/fleet/tasks/done/174-auditlog-growth.md.muse--runtime--coordinator
T

14 lines
1.2 KiB
Plaintext

# 174-auditlog-growth: Audit log growth
Goal: measure box-ctl.jsonl growth, propose rotation policy
Steps:
1. Read 141 result notes in done/141-loopspeed-test-speedup.md.* (unbounded audit log growth). 2. Report-only: measure current size/line count + growth rate; propose rotation policy (report only, no code changes). Done criteria: result notes list size/growth + proposal, or exact blocking failure.
Done criteria: result notes appended below; file moved to done/.
Result notes (append below before moving to done/):
Completed 2026-10-09T01:26:01Z via box tasks done:
Report-only, no changes. box-ctl.jsonl: 95,863 lines, 9.25MB, span 2026-10-04->10-09 (117h), avg 817 lines/h (~1.9MB/day); recent 1000-1800/h (~2.3-4MB/day), peak 4040/h. Writer: approvals.log_box_ctl (every box-ctl call appends). PROPOSAL: (1) short-term: daily rotation at 00Z keep-7 gzipped, live file stays <~200k lines; 159 fallback must then also read yesterday archive for key records. (2) long-term (preferred): migrate key-request/resolution state out of audit log into small key-requests.json state file; audit log becomes write-only history, scans become O(1). Rotation is coordinator-gated prod change; needs grill before implementing.