lytos archive
lyt archive moves completed issues from 5-done/ to archive/<quarter>/. It replaces the implicit archival that used to ride on every lyt board run — archival is now explicit and time-gated, so fresh closures stay visible long enough to be used in retros, PR cross-references, and rollback verification.
lyt archive # archive issues closed ≥ 7 days ago (default)lyt archive --older-than 30d # use a different retention windowlyt archive --all # archive everything in 5-done/ regardless of agelyt archive --dry-run # preview moves without touching the filesystemWhat it does
Section titled “What it does”- Scans
5-done/for issues whose frontmatterupdateddate is older than the retention threshold. - Moves each matching issue to
archive/<quarter>/where the quarter is derived from the issue’s ownupdateddate, not today’s date. An issue closed in March 2026 lands in2026-Q1/even if you archive it in April. - Updates
archive/INDEX.mdwith the new entries. - Regenerates
BOARD.mdso the “archived” counter stays in sync — no second command needed.
| Flag | Description |
|---|---|
--older-than <age> | Retention threshold. Accepts <N>d (e.g. 7d, 0d, 30d). Default: 7d. |
--all | Shortcut for --older-than 0d. Archives every issue in 5-done/ regardless of age. |
--dry-run | Print what would move and which entries are too recent, without touching files. |
--older-than and --all are mutually exclusive; --all wins if both are passed.
Why archival is manual (and delayed)
Section titled “Why archival is manual (and delayed)”Prior to this command, lyt board archived issues on every run. A closed issue would disappear from the live board within seconds, which created three recurring problems:
- Retros and PR references often needed recently closed work for context.
- Rollback verification needed to re-read the issue that introduced a regression.
- Implicit destructive side-effect on a command advertised as “regenerate BOARD.md”.
lyt archive makes archival an explicit, deliberate action with a retention window. Issues stay visible in 5-done/ for a week by default — long enough for sprint ceremonies, short enough that the board does not swell indefinitely.
Common patterns
Section titled “Common patterns”End-of-sprint batch
Section titled “End-of-sprint batch”lyt archive --dry-run # see what will movelyt archive # apply if the preview looks rightReset a demo repo
Section titled “Reset a demo repo”lyt archive --all # push everything completed to the archiveKeep a longer window for audited projects
Section titled “Keep a longer window for audited projects”lyt archive --older-than 30d # monthly cadenceRelationship with lyt board
Section titled “Relationship with lyt board”lyt board no longer moves any files. It regenerates BOARD.md and the archive counts — read-only on the filesystem. Use lyt archive when you actually want to promote completed issues out of the live board.
If you want the pre-0.11 behavior (archive on every board regen), run the two commands sequentially:
lyt board && lyt archive --all