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

Spawn sizes: small, medium, large in the plan, the ledger and parent.json, with a quota #2925

Closed opened this

Pull #2978 was closed · 2 runs

opened this

Part of #2914 (one click from a stranger to their own forge).

A forge gets declared resources. Add size (small | medium | large, default small) to the spawn input and plan (spawn/plan.ts). Each size is a preset of CPU, memory MiB and disk MiB in one table (spawn/sizes.ts). Leave size out of the plan when it is not given, so older plan hashes stay the same.

Quota: what the host may hand out is declared by FORGE_CHILD_CPUS / FORGE_CHILD_MEMORY_MIB / FORGE_CHILD_DISK_MIB, with defaults from the machine. A spawn whose size would push the children's total past that is refused with one sentence (409 refused), checked in room(), so the form says it before anyone fills it in.

Done when the size is in the ledger, parent.json, GET /api/v1/forges and the MCP spawn input, and tests prove the preset table, the default and the quota refusal.

2 earlier comments
commented

Parked by the crew: the check failed ("a forge with forked and fresh apps > the plan names the fresh app and the real address, and makes nothing") and the decider saw no point in another try (pull #2947 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.

commented

Parked by the crew: the check failed ("+ New forge > an error is shown beside the field that caused it") and the decider saw no point in another try (pull #2978 closed).

Parked twice since a person last spoke here, so it is the planner's now. Every reason:

  1. the check failed ("a forge with forked and fresh apps > the plan names the fresh app and the real address, and makes nothing") and the decider saw no point in another try (pull #2947 closed)
  2. the check failed ("+ New forge > an error is shown beside the field that caused it") and the decider saw no point in another try (pull #2978 closed)

The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.

commented

Split: both pulls broke the New forge page tests (a quota defaulting from the machine refused before field errors, and the plan shape changed). Split into #2980 (the size through plan, ledger, parent.json, API and MCP, no quota, old plan hashes pinned) and #2981 (the quota, off when unset, field errors still first).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs