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

The forge as its own customer: production hosts and releases; a hosted workshop forge builds the forge and proposes upstream #13639

Closed opened this

Picked up by torque; no pull came of it (failed) · 3 runs · run

opened this

The owner's direction, 2026-11-15, formalized. This is an epic: each step in the plan's table becomes its own issue as it is reached; steps 0 and 1 are being piloted now.

The forge as its own customer

2026-11-15. Written from the owner's direction: "why don't we dogfood our own forge? forge.open-platform.sh could be just the hosted forge. production. only certain users can propose changes upstream and it will take a ton of work off of the main forge … I think this also gets to your point of the packages and modularization."

The answer in five lines

  1. Yes. Today one process is three things at once: the product's production site, the workshop where the forge is built, and the owner's personal forge. Every problem of the last three days came from that overlap.
  2. Split by role, not by code: Production hosts and sells and holds the canonical repository. The workshop is a hosted forge, a customer like any other, where the crew builds the forge.
  3. The workshop proposes upstream. Only named maintainers may. Production lands what arrives already proven and releases it on a train: the workshop runs each candidate first.
  4. This makes us the heaviest customer of our own hosting, which is the fastest way to find what hosted forges lack.
  5. Modularization follows the same line: a small kernel, and features that live in their own repositories and are absorbed, each with its own tests. That is what makes checks cheap.

What is true today (measured, 2026-11-13 to 11-15)

forge.open-platform.sh is one container on one machine (72 of 80 CPUs, 251 GB). In it:

RoleWhat it does thereWhat it costs the other roles
Productionfront door, sign-up, pricing, 16 hosted forges in cells, gretchy.store, open-platform.shmust never be down
Workshop8 builders, a planner, ~3,150 test files per check, 30 to 60 pulls opened an hourchecks hold 50 to 62 cores; the serving thread stalls 5 to 20 times a minute; the database took 2.4M events
Personal forgethe owner's apps and their crewsits home page fills with the workshop's noise

Incidents that were this overlap and nothing else:

  • Five outages in three days (2 min, 2.5 min, three Bun crashes, a 4.5 min crash loop). Each was development reaching production: a helper opening the live database, a profiler, a worker the crew added, a default the crew changed. Customers' forges ride the same restarts.
  • About ten releases a day, each a restart of the host of every customer, because the workshop wants its own fixes live.
  • Restarts cut a quarter of checks one night. The workshop's releases interrupted the workshop's own work.
  • The staging rig cannot see production's shape (no crew, no apps, no checks), so two bad releases passed it.
  • The week's model allowance is spent by a planner that opens general work on the production forge.

What already exists and is unused for this: hosted forges in their own cells, each with its own crew, budget and checks; origins and forks between forges; propose_to_parent_forge (a child offers a landed change to its parent as a pull); following an upstream and taking updates; a release keeper per forge; absorbed features (feature in forge.json, as the morning paper is). The contribution loop was proven end to end between forges on 2026-11-13.

The model

Three roles, three places

Production (P): forge.open-platform.sh. Hosts forges, sells them, serves the sites, holds the canonical forge repository and its releases. It runs no builders and no planner for the forge's own code. Its engine's only work on that repository is admitting proposals and cutting releases. It restarts when a release is promoted: once or twice a day, at a chosen hour.

The workshop (W): a hosted forge on P, e.g. workshop--forge.open-platform.sh. A customer. It holds a fork of forge, the backlog, the planner, the builders, the checks. It runs the newest candidate build at all times (its release keeper is on), so it is also the canary. It can crash, restart ten times an hour and fill its own database, and P does not feel it.

Personal forges. The owner's apps move to a forge of his own (trevato--forge…), also a customer. P's home page is then the product's, and his home page is his kanban.

The flow of a change

  1. An issue is opened on W (or arrives from P: a customer's feedback, a stranger's report, routed to W as an issue with its origin kept).
  2. W's crew builds it and W's check passes on the merge with W's main. W lands it.
  3. W proposes upstream: one proposal per landed change, or one per train (see open questions). The proposal carries W's attestation: the commit, the base, the check run, its result, signed by W's key that P holds because P hosts W.
  4. P admits it: the proposer is on the maintainer list; the attestation verifies; it merges cleanly; P's own small gate passes on the exact tree that becomes main (rule scans and a boot, minutes not an hour). P does not re-run 3,150 tests.
  5. A release candidate is cut from P's main. W takes it first, automatically. After a soak on W under real crew load (a number of hours with no restart, no fatal line, stalls and memory inside their first-hour figures), P promotes it at its release hour. A failed soak never reaches P.

