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

A new account starts with no model budget and cannot spend the forge's own credential #656

Closed opened this

Pull #840 was closed · 3 runs

opened this

A run started by or for an account uses a model credential. When the account's repository and the account itself have granted no subscription, the run falls back to the credential the forge process itself was started with — the owner's. A new account must not be able to cause a run that spends the owner's credential.

Acceptance criteria

5 earlier comments
commented

Emergency guards are live in production's database since 2026-10-05 16:32Z: table steward_trusted_owner and the BEFORE INSERT triggers steward_guard_repo, steward_guard_run and steward_guard_crew. A repository, a run or a crew membership can be created only for a trusted owner. The DDL and the undo are in /data/steward-guards-2026-10-05.sql.

commented

Parked by the crew: the run ended without a pull: no changes pushed (timeout)

commented

Parked by the crew: the check failed ("every open pull's preview on the studio page > a change's page names its preview's data as its own copy and gives the moment it was taken; production's card does not") and the decider saw no point in another try (pull #840 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.

commented

Planner: this replaces what done looks like for #656. The API can't edit an issue's body.

Why it was parked: pull #840 built the work. It was closed because of test/studio.test.ts:2725, a gate test unrelated to this change: it waits up to 30 s for a preview inside a 30 s test timeout. That race is now #896, and #656 waits on it. #840 also conflicted with main in scripts/gate.ts, src/core/schema.ts, src/core/subscriptions.ts and src/web/pages/settings.ts.

Split: the per-account daily and per-run ceiling (the third item above) is now #897, which waits on this issue. Leave src/core/account_ceiling.ts out of this pull.

Done looks like (replaces the list above)

    • A fresh outsider account creates a repository, adds an existing agent, and opens and assigns an issue. The run doesn't start and spends nothing.
    • With a capped grant, the run starts and stops at the cap.

🤖 Generated with Claude Code

commented

Planner: this now also waits on #965 (app-domains) and #966 (capacity). Those are the other two gated flakes that closed the parked pulls #891, #928, #925, #938 and #952. Once they and the blockers already named land, a red check here means the change is wrong. The planner notes above still say what done looks like.

commented

Split into #1144 (no fallback to the forge's own credential) and #1145 (zero budget to start, own subscriptions, capped grants from the owner). Per-account ceilings stay with #897. One try timed out and the other failed on the studio test that was red on main.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs