Archilyzer · Source

archilyzer

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

commit cb5f4e61fd69fb75829d53f9de790aff33830809
parent a9435de63eec7d7bd058b81eefed5b3ba913e171
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 20 Oct 2026 10:49:45 -0400

wayback pages: declare the two e2e variables in the editor's playwright config; the lane record (draft)

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

Diffstat:
Meditor/playwright.config.ts | 8++++++++
Aplans/release-37/scan.md | 56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+), 0 deletions(-)

diff --git a/editor/playwright.config.ts b/editor/playwright.config.ts @@ -38,6 +38,14 @@ import { currentSlot } from "./e2e/testPaths"; // writes its stub umtool's loopback origin into, // which Find clips then posts to // (common/lib/umtoolUrl.ts; find-clips.spec) +// E2E_WAYBACK_ORIGIN_FILE set per slot (e2e/servers.ts): the file a spec +// writes its fake Wayback's loopback origin into, +// which a Wayback pages scan then asks +// (common/lib/waybackPages/origin.ts; +// wayback-captures.spec) +// E2E_IMPORT_PAGE_SEAM_FILE set per slot (e2e/servers.ts): where the Captures +// tab's import requests land until S1's import-page +// job is in the build (controller/waybackImport.ts) // E2E_ODYSEE_PAGE_FIXTURE set per slot (e2e/servers.ts): the file of // recorded Odysee page reads the browser lookup // answers from (browser-lookup.spec); while it is diff --git a/plans/release-37/scan.md b/plans/release-37/scan.md @@ -0,0 +1,56 @@ +# Release 37 lane B `r37/scan` (S2: scan and choose) — as shipped + +Plan of record: `plans/release-37/wayback-pages.md`, "What a channel is" and "S2". The brief's decisions held: a +scan never fetches a body; `collapse=digest` by default; no model anywhere. + +## What + +- **`wayback-scan {slug, dryRun?, maxRows?, full?}`** (`common/controller/waybackScan.ts`): every target of + `config.wayback.targets` listed through the CDX API — matchType per target, status 200, the target's mimes + (text/html by default), collapse=digest, the date bounds, `fl` of five columns, pages of 5,000 with + `showResumeKey`, at most `maxRows` (50,000; ceiling 200,000) rows and 100 requests a run — through the Wayback + client's paced chain (new `WaybackClient.cdxPage`). A run cut short (row cap, refusal, drain, cancel) keeps each + target's resume key; once all are complete the next run is a new pass asking from 30 days before the last pass + began; `full` is a new pass from each target's start. A refusal stops the job (failed, with the reason) and keeps + what it wrote. A dry run asks nothing and logs each target's next request. A job kind on `platform:archive.org` + (`WAYBACK_QUEUE`), drainable, `needsText`, not ingest. Ops action, `archilyzer wayback scan <slug>` CLI. +- **`channels/<slug>/wayback-scan.json`** (`common/lib/waybackPages/scanFile.ts` + `scanFile-server.ts`): per target + state, one row per distinct (URL, digest) with first/last seen, count, the pass that first listed it; summaries by + year and by one-/two-segment path prefix. Written compact and atomic after every page. Imported state derived + (`imported.ts`) from the channel's webpage records. +- **Targets reader** (`common/lib/waybackPages/targets.ts`): the brief's narrow, tolerant parser of `config.wayback` + (raw config.json until A's schema lands), the target key, the CDX `url`/mime filter, the asset/include/exclude + rules. +- **Captures tab** (`editor/app/channels/[slug]/captures/`): Overview | Captures on a Wayback pages channel + (`ChannelTabs captures`, the layout reads the raw config). Status line, targets, Scan now / Continue scan + (`StreamActionLog`), the last scan's job linked, the table (path, first/last seen, version i of n, imported mark + linking the record's capture, new), server-side filters (year, path prefix, text, show) and pagination (100 a page), + per-page selection, Import selected, Import all in range (inline confirm above 50), the result line. +- **Imports from the scan** (`common/controller/waybackImport.ts`): one `import-page` request per row (the capture the + content was first listed at), imported rows skipped, ≤ 500 a call; `wayback-import` ops action. **Staged**: the + starter is a seam until S1's `startImportPageJob` is on main (refuses; on the e2e server appends to + `E2E_IMPORT_PAGE_SEAM_FILE`). +- **`wayback.auto`** (`common/controller/laneWaybackAuto.ts` + one pre-pick block and one run branch in + `autoRunner.ts`): the download lane's channel-scoped unit after the metadata scan — an opted-in channel's rows + listed after its first pass and not imported, one import-page job per unit on the `archive.org` platform slot, + waited on via `onJobEnd`. Reads `config.wayback.auto` through the parsed config, so it is inert until A's schema + keeps `wayback`. +- **Fake + e2e**: `fakeWayback.mjs` scan listing in its own block (matchType, from/to, filters, collapse, fl, limit, + resume keys, `scanRefuseFrom`, `SCAN_CAPTURES`); `E2E_WAYBACK_ORIGIN_FILE` (`lib/waybackPages/origin.ts`); + `editor/e2e/wayback-captures.spec.ts`. +- **Docs**: OPERATING.md "Wayback pages: scan, then choose", COMMANDS.md, ENVIRONMENT.md (two test env vars), FACTS + "Release 37 S2", CHANGELOG. + +## Commits + +(see the report; filled at TRACK_DONE) + +## Gates + +(filled at TRACK_DONE) + +## Rulings followed + +- Corpus read-only; synthetic fixtures only; no real network in any test. +- Every heavy step through the session lock. +- No Claude-Session trailer.