Archilyzer · Source

archilyzer

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

commit 20e5ed9b048fea137b8f9ccdf97b0b150b82af4c
parent 979fa554fd5ea476ddc0513acf3f43d17521142d
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun, 11 Oct 2026 01:42:07 -0400

plans: articles on the homepage (ratified 2026-10-11; release 26, after release 25)

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

Diffstat:
Aplans/reports-on-homepage.md | 101+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 101 insertions(+), 0 deletions(-)

diff --git a/plans/reports-on-homepage.md b/plans/reports-on-homepage.md @@ -0,0 +1,101 @@ +# Articles on the homepage — the homepage is the reports' export, umtool their editor + +Status: RATIFIED 2026-10-11 — the operator took every recommendation (D1–D5 below as recommended); handed to the +main session to schedule. **Scheduled (operator, 2026-10-11): release 26, after release 25 (local TTS).** A7 (the data +move) runs dry first and takes its own go. + +## Why + +Today a report is published by a site (`site.json` `reports`, `plans/report-sites.md`). That forces every +article into one archive's frame, and an article about someone with no public archive needs a "report-only" +site (`search: false`) just to exist. Moving articles to the project homepage: + +- each export site stands alone — it is an archive, not an archive plus a magazine; +- no report-only sites; +- every article in one place, browsable across archives; +- one model: **umtool edits an article, the homepage exports it** (as the editor edits a corpus and an export + site renders it). + +No report has ever been published (every one of the 28 listed today is on a private site), so nothing moves +under a reader: no redirects, no compatibility routes, no old URLs kept. + +## What stays on a site: site pages + +A site keeps **special pages** — an article that belongs to that archive, like Jeralyzer's co-host watch. Same +document format, same renderer, same moments, but hosted by the site and linked from its nav by title, not +listed in a "Reports" index. `site.json` `reports` becomes `pages` (ordered ids), served at +`/pages/<id>/`; moments stay at `/m/<key>/` and keep linking into the site's own corpus. Nothing else about a +site changes (`citedChannels` stays — a page may cite a channel the site does not publish). + +## The model + +| | Article (homepage) | Site page | +|---|---|---| +| Files | `transcripts/reports/<id>/` — report.json, video.mp4, poster.jpg, stills/, sources/, history-git/, notes.json | `transcripts/sites/<site>/reports/<id>/` (unchanged) | +| Published list | `transcripts/reports/index.json` `published: [ids]` (ordered; an unlisted dir is a draft) | `site.json` `pages` | +| Citable | any channel in the corpus | the site's `channels` + `citedChannels` (unchanged) | +| Audience | report.json `audience: "public" \| "private"`, **default private** | the site's audience | +| Moment "open in the archive" | the listed public site that publishes the channel (`channel-sites.json`, absolute `siteUrl`); none → no link | the site's own corpus (relative) | +| Rendered by | homepage `/articles/`, `/articles/<id>/`, `/articles/<id>/history/`, `/m/<key>/` | export `/pages/<id>/`, `/m/<key>/` | +| Edited/reviewed in | umtool `/articles/<id>` (notes.json beside report.json) | umtool `/sites/<site>/<id>` (unchanged) | + +`index.json` and `audience` are written through one writer (`common/lib/report/registry.ts`, the +`patchSite` equivalent) and `pnpm ops articles-config` — generators outside the repo call that, never write +the file. + +## Two homepage builds + +The homepage is public; most articles are not. So the homepage builds twice from one source: + +- **public** — `archilyzer build homepage` (as today) + every published article with `audience: "public"`. + Deploys to `archilyzer` as today. +- **private** — `archilyzer build homepage --private` → its own out dir, every published article, served + locally (`pnpm --filter homepage start:private`, its own port). Never deployable: the build stamps + `audience: "private"` and `deploy homepage` refuses it, exactly as `deployAudienceProblem` refuses a + private site. + +Audit on the public `homepage/out` (`builtHomepageProblem`): refuse any article or moment whose report is +private, and any private X post media (`postsVisibility`) — the shape of `builtAudienceProblem` + +`citedBuildProblem`. The source mirror is untouched. + +## Slices + +- **A1 — share the renderer.** Move `export/app/components/reports/{ReportIndex,ReportArticle,MomentArticle, + ReportHistory,parts}.tsx` and `export/app/lib/reports.ts`'s reader to `common/components/report/` and + `common/lib/report/`, parameterised by base paths (`/articles/` vs `/pages/`) and the corpus-link resolver. + Export renders exactly what it did. (No dependency.) +- **A2 — the article store.** `transcripts/reports/`, `index.json`, `audience`, the registry writer, the ops + action, schema docs (REPORT.md). `composeReports` split: a resolver over a citable set + an output root, so + the same stage feeds a site (its set) and the homepage (the corpus). (No dependency.) +- **A3 — homepage articles.** `compose homepage` gains the reports stage (into `homepage/public`: articles, + moments, clips, posts, history, exports, feeds with `PROJECT_URL` as the absolute base); routes + `/articles/…` and `/m/…`; nav "Articles"; the home page shows the latest few. `/articles/` renders an + honest empty index on a `build:nodata` tree, so the nav stays unconditional (`homepage/app/lib/nav.ts`). (A1, A2.) +- **A4 — the private build + gates.** `--private`, its out dir and port, the stamp, the deploy refusal, the + public audit, tests for each refusal. (A3.) +- **A5 — sites: reports → pages.** `site.json` `pages`, `/pages/<id>/`, nav links by title, the Reports index + and the search-off home-as-index removed; `search: false` sites retired (validation refuses one with no + pages). (A1.) +- **A6 — umtool + editor.** umtool `/articles` (list, article, evidence, notes) beside `/sites`; the editor's + prepare/export queue gains an Articles tab (the Reports tab keeps site pages). `reports prepare/export/ + check/verify-quotes/attach-video` take `--article <id>` or `<site>` + id. (A2.) +- **A7 — move the data.** A one-off script (dry-run first): every listed report except site pages → + `transcripts/reports/`, history-git and notes.json moved with it, `index.json` written in the old order, + `audience: "private"` on all. The report-only private site is then empty and retired. Generators in + `~/reports/*` switch from `patchSite` to the registry writer (listed in the runbook). (A2, A6.) + +A1, A2, A5 run in parallel; then A3 → A4; A6 → A7. Gates: tsc, unit, e2e export + homepage + umtool, the +private-data grep, a public homepage build whose audit passes with zero articles public. + +## Decisions (operator, ruled 2026-10-11: as recommended) + +- **D1** — Private articles live in a local-only private homepage build (above). Alternative: they stay on + their private sites until made public. *Recommended: the private build — one place for all articles.* +- **D2** — `audience` defaults to private; going public is an explicit `articles-config` per article. + *Recommended.* +- **D3** — Route names: `/articles/` on the homepage, `/pages/<id>/` on a site. *Recommended* ("reports" + stays the internal/code word). +- **D4** — A public article may cite a channel no public site publishes (its clips and posts are hosted by the + homepage, as a cited site's are today). *Recommended yes*, with the post-visibility rule unchanged. +- **D5** — Which current reports are site pages: proposed `jeralyzer-private/cohosts` only; every other + listed report becomes an article.