Archilyzer · Source

archilyzer

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

commit abeeb170eafeaece493c78f8339e52f7af6e9f75
parent b88d275e743cfdc6a065b6e3f3a27115e447a997
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 15 Oct 2026 08:41:05 -0400

plans: release 29 — lane A's review fixes recorded (the eight findings as fixed, commits, gates), FACTS and CHANGELOG to match

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

Diffstat:
Meditor/CHANGELOG.md | 6++++--
Mplans/FACTS.md | 19+++++++++++++++----
Mplans/release-29.md | 50++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 69 insertions(+), 6 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -2,9 +2,11 @@ ## [Unreleased] - **A cited video that was deleted no longer stops a report from publishing.** When a report cites a moment of a recording that its platform has since deleted or made private, and no copy of it is on disk, the report's page now shows that moment's words only, marked **Source deleted** (or **Source made private**), on its card and its moment page — instead of `reports prepare` and the build refusing the whole report. A deleted post that was never captured is shown the same way. `reports prepare` and `reports check` list each one as a warning. A moment of a recording that is still up and has no clip is still refused, as before. Needs a restart of the editor; the sites show it after their next build. -- **`pnpm ops find-copy` looks for a copy of a deleted video and fetches the cited seconds from it.** For one article (`{"article": "<id>"}`), every published article (`{"articles": true}`) or a site's reports (`{"siteId": "<id>"}`), it takes each cited recording that is deleted or private, looks for a Wayback Machine capture of its page, then for an archive.org mirror that names its YouTube id, and fetches the cited windows from the copy it finds as one paced job. The clips land with the recording's other clips, and each one's record says which copy it came from. With `"dryRun": true` it only says what it found. A recording with no copy anywhere is left to show its words only. Needs a restart of the editor. +- **`pnpm ops find-copy` looks for a copy of a deleted video and fetches the cited seconds from it.** For one article (`{"article": "<id>"}`), every published article (`{"articles": true}`) or a site's reports (`{"siteId": "<id>"}`), it starts a job that takes each cited YouTube recording that is deleted or private and looks for a copy: the Wayback Machine, when it holds the video itself (not just a saved copy of its page), then an archive.org upload of that same video — one whose name, file names or original link name the video, and whose length matches. It fetches the cited windows from the copy it finds as one paced job; the clips land with the recording's other clips, and each one's record says which copy it came from. A copy that fails to fetch is noted, and the next run tries the next one. With `"dryRun": true` it only says what it found. A recording with no copy anywhere is left to show its words only. Needs a restart of the editor. - **`pnpm ops wayback-lookup` lists the Wayback Machine's captures of a page** — a URL, or a recording's own page (`{"slug", "id"}`), with `"okOnly": true` for the captures that loaded. **`pnpm ops archive-search --json '{"youtubeId": "<id>"}'`** finds archive.org mirrors of one YouTube video and gives each one's direct video file link. Both are read only and paced as archive.org asks. -- **Fetch windows refuses a window of a deleted or private video** unless the item names another page to fetch it from (what `find-copy` does), instead of asking the dead page. +- **Fetch windows refuses a window of a deleted or private video** unless the item names another page to fetch it from (what `find-copy` does), instead of asking the dead page. If the video is back, check its availability again (the channel page's Diagnostics), or send the item with `"force": true`. +- **A members-only video's window is listed as "members-only"** among the windows no fetch can fill, unless the channel has browser cookies set to fetch it with. +- **Capture posts on Bluesky looks a repost up under its original author**, so a repost is never recorded as deleted, and the deleted-post check leaves reposts alone. On a page showing a thread, the screenshot is of the post itself, never of another post in the thread. - **Capture posts works for Bluesky channels, with no login.** `pnpm ops capture-posts --json '{"slug": "<channel>", "ids": [...]}'` on a Bluesky channel now reads which posts are still up from Bluesky's public API, opens each live post's bsky.app page in a headless browser with no account, and saves a screenshot cropped to the post (`shot.png`) and the post's images beside it, in the channel's `posts-media/<id>/` — what a report's moment page shows. A post Bluesky no longer has is recorded as deleted in the channel's post availability, and nothing is opened for it. One page at a time, a few seconds apart; a "slow down" from Bluesky is waited out, and one that persists stops the run with the rest left for later. Needs a restart of the editor. - **The research board keeps a key pressed just after a save, too.** A key that arrived after a save's answer, or after its redraw but before the moved line took the focus back, could still lose `e`'s field (the claim then went nowhere). The board now waits until the redraw is fully done before acting on any key. Needs a restart of umtool. - **A recurring report's tick no longer calls a capped scan "nothing new".** Triage used to take the scope from one `enumerate_matches(".")`, which stops at 2,000 recordings — the co-host pilot's five channels hold 23,284, the newest read last, so its first tick found "0 new" and ended quiet. Tier 0 now lists the scope from the build's own per-channel manifests (every recording, uncapped, dated by the build's index) and reads the terms only over the new recordings (and, on a first run, from the start date). A scan that still hits a cap or misses a channel is **partial**: the tick says "partial — not reached: …" as a **Your call** card in umtool (never quiet, no quiet edition recorded), the triage run says so on its page, and its set of seen recordings is not kept, so the next run counts new from the last complete run (or from its start date). The same rule holds for a Refresh's search again (a capped search with nothing new ends **partial**, not "no change"), a series' window check, and the Inbox's daily refresh check (a partial check still raises its card, naming what it did not reach; `umtool refresh --check` prints PARTIAL). Needs a restart of the editor and umtool. diff --git a/plans/FACTS.md b/plans/FACTS.md @@ -9468,7 +9468,10 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri `posts-availability.json` by `capturePosts` as X's), the shot from a headless Chromium with a FRESH context (no profile, no cookies) on `bsky.app/profile/<handle>/post/<rkey>`, cropped to `[data-testid="postThreadItem-by-<handle>"]` (the one holding the post's text when several), images as - `media-<n>.<ext>` beside it; the record is postCapture.ts's (`url` the canonical bsky.app permalink). A deleted + `media-<n>.<ext>` beside it; the record is postCapture.ts's (`url` the canonical bsky.app permalink). Each post + is looked up under its ARCHIVED author's DID (`archived.author` from capturePosts; a repost's is the original's), + and the shot is the item linking to its own `/post/<rkey>`, else the one whose element text is the post's whole + text, else the only one (ambiguous → error). A deleted post keeps an earlier capture's shot and media. One page at a time, ≥ 3 s jittered gaps, 429s waited out then stopped. - **Bluesky's hosts are one module** (`common/social/blueskyEndpoints.ts`): the AppView, bsky.app and the CDN. @@ -9476,10 +9479,12 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri - **"Is this source gone?" has one reading** (`common/lib/sourceGone.ts`, `sourceGone-server.ts`): a recording's effective availability as a viewer state is `deleted` or `private` (members-only, `error`, unlisted and never checked are NOT gone); a post is gone when `posts-availability.json` says `deleted`. Refresh's delta, compose, - `missingEvidenceWindows` (its `gone` field), fetch-windows' door and find-copy all read it. + `missingEvidenceWindows` (its `gone` field), fetch-windows' door and find-copy all read it. Members-only is + "unfetchable: members-only" there unless the channel has cookies to send (then a window to fetch). - **`sourceGone` on the composed views** (`lib/report/views.ts`): a span or post citation view and its moment page - carry `sourceGone: "deleted" | "private"` when compose accepted the moment with no media because its source is - gone; the page shows `SOURCE_GONE_LABELS` ("Source deleted"). The report-media index's `warnings` (kind + carry `sourceGone: "deleted" | "private"` when compose accepted the moment with no media — which it does ONLY when + the host's report-media index lists the moment as a `source-gone` warning (prepare's word), the source is still + gone and no media is on disk since; the page shows `SOURCE_GONE_LABELS` ("Source deleted"). The report-media index's `warnings` (kind `source-gone`) say the same at prepare and never fail it; a live source with no media is still `missing-media`. - **A window fetched from a copy names the copy** (`ClipProvenance.copy = {from: "wayback" | "archive.org", url}`, `lib/clipWindow.ts`; written by `fetchWindowManaged` from `FetchWindowsItem.copy`). find-copy @@ -9488,4 +9493,10 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri gone recording's window whose item names no `webpageUrl`. - **The Wayback CDX client** (`lib/waybackClient.ts`) is an `ArchiveOrgClient` instance of its own (gap, UA, back-off); `parseCdxJson` reads the header row's columns, and `[]`, an empty body or a header alone are none. +- **find-copy's copies** (`publish/findCopy.ts`, a `find-copy` job): YouTube pages only; Wayback when + `__wb/videoinfo?vtype=youtube&vid=<id>` has formats (yt-dlp's own check), URL + `https://web.archive.org/web/<ts>/https://www.youtube.com/watch?v=<id>`; else an archive.org item whose + identifier, a file name or `originalurl`/`source` names the id, its file within 5 s / 2 % of the record's + `duration`. A copy whose fetch failed is in `data/<id>/copy-attempts.json` (`lib/copyAttempts-server.ts`, written by + fetch-windows) and is not picked again. diff --git a/plans/release-29.md b/plans/release-29.md @@ -295,6 +295,56 @@ Gates (from the worktree root): Not done: the editor has no UI for find-copy (ops and the research door only — the brief named none); prepare's `warnings` are in the index and the job log, not on the editor's Reports tab. +### E1/E2 review fixes (2026-10-15, lane A, `r29/evidence`) + +The read-only review of E1/E2 (`$T/r29ra-review.md`) found eight defects; each fixed as the orchestrator ruled: +1. **Compose decides "gone" on prepare's word only.** A moment with no media is accepted as words only when this + host's index lists it as a `source-gone` warning (prepare gives one after its reachability check, with no media to + cut; the warning now names the state), the source is still gone, and no media is on disk since (a window or a + capture fetched after prepare). No index, another host's, or a moment prepare failed for (unreachable, cut-failed, + too-big) stays `missing-media`. +2. **Bluesky looks each post up under its own author.** capturePosts hands each id's archived author to the capture + (`archived.author`); each author's DID is resolved once and getPosts asked under it; an absence is `deleted` only + from a batch asked under the post's own author (an unknown or unresolved author: nothing learned). A 1–2 s gap + before every AppView request after the first (`apiGapMs`). The deleted-post sweep (`checkAvailability`) leaves + another account's posts (reposts) as they were (`PostAvailabilityInput.authors`). +3. **Wayback counts only when it holds the video.** The installed yt-dlp's YoutubeWebArchive extractor + (`yt_dlp/extractor/archiveorg.py` `_real_extract`) asks `web.archive.org/__wb/videoinfo?vtype=youtube&vid=<id>` + and stops when it has no formats; find-copy asks the same (`WaybackClient.youtubeVideoArchived`), and the copy's URL + is the form the extractor takes (`waybackYoutubeUrl`). A copy whose fetch failed is recorded by fetch-windows beside + the recording (`data/<id>/copy-attempts.json`, `lib/copyAttempts-server.ts`; not on a rate limit or a cancel), and + the next find-copy falls through: Wayback → archive.org → the next mirror. +4. **A mirror must be OF the upload.** Its identifier, a file's name or its `originalurl`/`source` names the id (a + title or description is not enough — a compilation does that); its file's length agrees with the record's + `duration` (± 5 s or 2 %; a file with no length is not taken when the duration is known); only a record whose page + is a YouTube URL is looked for (`youtubeIdOf` reads YouTube hosts only; no fallback to the record's own id). +5. **The Bluesky shot is the post's own item**: the one linking to `/post/<rkey>`, else the one holding an element + whose whole text is the post's, else the only item by the author; two matches are an error, never a wrong shot. +6. **The fetch-windows door** names the availability re-check (Diagnostics → Check availability) and takes an item's + `"force": true` (documented in the ops help). +7. **find-copy is a job** (`find-copy` kind, its own queue; its log ends with `@@find-copy {…, fetchJobId?}`); a + cancelled run starts no fetch. +8. **Members-only** is "unfetchable: members-only" in `missingEvidenceWindows` unless the channel has cookies to send + (`authRetryCookies` of its cookie policy: then a window to fetch); compose never reads it as gone. + +| Commit | What | +| --- | --- | +| `4939d74e` | compose: gone only on prepare's `source-gone` warning (1) | +| `478938ee` | Bluesky: each post under its own author, the API gap, the sweep's reposts; the self-thread shot (2, 5) | +| `739c6b87` | find-copy: the Wayback video check, the mirror match and length, YouTube pages only, failed copies (3, 4) | +| `a224715e` | find-copy as a job; the door's re-check and `force`; members-only (6, 7, 8) | +| `40979b5e` | the find-copy result marker out of the "use server" file (the e2e build refused it) | +| (this commit) | this paragraph, FACTS, CHANGELOG | + +Gates: tsc clean at every commit; common 4218 → 4226/4226; editor 308/308; mcp 370/370; `test:scripts` 1010 + 3 +skipped; export 117/117; homepage 25/25; `docs env|files|cli --check`, `settings example --check` clean; editor e2e +`capture-posts.spec.ts` 1/1 (43 s; its start-mode build 178 s, through the heavy slot). New tests: a repost looked up +under its author and the sweep leaving it; a self-thread page in a real Chromium (a short reply under parents holding +its words, the own-link rule, two twins → error); compose refusing gone-on-disk without prepare's warning and another +host's warning; the Wayback order and its fall-through; a compilation mentioning the id rejected; a length mismatch; +a Rumble record not looked for; a failed copy recorded and not on a 429; members-only with and without cookies; the +door's `force`. + ## Not in this release Auto-posting to X/Bluesky/YouTube (text only); any umtool restructuring; the "en track → 0 cues" bug (closed in r20).