Who may propose upstream

A short list on P's forge repository: the owner and W's landing identity. Everyone else (Ben, grokbot, a stranger) forks from P to a forge of their own and proposes to W, where a crew and a full check can receive them. P stays the root of the fork tree, so "contribute anywhere" keeps its shape: you fork the canonical repository, and your proposal is routed to the workshop.

What P keeps

Accounts and billing; the hosted forges and their cells; the front door, pricing, docs, releases and changelog; the canonical repository (read by everyone, written by admitted proposals only); intake of feedback; the edge. Its database is the customers', not the workshop's: it stops growing by a million rows a week.

Why this is right

  • Blast radius. A bad commit can only hurt W until a human-free soak has passed. Every outage above would have been W's.
  • The rig becomes real. W is production-shaped by construction: crew, checks, apps, a full database. The 0.7.599 crash loop needs W's config to appear; it would have appeared on W.
  • Production gets calm. No checks on its CPUs, a release a day, a small database. The page thread's stalls were the workshop's work.
  • We find our own product's holes first. A workshop needs a size above "large" (4 CPUs, 8 GB), checks that can run a forge's own end-to-end tests inside a cell, egress for installs, backups of a hosted forge, a way to carry a repository with its history to another forge, a model account on a hosted forge. Customers need every one of those. Today nobody at home feels them.
  • It is the vision already written down. More forges is how this scales; a forge divides when heavy; what is not carried is archived; the kernel is small and what it generates is large.

What it costs, honestly

  1. Compute does not shrink by moving. W's checks still want 50 cores, on the same machine. What changes is that they are in a cell with a CPU set of its own, apart from P's serving cores. Real relief on check time is the modularization below, not the move.
  2. A hosted forge cannot yet run the forge's own suite. Tests that spawn cells, take looks with Chromium or install packages fail or are skipped when nested in a cell (seen on 11-14 and 11-15). Either cells learn to nest, or those tests run in a lane P provides to W. This is the first thing the pilot must measure.
  3. The backlog lives on P. 17,700 issues and 9,000 pulls. Moving them needs "carry a repository with its history to another forge": one file per repository as an export format (measured as the right use of the per-repository database idea on 11-15). Until it exists, W starts with a fork and new work, and the history stays readable on P.
  4. Two forges to keep well. W must take updates by itself and be backed up like a customer. That is the product working, or a list of what to fix.
  5. Admission by attestation is new trust code. If it is wrong, an unproven change reaches production's main. Mitigation: P's own gate on the exact tree, the soak on W, and the 75-second watch with rollback that already exists.
  6. Latency of a fix. A change reaches customers in hours, not minutes. An emergency lane (the owner promotes now) keeps the old speed for the rare case.
  7. One machine. W, P and the customers share a host. A second machine for W is the real isolation, and the design does not depend on it.

Modularization: what "packages" should mean here

The measured ceiling on checks: a pull's fast tier still selects about 2,670 of 3,150 test files, because 567 source files are each executed by more than 1,000 tests. Most tests boot a whole forge. Selection and caching cannot fix that; boundaries can.

  1. Kernel: database, migrations, log, ids, events, config, the git door, auth. Small, slow to change, the only thing every test may boot.
  2. Engines, each a package with its own tests against the kernel only: checks, crew and autonomy, apps runtime and cells, spawn and hosting, snapshot and restore, flow and pictures.
  3. Surfaces: web pages, MCP, terminal. Tested against engines' interfaces with fixtures, not a booted forge.
  4. Features in their own repositories, absorbed through the feature block that already exists: the morning paper today; billing, the changelog, boards, the map and talk are candidates. A feature's check is its own repository's check: minutes.

Order: draw the boundaries inside the one repository first (workspace packages, an import rule per package, a test tier per package), measure the fast tier per package, and only then move a feature out. A package boundary is a rule test, like the ones the gate already has.

The workshop and the packages are the same idea at two sizes: work lives in a unit small enough to check quickly, and proposes to the unit above it.

The plan, in reversible steps

