commit c07da2e4fb6cc341cf5894b26826aaf4b847d6e4
parent d477716f5c1c713c00c022246df779a728abe35e
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 18 Nov 2026 03:59:29 -0500
x-trending review 1: the docs, the CLI help and the e2e say what changed
OPERATING, the CLI help (COMMANDS.md regenerated), the changelog and the plan: the watch's own jar limit, one stream of ticks for all libraries, the failing pause, gone needing the page's end, by being the caller's word. The e2e's second page now ends as a page does.
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
7 files changed, 118 insertions(+), 47 deletions(-)
diff --git a/COMMANDS.md b/COMMANDS.md
@@ -169,7 +169,7 @@ Drives a running editor over HTTP (`/api/ops/*`, the same actions its pages run)
| `transcribe-bucket` | transcribe-bucket transcribes a channel's "downloaded, not transcribed" bucket on the transcription queue, as the channel page's Transcribe button does: {"slug"}. "ids": \[...\] narrows it the same way as on retry-bucket. | |
| `fetch-posts` | fetch-posts fetches a social channel's new posts: {"slug"} is SYNC NEW — from the top of the timeline down to the newest archived post (a sync that stopped part-way continues down to the watermark it began with). It never reads or clears an unfinished backfill's resume point. "backfill": true is RESUME BACKFILL instead (the same as resume-backfill). "full": true re-walks the whole timeline; "older": true walks back from the oldest archived post through search (X; needs a login), saving its place for the next run, down to "floor": "YYYY-MM-DD" when given; "from": "YYYY-MM-DD" starts the walk afresh there, replacing its saved place (and a "complete") — for a gap above one surviving old post. "limit": N caps the posts one run reads; "pages": N caps the pages (a forum thread: its latest N pages). A forum thread keeps two positions: a run catches up from the last page, then continues the history where it stopped; "full": true is its full re-walk (every page, edits updated). "retryOnBlock": {"minutes": 30, "max": 12} (or true: the forum default in settings) waits out a challenge or refusal page and runs again, max tries in all. "full", "older" and "backfill" are one at a time. An older walk over an account that shows no posts (nothing archived, and the last timeline fetch read none) is refused unless "force": true. A drained fetch stops at its next resume point and the next run of the same walk resumes there. | `pnpm ops fetch-posts --json '{"slug":"example-x"}' --wait` |
| `resume-backfill` | resume-backfill continues a social channel's unfinished full-history timeline walk (X, Bluesky) from its saved resume point, with no watermark: {"slug"} ("limit"? caps the posts this run reads). The walk is left part-way by a first fetch, a full re-walk or a backfill that stopped; the channel page then says "backfill unfinished — N archived" and shows Resume backfill. Nothing resumes it but this (or fetch-posts "backfill": true): a plain fetch-posts, Sync and the scheduler sync new posts and keep its place. Refused when none is part-way, on a forum thread (every fetch catches up, then continues its history) and on an X search channel. | `pnpm ops resume-backfill --json '{"slug":"example-x"}' --wait` |
-| `capture-posts` | capture-posts captures archived posts of a social channel (X, forum, Bluesky): a screenshot of each through the connected X profile (a forum thread: its host's forum profile; Bluesky: a headless browser with no login on bsky.app, the shot cropped to the post), and its attached media through gallery-dl (a forum thread: the same profile; Bluesky: its images from the CDN), into the channel's posts-media/<id>/: {"slug", "ids": \[...\]}. Every id must be in the channel's posts archive. "shots": false or "media": false skips that half; posts already captured are skipped unless "force": true. A post that links to an X Article also gets the article (article.json, .md, .png and its images) unless "articles": false; both halves off with "articles": true reads only the articles. "thread": true (X; default the channel's postCaptureThread) also shoots each reply with the post it answers above it, as shot-thread.png beside shot.png (a post shot before gets only that); the replied-to author's avatar, name and handle are blurred unless verified or the reply's own. "threadRedact": false turns the blur off, true blurs any author; {"<id>": false} sets it per post. X also keeps each author's avatar, read off the page the shot loads (with "thread", the replied-to and quoted authors' too), in posts-media/\_avatars/<handle>.<ext> + avatars.json; an author already stored is not fetched again unless "force". "avatars": false turns that off. "avatarsOnly": true (X) loads ONE post page per distinct archived author for the avatars alone -- no shot, media, article or thread shot, no capture record, no availability: one author's avatar is {"slug", "ids": \["<one of their post ids>"\], "avatarsOnly": true}. X also reads each post's CONTEXT off the same page -- the post it quotes and the post it answers (its author, check, date, words, media links) -- into its capture.json's "context"; "context": false turns that off. "contextOnly": true (X) loads ONE page per post for that alone (and the avatars it shows): the context written into capture.json, nothing shot, no media, article, thread shot or availability; a post whose context is already read is skipped unless "force". Not with "avatarsOnly". Paced like a post fetch, on its queue. An X trending library is captured by this same job, under channels/<slug>/trending/posts-media/<id>/. Its media comes from X's media CDN by the addresses in the library's saved captures: no login, one file after another 1-2 s apart, under X's cooldown, each file kept once (trending/media-store/, a hardlink per post). A file over the library's maxVideoMb (100 MB) and whatever is past the job's budget (40 files / 200 MB) is owed: asked for again by the next capture of that post. A 429 from the CDN stops the job and leaves X alone for 15 minutes; a 403 or 404 marks the file; nothing retries. "keptMedia": true is for posts marked keep (refused for any other id): no per-file cap, and a post the CDN cannot serve whole is downloaded the logged-in way. | |
+| `capture-posts` | capture-posts captures archived posts of a social channel (X, forum, Bluesky): a screenshot of each through the connected X profile (a forum thread: its host's forum profile; Bluesky: a headless browser with no login on bsky.app, the shot cropped to the post), and its attached media through gallery-dl (a forum thread: the same profile; Bluesky: its images from the CDN), into the channel's posts-media/<id>/: {"slug", "ids": \[...\]}. Every id must be in the channel's posts archive. "shots": false or "media": false skips that half; posts already captured are skipped unless "force": true. A post that links to an X Article also gets the article (article.json, .md, .png and its images) unless "articles": false; both halves off with "articles": true reads only the articles. "thread": true (X; default the channel's postCaptureThread) also shoots each reply with the post it answers above it, as shot-thread.png beside shot.png (a post shot before gets only that); the replied-to author's avatar, name and handle are blurred unless verified or the reply's own. "threadRedact": false turns the blur off, true blurs any author; {"<id>": false} sets it per post. X also keeps each author's avatar, read off the page the shot loads (with "thread", the replied-to and quoted authors' too), in posts-media/\_avatars/<handle>.<ext> + avatars.json; an author already stored is not fetched again unless "force". "avatars": false turns that off. "avatarsOnly": true (X) loads ONE post page per distinct archived author for the avatars alone -- no shot, media, article or thread shot, no capture record, no availability: one author's avatar is {"slug", "ids": \["<one of their post ids>"\], "avatarsOnly": true}. X also reads each post's CONTEXT off the same page -- the post it quotes and the post it answers (its author, check, date, words, media links) -- into its capture.json's "context"; "context": false turns that off. "contextOnly": true (X) loads ONE page per post for that alone (and the avatars it shows): the context written into capture.json, nothing shot, no media, article, thread shot or availability; a post whose context is already read is skipped unless "force". Not with "avatarsOnly". Paced like a post fetch, on its queue. An X trending library is captured by this same job, under channels/<slug>/trending/posts-media/<id>/. Its media comes from X's media CDN by the addresses in the library's saved captures: no login, one file after another 1-2 s apart, under X's cooldown, each file kept once (trending/media-store/, a hardlink per post). A file over the library's maxVideoMb (100 MB) and whatever is past the job's budget (40 files / 200 MB) is owed: asked for again by the next capture of that post. A 429 from the CDN stops the job and leaves X alone for 15 minutes; a 403 or 404 marks the file; three refusals in a row (a 403, or no answer) and the job asks the CDN no more; nothing retries. "keptMedia": true is for posts marked keep (refused for any other id): no per-file cap, and a post the CDN cannot serve whole is downloaded the logged-in way, if it is still kept when that download would start. A library's capture runs on X's queue only: "queueKey" is refused for it. | |
| `publish` | publish runs publish stages on the editor's publish queue, one at a time, under one run id: {"verb": …}. "index" updates the index; "build" builds "siteId"/"siteIds" (forced; the index first when stale; "runner": "docker" builds every site in containers; "allowMissingMedia": true lets a report citation with no prepared media through compose, local builds only); "deploy" ships their built bundles (production, "preview": "<branch>", or "to": "local"; "force" redeploys a bundle already shipped there); "hub" / "homepage" build them, {"deploy": true} deploys after; "now" is Publish now (the stale index, then each policy target); "stale" builds every stale site. The answer lists every job ({target, kind, jobId}) and --wait follows them all. A site never built is refused: "no build of <id> in <dir> — archilyzer publish build <id>". `get publish` is the status. | |
| `build-index`, `build-site`, `build-deploy`, `deploy-site`, `build-hub`, `deploy-hub`, `build-homepage`, `deploy-homepage` | build-index, build-site, build-deploy, deploy-site, build-hub, deploy-hub, build-homepage and deploy-homepage are publish's aliases, with their old bodies and answers ("skipData" is accepted and ignored). | `pnpm ops build-deploy --json '{"siteIds":["anilyzer","jeralyzer"]}' --wait`<br>`pnpm ops build-site --json '{"siteId":"anilyzer"}' --wait`<br>`pnpm ops deploy-site --json '{"siteId":"anilyzer","preview":"tags-exclude"}' --wait`<br>`pnpm ops build-hub --wait`<br>`pnpm ops build-hub --json '{"deploy":true}' --wait`<br>`pnpm ops deploy-hub --wait`<br>`pnpm ops build-homepage --json '{"deploy":true}' --wait`<br>`pnpm ops deploy-homepage --json '{"preview":"refresh"}' --wait` |
| `build-site`, `build-deploy`, `deploy-site` | build-site, build-deploy and deploy-site all take "siteId" (one) or "siteIds" (a list). | |
@@ -219,8 +219,8 @@ Drives a running editor over HTTP (`/api/ops/*`, the same actions its pages run)
| `archive-lookup` | archive-lookup answers the copies of a page each archive source holds: {"url"} (the page's own URL), "source"?: "wayback" \| "archive.today" (default both), "limit"?: 50 per source (at most 500) -> {url, found, sources: \[{source, label, ok, captures: \[{source, captureTs, originalUrl, mementoUrl, status?, mimetype?}\], refusal?, error?}\]}, oldest first. Each source through its own paced client; one that refuses is its own entry's sentence (refusal "excluded": excluded from the Wayback Machine (cause unknown); "challenge"; "rate-limited"). Read only. wayback-lookup stays. | `pnpm ops archive-lookup --json '{"url":"https://blog.example/a-post.html"}'` |
| `x-search-lead` | x-search-lead acts on one lead of an X search channel (the accounts its posts came from — `get channel <slug> --leads [--limit <n>]` lists them, most matches first): {"slug", "handle", "action": "archive" \| "never" \| "restore"}. "archive" creates <handle>-x, an X channel on NO site, by the New channel form's path and starts its first post fetch ("fetch": false skips it; "name"? names it; "dryRun" answers the fields and creates nothing) -> {slug, jobIds}. Refused: not an X search channel, an account an X channel archives already, a slug taken. "never" hides the handle (the channel's xSearch.exclude), "restore" un-hides it -> {exclude, changed}. No model, no request but the new channel's fetch. | `pnpm ops x-search-lead --json '{"slug":"demo-search","handle":"example","action":"archive","dryRun":true}'`<br>`pnpm ops x-search-lead --json '{"slug":"demo-search","handle":"example","action":"never"}'` |
| `read-x-trending` | read-x-trending reads ONE X trending page into an X trending library: {"slug", "url": "https://x.com/i/trending/<number>"}, as one job on X's queue (the fresh-jar rule, the X alert and X's job gap apply; ask get x-session first). The page is opened in the connected X profile's browser, every GraphQL answer the page itself fetched is saved raw with a screenshot (channels/<slug>/trending/reads/<readId>/), and the posts are parsed from the saved file and written as the library's posts. A read lists posts; it archives no media and no thread. "topic": a topic's id or name, or a new one's name (absent: the topic this page was read into before, else a new one named for it). "scrolls": 1-20 moves to the bottom of the page (default: the channel's cap, else 8); "posts": stop once 1-200 are seen (else 60); a read also stops after two scrolls with nothing new, and at once on a 429, a 403 or a login wall. A 429 leaves X alone for 15 minutes (no read is queued or started before the time its sentence names); a page that stops answering ends the read within 6 minutes. Nothing retries. "probe": true saves the capture and its summary and writes no post. "headed": true opens a window on the editor's desktop. {"slug", "reparse": "<readId>"} parses a saved read again OFFLINE (X is asked nothing; a read left with no record takes "url" too). No fresh jar needed. --wait prints the log's @@read-x-trending {ok, mode, read, outcome, stop, responses, operations (names and sizes, never a body), posts: {onPage, added}, topic, sentence}; a capture with no post the parser knows ends ok, "read saved, nothing recognised". Refused before a job: not a library, not a trending page URL, a cap out of range, no connected X profile, X's Connect or Refresh in flight, a stale jar. A library is made with create-channel, "platform": "x-trending" (no "url", no "sites": it is private, never on a site, in no index build; "xTrendingMaxScrolls"?, "xTrendingMaxPosts"? set its caps). | `pnpm ops read-x-trending --json '{"slug":"trending","url":"https://x.com/i/trending/1900000000000000001","probe":true}' --wait`<br>`pnpm ops read-x-trending --json '{"slug":"trending","url":"https://x.com/i/trending/1900000000000000001","topic":"Kettle festival"}' --wait`<br>`pnpm ops read-x-trending --json '{"slug":"trending","reparse":"tr-01JA0000000000000000000000"}' --wait` |
-| `judge-trending` | judge-trending judges posts of an X trending library: {"slug", "set": \[{"id" \| "thread", "state", "note"?}, ...\], "by"?}. "id" is a post of the library; "thread" a thread's ROOT post id (get trending gives each post's thread), judging every post of it that has no judgement of its own. "state": keep, drop, later, or undecided (the judgement is removed: no entry is undecided). "note": up to 2000 characters. "by": "agent" (the default) or "operator". An agent's judgement is a suggestion: an agent's write over a judgement the operator made is skipped for that id and named in skipped, and the rest is written. Answers {written, skipped: \[{id \| thread, reason}\], kept, archive?} - kept names the posts whose judgement BECAME keep. A keep archives them: ONE capture-posts job on X's queue (a screenshot, the context, a reply's thread shot, the media), its id in archive.jobId; "archive": false marks only. When that job is refused (a stale jar, the X alert, X cooling down) the judgements are written all the same and archive.error says why; capture-posts {slug, ids, "thread": true, "keptMedia": true} archives them later. Drop deletes nothing: the post, its capture and its media stay, and a later keep puts it back. An id the library does not hold is skipped by name, not refused. | `pnpm ops judge-trending --json '{"slug":"trending","set":[{"id":"1900000000000001001","state":"keep","note":"the opening"},{"thread":"1900000000000001002","state":"drop"}]}'` |
-| `watch-trending` | watch-trending watches a topic of an X trending library: {"slug", "topic", "on": true, "intervalMinutes"?, "hours"?, "shots"?, "by"?}. While a topic is watched its trending page is read again every intervalMinutes (15-1440; default the library's, else 30) until hours from now (1-168; else 48), each tick the SAME single read-x-trending job on X's queue, started by the editor's own scan (once a minute, at most one read per scan, none while a read or capture of the library waits its turn). A topic of several pages reads one page per tick, in turn. At most 4 topics of a library are watched at once (its maxTopics). A new post's media is fetched at once from X's media CDN, no page opened; "shots": true also screenshots every new post. "on": false stops it. A WATCH RUNS ONLY WHILE X'S COOKIE JAR IS UNDER ITS LIMIT (60 minutes): the editor never refreshes the jar by itself, so a watch pauses when the jar goes stale (X's jar-age alert goes up, /review lists the paused watches) and resumes at the first scan after Refresh cookies on /cookies. It does not cover a night nobody presses Refresh in. The X alert, a rate-limit cooldown and a missing profile pause it the same way. A post a page showed before and does not show at a read that reached the page's end is recorded gone from the page at that time (get trending: gone) - never "deleted". A page X no longer has is not read again, and ends the watch when it was the topic's last. {"slug", "settings": {"maxVideoMb"?, "intervalMinutes"?, "hours"?, "maxTopics"?}} changes the library's defaults; {"slug", "tick": true} runs one scan now. get trending shows each topic's watch and what it is doing (watch.sentence). | `pnpm ops watch-trending --json '{"slug":"trending","topic":"kettle-festival","on":true,"intervalMinutes":30,"hours":48}'`<br>`pnpm ops watch-trending --json '{"slug":"trending","topic":"kettle-festival","on":false}'` |
+| `judge-trending` | judge-trending judges posts of an X trending library: {"slug", "set": \[{"id" \| "thread", "state", "note"?}, ...\], "by"?}. "id" is a post of the library; "thread" a thread's ROOT post id (get trending gives each post's thread), judging every post of it that has no judgement of its own. "state": keep, drop, later, or undecided (the judgement is removed: no entry is undecided). "note": up to 2000 characters. "by": "agent" (the default) or "operator" - the caller's word: an agent says "agent". An agent's judgement is a suggestion: an agent's write over a judgement the operator made is skipped for that id and named in skipped, and the rest is written; a post the operator judged through its thread is the operator's too. Answers {written, skipped: \[{id \| thread, reason}\], kept, archive?} - kept names the posts whose judgement BECAME keep. A keep archives them: ONE capture-posts job on X's queue (a screenshot, the context, a reply's thread shot, the media), its id in archive.jobId; "archive": false marks only. When that job is refused (a stale jar, the X alert, X cooling down) the judgements are written all the same and archive.error says why; capture-posts {slug, ids, "thread": true, "keptMedia": true} archives them later. Drop deletes nothing: the post, its capture and its media stay, and a later keep puts it back. An id the library does not hold is skipped by name, not refused. | `pnpm ops judge-trending --json '{"slug":"trending","set":[{"id":"1900000000000001001","state":"keep","note":"the opening"},{"thread":"1900000000000001002","state":"drop"}]}'` |
+| `watch-trending` | watch-trending watches a topic of an X trending library: {"slug", "topic", "on": true, "intervalMinutes"?, "hours"?, "shots"?, "by"?}. While a topic is watched its trending page is read again every intervalMinutes (15-1440; default the library's, else 30) until hours from now (1-168; else 48), each tick the SAME single read-x-trending job on X's queue, started by the editor's own scan (once a minute, at most one read per scan, none while a trending read or capture of ANY library waits its turn: every library's ticks are one stream). A topic of several pages reads one page per tick, in turn. At most 4 topics of a library are watched at once (its maxTopics). A new post's media is fetched at once from X's media CDN, no page opened; "shots": true also screenshots every new post. "on": false stops it. A WATCH RUNS ONLY WHILE X'S COOKIE JAR IS UNDER ITS LIMIT (60 minutes): the editor never refreshes the jar by itself, so a watch pauses when the jar goes stale (X's jar-age alert goes up, /review lists the paused watches) and resumes at the first scan after Refresh cookies on /cookies. It does not cover a night nobody presses Refresh in. That limit is the watch's own, whatever the login source or the setting: a jar whose age cannot be read, a limit set to 0 and an unreadable settings file all pause it. The X alert, a rate-limit cooldown and a missing profile pause it the same way. Three reads in a row that do not end "read" (a rate limit, a 403, a page that will not load) pause it until someone switches it on again. A post a page showed before and does not show at a read whose capture shows the page's end (asked for more, the page had none, no answer failed) is recorded gone from the page at that time (get trending: gone) - never "deleted". A page X no longer has is not read again, and ends the watch when it was the topic's last. {"slug", "settings": {"maxVideoMb"?, "intervalMinutes"?, "hours"?, "maxTopics"?}} changes the library's defaults; {"slug", "tick": true} runs one scan now (refused on an idle boot; two asks at once are one scan). get trending shows each topic's watch and what it is doing (watch.sentence). | `pnpm ops watch-trending --json '{"slug":"trending","topic":"kettle-festival","on":true,"intervalMinutes":30,"hours":48}'`<br>`pnpm ops watch-trending --json '{"slug":"trending","topic":"kettle-festival","on":false}'` |
| `wayback-lookup` | wayback-lookup answers the Wayback Machine's captures of a page (its CDX API): {"url"} or a record's {"slug", "id"} (its metadata's page, else its availability check's, else the playlist's), "okOnly"?: only the captures that recorded a 200, "limit"?: 100 (at most 500) -> {url, found, captures: \[{timestamp, status, mimetype?, replayUrl}\]}, oldest first. One request through the editor's Wayback client, with archive.org's manners (one at a time, 2 s apart, 429s waited out). Read only. A URL the Wayback Machine answers 403 for is excluded: HTTP 403, "refusal": "excluded" ("excluded from the Wayback Machine (cause unknown)"). | `pnpm ops wayback-lookup --json '{"slug":"demo-channel","id":"dQw4w9WgXcQ","okOnly":true}'` |
| `find-copy` | find-copy looks for a copy of every gone recording (deleted or private) a report cites, and fetches the cited windows from it, as a find-copy job: {"article"} \| {"articles": true} \| {"siteId"}, "dryRun"?, "retryFailed"? -> {jobId}. Per YouTube recording, one at a time: the Wayback Machine when it holds the video (the check yt-dlp makes, not a capture of the page), then archive.org (a mirror of the upload: its identifier, a file name or its original URL names the id, and the file has the recording's length). A copy a fetch failed from at its source (404, 410, 403, unreachable; never our own format selector) is not picked again, unless "retryFailed": true. A copy's windows are cut with a lenient selector (a direct file of unknown height: then the best single file). Every copy's windows go to ONE fetch-windows job on the archive.org clip queue, the copy's URL as each window's page, so the clips land in the recording's own clips/ with the copy (wayback or archive.org, and its URL) in each window's provenance. A recording with no copy is left: its moments show their words only, marked "Source deleted". The log ends with @@find-copy {recordings: \[{slug, id, gone, watchUrl, youtubeId, windows, failedBefore, tried, copy?, outcome}\], items, stopped?, fetchJobId?, refused?}. dryRun looks and starts no fetch; a cancelled job starts none. The scope mode (release 31): {"slug"} \| {"siteId"}, "gone": "no-transcript" \| "all", "dryRun"?, "max"? (10, at most 200), "retryFailed"? -> {jobId}. Every gone (deleted or private) video of the channel, or of the site's channels, that holds no audio or video ("no-transcript": and no transcript; "all": the transcribed ones too, after) is looked for the same way, at most max per run; a video whose last copy attempt found none or failed in the last 30 days is left out unless "retryFailed". Each copy's WHOLE audio is fetched into the video's own record (audio.<fmt>; its metadata stays the original's, the copy is in wayback.json or archiveorg.json and copy-attempts.json) by ONE fetch-copies job on archive.org's download queue, one at a time; the transcription lane then transcribes it like any downloaded audio. A video neither source holds is recorded none-found. dryRun asks the same (paced) questions and records and fetches nothing. The log ends with @@find-copy {scope, gone, dryRun, max, channels, eligible, skipped, looked: \[{slug, id, gone, noTranscript, watchUrl, youtubeId, tried, copy?, via?, outcome}\], left, items, stopped?, fetchJobId?, refused?}. The page mode (release 37): {"article"} \| {"articles": true} \| {"siteId"}, "pages": true, "channel"?, "max"? (10, at most 100), "dryRun"? -> {jobId}. Every page a report cites ("page" citations) whose original is gone at its own site gets the Wayback capture nearest the citation's date (one CDX lookup) imported into the Wayback pages channel named, else the one whose targets cover the page; a cited page record whose original is gone has its capture imported again when it is not stored. A live page is left (save-page-now it). The answer names the record each citation should cite (pointTo) and the citation as a post citation of it (as); the report is not rewritten. A find-copy job on the archive.org queue; dryRun asks the same paced questions and imports nothing. The log ends with @@find-copy {host, dryRun, max, pages, posts, items: \[{citedBy, url, original, channel?, capture?, outcome, detail, pointTo?, as?, records?}\], left, stopped?}. | `pnpm ops find-copy --json '{"article":"demo-article","dryRun":true}'`<br>`pnpm ops find-copy --json '{"article":"demo-article"}' --wait`<br>`pnpm ops find-copy --json '{"article":"demo-article","retryFailed":true}' --wait`<br>`pnpm ops find-copy --json '{"siteId":"demo-site","gone":"no-transcript","dryRun":true}' --wait`<br>`pnpm ops find-copy --json '{"slug":"demo-channel","gone":"all","max":5}' --wait`<br>`pnpm ops find-copy --json '{"article":"demo-article","pages":true,"dryRun":true}' --wait`<br>`pnpm ops find-copy --json '{"siteId":"demo-site","pages":true,"channel":"demo-pages"}' --wait` |
| `wayback-scan` | wayback-scan lists the Wayback Machine's captures of a Wayback pages channel's targets (config wayback.targets) into its wayback-scan.json, as a wayback-scan job on archive.org's queue: {"slug", "dryRun"?, "maxRows"? (50000, at most 200000), "full"?} -> {jobId}. The CDX API per target (its matchType exact \| prefix \| host \| domain, status 200, its mimes — text/html unless it names text/plain or application/json — collapse=digest, its from/to), in pages of 5,000 with a resume key; obvious assets (css, js, images, fonts) dropped unless the target's include names them. One row per distinct (URL, digest) with first/last seen. No bodies: import-page fetches a capture. A run cut short (the row cap, a refusal, a drain) keeps each target's resume key and the next continues; once every target is complete the next run is a new pass, from 30 days before the last began, and what it adds is marked new; "full" starts a new pass from each target's start. Paced as archive.org asks (one at a time, 2 s apart, 429/503 waited out; a refusal stops the job). dryRun asks nothing and writes nothing: it logs the next request per target. The log ends with @@wayback-scan {slug, dryRun, pass, newPass, targets: \[{url, match, requests, rows, added, complete, resumeKey?, next?}\], requests, rowsRead, added, totalRows, complete, stopped?, error?}. | `pnpm ops wayback-scan --json '{"slug":"demo-pages","dryRun":true}' --wait`<br>`pnpm ops wayback-scan --json '{"slug":"demo-pages"}' --wait` |
diff --git a/OPERATING.md b/OPERATING.md
@@ -706,8 +706,9 @@ pnpm ops watch-trending --json '{"slug":"trending","topic":"kettle-festival","o
neither blocks a press nor is blocked by one. Refresh the cookies first, then read.
- **A browser that will not close is killed, by its own pid.** The pid is the one Chromium wrote into the
profile's `SingletonLock`, and it is signalled only when that process's command line names this exact profile
- directory. Anywhere but Linux, or when that check does not hold, nothing is killed: the browser is closed again
- and the job's log says why.
+ directory, is a Chromium binary, is the browser itself (not one of its child processes), and the lock was
+ written on this machine. Anywhere but Linux, or when that check does not hold, nothing is killed: the browser
+ is closed again and the job's log says why.
### Judge, keep and watch a library
@@ -717,11 +718,15 @@ pnpm ops watch-trending --json '{"slug":"trending","topic":"kettle-festival","o
whole thread (`get trending` gives each post's `thread`); a post's own judgement comes before its thread's.
Judgements are in `channels/<slug>/trending/judgements.json`, with who decided, when and the note.
- **An agent's judgement is a suggestion.** An agent's write over a judgement the operator made is skipped for
- that id and named in `skipped`; the rest of the ask is written. The operator overturns anything.
+ that id and named in `skipped`; the rest of the ask is written. A post the operator judged through its thread
+ is the operator's too, so an agent's post-level write for it is skipped. The operator overturns anything.
+ `"by"` is the caller's word: an agent says `"agent"`.
- **Keep archives the post.** The posts that became keep go into one `capture-posts` job on X's queue: a
screenshot, the post's context, a reply's thread shot, and its media. `"archive": false` marks only. If the
capture is refused (a stale jar, the X alert, X cooling down) the judgement is written all the same and
`archive.error` says why; `capture-posts {"slug", "ids", "thread": true, "keptMedia": true}` archives them later.
+ A post dropped again before that job reaches it gets no logged-in download: the judgements are read again
+ immediately before each one. A library's capture runs on X's queue only (`"queueKey"` is refused).
- **Drop deletes nothing.** The post, its capture and its media stay, and a later keep puts it back. Nothing in
this release removes a capture.
- **A library's media comes from X's media CDN and is kept once.** The saved capture of the read that showed a
@@ -736,33 +741,49 @@ pnpm ops watch-trending --json '{"slug":"trending","topic":"kettle-festival","o
post is kept, as is a file the capture names no CDN address for. A kept post has no per-file cap, and a file the
CDN cannot serve is downloaded the logged-in way. `get trending` shows each post's `capture` and `mediaOwed`.
- **How the CDN can refuse.** A 429 stops the job at once and leaves X alone for 15 minutes. A 403 or a 404
- marks that file and the job moves on. Nothing retries by itself.
+ marks that file and the job moves on. After three refusals in a row (a 403, or no answer at all) the job asks
+ the CDN for nothing more and the rest is owed. Nothing retries by itself.
+- **A media index that cannot be read stops the capture.** `trending/media-index.json` that is there and is not
+ JSON fails the job with a sentence naming the file, and nothing is written over it. Repair it or move it away.
- **The media is not in the media tier and is never committed.** No posts channel's `posts-media/` is tiered,
and a library's is not either: it stays on the corpus disk beside the library's text. `trending/.gitignore`
keeps `posts-media/` and `media-store/` out of the corpus's git repo.
- **Watch a topic**: **Watch** on the topic (the operator) or `watch-trending {"slug", "topic", "on": true}`.
The topic's trending page is read again every `intervalMinutes` (15–1440, default 30) until `hours` from now
(1–168, default 48), each tick the same single `read-x-trending` job. The editor scans once a minute and starts
- at most one read per scan, the watch longest overdue, and none while a read or capture of that library is
- queued or running. X's 5-minute gap between jobs applies, and a tick is a read and then a capture, so four
- watched topics at 30 minutes run closer to every 40. A topic of several trending pages reads one page per
+ at most one read per scan, the watch longest overdue, and none while a trending read, a reparse or a capture of
+ **any** library is queued or running. All libraries share that one stream of ticks; the cap of 4 watched topics
+ is per library. X's 5-minute gap between jobs applies, and a tick is a read and then a capture, so four watched
+ topics at 30 minutes run closer to every 40, and a second library slows both. A topic of several trending pages reads one page per
tick, in turn. At most 4 topics of a library are watched at once.
- **A watch runs only while X's cookie jar is under its limit (60 minutes).** The editor never refreshes the jar
by itself, because a refresh is a visit to X. When the jar goes stale the watch pauses: nothing is queued, X's
jar-age banner goes up on the dashboard and /cookies, and **/review** lists the paused watches. It resumes at
the first scan after **Refresh cookies** on /cookies. So a watch does not cover a night nobody presses Refresh
in. The X alert, X cooling down after a rate limit and a missing profile pause it the same way.
+- **The watch's jar limit is its own.** A person's X job is let through when the login comes from the browser
+ (its age cannot be read), when `social.x.maxCookieAgeMinutes` is 0, or when settings cannot be read. A watch is
+ not: whatever the source, it ticks only when the profile's exported jar is between 0 and the limit old (the
+ setting when it is above 0, else 60 minutes). A jar dated in the future, or settings that cannot be read, pause
+ it.
+- **Three failed reads pause a watch for good.** Three reads of a watched topic in a row that do not end "read" (a
+ rate limit, a 403, a login wall, a page that will not load) pause its watch as `failing`. That pause does not
+ end by itself: press **Watch** again, or `watch-trending {"on": true}`. /review lists it.
- **New posts of a watched topic get their media at once.** After a read into a watched topic, one capture job
- takes the read's new posts: their media only, from the CDN, with no page opened. `"shots": true` (**Screenshot
+ takes the read's new posts: their media only, from the CDN, with no page opened. The same job takes the topic's
+ posts whose media an earlier capture left owed, and its posts that have media and were never captured (so
+ switching a watch on fetches the media of what the topic already holds, 80 posts a job). `"shots": true` (**Screenshot
everything new**) also screenshots each new post, a page load apiece.
- **Gone from the page.** A post a page showed before and does not show at a read that reached the page's end is
recorded `gone` with that read's time, and shown as "Gone from the page at …". It is not called deleted: a
- trending page is a ranked list, and a post leaves it by being outranked too. A read that stopped at a cap, was
- cancelled or failed says nothing. A post shown again is no longer gone, and the absence is kept as history.
+ trending page is a ranked list, and a post leaves it by being outranked too. The end has to be in the capture:
+ the page was asked for more and answered with nothing new, and no answer failed or was dropped. A read that
+ stopped at a cap, was cancelled, failed, or simply stopped getting answers says nothing. A post shown again is no longer gone, and the absence is kept as history.
- **A watch ends** at its end time, when it is switched off, or when X no longer has the topic's last trending
page (trending pages expire); each with a sentence in `get trending` (`watch.sentence`).
- **The library's settings**: `watch-trending {"slug", "settings": {"maxVideoMb", "intervalMinutes", "hours",
- "maxTopics"}}`. `{"slug", "tick": true}` runs one scan now.
+ "maxTopics"}}`. `{"slug", "tick": true}` runs one scan now; two asks at once are one scan, and an editor booted
+ with `ARCHILYZER_IDLE_BOOT` refuses it.
- **A restart.** A tick left queued when the editor stops is cancelled; the scan starts another at its next pass,
jar permitting. `ARCHILYZER_IDLE_BOOT` does not arm the scan at all.
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -16,8 +16,12 @@
"Screenshot everything new" is per topic.
- **A watch runs only while X's cookie jar is under 60 minutes old.** The editor does not refresh the jar by
itself, so a watch pauses when the jar goes stale and resumes after Refresh cookies on /cookies. It does not
- cover a night nobody refreshes in. /review lists paused watches.
- - A post a trending page stops showing is marked "Gone from the page at …". That is not a claim it was deleted.
+ cover a night nobody refreshes in. /review lists paused watches. The limit is the watch's own: it holds
+ whatever the login source, and with the cookie-age setting at 0.
+ - All libraries share one stream of ticks: no tick starts while a trending read or capture of any library is
+ queued or running. Three failed reads in a row pause a watch until someone switches it on again.
+ - A post a trending page stops showing is marked "Gone from the page at …", and only when the saved capture
+ shows the page's end. That is not a claim it was deleted.
- A browser that will not close is now killed by its process id, checked against the profile it holds.
- `pnpm ops get trending` and the MCP's `x_trending_topics` / `x_trending_posts` show each topic's watch and each
post's thread, judgement, capture and gone mark.
diff --git a/editor/e2e/x-trending.spec.ts b/editor/e2e/x-trending.spec.ts
@@ -239,10 +239,17 @@ test("an X trending library: judgements, a watch tick, media kept once, gone fro
body: fixtureTimelineBody([FIXTURE_FIRST_PAGE[0], { id: NEW, handle: "spout_clips", text: "Two pictures of the queue.", media: ["photo", "photo"] }]),
},
],
- scrolls: [[], []],
+ // Asked for more, the timeline has none: the page's end, which is what lets a read say "gone".
+ scrolls: [[{ url: `https://x.com/i/api/graphql/fixtureQueryId4/${FIXTURE_TIMELINE_OP}?variables=%7B%7D`, status: 200, body: fixtureTimelineBody([]) }], []],
+ },
+ // The same bytes at both addresses: one file in the library. (The opening
+ // post's two pictures, never captured, are taken by the same job.)
+ media: {
+ [picture(0)]: { text: "FIXTURE PICTURE BYTES" },
+ [picture(1)]: { text: "FIXTURE PICTURE BYTES" },
+ "https://pbs.twimg.com/media/Fixture10010?format=jpg&name=orig": { text: "OPENING PICTURE ONE" },
+ "https://pbs.twimg.com/media/Fixture10011?format=jpg&name=orig": { text: "OPENING PICTURE TWO" },
},
- // The same bytes at both addresses: one file in the library.
- media: { [picture(0)]: { text: "FIXTURE PICTURE BYTES" }, [picture(1)]: { text: "FIXTURE PICTURE BYTES" } },
}),
);
@@ -260,8 +267,11 @@ test("an X trending library: judgements, a watch tick, media kept once, gone fro
expect(await readFile(`${dir}/${NEW}_1.jpg`, "utf8")).toBe("FIXTURE PICTURE BYTES");
expect((await stat(`${dir}/${NEW}_1.jpg`)).ino).toBe((await stat(`${dir}/${NEW}_2.jpg`)).ino);
const index = await readJson<{ blobs: Record<string, { posts: Record<string, string[]>; urls: string[] }> }>(rel(`channels/${SLUG}/trending/media-index.json`));
- expect(Object.values(index.blobs)).toHaveLength(1);
- expect(Object.values(index.blobs)[0].posts).toEqual({ [NEW]: [`${NEW}_1.jpg`, `${NEW}_2.jpg`] });
+ const blobOfNew = Object.values(index.blobs).filter((b) => b.posts[NEW]);
+ expect(blobOfNew).toHaveLength(1);
+ expect(blobOfNew[0].posts).toEqual({ [NEW]: [`${NEW}_1.jpg`, `${NEW}_2.jpg`] });
+ // A post of the watched topic that has media and was never captured is taken by the same job.
+ await expect.poll(async () => (await readdir(t(`channels/${SLUG}/trending/posts-media/${A}`)).catch(() => [] as string[])).sort(), { timeout: 60_000 }).toEqual([`${A}_1.jpg`, `${A}_2.jpg`, "capture.json"]);
// Never committed, and never where a posts channel keeps its captures.
expect(await readFile(t(`channels/${SLUG}/trending/.gitignore`), "utf8")).toMatch(/^posts-media\/$/m);
expect(await pathExists(rel(`channels/${SLUG}/posts-media`))).toBe(false);
@@ -282,7 +292,7 @@ test("an X trending library: judgements, a watch tick, media kept once, gone fro
const paused = await post("watch-trending", { slug: SLUG, tick: true });
expect(paused.json.scan).toMatchObject({ paused: [{ slug: SLUG, topic: "kettle-festival", reason: "jar" }] });
expect((paused.json.scan as { enqueued?: unknown }).enqueued).toBeUndefined();
- expect((await listing()).topics[0].watch?.sentence).toMatch(/PAUSED since .* UTC: X cookies were last refreshed 2 h ago \(limit 60 min\)/);
+ expect((await listing()).topics[0].watch?.sentence).toMatch(/PAUSED since .* UTC: X cookies were last refreshed 2 h ago \(limit 60 min for a watch\)/);
expect((await stat(t(".x-session/cookies.txt"))).mtimeMs).toBeLessThan(Date.now() - 60 * 60_000);
await page.goto("/review");
const section = page.getByRole("region", { name: "paused watches" });
diff --git a/plans/x-trending.md b/plans/x-trending.md
@@ -56,7 +56,9 @@ These are rulings, not reasons. A later ruling overturns an earlier one only whe
be judged too: its key is its root post's id, and a post's effective judgement is its own, else its
thread's.
- An agent's judgement is a suggestion. An agent's write never overrides an operator's: it is skipped
- for that id and reported.
+ for that id and reported. That holds through a thread: a post the operator judged by its thread is the
+ operator's. `by` is the caller's word: the ops route cannot tell who asks, so an agent is trusted to say
+ "agent"; the operator's hand is the page's buttons and slice 3's judge view.
- Drop deletes nothing and is reversible. Purging a dropped post's capture is the operator's press
(slice 3).
@@ -79,7 +81,17 @@ These are rulings, not reasons. A later ruling overturns an earlier one only whe
- A post seen before and absent from a read that reached the page's end is recorded as "gone from the
page at <time>". It is never called deleted. A capped, cancelled or failed read asserts nothing.
- A trending page X has retired ends the watch with a sentence.
-- The watch has its own scan timer, armed below the idle gate (`ARCHILYZER_IDLE_BOOT` arms nothing).
+- The watch has its own scan timer, armed below the idle gate (`ARCHILYZER_IDLE_BOOT` arms nothing, and
+ refuses a scan asked for by hand).
+- THE WATCH'S JAR RULE IS ITS OWN. The exemptions a person's job has (the browser as login source, a
+ cookie-age setting of 0, settings that cannot be read) do not apply to a watch: it ticks only when the
+ profile's exported jar is between 0 and the limit old (the setting when above 0, else 60 minutes).
+- ALL LIBRARIES SHARE ONE STREAM OF TICKS: no tick starts while a trending read, a reparse or a capture of
+ any library is queued or running. The cap on watched topics stays per library.
+- THREE READS IN A ROW that do not end "read" pause a watch ("failing") until a person switches it on
+ again.
+- "Gone from the page" needs the page's end IN THE CAPTURE: asked for more, the page had nothing new, and
+ no answer failed or was dropped.
**Later slices**
@@ -131,15 +143,24 @@ These are rulings, not reasons. A later ruling overturns an earlier one only whe
job's budget; each file is a hardlink to its blob in `trending/media-store/<aa>/<sha256>.<ext>`, and
`trending/media-index.json` maps hash to bytes, addresses and posts, and remembers addresses found over
the cap. A media half says whether it is owed to the next capture or until the post is kept.
- `removeXTrendingPostCapture` removes a capture and only the blobs nothing else links to; no door calls it.
+ `removeXTrendingPostCapture` removes a capture and only the blobs nothing else links to, and refuses
+ while a capture of the library is queued or running (its caller answers that); no door calls it. A media
+ index that is there and cannot be read fails the job and is never written over. Three refusals in a row
+ from the CDN end a job's media half. The logged-in fallback asks, immediately before each download,
+ whether the post is still kept. A library's capture takes no queue override.
- **Watch** (`common/lib/xTrending/watch.ts`, `common/controller/xTrendingWatch.ts`): `trending/watch.json`,
- `watch-trending`, a scan on its own timer armed below the idle gate, at most one read per scan, pauses
- with a reason when X would refuse, the jar never refreshed. A read's end tells the watch
+ `watch-trending`, a scan on its own timer armed below the idle gate, at most one read per scan across
+ all libraries, pauses with a reason when X would refuse (by the watch's own jar rule, `watchRefusal`),
+ the jar never refreshed, a `failing` pause after three reads that did not end "read". One scan at a time,
+ armed or asked for by hand (`runXTrendingWatchScan`). A read's end tells the watch
(`noteXTrendingWatchRead`) and queues one capture for a watched topic's new posts
- (`xTrendingWatchFollowUp`). `gone` marks are written by `recordXTrendingRead` for a read that reached the
- page's end.
+ (`xTrendingWatchFollowUp`), for what a capture left owed, and for the topic's posts with media that were
+ never captured. `gone` marks are written by `recordXTrendingRead` only when the scrolling went idle, no
+ answer failed, and the parser finds the page's end in the capture (`pageEnd`). A post's thread key is
+ decided when it is placed and kept in its membership record.
- **/review** lists paused watches (`common/views/review.ts` `pausedWatchRows`).
-- **The kill** (`common/social/profileBrowserPid.ts`) and the reparse's refusal inside its job.
+- **The kill** (`common/social/profileBrowserPid.ts`: the lock's host, the exact profile directory, a
+ Chromium binary, the browser process) and the reparse's refusal inside its job.
- **Pins.** `common/bin/xTrendingPrivacy.test.ts`, `common/publish/xTrendingReportDoor.test.ts`,
`mcp/src/xTrendingPrivacy.test.ts` and `umtool/lib/report/xTrendingLibrary.test.mjs` plant a kept,
captured and watched post (`common/lib/xTrending/__fixtures__/slice2Library.ts`) and look for it in what
diff --git a/scripts/archilyzer-ops.mjs b/scripts/archilyzer-ops.mjs
@@ -1935,9 +1935,11 @@ export function usage() {
" post's thread), judging every post of it that has no judgement of its",
' own. "state": keep, drop, later, or undecided (the judgement is',
' removed: no entry is undecided). "note": up to 2000 characters. "by":',
- ' "agent" (the default) or "operator". An agent\'s judgement is a',
- " suggestion: an agent's write over a judgement the operator made is",
- " skipped for that id and named in skipped, and the rest is written.",
+ ' "agent" (the default) or "operator" - the caller\'s word: an agent says',
+ ' "agent". An agent\'s judgement is a suggestion: an agent\'s write over',
+ " a judgement the operator made is skipped for that id and named in",
+ " skipped, and the rest is written; a post the operator judged through",
+ " its thread is the operator's too.",
" Answers {written, skipped: [{id | thread, reason}], kept, archive?} -",
" kept names the posts whose judgement BECAME keep. A keep archives them:",
" ONE capture-posts job on X's queue (a screenshot, the context, a",
@@ -1955,24 +1957,31 @@ export function usage() {
" intervalMinutes (15-1440; default the library's, else 30) until hours",
" from now (1-168; else 48), each tick the SAME single read-x-trending",
" job on X's queue, started by the editor's own scan (once a minute, at",
- " most one read per scan, none while a read or capture of the library",
- " waits its turn). A topic of several pages reads one page per tick, in",
- " turn. At most 4 topics of a library are watched at once (its",
- " maxTopics). A new post's media is fetched at once from X's media CDN,",
+ " most one read per scan, none while a trending read or capture of ANY",
+ " library waits its turn: every library's ticks are one stream). A topic",
+ " of several pages reads one page per tick, in turn. At most 4 topics of",
+ " a library are watched at once (its maxTopics). A new post's media is fetched at once from X's media CDN,",
" no page opened; \"shots\": true also screenshots every new post.",
' "on": false stops it. A WATCH RUNS ONLY WHILE X\'S COOKIE JAR IS UNDER',
" ITS LIMIT (60 minutes): the editor never refreshes the jar by itself,",
" so a watch pauses when the jar goes stale (X's jar-age alert goes up,",
" /review lists the paused watches) and resumes at the first scan after",
" Refresh cookies on /cookies. It does not cover a night nobody presses",
- " Refresh in. The X alert, a rate-limit cooldown and a missing profile",
- " pause it the same way. A post a page showed before and does not show",
- " at a read that reached the page's end is recorded gone from the page",
- " at that time (get trending: gone) - never \"deleted\". A page X no",
+ " Refresh in. That limit is the watch's own, whatever the login source",
+ " or the setting: a jar whose age cannot be read, a limit set to 0 and",
+ " an unreadable settings file all pause it. The X alert, a rate-limit",
+ " cooldown and a missing profile pause it the same way. Three reads in a",
+ " row that do not end \"read\" (a rate limit, a 403, a page that will",
+ " not load) pause it until someone switches it on again. A post a page",
+ " showed before and does not show at a read whose capture shows the",
+ " page's end (asked for more, the page had none, no answer failed) is",
+ " recorded gone from the page at that time (get trending: gone) - never",
+ " \"deleted\". A page X no",
" longer has is not read again, and ends the watch when it was the",
' topic\'s last. {"slug", "settings": {"maxVideoMb"?, "intervalMinutes"?,',
' "hours"?, "maxTopics"?}} changes the library\'s defaults; {"slug",',
- ' "tick": true} runs one scan now. get trending shows each topic\'s',
+ ' "tick": true} runs one scan now (refused on an idle boot; two asks at',
+ " once are one scan). get trending shows each topic's",
" watch and what it is doing (watch.sentence).",
"",
'x-run fetches several X posts channels IN SEQUENCE as ONE job on X\'s',
@@ -2041,10 +2050,13 @@ export function usage() {
" library's maxVideoMb (100 MB) and whatever is past the job's budget (40",
" files / 200 MB) is owed: asked for again by the next capture of that",
" post. A 429 from the CDN stops the job and leaves X alone for 15",
- " minutes; a 403 or 404 marks the file; nothing retries. \"keptMedia\":",
- " true is for posts marked keep (refused for any other id): no per-file",
- " cap, and a post the CDN cannot serve whole is downloaded the logged-in",
- " way.",
+ " minutes; a 403 or 404 marks the file; three refusals in a row (a 403,",
+ " or no answer) and the job asks the CDN no more; nothing retries.",
+ " \"keptMedia\": true is for posts marked keep (refused for any other",
+ " id): no per-file cap, and a post the CDN cannot serve whole is",
+ " downloaded the logged-in way, if it is still kept when that download",
+ " would start. A library's capture runs on X's queue only: \"queueKey\"",
+ " is refused for it.",
"",
'persist-videos saves specific videos, across channels, to the saved-video',
' store: {"items": [{"slug", "id"}, ...]}. "format": "original" |',
diff --git a/scripts/archilyzer-ops.test.mjs b/scripts/archilyzer-ops.test.mjs
@@ -1157,7 +1157,8 @@ test("judge-trending posts its body; its help says an agent never replaces the o
assert.equal(p.path, "/api/ops/judge-trending");
assert.deepEqual(p.body, { slug: "lib", set: [{ id: "1900000000000001001", state: "keep" }] });
assert.match(usage(), /judge-trending judges posts of an X trending library/);
- assert.match(usage(), /an agent's write over a judgement the operator made is\n\s+skipped/);
+ assert.match(usage(), /an agent's write over\n\s+a judgement the operator made is skipped/);
+ assert.match(usage(), /a post the operator judged through\n\s+its thread is the operator's too/);
});
test("watch-trending posts its body; its help says a watch runs only on a fresh jar", () => {
@@ -1167,4 +1168,6 @@ test("watch-trending posts its body; its help says a watch runs only on a fresh
assert.deepEqual(p.body, { slug: "lib", topic: "kettles", on: true, intervalMinutes: 30 });
assert.match(usage(), /A WATCH RUNS ONLY WHILE X'S COOKIE JAR IS UNDER\n\s+ITS LIMIT/);
assert.match(usage(), /It does not cover a night nobody presses\n\s+Refresh in/);
+ assert.match(usage(), /none while a trending read or capture of ANY\n\s+library waits its turn/);
+ assert.match(usage(), /pause it until someone switches it on again/);
});