Skip to content

v0.2.0

Latest

Choose a tag to compare

@rittenpoems-beep rittenpoems-beep released this 24 Sep 19:15
· 6 commits to main since this release

[0.2.0] - 2026-09-25

主题:L2 从"就地改写的文档"改为"只增不减的完整快照序列"。

Changed

  • L2 is now an append-only snapshot stream (2026-09-25). The global state card is no longer a document that
    gets rewritten in place: every update appends a complete, self-contained snapshot, and the hook injects only
    the newest one. Context cost is therefore constant no matter how long the history grows, and older
    snapshots are never modified, so any past state can be reconstructed. A task that ends is marked once in the
    snapshot where it ended, instead of being collected into a rolling "recently completed" list.
    This fixes two real failure modes of the previous model: a growing card was truncated head-first, dropping
    the newest content (measured 2026-09-25 on a real card: 4107 characters against the 3500 guard), and items
    rolled off the "recently completed" list were lost permanently.

Added

  • scripts/migrate-status-snapshots.py — converts a legacy five-section state card into the first snapshot
    (idempotent, auto-backup, supports --dry-run).
  • render_status() falls back to the legacy whole-section rendering when no snapshot marker is present, so
    existing cards keep working without migration.

Fixed

  • Truncation dropped the newest state first. The injection guard cut the card from the front
    (seg[:3500]), so once a card exceeded the budget the most recent entries disappeared first — measured on a
    real card on 2026-09-25: 4107 chars against a 3500 budget, with the newest line cut mid-sentence. Only the last
    snapshot is rendered now, so card growth can no longer cost the newest information.
  • Rolled-off completions were lost forever. "Recently completed (≤5)" was a rolling list: a 6th item pushed
    the 1st out of existence. Completion history now lives in the snapshot where the task ended and is never
    deleted — the list can no longer overflow because there is no list.
  • Card drift was invisible. A delivered task could sit under "in progress" indefinitely (observed: the audit
    script shipped 2026-09-24 was still listed as active the next day), and a stale banner could coexist with
    current work. Snapshots are timestamped and append-only, so a stale line is readable as "last stated N days
    ago" instead of silently passing as current.