StepWhatProvesUndo
0Stand up W as a hosted forge with a fork of forge and a crew on lent credit. Run the forge's check inside W once.what a hosted forge cannot do yetremove W
1W builds one real issue and proposes it upstream with propose_to_parent_forge; P lands it by today's path.the loop, with numbersnone needed
2A workshop size (CPUs and memory a crew's forge needs) and a CPU set for cells apart from P's serving cores.stalls on P fallsize and pin are settings
3W's release keeper on: W runs every candidate. P promotes after a soak.the canaryturn the keeper off
4Attested admission on P; the maintainer list. P's builders for forge off.P does no developmentlist and switch
5Carry forge's backlog to W in the per-repository export format.history movesP keeps its copy until proven
6The owner's apps to his own forge.P's home is the product'ssame carry, back
7Package boundaries, then the first feature moved out.checks in minutesboundaries are rules

Steps 0 to 3 change nothing a customer can see and can each be undone the same day.

Open questions for the owner

  1. One proposal per change, or one per train? Per change keeps history and blame simple and is what the tools do today. Per train is fewer admissions and matches releases. Recommended: per change, admitted in batches.
  2. Does W live on this machine? Recommended: yes to start, pinned apart; a second machine when one is at hand.
  3. Where do customers' feedback and strangers' reports land? Recommended: P takes them and routes them to W with the origin kept, so nobody has to know W exists.
  4. Who is on the maintainer list besides you and W?
5 earlier comments
commented

Parked by the crew: the run ended without a pull: declined: #13639 is an epic and a design document, not a change I can make. Steps 0 and 1 are the owner's pilot: standing up a hosted workshop forge, lending it credit, and running the check and a proposal insi

commented

Parked by the crew: the run ended without a pull: declined: #13639 is an epic and a design document, not a change one run can land, and this is the second time it has been parked for that reason.

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

  1. the run ended without a pull: declined: #13639 is an epic and a design document, not a change I can make. Steps 0 and 1 are the owner's pilot: standing up a hosted workshop forge, lending it credit, and running the check and a proposal insi
  2. the run ended without a pull: declined: #13639 is an epic and a design document, not a change one run can land, and this is the second time it has been parked for that reason

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

Parked by the crew: the run ended without a pull: declined: #13639 is an epic and a design document. It isn't a change one run can land, and this is the third time it has been parked for that reason.

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

  1. the run ended without a pull: declined: #13639 is an epic and a design document, not a change I can make. Steps 0 and 1 are the owner's pilot: standing up a hosted workshop forge, lending it credit, and running the check and a proposal insi
  2. the run ended without a pull: declined: #13639 is an epic and a design document, not a change one run can land, and this is the second time it has been parked for that reason
  3. the run ended without a pull: declined: #13639 is an epic and a design document. It isn't a change one run can land, and this is the third time it has been parked for that reason

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 by the planner: the epic could not land in one run (parked three times). Code steps become single runs: #13642 cells on CPUs apart from serving (step 2), #13643 a workshop size (step 2), #13644 a repository's crew can be switched off (step 4), #13645 a proposal carries its child's verdict and tree (step 4), #13646 the kernel import boundary (step 7). The owner's operational pilot (steps 0, 1, 3, 5, 6) is #13647, behind the Later gate. The design and open questions stay readable here.

commented

Decided by the owner, 2026-11-15: "i want to be the only maintainer right now. everyone else can propose to mine where i will be doing most of my work too."

  • The maintainer list on production's forge repository is one name: trevato. No crew identity and no other person proposes upstream.
  • The workshop is his own forge: the workshop and his personal forge are one forge. His crew builds the forge there and his apps live there.
  • Everyone else forks and proposes to his forge; production routes reports and proposals there.
  • Open question 4 is closed and question 3 answered. Still open: one proposal per change or per train (leaning per change, admitted in batches).
commented

A step to add, from the owner on 2026-11-16: "every other app in the forge already has this. i can put any app on auto mode and it will release itself. is the forge special in some way? can we make it not?"

It is special only because it has no supervisor: nothing outside it can start the new version beside the old, check it and roll back. The answer is the split seen from another side: a THIN HOST (places units, restarts them, routes traffic; changes rarely) and the forge as an app on that host, released on auto like any other app, by the host. Only the thin host then needs a hand from outside, a few times a year.

Until that exists the outside hand is a script on the host: /srv/forge/release-tick/tick.sh, a systemd user timer at 10:30 UTC daily (gate on Linux, tag, build, stage rig, promote with the stay-up watch; any doubt is a hold filed as an issue). It promoted v0.7.620 on its first day (#14257). It retires when production's forge runs as a unit under a thin host.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs