Archilyzer · Source

archilyzer

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

commit c497e9062ef96809739355eae8a782c87b5e3430
parent fce0eac75f112b7b2bc9e233be9d19302ef419a1
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 13 Oct 2026 10:51:52 -0400

plans: release 27 S3, as shipped — the corpus tools in process, the web read

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

Diffstat:
Mcommon/testing/README.md | 1+
Meditor/CHANGELOG.md | 1+
Mplans/release-27.md | 16++++++++++++++++
3 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/common/testing/README.md b/common/testing/README.md @@ -16,6 +16,7 @@ transcript, channel or person goes in these fixtures, ever. | `draft/corpus.mjs` | Two channels of recordings with cues (`CHANNELS`), posts (`POSTS`), `ORIGIN`, `momentHref`, `postHref`, `cuesOf`, `recordOf`, and `writeDraftCorpus(dir)` — a composed public dir for the MCP's `--local`. | | `draft/sweeps/*.md` | sweep.md variants: `basic` (the canonical shape), `quotes-in-claims` (claims that carry quoted words — the rule they break), `multi-quote` (several quotes per link, several links per item), `posts-only`, `paragraphs` (paragraphs and a sub-heading between findings, a trailing Coverage section), `inexact` (a reversed quote fuzzy recall passes, a quote 200 s from its link, an exact one). | | `draft/reports/`, `draft/manifests/` | `basic`, `posts-only`, `paragraphs` converted (`report.json`) and taken to a video manifest, as the converters make them today. | +| `web/fakeWeb.mjs` | A fake web on loopback: a DuckDuckGo-shaped HTML search (`POST /html/`, links in the `uddg` redirect, an ad), pages, plain text, a long page, redirects and a redirect loop, a PDF, a 429 that clears (`busyTimes`), a 503 that does not. `web.searchUrl` is what `webSearch` takes. | | `draft/derive.ts`, `draft/regenerate.ts` | How the derived files are made. After a converter change: `cd common && pnpm exec tsx testing/draft/regenerate.ts`, review the diff, commit. `fakes.test.ts` fails until they match. | As committed (S0), the `paragraphs` manifest shows two owed bugs that release 27 S7 fixes: the title diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **`pnpm ops web-search` and `pnpm ops web-fetch` read the web, politely.** `web-search` (`{"query", "n"?}`) answers DuckDuckGo's results as titles, links and snippets; `web-fetch` (`{"url", "maxChars"?}`) answers one page as plain text. Both are read only and go through one queue in the editor: one request at a time, three seconds apart, backing off when a site answers 429 or 503. A page on a private or local address (`localhost`, `192.168.…`, a name that resolves to one) is refused before anything is sent, and so is a file that is not a page (a PDF, an image). Needs a restart of the editor. - **`archilyzer reports verify-quotes` flags an inexact quote.** A quote that passes the usual check but whose words are not, word for word, in the transcript within 90 seconds of its cited second — a word dropped that reverses its meaning, a quote from another moment — is now reported as `INEXACT (warning)`, with the first fragment that was not found. It is a warning: it is counted in the summary line and does not change the exit code; compose and publish are unchanged. Quotes a model writes in release 27's generation are held to it. - **Orpheus speaks as the operator picked by ear: zac, calmer, quicker, in longer runs.** The default Orpheus voice is now `zac` (leah stays available); the sampler is cooler (temperature 0.55, top_p 0.85) and its repeat penalty higher (1.2), which reads less acted and less over-enunciated; a chunk holds up to 5 sentences and 420 characters, with shorter joins (0.2 s after a sentence, 0.1 s after a clause, 0.4 s after a paragraph), so the voice restarts its phrasing less often; and a very short line gets at least four seconds of budget, so it can no longer fail every take. Orpheus narration made before this is made again the next time it is asked for. Needs a restart of the editor. - **A site's reports are its pages.** site.json `reports` is now `pages` (a file that still says `reports` reads as `pages` for this release; saving writes `pages`). Each page is served at `/pages/<id>/` and linked from the site's header by its title, after Ask AI; there is no Reports index any more. A site with search off shows its first page as its home, and saving a site with search off and no pages is refused. The site form lists them as **Pages**. Rebuild each site that has pages. diff --git a/plans/release-27.md b/plans/release-27.md @@ -277,6 +277,22 @@ Gates: `pnpm -r exec tsc --noEmit` clean; common tests 3862/3862 (35 new). Found: `testing/draft/sweeps/inexact.md`'s far quote (200 s from its link) is a `drift` in verify-quotes, not an `inexact`: its ±5 s recall window shares only "the" with it (0.25), and drift is the stronger status. The strict check refuses it (the unit test says so); verify-quotes' `inexact` is the reversed quote. +### S3, as shipped (2026-10-13, lane B) + +| Commit | What | +| --- | --- | +| `be908bdd` | the test kit's `derive.ts` / `regenerate.ts` path joins opt out of Turbopack tracing — `test:scripts`' next-build-trace test was red from S0 | +| `037c996c` | `mcp/src/callTool.ts` (`createCorpusTools`, exported as `yt-dlp-transcript-mcp/callTool`; the editor depends on the package); `common/lib/web/{pacer,search,fetchPage,tools}.ts`; the editor's `web-search` / `web-fetch` actions, ACTIONS rows, help, COMMANDS.md; `testing/web/fakeWeb.mjs`; `report/draft/agentTool.ts` (the AgentTool shape, until S5 imports lane A's) | +| (this commit) | this record; the CHANGELOG bullet; the kit README row | + +- **`createCorpusTools({source, only?, editorDeps?})`** → `{source, tools, call(name, args), close()}`. A Client linked to `createServer(registry)` over `InMemoryTransport`, so the dispatch wrapper (the `(corpus: …)` note, the error shapes) is in the path. `source` is a handle, a `SourceSpec` or a built `ShardSource`. The allowlist is `CORPUS_TOOL_NAMES`: `list_channels`, `list_tags`, `list_reports`, `get_report`, `search_transcripts`, `enumerate_matches`, `get_transcript`, `get_post`, `get_thread`, `get_transcripts`, `get_video_metadata`, `channel_coverage`, `notes` (list and read; `reply` and its fields gone from the schema and refused), `list_sources`, `resolve_source`, `sweep_plan`, `ask_plan`. Not in it: `fetch_clip`, `enqueue` (work in the editor), `get_job` (the editor's jobs, not the corpus) and `open_link` (reads OTHER corpora by URL). A tool's error is thrown as `CorpusToolError` with the tool's words. +- **The web.** `webPacer` is the process's one queue (the editor's two actions and every job's tools share it). `webSearch(query, {n, searchUrl, pacer})` → `[{title, url, snippet}]`; `webFetch(url, {maxChars, pacer, allowPrivate, resolve})` → `{url, finalUrl, status, contentType, title?, text, truncated}`; `fetchRefusal(url)` is the fence on its own; `webTools({pacer, searchUrl, allowPrivate})` → the `web_search` / `web_fetch` AgentTools. A backed-off request still waits out the rest of the 3 s gap. +- **The editor actions** answer synchronously, through `ops()` (`_web.ts` maps a refusal before any request to a 400, a far-side failure to a 502). The search endpoint is DuckDuckGo's; S6's `generation` settings name the web provider. + +Gates: tsc clean; common 3870/3870 (8 new); mcp 314/314 (8 new, `protocol.test.ts`'s tool list unchanged); editor unit 267/267 (3 new); `test:scripts` 832 + 3 skipped, 1 failed before `be908bdd` (S0's next-build-trace) and green after it; `docs cli --check` clean. + +Not done here: the editor's `next.config.ts` `transpilePackages` does not list `yt-dlp-transcript-mcp` yet — S6, which imports it from a route, adds it (the unit test imports it under tsx). + ## Rollout - Fast-forward `main`.