Archilyzer · Source

archilyzer

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

commit 2c590efefa7dafecf4b44d46d06c8838adbb1e17
parent 482fd974595a6dbb2e0881494b2d627cb4236b61
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 22 Oct 2026 23:17:33 -0400

docs: plans/attach-dates.md (rulings, the backfill bodies) and the CHANGELOG line

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

Diffstat:
Meditor/CHANGELOG.md | 1+
Aplans/attach-dates.md | 47+++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **A video attached from a local archive gets its date when the archive writes it as 2019-10-31.** `attach-media` with `createRecords` read a folder's "Published on …" line only as "July 13th 2018" or "March 1, 2019"; it now reads "2019-10-31" and "2019/10/31" too, and a date that is not on the calendar is no date. Records it made before without a date can be dated now: `"fillDates": true` on `pnpm ops attach-media` (`--fill-dates` on `archilyzer media attach`) gives a held record that attach-media made, and that has no upload date, the date from its folder's description.txt — recorded in its metadata history. A record that has a date, or that attach-media did not make, is never touched. The log and the summary list them as "dated"; with `"dryRun": true` it only lists them. - **A report video's sound stays with its picture from the first clip to the last.** A clip whose sound started late (its cut reached back before the fetched window's media) or had a gap in it (a seam in the source's stream) used to pull that clip's sound, and every later clip's, early — on a 20-minute cut by half a second from the 13th minute on. Each clip's sound is now laid on its own clock before the clips are joined, and every build writes `sync.json` beside its schedule saying where each clip's sound landed against its picture; the build log names any clip more than a frame off. A video's manifest can now also set when a fact-check stamp lands and the count steps (`claim.at`, a second of the source), how long it stays, a count of more than one, a stamp that counts without showing, the stamp's words, size, entrance and opacity; nudge a clip's sound against its picture, its volume and fades (`audio`); align a timeline flag's label and lay crowded labels in two rows; and `node umtool/report-to-video/variants.mjs <take out dir>` makes smaller copies of a finished cut — 1080p, 720p and one under 24 MiB by default (`render.variants`). Needs a rebuild of the video. - **A fact-check video can count without the stamp, colour its timeline by verdict, flag the moments time passes, and leave the QR off posts.** In umtool's fact-check form, **stamp effect** off draws no verdict stamp over the footage, while the tally in the panel still counts each claim at the second its stamp would have landed. The On-screen settings have **colour** under timeline: **verdict** lights each clip that carries a claim in its verdict's colour — the tally's colour — with a shape per verdict (circle, diamond, square, triangle, ring), and the tally's cells carry the same shapes. **qr codes** under posts off leaves the QR off every post card, popup or feed, and the words take its width; each clip's own QR stays. A video's manifest can flag moments on the timeline (`render.chrome.deck.markers`: "3 to 5 weeks pass" after a clip), each popping in as the timeline reaches it and staying lit. Needs a restart of umtool. - **The dashboard says when a service's cookies have gone stale, and what to do.** When Rumble refuses its embeds with a 403 on two different videos in a row (one is not enough — a removed video answers 403 too), when YouTube asks to confirm you're not a bot, when Odysee answers with Cloudflare's check, when a forum's browser check or login wall stops a thread, or when archive.today answers with its check page, a banner at the top of the dashboard says so — "Rumble needs fresh cookies: open rumble.com in firefox" — with the jobs it happened in. **Recheck** asks the service once, through the same path and cookies the jobs use, and clears the banner when it answers; the next clean request clears it by itself too, and **Dismiss** clears it by hand. Once it is clear the banner says "OK again" and offers **Re-run stopped jobs**, which retries the jobs it stopped. The stopped job's log ends with the cause and the fix, `archilyzer doctor` lists it under "service cookies", and a Connect forum session or Connect archive session that ends on a cleared page clears the matching banner. From a terminal: `pnpm ops get services`, `recheck-service`, `rerun-service-jobs` and `dismiss-service`. Odysee's check is recognised by Cloudflare's own words beside a 403; no real Odysee sample has been seen yet. Needs a restart of the editor. diff --git a/plans/attach-dates.md b/plans/attach-dates.md @@ -0,0 +1,47 @@ +# Attach dates — ISO dates in description.txt; `fillDates` (lane `lane/attach-dates`) + +Asked by the operator on 2026-10-22: the index logs "Skipping the-incredible-salt-mine/VcFA_LOnQoc: no +upload_date" and "…/xLgf_MGQzXk: no upload_date" — "can we fix that?". + +## Findings + +- Both records were made by `attach-media` with `createRecords` from the local archive + `…/v1-torrent/Uploads/YouTube.zip` (folders `064 - … - (VcFA_LOnQoc)` and `173 - … - (xLgf_MGQzXk)`). +- Their description.txt reads `Published on 2019-10-31` and `Published on 2024-06-21`. `publishedDateFromText` + read only `July 13th 2018` / `March 1, 2019`, so the record got no `upload_date`, while `descriptionFromText` + still dropped the line. +- They are the only two local-archive records in the corpus without an `upload_date` (counted 2026-10-22). + +## Rulings + +1. `publishedDateFromText` (common/lib/attachMediaPlan.ts) reads three spellings: `July 13th 2018`, + `March 1, 2019`, and ISO `YYYY-MM-DD` / `YYYY/MM/DD` (one separator, used twice). A date that is not on the + calendar (`2019-02-30`, `2019-13-01`, `February 30th 2019`) is no date, in every spelling. +2. `attach-media` gains `fillDates` (`"fillDates": true` on `pnpm ops attach-media`, `--fill-dates` on + `archilyzer media attach`). It dates a HELD record only when all three hold: + - its `saved-video.json` origin kind is `"local-archive"` (attach-media made it); + - its `metadata.info.json` has no `upload_date` (absent, null or empty); + - its folder in the source has a description.txt that yields a real date. +3. The date is merged by `patchMetadataInfo` (lib/metadataHistory-server.ts) — `upload_date` alone, appended at + the tail, by `"local-archive"`, requested by `"attach-media"` — so `metadata.history.json` records it. Nothing + else in the record is touched. +4. A record that has a date, or whose pointer is not local-archive (a download's), is never touched. A candidate + whose description.txt gives no date (or that has none) is listed as `undated` and left alone. +5. The log has one `dated <id> ← upload_date <YYYYMMDD> (<description.txt path>)` line per record (an `undated` + line per candidate without one); the `summary:` line carries `dated` (and `undated` when non-empty) only + when `fillDates` was asked. `dryRun` lists the same and writes nothing. +6. The fill runs before the attach work and alongside it: `fillDates` does not stop the run attaching what it + would attach anyway, so a fill-only run is narrowed with `match` (or `items`). +7. A job that dated something is not failed for "none attached"; the dated videos' pages are revalidated. + +## Backfill (the orchestrator, after merge) + +Dry run, then the run: + +```sh +pnpm ops attach-media --json '{"slug":"the-incredible-salt-mine","source":"/run/media/user/09b598d2-b765-40bd-9466-06d8e16cb119/v1-torrent/Uploads/YouTube.zip","match":"\\((VcFA_LOnQoc|xLgf_MGQzXk)\\)","fillDates":true,"dryRun":true}' --wait +pnpm ops attach-media --json '{"slug":"the-incredible-salt-mine","source":"/run/media/user/09b598d2-b765-40bd-9466-06d8e16cb119/v1-torrent/Uploads/YouTube.zip","match":"\\((VcFA_LOnQoc|xLgf_MGQzXk)\\)","fillDates":true}' --wait +``` + +Expected: both rows `already-attached`, `dated` 20191031 (VcFA_LOnQoc) and 20240621 (xLgf_MGQzXk), summary +`"dated":["VcFA_LOnQoc","xLgf_MGQzXk"]`, `0 to attach`. Then the index build reads them.