Factory · for gmod plans

Set the target.
Walk away. Come back to proof.

Factory is a small controller for gmod plans. Tell it where to go: a phase, a budget, a deadline. It works the plan on GitHub until the target lands, and everything it does stays on GitHub's record. It never writes a line of code.

In development · runs on your own server · agents run only in GitHub Actions
The shift

From watching agents to aiming them.

gmod already holds every agent to a plan: claim a job, stay in its files, prove it fails then passes. The question is how much of you that still takes.

01 / AT YOUR DESK

One agent, one screen.

“I'll just keep an eye on it.”

An agent in your editor, held to the plan while you watch. Great for tricky work and planning; you're the clock.

02 / IN CI

Agents on a timer.

“It picks up a job every hour.”

gmod's agents in CI build ready jobs and land them on green. Steady, but every stuck job, plan change or question still waits on you.

03 / FACTORY

A run to a target.

“Get phase tags done by Friday, under $40.”

You approve one mandate. Factory works the plan until the target lands, parks what gets stuck, keeps going on everything else, and reports once.

How a run works

It works the graph, not the queue.

A plan is jobs that wait on other jobs. A run follows that graph to the target: one stuck job parks only the work that needs it.

MANDATE phase tags · $40 · by Friday TARGET tag-model tag-store tag-api tag-pages tag-feed !tag-searchparked after 2 tries tag-filters · waits for tag-search fix drafted · in your inbox BUDGET $23 of $40
01 · Mandate

You say yes once.

A target, a budget and a deadline, proposed as a pull request. Your approving review starts the run.

02 · Work

Ready jobs start.

Each ready job gets an agent in GitHub Actions, up to a cap. Every landing makes the next jobs ready.

03 · Park

Stuck isn't stopped.

A job that fails twice is parked with a fix drafted for you. Only the jobs that need it wait.

04 · Report

You hear once.

When the target lands, the money or time runs out, main goes red, or you say stop: landed, parked, spent.

Holds no truth

It moves everything along and keeps none of it.

The plan, the decisions and the proof live in git and CI, where gmod's gate reads them. Wipe Factory's server and it rebuilds what it needs from GitHub. Nothing it says is ever evidence.

The parts

Three places. One of them decides.

GitHub is the record. Factory only moves things along. Code is written somewhere else entirely.

The record

GitHub

The plan, the code, the decisions and the proof. Every approval is a review by a repository owner, signed in as themselves.

  • .gmod/plan.json on main
  • pull requests, reviews, checks
  • the org's audit log
The mover

Factory

A small service on your own server. It watches GitHub, works out what should happen next, and starts it. No model key, no agents, no code.

  • POST /github/webhook
  • /gmod in Slack
  • a cache it can lose any time
The workers

GitHub Actions

Every agent is an Actions run, held by gmod to one job's files and to failing first, then passing. Its work arrives only as a pull request.

  • one run per job
  • gated and reviewed like any PR
  • logs kept with the run
Talk to it

Ask in Slack. Decide on GitHub.

Slack is where you ask for things and hear back. Anything that commits you, a plan or a run, becomes a pull request you approve with a review.

  • One way in among severalSlack, the gmod CLI, issues or a schedule. They all come down to: draft, go, stop, and how's it going.
  • Buttons open GitHubApprove takes you to the pull request. Slack can say who asked; only GitHub says who decided.
  • Stop is always on the recordA stop from Slack lands as a comment on the run's pull request: who, from where, when.
Promises

What it will never do.

These are the rules the design starts from, not features added later.

01

Write code.

Factory starts work and moves it along. Every line of code comes from an agent in GitHub Actions, through a pull request.

02

Run agents on your box.

Your server runs one small service. It holds no model key and can't start a container.

03

Act off the record.

Every start, stop, landing and report leaves a trace on GitHub. If it can't write the record, it doesn't act.

04

Decide for you.

Plans and runs are approved by an owner's review on GitHub. Nothing in Slack, and nothing Factory says, counts as a yes.

05

Hold the truth.

gmod's gate reads main's commits and CI's proof, never Factory. Lose the server and nothing true is lost.

06

Switch itself on.

A repository takes part only once a person commits .gmod/factory.json. Without it, gmod is exactly as it was.

Where it stands

Built in the open, a step at a time.

The first version only watches and reports. Each step after it is planned and proven the gmod way.

Today · v0

Watches and tells.

  • Signed GitHub webhooks
  • /gmod status: the plan's board in Slack
  • Posts when a job lands or gets stuck
  • Writes nothing to GitHub
Next

Runs to a target.

  • Mandates as pull requests
  • Starts agents on ready jobs
  • Claims that expire
  • A merge queue that lands in batches
Later

Ships and learns.

  • Deploy, then prove it live
  • Replay old jobs on new models
  • Agents that try to break it
Factory

Set the target. Come back to proof.

Built on gmod: every job claimed, held to its files, and proven to fail before it passes.