Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 71ced297ac77bdba1985e92b55ce7d5a81e14514
parent 1a4f2091bd7f33440a7f246aa3c17f8192346624
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 13 Oct 2026 10:40:03 -0400

plans: release 27 — S4, as shipped

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mplans/release-27.md | 26++++++++++++++++++++++++++
1 file changed, 26 insertions(+), 0 deletions(-)

diff --git a/plans/release-27.md b/plans/release-27.md @@ -258,6 +258,32 @@ Gates: common tsc clean; common tests 3827/3827 (9 new, `testing/fakes.test.ts`) Found: as committed, the `paragraphs` fixture manifest shows two of the owed bugs (no title `foot`; Coverage a bare chapter card). S7 fixes them and regenerates it. +### S4, as shipped (2026-10-13, lane C) + +The iterations store: `common/lib/report/iterations.ts`, on branch `r27/iterations-chain` from `r27/integration`. + +| Commit | What | +| --- | --- | +| `31ca0a7d` | `iterations.ts` (+ tests); `registry.ts` additions (articles in the making, `writeArticleHoldingLock`, `keepVideo`); `archilyzer reports iterations` (`bin/reports-iterations.ts`, its row, COMMANDS.md); compose/history/check tests; CHANGELOG | + +- **On disk:** `reports/<id>/iterations/<n>/` holds `iteration.json`, `report.json`, `sweep.md`, `turns.jsonl` and `proposals.json`. `iterations/current.json` holds `{report, reportFrom, video}`: which iteration the article is, whose report.json it holds (a `revise-video` iteration has none, so it takes its nearest ancestor's), and which iteration the attached video is. +- **`iteration.json`** is zod (`iterationSchema`, loose, so a key a later slice adds survives an update). It holds `n`, `kind`, `model`, `parent`, `copyOf`, `feedback`/`question`, `scope {channels, from, to}`, `status`, `usage` by model (`usd`, tokens, cache tokens, calls), `ops {applied, refused}`, `minutes`, `checks`, `steps [{task, model, status, cost, minutes, …}]`, `projectDir`, `jobId` and the times. + - Statuses: `queued`, `running`, `done`, `failed`, `cancelled`. `queued` was added for an iteration made before its job starts. + - Parent and copyOf are always earlier iterations. A revision needs a done parent and feedback; a sweep or research run needs its question. +- **Writes:** every one runs under `withArticleStoreLock`, is validated and atomic. `n` is allocated under the lock, and its directory is made non-recursively. + - `writeIterationFile` takes the allowlist `ITERATION_FILES`. A `report.json` must parse as a report of this article; its problems are kept, and `makeCurrent` refuses them. + - `makeCurrent` writes the article through `writeArticleHoldingLock` (writeArticle's body, for a holder of the lock). It drops the iteration's `audience` (the registry's alone) and keeps the article's attached `video` when the report has none. Only a `done` iteration is made current. The next `reports export` commits it as the next Revision (tested). +- **An article in the making** (iterations, no report.json — S8's `/articles/new`) is INVISIBLE to the registry until its first `makeCurrent`. `listArticleDirs` and `readArticleState` leave it out, so compose, the homepage, the editor's Articles tab, umtool `/articles` and `reports check|prepare|export --article` never see it. `listPendingArticles` lists them, for S8. +- **Never published:** a test each — the homepage compose (public and private: no iteration path, none of its words), an article's history (the tree stays `exports.json`, `report.json`, `report.md`) and its exports. + +Gates: tsc clean (all packages); common 3840/3840 (13 new); `docs cli --check` and `docs files --check` clean. + +Exported for S5/S6/S8/S11: +- `createIteration`, `copyIteration`, `updateIteration`, `recordIterationStep`, `addIterationUsage`; +- `writeIterationFile`, `appendIterationTurns`, `readIterationFile`; +- `readIteration`, `readIterations`, `listIterations`, `currentIteration`, `lineage`, `reportSourceOf`; +- `makeCurrent`, `setCurrentVideo`, `projectOf`, `iterationUsd`, `iterationLabel`, `parseIteration`, `listPendingArticles`, `ITERATION_FILES`. + ## Rollout - Fast-forward `main`.