Public: anyone can read this; the crew can change it.
Data: managed Postgres on DigitalOcean as an infra kind (#16696) #17090
Parked 43h 27m ago
Managed Postgres on DigitalOcean is now an infra kind in Talk and MCP: it is priced, planned, built, and its URL is bound to the app as a secret. It is pushed, and the forge's check has not reported yet. The new tests (test/managed-database.test.ts), the dead-code test and tsc pass locally.
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy 1780f0d
-
History
- Pin the renumbered managed-database migration (#17074) 1780f0d
- Merge main; renumber the managed-database migration past the one that landed at the same stamp 15191c3
- The cockpit: board and map as one screen, driven by four keys, readable from a TV, with nothing that needs you that a rule could answer (#16844) 2b7a2cb
- Merge scanTomlValue and scanYamlValue into one value scanner (#17091) dcc6797
- Merge scanJsxTag and scanHtmlAttributes into one tag-attribute scanner (#17088) 821c831
- Repo header: descriptions clamp to 2 lines with expand (apps API separates description from brief), and a clear crew status line: "paused at its ceiling" with a Raise button (#16936) 81d5354
- Allow the managed database build's wait sleep in the named-timers test eb11035
- A push that adds a secret-shaped line is flagged before it lands (#17066) 068c207
- Try: in Talk or MCP, infra plan {database: true, where: "digitalocean/main@nyc3:db-s-1vcpu-1gb", name: "shopdb", app: "owner/app"}, read the steps and the $15 a month, then apply its id with the same want da731ad
- Managed Postgres on DigitalOcean as an infra kind: price read, plan step, binding as an app secret 2e31d87
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:k254qu54mj is past its budget: trevato/forge: "on production's size > a cold home answers from the picture, within a few passes over the runs" failed … (#17069) 641b5c0
- Remove "asks": what needs a person is an issue or a pull request assigned to… (#17023) 8fc1791
- A maintenance finding shows who last touched it (#17015) 4380ea9
- Every hosted forge streams its SQLite and git to a bucket continuously and restores from it (#16887) ffeeaa5
- The home's list of what needs the owner is driven by four keys: up, down, enter, back (#17061) 5668ae0
- Machines send heartbeats and new forges go to the emptiest one, from a route table the router reads (#17031) 0dc8388
- An edge-kept finding hands the owner the exact edge cache rule to paste, on the issue and on /maintenance (#17054) 471ab87
- The System screen shows each forge's snapshot stream lag, worded to pass the quiet-page rules (#17053) be89dac
- Release reused an image built from an older commit: v0.7.646 shipped without the fix it was cut for (#17028) 1aaad2d
- A lockfile reader lists every dependency a repository pins, from bun.lock and package-lock.json (#17064) c06ff90
4 earlier comments
Managed Postgres on DigitalOcean is now an infra kind in Talk and MCP: it is priced, planned, built, and its URL is bound to the app as a secret. It is pushed, and the forge's check has not reported yet. The new tests (test/managed-database.test.ts), the dead-code test and tsc pass locally. I ran the gate and a hand-picked set of related suites, not the full suite.
What changed
- Price read:
src/cloud/database.tsholds a table of DO's four managed Postgres sizes at their list prices, one node each. DO's API lists sizes but not prices, so I copied the prices from memory of DO's pricing and have not checked them against DO's pricing page. Please check the table. It is dated byDB_PRICED_ON. - Plan step:
planDatabaseis pure, like the machine plan. It gives the steps (create, wait until online, bind), the monthly delta against the account's ceiling, the time to ready and the refusals. The refusals are the ceiling's ownrefusalOfsentences. It reusesAccountRead,refusalOf,NAME_TAKEN,NO_ACCOUNTandREAD_ONLY. - Build:
src/actions/database.tschecks the plan id against what stands now, then finds or creates the cluster at DO. It records amanaged_databaserow (new migration, pinned) as soon as the cluster exists, waits until it is online, and writes the connection URL asDATABASE_URLon the app throughputSecret. A repeat build only re-binds, and the URL is never in a return or an event. Each step emits aninfra.stepevent. - Spend:
accountCentsnow adds the account's databases, so the ceiling counts them. I exportedcallerfrommachine.tsto reuse its DO call wrapper. - Door: the
infraMCP tool takesplanwith{database: true, where: "digitalocean/<acct>@<region>:<size>", name, app}.applytakes that plan's id plus the samewant, and is held for the person's word like any apply. The how-to isdocs/features/managed-database.md.api.digitalocean.comwas already inforge.jsonegress.
Left out
- No terminal composer: the commit says
No door:, because the terminal'sinfrascreen only composes machines. This is the gap in "both doors". - No lifecycle: no retire, resize, backups or a page row yet. Spaces buckets and the other clouds are not covered.
- Real DO untested: DigitalOcean's response shape (
database.id,status: "online",connection.uri) is only exercised against a recorded fake.
Try: in Talk or MCP, infra plan {database: true, where: "digitalocean/main@nyc3:db-s-1vcpu-1gb", name: "shopdb", app: "owner/app"}. Read the steps and the $15 a month, then apply its id with the same want.
🤖 Generated with Claude Code
The check failed because the new database build in src/actions/database.ts has a setTimeout sleep that the named-timers test didn't know about. I added an allowlist entry for it in test/timers-named.test.ts, worded like the other sleep entries. The sleep only resolves the promise its caller awaits, and the caller's work after the await is the caller's job.
bun test test/timers-named.test.ts passes, 9 of 9. I did not run the full suite or bun x tsc --noEmit, since the change is only a test allowlist line. The fix is pushed.
The gate noted three files with comment lines over 100 columns. Its --fix wrapped nothing and left the working tree unchanged. It also flagged getManagedDatabase as 0.84 similar to getChange in src/core/model_review.ts, which I left alone.
The commit says No door: because no page, action or tool changed.
The check failed because main landed 20261201140000-scan-finding-excerpt.ts while my branch had 20261201140000-managed-database.ts. Both got generated index name m446, which is the duplicate identifier.
I merged origin/main into the branch and renamed my migration to 20261201150000-managed-database.ts, so it sorts after the other one. I regenerated src/generated/migrations.ts with bun scripts/own-source.ts. It now has m446 for scan-finding-excerpt and m447 for managed-database.
bun x tsc --noEmit is clean. The own-source, migrations and timers-named tests pass, 12 of 12. I did not run the full suite; the forge's check does that on the push, which is done.
The earlier check log also shows a design-drift warning for 11 one-off classes against a baseline of 10. The classes it lists are in src/web/ files this pull doesn't touch (build_info, conflicts, home_flow_style, iterations, talk_client, pick, feed_style). It was a warning, not the failure, and I didn't investigate it.
This push fixes the failing gate on #17090, which was missing a pin for the 20261201150000-managed-database migration. I haven't seen the forge's check run on it yet.
- What was wrong: an earlier merge renumbered the migration from
…140000to…150000. The old…140000pin was still in the tree, and the new one had never been created. - What changed: I removed the stale
20261201140000-managed-database.pinand ranbun scripts/pin-migrations.ts, which created20261201150000-managed-database.pin. That is the only change in this push, so there is no page, action, API route or MCP tool change and no door change. - Local checks:
bun x tsc --noEmitis clean, andtest/schema-migrations.test.tspasses (26 of 26) on its own. An earlier run showed 2 failures, but it ran at the same time as the background gate and typecheck. I reran the suite alone and didn't investigate those two, so I can't say what caused them. I did not run the full suite. - Gate:
bun scripts/gate.tsprinted no rule failure. It printed these notes:- Four files have comment lines over 100 columns, which the nightly rewrap handles.
getManagedDatabaseinsrc/core/managed_database.tsis 0.84 similar togetChangeinsrc/core/model_review.ts. I left this alone because it isn't a blocking rule.- The duplicate scan hit its 8-second limit and compared against only part of the tree.
I didn't check the other three recurring refusals (dead exports, issue numbers in direction lines, as never in tests) beyond what the gate reported.
Managed Postgres on DigitalOcean is now an infra kind in Talk and MCP: it is priced, planned, built, and its URL is bound to the app as a secret. It is pushed, and the forge's check has not reported yet. The new tests (
test/managed-database.test.ts), the dead-code test andtscpass locally. I ran the gate and a hand-picked set of related suites, not the full suite.What changed
src/cloud/database.tsholds a table of DO's four managed Postgres sizes at their list prices, one node each. DO's API lists sizes but not prices, so I copied the prices from memory of DO's pricing and have not checked them against DO's pricing page. Please check the table. It is dated byDB_PRICED_ON.planDatabaseis pure, like the machine plan. It gives the steps (create, wait until online, bind), the monthly delta against the account's ceiling, the time to ready and the refusals. The refusals are the ceiling's ownrefusalOfsentences. It reusesAccountRead,refusalOf,NAME_TAKEN,NO_ACCOUNTandREAD_ONLY.src/actions/database.tschecks the plan id against what stands now, then finds or creates the cluster at DO. It records amanaged_databaserow (new migration, pinned) as soon as the cluster exists, waits until it is online, and writes the connection URL asDATABASE_URLon the app throughputSecret. A repeat build only re-binds, and the URL is never in a return or an event. Each step emits aninfra.stepevent.accountCentsnow adds the account's databases, so the ceiling counts them. I exportedcallerfrommachine.tsto reuse its DO call wrapper.infraMCP tool takesplanwith{database: true, where: "digitalocean/<acct>@<region>:<size>", name, app}.applytakes that plan's id plus the samewant, and is held for the person's word like any apply. The how-to isdocs/features/managed-database.md.api.digitalocean.comwas already inforge.jsonegress.Left out
No door:, because the terminal'sinfrascreen only composes machines. This is the gap in "both doors".database.id,status: "online",connection.uri) is only exercised against a recorded fake.Try: in Talk or MCP,
infra plan {database: true, where: "digitalocean/main@nyc3:db-s-1vcpu-1gb", name: "shopdb", app: "owner/app"}. Read the steps and the $15 a month, thenapplyits id with the samewant.🤖 Generated with Claude Code
Closes #17074