Archilyzer · Source

archilyzer

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

commit 77297ec6ca8eb0f3c0aba62607f740e2424704cd
parent 5ddee2c943da80239b11aa17360814e2b4c7115b
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 15 Oct 2026 07:29:46 -0400

plans: release 29 — the E1 record (Bluesky capture, as shipped), FACTS "Release 29 lane A", CHANGELOG

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

Diffstat:
Meditor/CHANGELOG.md | 1+
Mplans/FACTS.md | 14++++++++++++++
Mplans/release-29.md | 44++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **Capture posts works for Bluesky channels, with no login.** `pnpm ops capture-posts --json '{"slug": "<channel>", "ids": [...]}'` on a Bluesky channel now reads which posts are still up from Bluesky's public API, opens each live post's bsky.app page in a headless browser with no account, and saves a screenshot cropped to the post (`shot.png`) and the post's images beside it, in the channel's `posts-media/<id>/` — what a report's moment page shows. A post Bluesky no longer has is recorded as deleted in the channel's post availability, and nothing is opened for it. One page at a time, a few seconds apart; a "slow down" from Bluesky is waited out, and one that persists stops the run with the rest left for later. Needs a restart of the editor. - **The research board keeps a key pressed just after a save, too.** A key that arrived after a save's answer, or after its redraw but before the moved line took the focus back, could still lose `e`'s field (the claim then went nowhere). The board now waits until the redraw is fully done before acting on any key. Needs a restart of umtool. - **A recurring report's tick no longer calls a capped scan "nothing new".** Triage used to take the scope from one `enumerate_matches(".")`, which stops at 2,000 recordings — the co-host pilot's five channels hold 23,284, the newest read last, so its first tick found "0 new" and ended quiet. Tier 0 now lists the scope from the build's own per-channel manifests (every recording, uncapped, dated by the build's index) and reads the terms only over the new recordings (and, on a first run, from the start date). A scan that still hits a cap or misses a channel is **partial**: the tick says "partial — not reached: …" as a **Your call** card in umtool (never quiet, no quiet edition recorded), the triage run says so on its page, and its set of seen recordings is not kept, so the next run counts new from the last complete run (or from its start date). The same rule holds for a Refresh's search again (a capped search with nothing new ends **partial**, not "no change"), a series' window check, and the Inbox's daily refresh check (a partial check still raises its card, naming what it did not reach; `umtool refresh --check` prints PARTIAL). Needs a restart of the editor and umtool. - **`enumerate_matches` takes `ids`.** Only the pages that hold those recordings are read, so the scan is bounded by them rather than by the scope; the footer says how many the scope holds. A sweep restricted to given recordings (a refresh's update, a triage's escalation) now scans only theirs. diff --git a/plans/FACTS.md b/plans/FACTS.md @@ -9460,3 +9460,17 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri plan and confirm guard it, there is no red button and no Signal outline since P6b); a toggle that is on is `pressed` (the panel ground); a state that is not a judgement wears `badgeVariants` `state` (a dashed ink edge); Meter is measurement. `e2e/visual-audit.spec.ts` measures every page's actions by computed colour. + +## Release 29 lane A: Bluesky capture, the gone reading, `sourceGone`, find-copy (verified 2026-10-15, branch `r29/evidence`) + +- **Bluesky captures with no login** (`common/social/blueskyPostCapture.ts`, `blueskyFetcher.captureByIds`): liveness + and image URLs from the public AppView's `getPosts` (25 a request; absent = `deleted`, merged into + `posts-availability.json` by `capturePosts` as X's), the shot from a headless Chromium with a FRESH context (no + profile, no cookies) on `bsky.app/profile/<handle>/post/<rkey>`, cropped to + `[data-testid="postThreadItem-by-<handle>"]` (the one holding the post's text when several), images as + `media-<n>.<ext>` beside it; the record is postCapture.ts's (`url` the canonical bsky.app permalink). A deleted + post keeps an earlier capture's shot and media. One page at a time, ≥ 3 s jittered gaps, 429s waited out then + stopped. +- **Bluesky's hosts are one module** (`common/social/blueskyEndpoints.ts`): the AppView, bsky.app and the CDN. + `E2E_BLUESKY_ORIGIN_FILE` (test-only) names a file whose loopback origin all three become, read per call. + diff --git a/plans/release-29.md b/plans/release-29.md @@ -179,6 +179,50 @@ The three release 28 smoke drafts deleted through `archilyzer reports delete <id `r28-smoke-research` and `r28-smoke-research2` (articles in the making — 265 KiB and 262 KiB). The usage ledger's rows and the shared prepared-media cache are kept, as the command keeps them. +### E1, as shipped (2026-10-15, lane A, `r29/evidence`) + +Bluesky captures posts with no login, as ruled: the real bsky.app page, headless. Built as the plan's Shape row, with +these as built: +- `blueskyFetcher.captureByIds` is `captureBlueskyPosts` (`common/social/blueskyPostCapture.ts`) over live deps. Per + run: the handle resolved to its DID once; `getPosts` in batches of 25 for the posts owed (`captureWork`); a post + absent from a batch that answered is `deleted` (availability `deleted`, no page opened, an earlier capture's shot and + media kept in the record); a batch that failed says nothing about its posts (state `error`, no availability). +- A live post: ONE headless Chromium per run, a fresh context (no profile, no cookies, 1280×1600 at 2×, en-US, + light), `bsky.app/profile/<author handle>/post/<rkey>`; the post is the `[data-testid="postThreadItem-by-<handle>"]` + element — the only one, else the one whose text holds the post's first 80 characters (a self-thread's parents and + replies share the test id); `shot.png` is that element's box (`fullPage` + clip, as X's). A post that does not + render is `error` (a page that asks to sign in says so: the capture has no login). +- Images: `embed.images[].fullsize` (else `thumb`), or a recordWithMedia's `media.images`, downloaded as + `media-<n>.<ext>` (the content type, else the CDN's `@jpeg`). Video embeds are not downloaded (`mediaState` `none`). +- Pacing: a gap before every page after the run's first, `blueskyPageGapMs` = max(3 s, the channel's + `postPagePauseSeconds`) × [1, 2); 1–2 s between images; an AppView or CDN 429/503 waited out (Retry-After, else 5 s + doubling, capped 2 min, 4 attempts) and then the run stops; a page 429 is waited out once (≥ 30 s), a second stops + the run; 45 s per page load, 20 s for the post to appear; cancel and drain checked between posts and raced against + a page load; three errors in a row stop the run. +- Base URLs: `common/social/blueskyEndpoints.ts` — the AppView, bsky.app and the CDN, injected as `deps.endpoints`; + the fetcher's own AppView reads (`fetch`, `checkAvailability`, `fetchOne`) now read it per call. Test-only: + `E2E_BLUESKY_ORIGIN_FILE` names a file holding one loopback origin that all three then are; the editor e2e server + sets it per slot (`<test-transcripts>/.fake-bluesky-origin`, `blueskyOriginFile` in `editor/e2e/servers.ts`). +- Not done (optional): image URLs as `Post.media[]` in `normalizeBlueskyItem` — the PostModal lists a post's `media` + as links on every site, a visible change nobody asked for; the capture reads the URLs from `getPosts` instead. + +| Commit | What | +| --- | --- | +| `0295636d` | common, editor: `blueskyPostCapture.ts`, `blueskyEndpoints.ts`, `blueskyFetcher.captureByIds`; `E2E_BLUESKY_ORIGIN_FILE` (envVars, ENVIRONMENT.md, `servers.ts`, the config's header); unit tests; the editor `capture-posts.spec.ts`; the capture-posts route test (a Bluesky channel now passes the fetcher check and is refused as a stray id; the "cannot capture" case is a Nitter channel) | +| (this commit) | this record, FACTS "Release 29 lane A", CHANGELOG | + +Gates (from the worktree root): +- `pnpm -r exec tsc --noEmit`: clean. +- common: 4188 at the branch's start (3 failing that run, not reproduced) → 4204, all pass + (`social/blueskyPostCapture.test.ts` 11, one of them a real headless Chromium over the fake's page: the shot is + 1200 px wide — the 600-px thread item at 2× — not the page). +- editor unit: 304/304 (the branch-start run read 279 with 14 failing; not reproduced); mcp 370/370; + `test:scripts` 1010 + 3 skipped. +- `docs env|files|cli --check`, `settings example --check`: clean. +- editor e2e, one spec in the foreground: `capture-posts.spec.ts` 1/1 (26 s, the e2e build 51 s): the image post's + shot (1200 px wide) and two images, the text post's shot, the deleted post `deleted` in `posts-availability.json`, + bsky.app asked for the two live posts only. + ## Not in this release Auto-posting to X/Bluesky/YouTube (text only); any umtool restructuring; the "en track → 0 cues" bug (closed in r20).