commit 875dd221b9f69df4987638b824117564e5bbfc83
parent 56390a44c818aa6940b8d477f596684ab5cbbf87
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 20 Oct 2026 10:38:30 -0400
plans, changelog: the page extractors — FACTS (kinds, ids, how ids merge), the CHANGELOG bullet
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
## [Unreleased]
+- **Wayback captures of Tumblr, Twitter, forums, Google Docs and YouTube About pages are read as their posts.** A Tumblr blog's post, index, tagged or archive page becomes one record per post (its date, tags, images and what it reblogged), and the same post seen on an index and on its own page is one record. An old Twitter profile or status page becomes one record per tweet — replies, retweets and quotes pointing at the tweets they answer, and the profile's bio, website and counts as one more — and a capture of X's later JavaScript app says it holds no posts. A captured XenForo thread page gives the same posts, with the same ids, that a forum channel of the thread holds. A Google Doc's mobilebasic or published page gives the document's text with its headings; its edit page says it holds no text and names the mobilebasic address to look for. A YouTube channel's About page gives how the channel described itself at that capture: description, links, joined date and counts. Nothing calls a model.
- **Focus the queues on a site, or on some channels, from a terminal.** `pnpm ops channel-priority --json '{"focus":{"kind":"site","siteId":"<id>"}}'` does what the /channels focus bar's **Focus site** does: that site's channels lead every lane, and the focus follows the site's membership. `{"kind":"channels","slugs":[…]}` focuses a list and `{"kind":"none"}` ends the focus. `focus` goes alone in the body. Needs a restart of the editor.
- **The clip editor can ask an assistant to label and rank the clip finder's proposals — optionally.** A **Suggest** button in the clip editor's side column asks the model your generation settings choose (the local model, the Claude API, or a Claude Code session through `/gen`) to name each proposal in at most six words, say in one line what makes it land, and rank them; the labels show on every clip and unused proposal, and **Sort by the assistant's rank** orders both lists by them. Labels made before the clips were proposed again are marked stale, not hidden. Nothing in the cut changes: the labels are suggestions. Without a model, or with no labels, the clip editor works as before. From a shell: `pnpm ops report-draft '{"task":"clips-suggest","project":"<dir>","dryRun":true}'` shows how many proposals and what it would cost first.
- **Ask the assistant about a clip, and apply what it suggests with one click.** On a comment in the clip editor, **Ask the assistant** has the model read your comment, the clip's words and the clips around it, and reply in the thread (badged "agent"). When it suggests a concrete edit — new edges, a merge with the next clip, or leaving the clip out — the reply shows an **Apply** button; nothing changes until you click it, and Apply does exactly what the clip editor's own buttons do. The editor needs `UMTOOL_URL` set to post the reply.
diff --git a/plans/FACTS.md b/plans/FACTS.md
@@ -11032,3 +11032,50 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri
a0 alone is luma). `render.slide {travel 0–0.5 (0.08), blur 0–2 (0.5), grain 0–20 (2)}` (`SLIDE_DEFAULTS`,
`validateSlide` inside `validateTransitionStyle`; `slide` is a LOOK_KEY). Grain: `noise=alls=<grain>:allf=t+u` on the
D/2 nearest the seam of each plain-join edge (`blurSlideEdges`, the segment's own `t`).
+
+## Release 37 lane C: the page extractors (verified 2026-10-20, branch `r37/extractors`)
+
+- **Where**: `common/lib/waybackPages/extractors/{gdoc,ytAbout,x,xenforo,tumblr}.ts`, each a `PageExtractor`
+ (`version: 1`), registered in `SITE_EXTRACTORS` in that order (host-matched first, then XenForo by markup on any
+ host, then Tumblr). Shared helpers in `extractors/util.ts`: bodies go through `forumBodyToText`
+ (social/xenforoParse.ts) after `absolutizeTree`, so text/links/media are written the way forum posts are.
+ `unwrapWaybackHtml` drops the replay toolbar block and turns every `[https://web.archive.org]/web/<ts>[mod_]/<orig>`
+ attribute back into `<orig>` (a raw `id_` body passes unchanged); `unwrapRedirect` unwraps google.com/url?q=,
+ youtube.com/redirect?q=, t.umblr.com/redirect?z=.
+- **An extractor always returns at least one draft.** No item on the page → one whole-page draft (no `itemId`), with
+ `noContent: true` when it holds nothing readable. A shell NEVER gets an item id: a later shell capture must not
+ overwrite the record a good capture made (upsert is latest-wins).
+- **Kinds and ids** (ids are the source's own, never the capture's, except where a capture IS the item):
+
+ | extractor | kind | itemId | url | author |
+ |---|---|---|---|---|
+ | tumblr | `tumblr-post` | `tumblr-<postId>` | the permalink as linked | blog name (subdomain; custom domain: Tumblr's controls iframe `name=`, else app-link `blogName=`, else host) |
+ | tumblr | `tumblr-index` | none (a page with no post) | — | blog |
+ | x | `tweet` | `tweet-<statusId>` | `https://twitter.com/<handle>/status/<id>` | handle |
+ | x | `x-profile` | `x-profile-<handle lowercased>-<captureTs>` | `https://twitter.com/<handle>` | handle |
+ | xenforo | `forum-post` | the BARE post id (what the live fetcher stores) | the parser's permalink | member |
+ | xenforo | `generic` + noContent | none (a login wall, a check page) | — | — |
+ | gdoc | `gdoc` | none (each capture is a version of the doc) | — | — |
+ | yt-about | `yt-about` | `yt-about-<UC id, else the URL's name>-<captureTs>` | — | `@handle` / user / c name, else UC id |
+
+- **Refs**: a tweet's `replyTo`/`quoted`/`repostOf` are `{platform: "twitter", id: <statusId>, url, author?}` — the X
+ channel's convention, so they join X records by id (the url is twitter.com, X channels write x.com). A Tumblr reblog
+ is `repostOf: {platform: "webpage", id: "tumblr-<id>", url, author: <blog>}` (cast in tumblr.ts until lane A adds
+ `"webpage"` to `PostPlatform`). Forum refs are the parser's (`platform: "xenforo"`, bare id).
+- **Tweets**: a retweet (`data-retweet-id` + `data-retweeter`) is the RETWEET's status, by the retweeter, at the
+ retweet id's snowflake time, `repostOf` the original. A status page's ancestors answer the one before, the page's
+ tweet the last ancestor, a reply the page's tweet (in a `ThreadedConversation` group, the one before it). On a
+ timeline, `replyTo` is the conversation root (`data-conversation-id`) when it differs from the id. Time:
+ `._timestamp[data-time(-ms)]`, else the timestamp link's title / the permalink's printed line, else the id's
+ snowflake (`(id >> 22) + 1288834974657` ms; only for ids ≥ 15 digits after 2010-11-04) — the mobile layout always
+ uses the snowflake. The pic.twitter.com tail and a quoted tweet's own link are dropped from text and links.
+- **Dates printed by a page** (`parseEnglishDate`: "May 3rd, 2012", "3 May 2012", "3:04 PM - 5 Jun 2015") are read as
+ UTC — a page names no zone; ISO with a zone keeps it.
+- **Tumblr posts** are found by permalink (`/post/<id>` on the capture's own host), or the theme's `article.post`,
+ `id="post-<id>"`, `data-post-id`; a post's container is the largest element around its permalink holding no other
+ post's. A permalink page yields only its own post. Body = the container minus date/tags/notes/footer/reblog-header
+ elements (class names matched by word); the post's links to itself are plain text.
+- **YouTube**: `ytInitialData` is located (`var ytInitialData =`, `window["ytInitialData"] =`, not `==`),
+ brace-matched string-aware and `JSON.parse`d, or — when assigned as a JS string — unescaped (`\xNN`, `\uNNNN`)
+ then parsed; renderers found by key anywhere (`channelAboutFullMetadataRenderer` | `aboutChannelViewModel`,
+ `c4TabbedHeaderRenderer` | `pageHeaderViewModel`, `channelMetadataRenderer`).