Import eight open-source repos onto dev-oscabriel, keep them, and check each one's pages live
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- Imported one at a time from 07:35 UTC with scripts/import-examples.ts: anyhow, ky, gum, click, awesome, changesets, stb and fuzzel (Codeberg). No failure, no stuck name, no alternate. - Artifacts' import brings no tags (anyhow served 0 of 105), so every source with tags was backfilled with --tags: anyhow 105, ky 99, gum 29, click 71, changesets 740, fuzzel 38; awesome and stb have none. - The policy evaluated on anyhow, ky and changesets; on the other five the finder finds no test command in CI, so it never evaluates and /people says it has not been evaluated (spec 14.9's case). - apps/web/e2e/imports.e2e.ts (new, written red first: 73 of 73 failed on status 200): eight pages per project, each repo's own checks (ky's logo through raw, awesome's pinned links, changesets' deep tree and scoped tags, stb's 730 KB header and a PNG, fuzzel's submodule, click's Older, anyhow's tag tree), and timed first views of tree, why and commits?path= on changesets and click. 73 of 73 pass on dev. WEB_IMPORTS narrows it to some projects. - Ledger: 22 lines by import (8 projects, 8 repos, 6 tags backfilled); teardown's read-only plan lists all of them as kept imports and selects none. infra/stages.md gains "Imported projects (kept)", and sections 1, 3 and 5 record the imports and the 08:01/08:06 deploys of 73adbab and a29af4e (why and a path's log: 64-81 s cold before, 14-28 s after). - ASSUMPTION: the home page renders the README in the browser, so curl's README phrase check reads /<p>/tree/main, whose SSR carries it.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+643 added−4 removed
- other:+643 added−4 removed
Provenance
- Commit
f4a1424- Tree
01f3387- Author
oscabriel <oscarhernandeziv@gmail.com>- Committer
oscabriel <oscarhernandeziv@gmail.com>- Parent
a29af4e
3 files changed+643 added−4 removed
added:apps/web/e2e/imports.e2e.ts+600 added
1+/**2+ * The open-source repos imported onto a dev stage (`scripts/import-examples.ts`),3+ * as a browser shows them: for each project its home page (README rendered,4+ * clone box), a nested folder, a file at line 5, the log, the newest5+ * commit, the refs, the people and why each line of that file is there,6+ * each asserted on its key text and saved as one screenshot under7+ * `e2e/out/imports/<project>/`. Then what each repo was picked to8+ * exercise: ky's lowercase `readme.md` and its SVG logo through raw,9+ * awesome's relative links, changesets' deep tree and scoped tags, stb's10+ * 730 KB header and a PNG, fuzzel's submodule, click's second log page and11+ * anyhow's annotated tags. The first view of `tree`, `why` and12+ * `commits?path=` on changesets and click is timed and printed.13+ *14+ * It runs only against `WEB_URL` (a dev stage's web origin) and is skipped15+ * without it. `WEB_IMPORTS` narrows it to some projects (a comma list),16+ * for a run while the imports go in one at a time. It only reads.17+ */18+import { expect, test } from "@playwright/test";19+import type { Page } from "@playwright/test";20+import { Config, Console, Effect, Option } from "effect";21+22+/** One imported project: where its pages look, and what they must show. */23+interface Imported {24+ readonly project: string;25+ /** A phrase of its README, as the home page renders it. */26+ readonly readme: string;27+ /** A folder at least two levels down. */28+ readonly dir: string;29+ /** An entry of `dir`, listed on its page. */30+ readonly entry: string;31+ /** A text file of at least five lines. */32+ readonly file: string;33+ /**34+ * Whether its policy evaluated: an import with no config folder takes the35+ * defaults, and its run block from its CI; where the finder finds no test36+ * command there, the policy never evaluates and the people page says so.37+ */38+ readonly evaluated: boolean;39+}40+41+/** The eight imports, in the order the script imports them. */42+const imports: readonly Imported[] = [43+ {44+ dir: "tests/ui",45+ entry: "tests/ui/chained-comparison.rs",46+ evaluated: true,47+ file: "src/error.rs",48+ project: "anyhow",49+ readme: "idiomatic error handling in Rust applications",50+ },51+ {52+ dir: "source/core",53+ entry: "source/core/Ky.ts",54+ evaluated: true,55+ file: "source/core/Ky.ts",56+ project: "ky",57+ readme: "Ky is a tiny and elegant HTTP client",58+ },59+ {60+ dir: "internal/exit",61+ entry: "internal/exit/exit.go",62+ evaluated: false,63+ file: "choose/choose.go",64+ project: "gum",65+ readme: "A tool for glamorous shell scripts",66+ },67+ {68+ dir: "src/click",69+ entry: "src/click/core.py",70+ evaluated: false,71+ file: "src/click/exceptions.py",72+ project: "click",73+ readme: "Click is a Python package",74+ },75+ {76+ dir: ".github/workflows",77+ entry: ".github/workflows/main.yml",78+ evaluated: false,79+ file: ".github/workflows/main.yml",80+ project: "awesome",81+ readme: "Programming Languages",82+ },83+ {84+ // Six folders down; its file is the seventh level.85+ dir: "packages/cli/src/commands/status/__tests__",86+ entry: "packages/cli/src/commands/status/__tests__/status.test.ts",87+ evaluated: true,88+ file: "packages/cli/src/index.ts",89+ project: "changesets",90+ readme: "A tool to manage versioning and changelogs",91+ },92+ {93+ dir: "tests/caveview",94+ entry: "tests/caveview/glext.h",95+ evaluated: false,96+ file: "stb_divide.h",97+ project: "stb",98+ readme: "single-file public domain",99+ },100+ {101+ dir: "3rd-party/nanosvg",102+ entry: "3rd-party/nanosvg/README.md",103+ evaluated: false,104+ file: "main.c",105+ project: "fuzzel",106+ readme: "Fuzzel is a Wayland-native application launcher",107+ },108+];109+110+/** What the check reads of its env: where the web lives, and which imports to visit. */111+const settings = Effect.runSync(112+ Effect.gen(function* () {113+ return {114+ only: yield* Config.option(Config.NonEmptyString("WEB_IMPORTS")),115+ web: Option.map(116+ yield* Config.option(Config.NonEmptyString("WEB_URL")),117+ (url) => url.replace(/\/+$/u, "")118+ ),119+ };120+ })121+);122+123+/** The imports this run visits: `WEB_IMPORTS`' names, or all eight. */124+const visited = Option.match(settings.only, {125+ onNone: () => imports,126+ onSome: (names) => {127+ const named = new Set(names.split(",").map((name) => name.trim()));128+129+ return imports.filter(({ project }) => named.has(project));130+ },131+});132+133+/** Where screenshots go: `e2e/out/imports/<project>/<shot>.png`. */134+const out = decodeURIComponent(135+ new URL("out/imports/", import.meta.url).pathname136+);137+138+/** What a page says when the platform did not answer it. */139+const UNREACHABLE = "The platform did not answer";140+141+/** What a code page said before its view was built. */142+const NOT_BUILT = "not built";143+144+/** What the router's error boundary says when a page throws. */145+const CRASHED = "Something went wrong";146+147+/** `path` on the web. */148+const at = (path: string) =>149+ `${Option.getOrElse(settings.web, () => "")}${path}`;150+151+const awaited = <A>(promise: () => Promise<A>) => Effect.promise(promise);152+153+/** The page says none of the things a broken page says. */154+const whole = (browser: Page) =>155+ Effect.forEach(156+ [UNREACHABLE, NOT_BUILT, CRASHED],157+ (text) => awaited(() => expect(browser.getByText(text)).toHaveCount(0)),158+ { discard: true }159+ );160+161+const shoot = (browser: Page, project: string, shot: string) =>162+ awaited(() =>163+ browser.screenshot({164+ fullPage: true,165+ path: `${out}${project}/${shot}.png`,166+ })167+ );168+169+/**170+ * Opens `path`, checks it answered 200, waits for each of `texts` and171+ * `selectors`, checks it is whole, and saves the screenshot `shot`.172+ */173+const visit = (174+ browser: Page,175+ project: string,176+ path: string,177+ shot: string,178+ wanted: {179+ readonly texts?: readonly string[];180+ readonly selectors?: readonly string[];181+ }182+) =>183+ Effect.gen(function* () {184+ const response = yield* awaited(() => browser.goto(at(path)));185+186+ expect(response?.status()).toBe(200);187+188+ yield* Effect.forEach(189+ wanted.texts ?? [],190+ (text) =>191+ awaited(() => expect(browser.getByText(text).first()).toBeVisible()),192+ { discard: true }193+ );194+195+ yield* Effect.forEach(196+ wanted.selectors ?? [],197+ (selector) =>198+ awaited(() => expect(browser.locator(selector).first()).toBeVisible()),199+ { discard: true }200+ );201+202+ yield* whole(browser);203+ yield* shoot(browser, project, shot);204+ });205+206+/**207+ * The first view of `path`, timed from the request until the network is208+ * quiet (the browser's own reads, the file tree's included) and `selector`209+ * shows; printed and kept as an annotation.210+ */211+const timed = (212+ browser: Page,213+ project: string,214+ path: string,215+ shot: string,216+ selector: string217+) =>218+ Effect.gen(function* () {219+ const started = performance.now();220+221+ const response = yield* awaited(() =>222+ browser.goto(at(path), { timeout: 120_000, waitUntil: "networkidle" })223+ );224+225+ expect(response?.status()).toBe(200);226+227+ yield* awaited(() =>228+ expect(browser.locator(selector).first()).toBeVisible({229+ timeout: 120_000,230+ })231+ );232+233+ const took = Math.round(performance.now() - started);234+ const said = `${project} ${path}: ${took} ms`;235+236+ test.info().annotations.push({ description: said, type: "first view" });237+ yield* Console.log(`first view: ${said}`);238+239+ yield* whole(browser);240+ yield* shoot(browser, project, shot);241+ });242+243+/** An image on the page has loaded its bytes. */244+const loaded = (browser: Page, selector: string) =>245+ awaited(() =>246+ expect247+ .poll(() =>248+ browser249+ .locator(selector)250+ .first()251+ .evaluate((image) =>252+ image instanceof HTMLImageElement ? image.naturalWidth : 0253+ )254+ )255+ .toBeGreaterThan(0)256+ );257+258+/** The newest commit's page, as the log links it. */259+const newestCommit = (browser: Page, project: string) =>260+ Effect.gen(function* () {261+ const response = yield* awaited(() =>262+ browser.goto(at(`/${project}/commits/main`))263+ );264+265+ expect(response?.status()).toBe(200);266+267+ const link = browser.locator(`a[href^="/${project}/commit/"]`).first();268+269+ yield* awaited(() => expect(link).toBeVisible());270+271+ const href = yield* awaited(() => link.getAttribute("href"));272+273+ expect(href).toMatch(/\/commit\/[0-9a-f]{40}$/u);274+275+ return href ?? "";276+ });277+278+/** The pages every import shows. */279+const pages = ({ dir, entry, evaluated, file, project, readme }: Imported) => {280+ const timedProject = project === "changesets" || project === "click";281+282+ test(`${project}'s home renders its README and the clone box`, ({283+ page: browser,284+ }) =>285+ Effect.runPromise(286+ visit(browser, project, `/${project}`, "home", {287+ selectors: ["[data-clone]", "[data-readme]"],288+ texts: [readme, `git clone`],289+ })290+ ));291+292+ test(`${project}'s ${dir} lists its entries`, ({ page: browser }) =>293+ Effect.runPromise(294+ timedProject295+ ? timed(296+ browser,297+ project,298+ `/${project}/tree/main/${dir}`,299+ "tree",300+ `[data-entry="${entry}"]`301+ )302+ : visit(browser, project, `/${project}/tree/main/${dir}`, "tree", {303+ selectors: [`[data-entry="${entry}"]`],304+ })305+ ));306+307+ test(`${project}'s ${file} opens at line 5`, ({ page: browser }) =>308+ Effect.runPromise(309+ Effect.gen(function* () {310+ yield* visit(311+ browser,312+ project,313+ `/${project}/blob/main/${file}#L5`,314+ "blob",315+ {316+ selectors: ['[data-toolbar="file"]'],317+ texts: ["Permalink"],318+ }319+ );320+321+ expect(new URL(browser.url()).hash).toBe("#L5");322+ })323+ ));324+325+ test(`${project}'s log groups its commits by day`, ({ page: browser }) =>326+ Effect.runPromise(327+ visit(browser, project, `/${project}/commits/main`, "commits", {328+ selectors: [`a[href^="/${project}/commit/"]`],329+ texts: ["Commits on"],330+ })331+ ));332+333+ test(`${project}'s newest commit shows what it changed`, ({334+ page: browser,335+ }) =>336+ Effect.runPromise(337+ Effect.gen(function* () {338+ const href = yield* newestCommit(browser, project);339+340+ yield* visit(browser, project, href, "commit", { texts: ["changed"] });341+ })342+ ));343+344+ test(`${project}'s refs show main and its tags`, ({ page: browser }) =>345+ Effect.runPromise(346+ visit(browser, project, `/${project}/refs`, "refs", {347+ selectors: ['[data-ref="main"]'],348+ texts: ["Landed at", "Tags"],349+ })350+ ));351+352+ test(`${project}'s people show ${evaluated ? "the defaults policy" : "that its policy is not evaluated"}`, ({353+ page: browser,354+ }) =>355+ Effect.runPromise(356+ visit(357+ browser,358+ project,359+ `/${project}/people`,360+ "people",361+ evaluated362+ ? { selectors: ['tr[data-paths="**"]'] }363+ : { texts: ["has not been evaluated"] }364+ )365+ ));366+367+ test(`${project}'s ${file} says why each line is there`, ({368+ page: browser,369+ }) =>370+ Effect.runPromise(371+ timedProject372+ ? timed(373+ browser,374+ project,375+ `/${project}/why/main/${file}`,376+ "why",377+ "[data-range]"378+ )379+ : visit(browser, project, `/${project}/why/main/${file}`, "why", {380+ selectors: ["[data-range]"],381+ texts: ["Why each line is there"],382+ })383+ ));384+385+ if (timedProject) {386+ test(`${project}'s ${file} history lists the commits that changed it`, ({387+ page: browser,388+ }) =>389+ Effect.runPromise(390+ timed(391+ browser,392+ project,393+ `/${project}/commits/main?path=${encodeURIComponent(file)}`,394+ "commits-path",395+ `a[href^="/${project}/commit/"]`396+ )397+ ));398+ }399+};400+401+/** What each repo was picked to exercise. */402+const specifics = new Map<string, (browser: Page) => Effect.Effect<void>>([403+ [404+ "anyhow",405+ (browser) =>406+ Effect.gen(function* () {407+ // Annotated tags, listed peeled to their commits: a tag's tree opens.408+ // The newest come first, a hundred a page: 1.0.0 is on the second.409+ yield* visit(browser, "anyhow", "/anyhow/refs?from=100", "refs-tags", {410+ selectors: ['[data-tag="1.0.0"]'],411+ });412+413+ const tagged = browser.locator('[data-tag="1.0.0"] a').first();414+415+ expect(yield* awaited(() => tagged.getAttribute("href"))).toBe(416+ "/anyhow/tree/1.0.0"417+ );418+419+ yield* visit(browser, "anyhow", "/anyhow/tree/1.0.0", "tag-tree", {420+ selectors: ['[data-entry="Cargo.toml"]'],421+ });422+ }),423+ ],424+ [425+ "awesome",426+ (browser) =>427+ Effect.gen(function* () {428+ // The 78 KB README renders, its relative links pinned to a commit.429+ yield* visit(browser, "awesome", "/awesome", "readme-links", {430+ texts: ["Contribution guide", "Front-End Development"],431+ });432+433+ const href = yield* awaited(() =>434+ browser435+ .locator("[data-readme] a", { hasText: "Contribution guide" })436+ .first()437+ .getAttribute("href")438+ );439+440+ expect(href).toMatch(441+ /^\/awesome\/blob\/[0-9a-f]{40}\/contributing\.md$/u442+ );443+ }),444+ ],445+ [446+ "changesets",447+ (browser) =>448+ Effect.gen(function* () {449+ // Seven levels down: the deepest folder's file opens.450+ yield* visit(451+ browser,452+ "changesets",453+ "/changesets/blob/main/packages/cli/src/commands/status/__tests__/status.test.ts",454+ "deep-file",455+ { texts: ["Permalink"] }456+ );457+458+ // Scoped tags (`@changesets/cli@…`), on whichever page of 100 holds one.459+ let from = 0;460+ let found = false;461+462+ while (!found && from < 1000) {463+ yield* visit(464+ browser,465+ "changesets",466+ from === 0 ? "/changesets/refs" : `/changesets/refs?from=${from}`,467+ "refs-scoped",468+ { texts: ["Tags"] }469+ );470+ found =471+ (yield* awaited(() =>472+ browser.locator('[data-tag^="@changesets/cli@"]').count()473+ )) > 0;474+ from += found ? 0 : 100;475+ }476+477+ expect(found).toBe(true);478+479+ const href = yield* awaited(() =>480+ browser481+ .locator('[data-tag^="@changesets/cli@"] a')482+ .first()483+ .getAttribute("href")484+ );485+486+ expect(href).toMatch(/^\/changesets\/tree\/%40changesets%2Fcli%40/u);487+488+ yield* visit(browser, "changesets", href ?? "", "scoped-tag-tree", {489+ selectors: ['[data-entry="packages"]'],490+ });491+ }),492+ ],493+ [494+ "click",495+ (browser) =>496+ Effect.gen(function* () {497+ // Past the first 30 commits, by Older.498+ yield* visit(browser, "click", "/click/commits/main", "log-first", {499+ texts: ["Older"],500+ });501+ yield* awaited(() => browser.getByText("Older").first().click());502+ yield* awaited(() => browser.waitForURL(/from=30/u));503+ yield* awaited(() =>504+ expect(505+ browser.locator('a[href^="/click/commit/"]').first()506+ ).toBeVisible()507+ );508+ yield* whole(browser);509+ yield* shoot(browser, "click", "log-older");510+ }),511+ ],512+ [513+ "fuzzel",514+ (browser) =>515+ Effect.gen(function* () {516+ // A gitlink lists as a submodule, with no page of its own.517+ yield* visit(518+ browser,519+ "fuzzel",520+ "/fuzzel/tree/main/external",521+ "submodule",522+ {523+ selectors: ['[data-entry="external/wlr-protocols"]'],524+ }525+ );526+527+ const row = browser.locator('[data-entry="external/wlr-protocols"]');528+529+ yield* awaited(() => expect(row).toContainText("Submodule:"));530+ yield* awaited(() => expect(row.locator("a")).toHaveCount(0));531+ }),532+ ],533+ [534+ "ky",535+ (browser) =>536+ Effect.gen(function* () {537+ // Lowercase `readme.md`, and its SVG logo shown through raw.538+ yield* visit(browser, "ky", "/ky", "readme-logo", {539+ selectors: ['[data-readme="readme.md"]'],540+ });541+542+ const logo =543+ '[data-readme] img[src^="/ky/raw/"][src$="/media/logo.svg"]';544+545+ yield* loaded(browser, logo);546+ }),547+ ],548+ [549+ "stb",550+ (browser) =>551+ Effect.gen(function* () {552+ // A 730 KB header opens, cut or drawn, never a crash.553+ yield* visit(554+ browser,555+ "stb",556+ "/stb/blob/main/tests/caveview/glext.h",557+ "large-file",558+ { texts: ["glext.h"] }559+ );560+561+ // A PNG shows as an image.562+ yield* visit(563+ browser,564+ "stb",565+ "/stb/blob/main/data/easy_font_raw.png",566+ "png",567+ {568+ selectors: ['img[src^="/stb/raw/"]'],569+ }570+ );571+ yield* loaded(browser, 'img[src^="/stb/raw/"]');572+ }),573+ ],574+]);575+576+test.describe("the imported repos", () => {577+ test.skip(578+ Option.isNone(settings.web),579+ "WEB_URL is not set: point it at a dev stage's web origin to run this check"580+ );581+582+ // A first view of `why` walks up to 200 commits, one read each: 30 to583+ // 55 s live on these repos, past Playwright's default minute with the584+ // page's own reads.585+ test.setTimeout(240_000);586+587+ for (const imported of visited) {588+ test.describe(imported.project, () => {589+ pages(imported);590+591+ const specific = specifics.get(imported.project);592+593+ if (specific !== undefined) {594+ test(`${imported.project} renders what it was picked for`, ({595+ page: browser,596+ }) => Effect.runPromise(specific(browser)));597+ }598+ });599+ }600+});modified:infra/created.jsonl+22 added
73 unmodified lines74 {"at":"2026-10-09T07:13:17.858Z","by":"smoke","kind":"repo","name":"smoke-20261009-071255","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel"}75 {"at":"2026-10-09T07:13:39.793Z","by":"smoke","kind":"repo","name":"smoke-20261009-071255--parse-year--bram","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel"}76 {"at":"2026-10-09T07:12:42.000Z","by":"smoke","kind":"project","name":"smoke-20261009-071213","stage":"dev-oscabriel"}77 {"at":"2026-10-09T07:12:42.000Z","by":"smoke","kind":"repo","name":"smoke-20261009-071213","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel"}78+{"at":"2026-10-09T07:36:05.318Z","by":"import","kind":"project","name":"anyhow","stage":"dev-oscabriel"}79+{"at":"2026-10-09T07:36:05.318Z","by":"import","kind":"repo","name":"anyhow","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel"}80+{"at":"2026-10-09T07:36:23.549Z","by":"import","kind":"repo","name":"anyhow","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel","note":"tags backfilled"}81+{"at":"2026-10-09T07:39:04.182Z","by":"import","kind":"project","name":"ky","stage":"dev-oscabriel"}82+{"at":"2026-10-09T07:39:04.182Z","by":"import","kind":"repo","name":"ky","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel"}83+{"at":"2026-10-09T07:39:10.099Z","by":"import","kind":"repo","name":"ky","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel","note":"tags backfilled"}84+{"at":"2026-10-09T07:39:22.590Z","by":"import","kind":"project","name":"gum","stage":"dev-oscabriel"}85+{"at":"2026-10-09T07:39:22.590Z","by":"import","kind":"repo","name":"gum","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel"}86+{"at":"2026-10-09T07:39:27.142Z","by":"import","kind":"repo","name":"gum","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel","note":"tags backfilled"}87+{"at":"2026-10-09T07:39:53.922Z","by":"import","kind":"project","name":"click","stage":"dev-oscabriel"}88+{"at":"2026-10-09T07:39:53.922Z","by":"import","kind":"repo","name":"click","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel"}89+{"at":"2026-10-09T07:40:00.155Z","by":"import","kind":"repo","name":"click","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel","note":"tags backfilled"}90+{"at":"2026-10-09T07:40:19.501Z","by":"import","kind":"project","name":"awesome","stage":"dev-oscabriel"}91+{"at":"2026-10-09T07:40:19.501Z","by":"import","kind":"repo","name":"awesome","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel"}92+{"at":"2026-10-09T07:41:13.884Z","by":"import","kind":"project","name":"changesets","stage":"dev-oscabriel"}93+{"at":"2026-10-09T07:41:13.884Z","by":"import","kind":"repo","name":"changesets","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel"}94+{"at":"2026-10-09T07:41:26.847Z","by":"import","kind":"repo","name":"changesets","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel","note":"tags backfilled"}95+{"at":"2026-10-09T07:42:15.011Z","by":"import","kind":"project","name":"stb","stage":"dev-oscabriel"}96+{"at":"2026-10-09T07:42:15.011Z","by":"import","kind":"repo","name":"stb","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel"}97+{"at":"2026-10-09T07:42:36.197Z","by":"import","kind":"project","name":"fuzzel","stage":"dev-oscabriel"}98+{"at":"2026-10-09T07:42:36.197Z","by":"import","kind":"repo","name":"fuzzel","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel"}99+{"at":"2026-10-09T07:42:42.694Z","by":"import","kind":"repo","name":"fuzzel","namespace":"projects-dev-oscabriel","stage":"dev-oscabriel","note":"tags backfilled"}modified:infra/stages.md+21 added-4 removed
10 unmodified lines11 5. [URLs](#5-urls)12 6. [Running a stage](#running-a-stage)13 7. [Human steps: status and next action](#human-steps-status-and-next-action)14 15-Sections 1 to 5 hold the state as of 2026-10-08, 18:00 UTC, read from the account with read-only calls; the demo stage and the teardown plan were read again at 18:15 UTC and had not changed. The W9 deploys of 2026-10-09 (06:39 to 07:22 UTC, issue 914) are added to sections 1, 3 and 5; the teardown record is unchanged. The human steps at the end hold their status as of 2026-10-08, 18:30 UTC.15+Sections 1 to 5 hold the state as of 2026-10-08, 18:00 UTC, read from the account with read-only calls; the demo stage and the teardown plan were read again at 18:15 UTC and had not changed. The W9 deploys of 2026-10-09 (06:39 to 07:22 UTC, issue 914) are added to sections 1, 3 and 5; the imports and the two dev deploys of 08:01 and 08:06 UTC (issue 915) to sections 1, 3 and 5; the teardown record is unchanged. The human steps at the end hold their status as of 2026-10-08, 18:30 UTC.16 17 ## 1. Stages18 19 | Stage | What it is for | State on 2026-10-08 |20 | --- | --- | --- |21-| `dev-oscabriel` | One person's iteration. Deploy it as often as you like. | Bootstrapped 2026-10-07 and deployed (platform, sandbox, web). Re-checked 2026-10-08: bootstrap created nothing, and the platform holds every required secret. The feature-frozen build was deployed at 14:51 UTC on 2026-10-08, and the whole core loop (`bun scripts/smoke.ts --stage dev-oscabriel --loop`) passed on it twice in a row. **W9** (2026-10-09): deployed at 06:41 UTC (`a4543f6`), 06:57 (`177ee96`, the code cache fix) and 07:12 UTC (`ecc2107`, the drafter fix), smoke 8 of 8 each time (`platform-root` included). The deployed-web checks pass on datekit (12 of 12) and on burrow (11 of 12: burrow has no answer landing on dev, so `why.e2e.ts` has no ask to name). `smoke --loop --draft` passed once at 07:15 UTC on `smoke-20261009-071255`: `@cf/moonshotai/kimi-k2.7-code`, red first on attempt 1 of 3, 59 s from proposal to draft, 160 s for the whole loop; estimated Workers AI cost about $0.01 per attempt (about 1.6k tokens in and 1 to 2k out, 480 to 750 neurons on the same call replayed). |21+| `dev-oscabriel` | One person's iteration. Deploy it as often as you like. | Bootstrapped 2026-10-07 and deployed (platform, sandbox, web). Re-checked 2026-10-08: bootstrap created nothing, and the platform holds every required secret. The feature-frozen build was deployed at 14:51 UTC on 2026-10-08, and the whole core loop (`bun scripts/smoke.ts --stage dev-oscabriel --loop`) passed on it twice in a row. **W9** (2026-10-09): deployed at 06:41 UTC (`a4543f6`), 06:57 (`177ee96`, the code cache fix) and 07:12 UTC (`ecc2107`, the drafter fix), smoke 8 of 8 each time (`platform-root` included). The deployed-web checks pass on datekit (12 of 12) and on burrow (11 of 12: burrow has no answer landing on dev, so `why.e2e.ts` has no ask to name). `smoke --loop --draft` passed once at 07:15 UTC on `smoke-20261009-071255`: `@cf/moonshotai/kimi-k2.7-code`, red first on attempt 1 of 3, 59 s from proposal to draft, 160 s for the whole loop; estimated Workers AI cost about $0.01 per attempt (about 1.6k tokens in and 1 to 2k out, 480 to 750 neurons on the same call replayed). Eight open-source repos imported and kept from 07:35 UTC (issue 915; [Imported projects (kept)](#imported-projects-kept)); redeployed at 08:01 (`73adbab`) and 08:06 UTC (`a29af4e`) for the history-read fixes, smoke 8 of 8 each time. |22 | `demo` | The recording and the submission. Deploy it deliberately, and never while a take is being recorded (H7). | Bootstrapped 2026-10-08: six resources created, migrations `0001` to `0004` applied, and a second run created nothing. Its secrets are set. Deployed at 15:39 UTC on 2026-10-08 (the build the dev stage proved), and smoke passed. Seeded at 15:44 UTC with `datekit` (its maintainers layer and both sealed suites admitted) and `burrow` (the `drop-legacy-fetch` family), nothing claimed. The rehearsal (17:08 to 17:39 UTC) only read it, apart from ines-v's `env set SENTRY_AUTH_TOKEN` with a made-up value, which stays set for the take. At 18:13 UTC smoke passed 7 of 7, the deployed web's Playwright check passed 5 of 5, and burrow's six `drop-legacy-fetch-burrow-*` children were open and unclaimed. Each later deploy is listed, with its reason, in [Deploys of demo](#deploys-of-demo). **W9** (2026-10-09): deployed at 07:18 UTC (`ecc2107`; smoke failed only `platform-root`, a 404 from the W8 version as the upload finished, and passed 8 of 8 a minute later) and again at 07:22 UTC (`1a7bb89`, the same Worker code; smoke 8 of 8). The deployed-web checks pass 11 of 12 on datekit: `why.e2e.ts` needs an answer landing and demo has none, by design. Nothing was seeded, drafted, claimed or imported; it still holds `datekit` and `burrow`, and burrow's `drop-legacy-fetch` and its seven children are unclaimed. |23 24 There is no `prod` stage before the deadline. The top level of each `wrangler.jsonc` is stage `local`, for tests and `wrangler dev`, and it is never deployed. A new person's stage is added to `stages` in `stages.ts` and gets an `env` block in each `wrangler.jsonc`, in the same change.25 58 unmodified lines84 ## 3. Throwaway ledger summary85 86 A throwaway is something a smoke run, a swarm run or a `seed --as` copy makes on a stage, beside the stage's own resources. Each run appends one JSON line for each throwaway to `infra/created.jsonl` (`infra/created.ts`), and teardown acts only on those lines. When teardown deletes one, it appends a `deleted` line naming it (`deletedAt`, then its kind, name, namespace and stage). No line is ever rewritten or removed.87 88-On 2026-10-08 at 18:00 UTC the ledger held 69 entries, all on `dev-oscabriel`: 16 projects and 53 repos. 914's runs on 2026-10-09 added 8 (3 projects, 5 repos), so it holds 77, listed below. None is marked deleted yet. A read-only listing found every one of the 53 repos still there:88+On 2026-10-08 at 18:00 UTC the ledger held 69 entries, all on `dev-oscabriel`: 16 projects and 53 repos. 914's runs on 2026-10-09 added 8 (3 projects, 5 repos), so it held 77. 915's imports on 2026-10-09 added 22 (8 projects, 8 repos, and 6 `tags backfilled` repo lines), so it holds 99, the imports listed under [Imported projects (kept)](#imported-projects-kept) and the rest below. None is marked deleted yet. A read-only listing found every one of the 53 repos still there:89 90 | When (UTC) | By | Kind | Name | Where |91 | --- | --- | --- | --- | --- |92 | 2026-10-08 12:37 | swarm | repo | `burrow--drop-legacy-fetch-burrow-auth--wren` (a released claim's fork of the stage's `burrow`) | `projects-dev-oscabriel` |14 unmodified lines107 - The Project Durable Objects and front-page rows of those test projects. They are harmless and are not deleted.108 109 Imported projects (kept). `bun scripts/import-examples.ts --stage dev-oscabriel` imports the open-source repos the code browser is previewed on (anyhow, ky, gum, click, awesome, changesets, stb and fuzzel), one at a time, and records each in the ledger with `by: "import"`: one `project` line and one `repo` line in `projects-dev-oscabriel`, plus a `tags backfilled` note when `--tags` pushed their tags. They are not throwaways: teardown lists them as "kept imports" and never selects them, nor any fork of them, as it keeps the seeded examples. Deleting one is a person's Cloudflare delete. The script refuses `demo`.110 111+#### Imported projects (kept)112+113+Imported on 2026-10-09 between 07:35 and 07:42 UTC (issue 915), one at a time, by `bun --env-file=<dev secrets file> scripts/import-examples.ts --stage dev-oscabriel --only <p>`, with `--tags` under `bunx varlock run --path infra/ --` for every source that has tags. **Artifacts' import brings no tags**: anyhow's repo served 0 of its 105 after the import (`git ls-remote <platform>/anyhow.git 'refs/tags/*'`), and every other import with tags also came with none, so each was backfilled. An import of a `master` default leaves `refs/heads/master` frozen beside `main`. "Policy" is whether the config at the adopted commit evaluated: with no config folder the defaults apply and the run block comes from the repo's CI, and where the finder finds no test command there, the policy never evaluates (the people page says it has not been evaluated) and the platform lands no contribute-skill commit on top. Commits are the source branch's commits at import (`git rev-list --count`), plus the platform's one commit where the policy evaluated. The import time is the script's run, the backfill included. `bun infra/teardown.ts --stage dev-oscabriel` (read-only) lists all sixteen lines as kept imports and selects none.114+115+| Project | Source | Branch | Commits | Tags | Policy | Web | Imported (UTC) | Took |116+| --- | --- | --- | --- | --- | --- | --- | --- | --- |117+| `anyhow` | https://github.com/dtolnay/anyhow | `master` | 932 + 1 | 0, then 105 backfilled | evaluated | https://web-dev-oscabriel.oscargabriel.workers.dev/anyhow | 07:35 | 25 s, backfill 7 s |118+| `ky` | https://github.com/sindresorhus/ky | `main` | 592 + 1 | 0, then 99 backfilled | evaluated | https://web-dev-oscabriel.oscargabriel.workers.dev/ky | 07:38 | 42 s |119+| `gum` | https://github.com/charmbracelet/gum | `main` | 684 | 0, then 29 backfilled | not evaluated | https://web-dev-oscabriel.oscargabriel.workers.dev/gum | 07:39 | 17 s |120+| `click` | https://github.com/pallets/click | `main` | 3,379 | 0, then 71 backfilled | not evaluated | https://web-dev-oscabriel.oscargabriel.workers.dev/click | 07:39 | 33 s |121+| `awesome` | https://github.com/sindresorhus/awesome | `main` | 1,209 | none at the source | not evaluated | https://web-dev-oscabriel.oscargabriel.workers.dev/awesome | 07:40 | 15 s |122+| `changesets` | https://github.com/changesets/changesets | `main` | 985 + 1 | 0, then 740 backfilled | evaluated | https://web-dev-oscabriel.oscargabriel.workers.dev/changesets | 07:40 | 66 s |123+| `stb` | https://github.com/nothings/stb | `master` | 2,232 | none at the source | not evaluated | https://web-dev-oscabriel.oscargabriel.workers.dev/stb | 07:41 | 50 s |124+| `fuzzel` | https://codeberg.org/dnkl/fuzzel | `master` | 1,499 | 0, then 38 backfilled | not evaluated | https://web-dev-oscabriel.oscargabriel.workers.dev/fuzzel | 07:42 | 26 s |125+126+From `apps/web`, `WEB_URL=https://web-dev-oscabriel.oscargabriel.workers.dev bun run e2e -- imports.e2e.ts` passes 73 of 73: eight pages per project (home with the README and clone box, a nested folder, a file at `#L5`, the log, the newest commit, refs, people, why), each repo's own checks, and the timed first views. The first view of `why` and of a path's log took 64 to 81 s before `73adbab` and `a29af4e` (history read sixteen commits and versions at a time) and 14 to 28 s after them; see issue 915's comments.127+128 `demo` has no throwaways: `projects-demo` holds `datekit` and `burrow`, and `layers-demo` holds `datekit--maintainers`. Nothing that makes throwaways is meant to run there before the take: the core-loop smoke and the swarm's rehearsals run on the dev stage, the swarm on a `seed --as` copy. The take's swarm on demo's `burrow` will record its claim forks in the ledger; teardown never selects them (section 4).129 130 ## 4. Teardown policy131 44 unmodified lines176 177 | Stage | What | URL | State on 2026-10-08 |178 | --- | --- | --- | --- |179 | `dev-oscabriel` | platform | `https://platform-dev-oscabriel.oscargabriel.workers.dev` | deployed (`/health` answers 200); the core loop passed live twice on the 14:51 deploy; the W9 build since 2026-10-09 (`ecc2107` at 07:12), whose `/` answers 200 with HTML, or Markdown for `Accept: text/markdown` |163-| `dev-oscabriel` | web | `https://web-dev-oscabriel.oscargabriel.workers.dev` | deployed (`/` answers 200); W9's code browser, why, people and proposal pages pass the deployed-web checks |180+| `dev-oscabriel` | web | `https://web-dev-oscabriel.oscargabriel.workers.dev` | deployed (`/` answers 200); W9's code browser, why, people and proposal pages pass the deployed-web checks; the eight imports (`/anyhow`, `/ky`, `/gum`, `/click`, `/awesome`, `/changesets`, `/stb`, `/fuzzel`) pass `imports.e2e.ts` |181 | `dev-oscabriel` | CLI install | `https://platform-dev-oscabriel.oscargabriel.workers.dev/install.sh` | served from `releases-dev-oscabriel` |182 | `dev-oscabriel` | Google redirect URI (H4) | `https://platform-dev-oscabriel.oscargabriel.workers.dev/oauth/google/callback` | not registered |183 | `dev-oscabriel` | sandbox | none: it has no workers.dev route, and only the platform reaches it | deployed; the Checker's containers start on `standard-3` (2 vCPU, 8 GiB), the Lander's on `standard-2` |184 | `demo` | platform | `https://platform-demo.oscargabriel.workers.dev` | deployed 2026-10-08 15:39 (`/health` answers 200), and smoke passed; seeded with `datekit` and `burrow`. An anonymous `git clone <platform>/datekit.git` works, and a contributor's token gets 403 on `datekit--maintainers.git`. Redeployed with the W9 build on 2026-10-09 07:22 (`1a7bb89`); `/` answers 200. |133 unmodified lines