← Back to wkappbot-workflow
wkappbot-workflow ★★☆

Rotating Log Append Helper

Shared append helper for runtime logs and JSONL files. If the target file was created on a previous day, rotate it into .old-append/YYYYMMDD/ before appending new content.

user/developer
appendrotatelogjsonlruntimetelemetryold-appendhelper

Steps

  1. WHEN TO RUN: use this when adding or modifyi...
  2. ROTATION RULE: if the target file exists and...
  3. NAME RULE: preserve the original filename in...
  4. APPEND RULE: after rotation, append the new...
  5. FAILURE RULE: rotation is best-effort; if mo...
  6. INTEGRATION RULE: use one canonical helper f...
  7. VERIFY: create a stale file dated yesterday,...