Archilyzer · Source

archilyzer

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

commit 10b0fdae23671c5fd87be0d982fa2987b0146dd8
parent be396e88b0a0315696bc18feae5cdb14955a3efc
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun, 11 Oct 2026 14:46:03 -0400

plans: release 26 — A1 and A5, as shipped (the shared renderer; a site's reports are its pages)

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

Diffstat:
Meditor/CHANGELOG.md | 2++
Mplans/reports-on-homepage.md | 80+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 82 insertions(+), 0 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## [Unreleased] +- **A site's reports are its pages.** site.json `reports` is now `pages` (a file that still says `reports` reads as `pages` for this release; saving writes `pages`). Each page is served at `/pages/<id>/` and linked from the site's header by its title, after Ask AI; there is no Reports index any more. A site with search off shows its first page as its home, and saving a site with search off and no pages is refused. The site form lists them as **Pages**. Rebuild each site that has pages. +- **Site ids `articles` and `new` are refused.** The editor's `/sites/articles` and `/sites/new` (and umtool's `articles/`) would hide a site of either name, so a save under one is refused, naming why. - **Orpheus 3B narrates too, on the GPU.** `pnpm ops tts` takes `"engine": "orpheus"` — Orpheus 3B with one of its eight stock speakers (`leah` by default, `zac` the male option, then tara, jess, leo, dan, mia, zoe), which performs the expressive tags (`<laugh>`, `<sigh>`, …) instead of dropping them. It runs on a local llama-server the editor starts for a batch of syntheses — after waiting for the machine's heavy slot and for any transcription on the GPU to finish — and stops once nothing more is queued, so its 4–5 GB of video memory is freed; the server's binary, libraries, port and GPU layers are `settings.tts.orpheus` (Ollama's bundled Vulkan build by default). Each chunk of 1–3 sentences gets up to three takes and the first that passes the checks is kept (it ended, no broken frames, a sane pace, no dead air); a chunk where none passes is kept anyway and flagged in the job's log and the sidecar. Its disclosure line ends "Built with Llama", as its licence (Llama 3.2 Community License + Apache-2.0) asks. About 1.8× slower than real time. `archilyzer tts setup --engine orpheus [--from <dir>]` installs it (3.5 GB of model). Needs a restart of the editor. - **Narration reads numbers, money, dates and links the way they are said, with Kokoro too.** "3,812" is "three thousand eight hundred twelve", "$12.50" "twelve dollars and fifty cents", "March 14th" "March fourteenth", "3:45" "three forty-five", "45%" "forty-five percent", a link its spoken host ("example dot com"), "Dr." "Doctor", "@name" "at name"; years are read as before. A synthesis made before this is made again the next time it is asked for. - **Narration in a local synthetic voice, as a job.** `pnpm ops tts` (`POST /api/ops/tts`) speaks a line — `{"text"}`, or `{"file"}` an absolute path to a UTF-8 text file, at most 20,000 characters — with a local text-to-speech engine and one of its stock voices, as a `tts-file` job on its own `tts` queue, one synthesis at a time. The default is Kokoro-82M with the voice `af_heart` (`settings.tts`: `engine`, `voice`, `speed`, `home`, `dir`; SETTINGS.md); `"engine": "espeak-ng"` needs no install. Years are read as they are said ("twenty twenty-four"); the expressive tags `<laugh>` `<chuckle>` `<sigh>` `<cough>` `<sniffle>` `<groan>` `<yawn>` `<gasp>` are dropped for an engine that cannot perform them, and any other `<…>` is refused, named, so a typo is never read aloud. The result — `{wav, seconds, engine, voice, cached, durationMs, waitedMs, sha, sampleRate, speed, disclosure}`, printed by `--wait` — names a 48 kHz mono WAV in the synthesis cache (`<repo>/.tts/cache` by default, never inside the corpus), or the `"out"` path it was copied to, with a sidecar beside it that marks it a synthetic voice; `disclosure` is the line a narrated export carries ("Narration: synthetic voice (Kokoro-82M · af_heart)"). The same words with the same voice and speed again are answered from the cache at once, with no engine run. There is no voice cloning and no reference audio: a voice is a name from the engine's list. Needs a restart of the editor. diff --git a/plans/reports-on-homepage.md b/plans/reports-on-homepage.md @@ -174,3 +174,83 @@ neither app's code changed. site's `/pages/` (A5) need the base decided there. A5's `reports` → `pages`: the move script reads `pages ?? reports` and writes `reports` with patchSite, and a search-off site emptied by the move would be refused by A5's validation — the merge adapts both. REPORT.md still names site.json `reports`. + +### A1, as shipped + +The report renderer shared (branch `r26/renderer`, Lane A): one renderer for a site's pages and the homepage's +articles. + +- **Components** — `export/app/components/reports/{ReportIndex,ReportArticle,MomentArticle,ReportHistory,parts}.tsx` + moved to `common/components/report/`. `ReportArticle` and `ReportHistory` take `base` (the view switch's + page.json, the history's links); `MomentArticle` takes `corpusHref` (the corpus link resolver; default the view's + `corpusUrl`); `ReportIndex` takes `empty` (an empty index's words). `NotOnCitedSite` stays in export + (`export/app/components/NotOnCitedSite.tsx`): it is a site's. +- **Reader** — `common/lib/report/reader-server.ts`: `createReportReader({publicDir, base})` (index, ids, page, + history, the only/first report, moments) and `reportMetadata`, shaped as Next's `Metadata` without importing + `next` (its globals would reach every package importing common/lib). `export/app/lib/reports.ts` binds it to the + site's public dir and base. +- **Base** — `common/lib/report/routes.ts`: `ReportBase` (`/<segments>/`), `SITE_REPORTS_BASE`, `isReportBase`, + `reportBaseDir`. Every path helper in `views.ts` and `revisions.ts` takes the base last, defaulting to a site's. +- **Export renders what it did** — the cited fixture built before and after: the same 17 HTML files; with build ids + and chunk names normalised, 15 byte-identical, the other two differing only in the RSC client-chunk list of the + view switch and the second revision's commit (the fixture's report.pdf carries a creation date, so that commit + differs run to run); the rendered markup (scripts stripped) 17/17 identical; CSS identical. + +| Commit | What | +|---|---| +| 8535c36d | common: the report renderer shared — components and reader in common, parameterised by base | + +**Gates.** tsc clean; common 3782/3782 (+10: reader-server.test.ts 7, renderer.test.ts 3; the architecture test +green); export unit 118/118; export `e2e:report` 46/46 (36.7 s, one run, foreground); the byte comparison above. + +### A5, as shipped + +A site's reports are its pages (branch `r26/renderer`, Lane A), and the base is a host's. + +- **`pages`** — site.json `pages` (ordered report ids) replaces `reports`; SITE.md regenerated. Four live site.json + files carried `reports` (key names counted offline, nothing written), so for release 26 only a file's `reports` + reads as `pages` when it has none, and is never written; a patch naming `reports` is refused + (`site.json "reports" is now "pages"`) so a generator outside the repo fails loudly instead of being dropped. + `citedChannels` unchanged. +- **Served at `/pages/<id>/`** — `SITE_REPORTS_BASE` is `/pages/`: the views under `public/pages/`, the routes + `export/app/pages/[reportId]` and `…/history`, the audits (`pages/` in the cited allowlist, the history-clone + audit, the hub's report-data check), the `_headers` feed types, corpus.json's `reports.index`, llms.txt, the + sitemap. Compose still clears a `public/reports/` an older compose left; a cited build holding one is refused. +- **Nav by title, no index** — the header links each page by its title after Ask AI (a search-off site: its pages + alone, none with one). The Reports index route is gone, and so is the search-off home-as-index: a search-off + site's home is its first page (with none, "No pages"). +- **D5** — `siteSearchProblem`: a save (writeSite, so the form, patchSite and every writer) with search off and no + pages is refused. The editor's site form lists **Pages**. +- **The host's base (the orchestrator's merge asks)** — `ReportHost.base`: `/pages/` for a site, `/articles/` + (`ARTICLES_REPORTS_BASE`) for the homepage, threaded through compose (every path written, index entries, cited-in + hrefs, stills, video, downloads, feeds, the history page, view and clone; `reportPublicEntries(base)` is what it + clears), the exports (the page link, the evidence pack's report files) and the history. `siteReportHost` + publishes `pages`; `reports check` and umtool's sites views read it. +- **A7's order hazard** — the move script writes `pages` and RETIRES a search-off site it empties: the patch that + drops its last page turns search on in the same write, so it saves as an empty site (no channels, no pages) + rather than being refused; the plan line reads `retire <site>: search off and no pages left — saved with search + on, as an empty site; delete it on /sites`. Nothing is deleted by the script. +- **Reserved site ids** — `articles` and `new` are refused by writeSite and the editor's save + (`reservedSiteIdProblem`): the editor's `/sites/articles` and `/sites/new` and umtool's `articles/<id>` would + hide them. No live site has either id. +- **ComposeReportsError** names its host: "the site's pages" or "the articles". + +| Commit | What | +|---|---| +| dad37ab9 | sites: reports become pages — site.json `pages`, served at /pages/<id>/, linked by title | +| 0a7ad151 | merge r26/integration; the host's base, A7's retire, reserved ids, the error's wording | + +**Gates.** tsc clean per commit. common 3806/3806; export unit 117/117 (the forward-to-home and index tests +replaced by first-page and nav-by-title ones); editor unit 264/264; mcp 306/306; homepage unit 23/23; test:scripts +836 (833 pass, 3 skipped). Builds: `pnpm --filter export exec next build` rc 0 (`/pages/[reportId]`, +`/pages/_none` placeholders; the one Turbopack NFT warning, via `common/lib/ttsApps.ts`, predates this branch); +umtool capped build with the corpus linked rc 0 (compiled 8.9 s); the editor's e2e production build (rebuilt by +the sites-crud run). e2e (single runs, foreground): export `e2e:report` 46/46 (32.3 s, fresh build after the +merge); export `header.spec.ts` 33/33 (3.7 min); editor `sites-crud.spec.ts` + `articles.spec.ts` 21/21 (20 + 1; +sites-crud gained "a site with search off and no pages is refused on save" and checks the legacy key saves as +`pages`). + +**Left.** umtool's e2e sites fixture (`umtool/e2e/fixtures/sites-fixture.mjs`) still writes `reports` — read as +`pages` this release; it should write `pages` before the legacy read is removed. The editor's Reports tab still +says "Reports" (the tab keeps site pages, A6). corpus.json's spec is not bumped for the `/pages/` paths: no report +was ever published, and readers follow `reports.index`.