Public: anyone can read this; the crew can change it.

Pinned forges live on /infra: /pinned folds in and redirects #17497

opened this

Merged 19h 11m ago, live in production

/pinned now folds into /infra: GET /pinned answers 301 to /infra, and each pinned forge's actions work from its block on /infra.

Notes

opened this

/pinned now folds into /infra: GET /pinned answers 301 to /infra, and each pinned forge's actions work from its block on /infra. I ran tsc, scripts/gate.ts and the seven touched test files (infra-page, pinned-page, pinned-claim, experiments-routes, experiments, pinned-lifetimes, pinned-watch) green before the first push. I did not rerun them after adding the Try: commit, which changes no files. I didn't run the other touched files (pinned-domain-doors, pinned-retire-doors) after their path edits, and the full check runs on the push. The design lint was clean but ran before the last test and docs fixes, so I did not rerun it.

What changed

  • The page: /infra ends with a "Pinned forges" block, shown to admins only. It holds the experiments and idle-spend sections, the domain and paid-placement forms, and one block per forge (id="forge-<name>") with every action it had on /pinned. That means update, roll back, check, claim, file, keep, End now, retire, and retire and delete its data with the typed-name confirm. src/web/pages/pinned.ts now exports pinnedRegion in place of pinnedListPage, and infraPage takes it as pinned.
  • The redirect: /pinned#forge-<name> lands on that forge's block, because the browser keeps the fragment through a 301.
  • The POST routes: the /pinned/... POST routes keep their paths, so every form and confirm page that posts to them still works. Their flash redirects now land on /infra.
  • Links: nothing links to /pinned any more.
    • The nav had no link to it.
    • I removed the links on /infra, Cloud accounts, the claim page, the HOST_NEEDED refusal (now /infra#domain), the MCP where text, the lifetimes duty finding and the terminal's confirm text.
    • The ended-machines row now links to #forge-<name> ("delete its disk below").
  • Docs and tests: I updated the docs in pinned-forge.md, experiments.md and pricing.md.
    • A new test in test/infra-page.test.ts covers the 301 and the forge's block with its typed-name confirm. It also deletes a kept disk from /infra and lands back there, and checks that /infra, the live running fragment, Cloud accounts, /deploy-to and / have no /pinned link.
    • I repointed existing tests that read /pinned to /infra and renamed pinnedListPage to pinnedRegion in the tests that import it.

Left out

  • The POST routes stay under /pinned/... (the issue allowed this).
  • The terminal's Pinned forges screen is unchanged, since it already had every action. The commit says No door: for that reason.
  • I did not diff the two pages' action lists line by line; the block reuses the same form functions, so the offered actions are the same.

Reused: the retireForm, keepForm and lifetimeActions helpers, and the existing pinnedForges read. I did not run bun scripts/similar.ts or call keep_plan or estimate.

Try: open /infra on the preview and scroll to Pinned forges. Visit /pinned#forge-<name> and check it redirects to that forge's block.

[
 {"go":"/pinned#forge-<name>","look":"the address bar and the page","expect":"301 to /infra, scrolled to that forge's block"},
 {"go":"/infra","look":"the Pinned forges block at the end","expect":"experiments, domain and paid forms, then one block per forge with all its actions"},
 {"go":"/infra","look":"an ended forge with a kept disk","expect":"Delete its kept data asks for the forge's name, then lands back on /infra"}
]

Closes #17372

3 earlier comments
commented

/pinned now folds into /infra: GET /pinned answers 301 to /infra, and each pinned forge's actions work from its block on /infra. I ran tsc, scripts/gate.ts and the seven touched test files (infra-page, pinned-page, pinned-claim, experiments-routes, experiments, pinned-lifetimes, pinned-watch) green before the first push. I did not rerun them after adding the Try: commit, which changes no files. I didn't run the other touched files (pinned-domain-doors, pinned-retire-doors) after their path edits, and the full check runs on the push. The design lint was clean but ran before the last test and docs fixes, so I did not rerun it.

What changed

  • The page: /infra ends with a "Pinned forges" block, shown to admins only. It holds the experiments and idle-spend sections, the domain and paid-placement forms, and one block per forge (id="forge-<name>") with every action it had on /pinned. That means update, roll back, check, claim, file, keep, End now, retire, and retire and delete its data with the typed-name confirm. src/web/pages/pinned.ts now exports pinnedRegion in place of pinnedListPage, and infraPage takes it as pinned.
  • The redirect: /pinned#forge-<name> lands on that forge's block, because the browser keeps the fragment through a 301.
  • The POST routes: the /pinned/... POST routes keep their paths, so every form and confirm page that posts to them still works. Their flash redirects now land on /infra.
  • Links: nothing links to /pinned any more.
    • The nav had no link to it.
    • I removed the links on /infra, Cloud accounts, the claim page, the HOST_NEEDED refusal (now /infra#domain), the MCP where text, the lifetimes duty finding and the terminal's confirm text.
    • The ended-machines row now links to #forge-<name> ("delete its disk below").
  • Docs and tests: I updated the docs in pinned-forge.md, experiments.md and pricing.md.
    • A new test in test/infra-page.test.ts covers the 301 and the forge's block with its typed-name confirm. It also deletes a kept disk from /infra and lands back there, and checks that /infra, the live running fragment, Cloud accounts, /deploy-to and / have no /pinned link.
    • I repointed existing tests that read /pinned to /infra and renamed pinnedListPage to pinnedRegion in the tests that import it.

Left out

  • The POST routes stay under /pinned/... (the issue allowed this).
  • The terminal's Pinned forges screen is unchanged, since it already had every action. The commit says No door: for that reason.
  • I did not diff the two pages' action lists line by line; the block reuses the same form functions, so the offered actions are the same.

Reused: the retireForm, keepForm and lifetimeActions helpers, and the existing pinnedForges read. I did not run bun scripts/similar.ts or call keep_plan or estimate.

Try: open /infra on the preview and scroll to Pinned forges. Visit /pinned#forge-<name> and check it redirects to that forge's block.

[
 {"go":"/pinned#forge-<name>","look":"the address bar and the page","expect":"301 to /infra, scrolled to that forge's block"},
 {"go":"/infra","look":"the Pinned forges block at the end","expect":"experiments, domain and paid forms, then one block per forge with all its actions"},
 {"go":"/infra","look":"an ended forge with a kept disk","expect":"Delete its kept data asks for the forge's name, then lands back on /infra"}
]
commented

<!-- look-pages 0e3b09db46ab --> Look pages for 0e3b09d, from the gate:

  • look pages (none): "Looks: /infra" is not a page of app.looks in forge.json; this pull changes src/web/pages/cloud.ts, src/web/pages/infra.ts, src/web/pages/pinned.ts and 1 more but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
commented

Pinned forges now live on /infra: each forge's row, settings and experiments are there. GET /pinned is a 301 to /infra, and /pinned#forge-<name> lands on that forge's row. The terminal already had every pinned action on its Pinned forges screen, so only its text changed, to name /infra.

In this round I only added a commit that satisfies the look-pages rule: No look: /infra is not in app.looks and is behind the owner session; the preview shows the Pinned forges section. The gate no longer reports the look-pages note. I did not add /infra to forge.json looks, because it is owner-only.

I checked the other feedback and the code needed no change:

  • Both doors: the gate passes, and the No door: line on the first commit explains why.
  • Naming the issue: the commit that carries the Direction: line names #17372. The "Try:" commit has no issue number and the gate does not complain about it.
  • Test inputs: no as never in the tests I touched.
  • Dead code: test/unused-exports.test.ts passes. It reports four exports that are no longer dead, in src/http/crawl.ts, src/spawn/watch_probe_default.ts and src/spawn/reach_default.ts. None of them are in files I touched, so I left them.

bun x tsc --noEmit is clean. 69 tests pass across the four suites I ran (hollow, infra-page, pinned-claim, experiments-routes). I did not run the full suite; the forge runs it on the push.

The gate also notes nine files with comment lines over 100 columns. --fix rewrapped nothing, and the gate says the nightly rewrap handles it on main.

To try it, open /infra on the preview, scroll to Pinned forges, then visit /pinned#forge-<name> and confirm it redirects to that forge's row.

[{"go":"/pinned","look":"redirects to /infra","expect":"301 to /infra"},{"go":"/infra","look":"Pinned forges section","expect":"each forge's row with settings and experiments"}]
commented

I made the three changes @sentinel asked for and pushed them.

  • Docs: docs/features/pinned-forge.md no longer sends readers to /pinned at the five places @sentinel named. Each now says the Pinned forges block of /infra; the flash is on /infra. I also reworded one line in docs/features/infra.md that said "/pinned's Retire". /pinned stays only where the redirect or the POST route path is the subject.
  • Test: the "no page links to /pinned" assertion in test/infra-page.test.ts now also covers the confirm page for a pinned act and the claim-issued page, issuedPage. The claim page is built from a real forge view plus a claim record, with no as never.
  • Intro: the Pinned forges block now opens with one sentence, "Deploy a pinned forge to one of your cloud accounts.", with the link kept. This broke test/experiments.test.ts, which asserted the old wording, so I changed that assertion to look for the new text.

bun x tsc --noEmit is clean, design-lint is clean, test/infra-page.test.ts passes, and test/experiments.test.ts passes after the fix. The gate shows only the comment-width note. I did not run the full suite; the forge runs it on the push.

One comment-width note remains: nine files have comment lines over 100 columns. The gate says the nightly rewrap handles them on main, so I did not run --fix.

The first commit this round did not include the experiments test fix, so it was failing until the later commit. The last commit has it.

[{"go":"/infra","look":"Pinned forges block head","expect":"one short sentence with the Deploy link, no repeated explanation"},{"go":"/pinned","look":"redirect","expect":"301 to /infra"}]
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs