Archilyzer · Source

archilyzer

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

commit 2d36b8163997c905140dc7a19ffff2ab72e9714e
parent 21f50e4cb60a76cc21f7dfdb5133cfe03d8066df
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun, 11 Oct 2026 15:00:42 -0400

plans: release 26 — A3 and A4, as shipped (the homepage's articles; the private build and the audit)

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

Diffstat:
Meditor/CHANGELOG.md | 1+
Mhomepage/CHANGELOG.md | 2++
Mplans/reports-on-homepage.md | 56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -157,6 +157,7 @@ - **`archilyzer reports … --article <id>`.** `reports prepare`, `export`, `check`, `verify-quotes` and `attach-video` take `--article <id>` in place of a site (or a report.json): prepare readies every published article plus that one into `.export-index/articles/`, export writes that article's files (a draft too), check says what the homepage's compose would, and attach-video writes `video` through the registry. - **umtool's /articles.** The nav's **articles** now opens `/articles`: the homepage's articles with their audience, notes, video project and source; each article's page, evidence walk and notes (`notes.json` beside its report.json; `umtool notes articles/<id>`). A site's own pages are a link away on /sites, as before. Needs a restart of umtool. - **`archilyzer reports move-to-articles`** (one-off): moves every report a site lists, but the pages named by `--keep <site>/<id>`, to the article store — private, published in the sites' order, its history and notes with it — printing the plan and changing nothing unless `--apply`. +- **`archilyzer build homepage` publishes the public articles; `--private` builds them all, locally.** `compose homepage` now composes the articles (under `/articles/`, the public ones; `--private` every published one) and stamps the build's audience; the public build is audited after `next build` and fails on a private article, a moment one cites, or an X post while X posts are private — as **Deploy homepage** refuses such a build and a private one. `build homepage --private` writes `homepage/out-private` (`pnpm --filter homepage start:private`), never deployed. ## [0.11.0] - 2026-09-30 - **Transcripts that arrived after a video was first seen are counted.** The stats behind the homepage, the hub and every site's charts were cached per video and refreshed only when the video's metadata changed, so a transcript that came later — a Whisper run days after the download, or a video downloaded after the last index build — never reached them, and a video with YouTube captions alone had no transcription date. Counts and charts were low; the homepage could show a site with 0 transcripts, 0 channels and 0 hours while it served its videos. A stat is now also redone whenever the index re-reads the video, every transcript has a date, and a captioned video is dated by when its captions arrived rather than by a later Normalize run, so its place on "Transcribed over time" can move. **After updating, rebuild and restart the editor before anything else:** until then, **Build stats dataset** runs the old code and would undo the new stats, while a site, hub or homepage build already runs the new code — and the first stats build of any kind re-reads every video once (about 10–30 minutes on a large archive; it can be stopped and picks up where it stopped). Then build the index, the stats, the homepage, the hub, and the sites. diff --git a/homepage/CHANGELOG.md b/homepage/CHANGELOG.md @@ -55,6 +55,8 @@ chart palette. No two sites share a colour. The `/stats` By-site leaderboard keeps each site's colour instead of colouring by rank. The e2e reads a copy of the summary with fixture accents (`HOMEPAGE_SUMMARY_FILE`, `e2e/fixture-accents.ts`). +- **Articles.** The homepage publishes the project's articles — the reports in `transcripts/reports/` (see REPORT.md) — at `/articles/` (each at `/articles/<id>/`, its revision history at `/articles/<id>/history/`, each cited moment at `/m/<key>/`), with **Articles** in the header and footer and the newest three under **Latest Articles** on the front page. `archilyzer build homepage` carries only the published articles marked `audience: "public"`; with none, `/articles/` says so. A moment's record opens in the listed public archive that publishes its channel, or nowhere. Rebuild the homepage. +- **A private homepage build, never deployed.** `archilyzer build homepage --private` builds every published article into `homepage/out-private`, served with `pnpm --filter homepage start:private` (port 3032); `homepage/out` is untouched. A homepage build stamped private, or a public one carrying an article that is not public, a moment such an article cites, or an X post while X posts are private, is refused by the build, the deploy and the status line. ## 2026-08-12 diff --git a/plans/reports-on-homepage.md b/plans/reports-on-homepage.md @@ -254,3 +254,59 @@ sites-crud gained "a site with search off and no pages is refused on save" and c `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`. + +### A3, as shipped + +The homepage publishes the articles (branch `r26/store`, Lane B; merged with A5 at 7f8a0809). + +| Commit | What | +|---|---| +| ed9716f6 | homepage: compose's reports stage under `/articles/`, the routes, the nav, the latest few | +| 7f8a0809 | merge r26/integration (A5): A5's host base taken over A3's shim; umtool's sites fixture → `pages` | + +- **Compose.** `compose homepage` runs `composeHostReports` over `articlesReportHost(paths, {audience, siteUrl: + PROJECT_URL, channelSiteUrl})` into homepage/public: `articles/`, `m/`, `media/` (clips, captures), history, + exports, feeds. `channelSiteUrlOf(channelSites, sites)` gives a moment's record the first listed site that + publishes its channel (its `siteUrl`), else no link. The build is stamped `homepage-build.json` `{format, version, + audience, articles}`. `--private` / `--allow-missing-media` on `compose homepage`. +- **Base.** A3 first threaded the host's base through compose, feeds (an optional `base`), history and exports with + a shim for the views' own paths; A5's `ReportHost.base` (views.ts builders taking the base) replaced the shim at + the merge, and `ARTICLES_REPORTS_BASE` (A5's name) is the one constant. +- **App.** `homepage/app/lib/articles.ts` binds the shared reader to `public/` under `/articles/` + (`E2E_ARTICLES_PUBLIC_DIR` outside a production build). Routes `/articles/`, `/articles/[reportId]/`, + `/articles/[reportId]/history/`, `/m/[...moment]/` render the shared components in PageShell, a placeholder param + and an honest empty state with none. Nav: "Articles" in HEADER_NAV (and so the footer); the md nav's link gap is + 16 px below lg so five links and a three-link social row fit 768 px. The front page's "Latest Articles" (newest + three by date, "All articles") shows only when there are articles. + +### A4, as shipped + +| Commit | What | +|---|---| +| 1c064557 | homepage: the private build and the public build's audit | +| eee153fc | cli: the usage test names `build homepage --private` | + +- **Private build.** `archilyzer build homepage --private` → compose `--private`, `next build` with + `HOMEPAGE_DIST_DIR=out-private` (next.config `distDir`; Next exports there and keeps its build in `.next`), its + stamp checked, then the articles removed from homepage/public (`clearHomepageArticles`). `pnpm --filter homepage + start:private` serves it (`HOMEPAGE_PRIVATE_PORT`, 3032). homepage/out is never touched; nothing deploys + out-private. +- **Audit.** `common/lib/builtHomepage.ts` `homepageAudienceProblem(outDir, {paths?, settings?})`, asked by + `builtHomepageProblem` (deploy stage with paths + settings, the publish status, and the public build after `next + build`, which fails on it): a private stamp; an article under `out/articles/` whose report.json is not + `audience: "public"` now (or gone); a moment whose `citedIn` names a non-public article or no article; an X + channel's moment or `media/posts/` capture while `social.x.visibility` is private. + +**Gates (A3 + A4, after the A5 merge).** tsc every package: clean. common 3816 (the two `_cli.test.ts` usage +assertions updated for `--private`, then 26/26); editor unit 264/264; test:scripts 836 (833 pass, 3 skipped); mcp +306/306; export unit 117/117; homepage unit 25/25. New tests: `lib/builtHomepage.test.ts` 5, `bin/compose-homepage.test.ts` +3, `publish/build.test.ts` +1 (both builds through seams), `publish/deployStage.test.ts` +1 (the deploy refuses a +private build and a private article), `homepage/app/lib/articles.test.ts` 2. Homepage e2e, the whole suite, one +foreground run: 110/110 in 2.3 min (a first run, before the nav gap fix, failed `social.spec.ts` "768 and 1280 px … +in one bar": the fifth link made the social row scroll at 768). umtool `sites.spec.ts` + `articles.spec.ts` 6/6 on +the `pages` fixture. `build:nodata` homepage build: rc 0, `/articles/` the empty index, `/articles/_none` and +`/m/_none` placeholders. Over a temp corpus (one public, one private article, a listed site, a real ffmpeg clip +prepared with `reports prepare --article`): the public build rc 0 carrying `open` alone, audit null, its links under +`/articles/open/`; flipping `open` private refuses that out ("carries the article \"open\", which is not public"); +the private build rc 0 into out-private with both, its stamp refused for deploy, homepage/public left without +articles; a public build with zero public articles rc 0, stamp `articles: []`.