commit e876046d538b0d5fc389ad9562f101bcc8b90451
parent c0b977b798422d50403dc946ec20da0f71b72040
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 18 Nov 2026 18:20:42 -0500
plans: x-followups -- what the first real trending read showed, as fixed; the guide and the changelog say what changed
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
3 files changed, 78 insertions(+), 1 deletion(-)
diff --git a/OPERATING.md b/OPERATING.md
@@ -509,6 +509,13 @@ pnpm ops capture-posts --json '{"slug":"example-x","ids":["<postId>"]}' --wait
`posts-state.json` from before the split has one `cursor`. It is read as the backfill's place and rewritten on
the next fetch. The job log's first line names the mode (`— sync new, since …` / `— resume backfill, from its
saved resume point`).
+- **A resumed backfill ends only at the timeline's end, its budget (180 min) or a cap.** Posts already archived
+ are skipped, never taken for the end (`100 already-archived posts in a row: … it skips them and reads on`), and
+ the saved place is cleared only when gallery-dl walked to the timeline's end. X's timeline pages back a few
+ thousand posts; below that gallery-dl goes on by search (`from:<handle> max_id:<id>`), and the place saved there
+ is the search's (`3_<id>/`), not the last timeline page. A resume whose first posts are the timeline's newest
+ did not continue from its place: it stops at once with a sentence and keeps the place. If a place is lost,
+ `fetch-posts {"older": true}` walks down from the oldest archived post.
- **Pacing is enforced, not advised** (plans/pacing-guard.md). Every job that asks a platform waits its
platform queue's gap after the previous one there ended — `pacing.jobGapSeconds`: Instagram 600 s, X 300 s,
forums and Bluesky 60 s, everything else 20 s (set on /settings) — and its /jobs row and log say so (`waiting 4m12s: X
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -1,6 +1,35 @@
# Changelog
## [Unreleased]
+- **A trending page's topic carries X's title and summary, and a read says which tab it saw.** The first real read
+ of a trending page named its topic `Trending <number>`: the page's own answer was never parsed.
+ - A topic you did not name is called by the page's title. One still called `Trending <number>` takes the title at
+ the next read or `reparse` of a capture that has it, and the job's sentence says so. A topic made with a name,
+ or renamed since by you or an agent, is never renamed by a read.
+ - The channel page's Topics, `pnpm ops get trending`, the MCP's `x_trending_topics` and umtool's library page
+ (and `umtool library topics`) show X's title, its summary and when X last updated them, as X's words.
+ - A trending page has tabs (`Top`, `Latest`). A read sees the one the page opens on and says which, in its
+ sentence, in `read.json` and per post. The other tab is not read. "Gone from the page" compares reads of the
+ same tab only.
+ - The page's end is found in what the real page sends: a timeline's later answers carry their cursors in
+ replacement instructions, not as entries. The end of a timeline itself has not been seen yet (the first read
+ stopped at its post cap), so its shape is not assumed: nothing is marked gone until a read reaches an end.
+- **`pnpm archilyzer posts fetch` refuses an X channel.** Run from the command line a fetch had no queue, no gap
+ between X jobs, no fresh-jar rule, no X alert and no cooldown after a rate limit. It now answers with one sentence
+ naming `pnpm ops fetch-posts`, in every mode and for every X fetcher and an X search channel. A Bluesky account,
+ a forum thread (`--pages N`) and a web page are fetched from there as before.
+- **A resumed X history walk no longer ends as "caught up" and loses its place.** A long first
+ full-history walk of an X account stopped at its 180-minute budget; Resume backfill then read 100 posts already
+ archived, said "caught up", wrote nothing and cleared the saved place.
+ - The cause: below what X's timeline pages back, gallery-dl goes on by search and logs no cursor there, so the
+ place saved was the last timeline page, thousands of posts above where the walk stood. The search's own page
+ marker is now the place.
+ - A resumed backfill skips posts already archived and reads on. It ends at the timeline's end, its budget or a
+ cap, and only the timeline's end clears its place.
+ - A resume whose first posts are the timeline's newest did not continue from its place: it stops at once with a
+ sentence and keeps the place, instead of walking the whole timeline again.
+ - A place already lost is not restored by this. `pnpm ops fetch-posts --json '{"slug":"…","older":true}'` walks
+ down from the oldest archived post.
- **An Instagram account can be archived as a posts channel.**
- An `instagram.com/<account>/` URL on the New channel form (or `pnpm ops create-channel`) makes one: posts and
reels with their text, date, link and media. A carousel is one post with several media.
diff --git a/plans/x-trending.md b/plans/x-trending.md
@@ -341,9 +341,50 @@ again by the watch; keeping the post asks again.
- A file system that keeps no birth time leaves the directory proof with the inode alone.
- The library's settings still have no form.
+## The first real read, as fixed (lane `lane/x-followups`, 18 Nov)
+
+The first real read of a trending page saved 12 answers and 79 posts and stopped at its post cap after three
+scrolls. What it showed, and what changed (shapes with invented data: `common/social/__fixtures__/xTrendingRealShape.ts`):
+
+- **The page's own answer was never parsed.** Slice 1 reserved `title` and `summary` on a topic's source "once the
+ parser knows where the page keeps them" and named every unnamed topic `Trending <number>`. The page keeps them in
+ one answer: `data.<key>.result.page` with `article.title`, `article.article_text.text`, `last_updated_at_ms` and
+ `post_timelines[] = {label, post_timeline.id}` (two tabs). `trendPageOf` finds it by shape.
+- **The topic's name.** An unnamed topic is born with the page's title (its id stays `t-<number>`). A topic still
+ carrying the fallback name for that page takes the title at a read or a reparse. A topic made with a name asked
+ for, or whose last organise step is a rename, is never renamed by a read; a title another topic answers to is
+ not taken. One function decides, inside the topics file's lock (`recordXTrendingRead`).
+- **Tabs.** A timeline request names its timeline (`variables.timelineId`) and, after the first, its cursor. The
+ read's tab is the page's tab with that timeline id: kept in `read.json` (`tabs`: label and count), on the
+ source's read and on each sighting (`seen[].tab`); a reparse fills it in. A read sees the tab the page opens on.
+- **The page's end.** The first answer of a timeline ends with cursor entries; every later one carries its cursors
+ in `TimelineReplaceEntry` instructions. `timelineShapeOf` reads both. The continuation that shows the end is the
+ last answer's own timeline's; a capture listing two timelines shows no end; and "gone" does not count a sighting
+ known to be another tab's.
+- **Not in the capture: the end of a timeline.** No builder guesses it. The rule stays what review 2 N4 made it
+ (the continuation from the previous bottom cursor brought nothing new, and nothing failed), which needs no
+ knowledge of the end's shape; whether the real page ever sends such an answer is still unseen.
+
+**What reading "Latest" would need** (not built). It is where a post that is deleted quickly would first show.
+(1) A second read of the same page with the tab pressed: the reader clicks the tab named "Latest" in the page (it
+never builds a request), waits for the timeline request whose `timelineId` is that tab's, then scrolls as now. (2)
+One job per tab, or one job for both under the same caps: a ruling, since each tab costs its own page of requests
+per scroll. (3) `read-x-trending {"tab": "Latest"}` and the watch's choice of tab per topic. (4) The store is
+ready: sightings, reads and the gone rule are per tab, and the parser refuses an end for a capture that lists two
+timelines, so a two-tab read must be parsed per timeline (the answers are already keyed by it).
+
+**Ignored in the capture, listed.** `TrendRelevantUsers` and the first timeline answer's accounts module: the
+accounts X names for the trend (the library's accounts listing counts authors of posts instead). `useStoryTopicQuery`:
+other trends of the same story, with names and post counts (could propose pages to read). `result.contexts.topics`
+and the page's `disclaimer`. A failed answer of ANY of the page's own operations (the badge poll included) makes a
+read assert nothing about the page's end: conservative, left so.
+
## Open
-- The real page's shape is confirmed only by the first probe. The parser is built so that a change is
+- The END of a timeline is confirmed by no capture yet (above). The parser is built so that a change is
local to `common/social/xTrendingParse.ts`.
+- With the default post cap (60) the first real read stopped at the cap after three scrolls: a read of a busy page
+ never reaches its end, so "gone from the page" is never said of it. Raising `xTrendingMaxPosts` is the
+ operator's choice (each scroll is one more request).
- Whether a watch may keep the jar fresh by itself is the operator's to rule; until then the jar rule
above stands.