Archilyzer · Source

archilyzer

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

commit 899fe1d435b57015f7e9a3016041e11a6773a37a
parent 217234fae69f8128152e09efd5a8714dc86976ac
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 19 Nov 2026 00:07:10 -0500

plans: x-followups review 4 -- the marker is the only proof the day's records are all there; an import by an X page's address is X's on any channel; X's addresses by the host alone, twimg.com included; a caller's webpageUrl is a full http(s) address; an X job running with no start recorded takes the cap's room. OPERATING and the changelog say what changed

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
MOPERATING.md | 4++--
Meditor/CHANGELOG.md | 5++++-
Mplans/x-trending.md | 25++++++++++++++++++++++---
3 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/OPERATING.md b/OPERATING.md @@ -559,8 +559,8 @@ pnpm ops capture-posts --json '{"slug":"example-x","ids":["<postId>"]}' --wait the job records (`.jobs/<id>.meta.json`, `xStarts`); if X's queue ended a job in that time and the records cannot be read (or none is left), no X job starts. Nor does it while nothing shows the day's records are all there: the jobs list's retention and **Clear logs** keep every X job's record for the day it can count, and - say since when in `.jobs/x-records-kept.json`; until that is a day old (or a finished job that ended over a day - ago is still on disk), a lost count is refused, at most for a day. A start stamped in the future (a clock set + say since when in `.jobs/x-records-kept.json`; until that is a day old, a lost count is refused, at most for a + day (a date in that file after now is no proof: said again at now). A start stamped in the future (a clock set back) counts until the clock has passed it by the window. The scheduler queues no more X syncs than the cap has starts left (less the X jobs already waiting); the others wait for a later tick. X's own gap (5 minutes) already means 12 jobs an hour, so the hourly cap bites only if that gap is lowered; the daily cap bites sooner: an X run over more than 150 diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -26,7 +26,10 @@ a window sent to `POST /api/media/fetch-window` with an x.com `webpageUrl`, or one item of a batch across channels runs on X's queue and counts. A window of an archive.org or Wayback copy, or of a mirror on another platform, is not X's. A window cut from a saved copy that is gone by the time it runs fails with a sentence - and asks X nothing. A `t.co` link is X's. + and asks X nothing. A `t.co` link is X's, and so are X's media hosts (`video.twimg.com`, `pbs.twimg.com`). + - **Importing a file by an X page's address runs on X's queue on any channel**, `t.co` links included, and + counts. A `webpageUrl` given to `POST /api/media/fetch-window` or to a fetch-windows item must be a full + `http(s)://` address; one without its scheme is refused before anything is asked. - The scheduler queues no more X syncs than the cap has starts left; the others wait for a later tick instead of each ending deferred. - An X channel's jobs that never ask X run on their own queues again: a transcription (whisper-video's hand-off diff --git a/plans/x-trending.md b/plans/x-trending.md @@ -488,9 +488,8 @@ These are rulings, not reasons. - **A LOST COUNT IS REBUILT ONLY FROM RECORDS SHOWN TO COVER THE DAY.** Retention never deletes an X job's record while it may count. That covers retention by count and by age, and Clear logs. Since when it has kept them is in `.jobs/x-records-kept.json`, written once. A rebuild that finds X activity in the day counts only - when that is over a day old, or when a finished job that ended over a day ago is still on disk (retention - deletes the oldest finished first). Otherwise it refuses and writes nothing. The refusal ends by itself within - a day. + when that is over a day old. Otherwise it refuses and writes nothing. The refusal ends by itself within a day. + (Review 3 also took an old finished record as proof; review 4 removed it.) - **THE WINDOWS ARE NOW MINUS THEIR LENGTH.** A start stamped after now counts in both windows. It never moves the windows off the real starts and never prunes them. A start is recorded at the clock's time. - **THE OPENING TAB IS THE ONE NAMED TOP**, wherever the page's answer lists it, else its first tab. @@ -501,6 +500,26 @@ These are rulings, not reasons. - **THE SCHEDULER QUEUES NO MORE X SYNCS THAN THE CAP HAS STARTS LEFT**, less the X jobs already waiting on X's queue. It looks at the count and records nothing. +## Review 4 (19 Nov), as built in `lane/x-followups` + +These are rulings, not reasons. + +- **THE MARKER IS THE ONLY PROOF THAT THE DAY'S RECORDS ARE ALL THERE.** A finished job that ended over a day ago + proves nothing: a job cancelled while queued has no log and is never pruned, and retention goes by id and + queue time, not by start. Without the marker over a day old, a rebuild refuses and writes nothing. The first + day after rollout with a missing starts file refuses: accepted. A marker dated after now is no proof: it is + said again at now, so the refusal ends within a day. +- **AN IMPORT BY AN X PAGE'S ADDRESS IS X'S, ON ANY CHANNEL.** `import-media` decides by `isXUrl`, so a `t.co` + link goes on X's queue under the jar rule and the cap. `xJobAsksX` judges `import-media` by its `url`. The + guards read it from `askParams`, because import-media has no replay descriptor. The metadata pass asks + `xJobContextRefusal` before it hands an X address to yt-dlp. +- **X'S ADDRESSES BY THE HOST ALONE:** lowercased, a trailing dot dropped. `twimg.com` and its subdomains are X's. + An address written without a scheme is X's when its first segment is an X host. A caller's `webpageUrl` at + `POST /api/media/fetch-window`, or on a fetch-windows item, must begin `http://` or `https://`. Otherwise it + is refused (400, or the item's problem). +- **AN X JOB RUNNING WITH NO START RECORDED TAKES THE CAP'S ROOM** in the scheduler's count of X jobs waiting, + as a queued one does. + ## Open - The END of a timeline is confirmed by no capture yet (above). The parser is built so that a change is