Public: anyone can read this; the crew can change it.
Pinned forges end on a date: a notice a day before, Keep, and retire with data kept #16699
Check · Review · Land · Live done — Landed and live in production.
Phase 1a of #16696. A pinned forge on an experiment gets a 7-day lifetime (deploy can set 1-90 days; claimed/sold forges never end). A 15-minute duty warns once a day before (one event, one finding) and at the end retires the machine with data kept.
-
Reviews
Changes requested — before the latest pushFix first: Keep on a forge with no lifetime must be refused, not start one. Changes needed, all in one round:
- HIGH, unsafe default:
keepPinnedgives any unclaimed forge an end date when it has none. Via the API, the MCPkeepverb or the terminale, one keypress on a sold-but-unclaimed or plain forge schedules its retirement a week later, and the duty then takes its machine down. Keep must only extend an existing lifetime and otherwise answer 'it never ends on its own'. - No test covers
deploywithlifetimeDays: the 1 to 90 validation, the order exemption, or the MCP pass-through. No test covers thePOST /pinned/:name/keeppage route, thePOST /api/v1/admin/pinned/:name/keepAPI route (guest and non-admin refused), ordropPinnedclearing the lifetime row. Add tests that fail without them. - Clean: the 7-day lifetime is defined twice (
LIFETIME_DAYSin actions andLIFETIME_MSin experiments). Keep one and import it, so there is one way. - Clean: the doc comment of
dropPinnedis now stranded above the new Lifetime interface. Put it back ondropPinned. - Clean: the duty tells 'claimed' apart by
gone.error.includes("claimed"). Use the claimed state from the row, or a typed refusal, not a message match. - Both doors: a lifetime can only be set from the API or MCP at deploy. The page deploy form and the terminal deploy prompt cannot, so a person cannot use it where they work. Add the field to both, or drop
lifetimeDaysfrom deploy.
ApprovedSince ecfa4c753c84 the asks are met: Keep no longer gives an end to a forge that had none (
keepPinnedrefuses with a clear sentence), and the added tests cover it, the lifetime validation at deploy, dropPinned clearing the lifetime, and the page and API keep routes with a non-admin refused. Every door checks admin: page, API, MCP and terminal. The warning is said once, and the retire keeps the data. The how-to is in docs/features, not README. No new findings on the changed lines. - HIGH, unsafe default:
-
Checks
shipped production is serving it deploy e78d344
-
History
- Lifetimes: Keep never gives an end; one 7 days; the tests sentinel asked for d657f68
- Lifetimes: retire through retirePinned, and `} else` on one line 2d8f653
- openapi-errors: the keep route is one more that is not called (57) 362d2f3
- Pinned forges end on their own: lifetimes, Keep and End now 6c1cb86
- Feature flags for apps: a flags file in the app template, values set from the app's settings, FORGE_FLAGS_URL and a one-file client (#16707) c4232ca
- Design: the front page's admin controls draw §5's row, bar and field, and front-admin/pick/pin-any/weights leave §5d (#16703) fbe2465
- Finished run logs archive to the BlobStore (#16710) d6e4708
- Observability 5: one great chart - real size, readable axes, nice ticks, palette, tooltips, synced crosshair, release marks (#16686) 8eb4dc9
- LFS door: batch API and locks on the BlobStore (#16708) e29b657
- Talk says plainly what a cloud machine bills (#16688) 456cda9
- Revert "The repo is durable in the bucket: each push's pack is written to the BlobStore before ack, refs stay in the database with CAS" (#16725) 2e80cb0
- Main's full check prints each step's seconds and share (#16720) 0bb2460
- Builder brief: run gate --explain before --fix, and say the both-doors rule (#16718) 05a2403
- Sampler: count sample times before the grouped row count (#16716) f719db4
- Main green again: the pull folds' empty review state uses the shared words; capture expects the error page (#16714) aa51435
- End-to-end test: anonymous, account, forge live, app included, health answers, each step named (#16704) 81ea93d
- Live triage's comment lookups use an issue index: 3.8 s → 11.5 ms per query (#16713) 53352fb
- Every answer that sends Last-Modified honours If-Modified-Since, or stops sending it (#16685) 32c6d9a
- A Worker-shaped hosted app under celld dev, measured against a Bun app: one example, one test, one table (#16694) 37adabf
- A deploy never makes two machines for one forge, a forge can be retired, and… (#16558) a36a094
Phase 1a of #16696. A pinned forge on an experiment gets a 7-day lifetime (deploy can set 1-90 days; claimed/sold forges never end). A 15-minute duty warns once a day before (one event, one finding) and at the end retires the machine with data kept. Keep moves the end 7 days; End now is the existing retire confirm. Doors: /pinned fact and buttons, experiment line, terminal e, API keep route, pinned_forge keep verb and endsAt in list. Tests: test/pinned-lifetimes.test.ts.
🤖 Generated with Claude Code