# How Shoveler works

Shoveler is the factory behind Tikkets. People decide what gets built. Shoveler builds exactly that, on a throwaway machine, and hands the result back for a person to judge.

## The rule

Nothing is built until a person approves it in Tikkets, at the exact text they read. Change a word and the approval is gone.

Shoveler never approves, never accepts and never merges. It does not edit tikkets either. It builds, and it reports.

## A shift, start to finish

1. **Approved.** A person approves a tikket for agents in Tikkets.
2. **Claimed.** Within fifteen seconds the Foreman claims it: a 90-minute lease, renewed while work goes on.
3. **Clocked in.** A worker machine starts with a coding agent and exactly one credential, the shift's secret. A shoveler with a name and a face takes the shift.
4. **Shovelling.** The agent reads the repository's `CLAUDE.md` and `AGENTS.md`, builds what the tikket asks on a branch named after it (`tikk-12-…`), and runs the repository's own checks.
5. **Evidence.** It captures screenshots and short clips from test data, and writes the review guide in Tikkets.
6. **Submitted.** Shoveler pushes the branch and opens the pull request. The tikket moves to review in Tikkets, and the approval is used up.
7. **Aftercare.** The worker stays for an hour, for trusted review comments and failing CI.
8. **Clocked out.** The machine is deleted. The branch, the pull request and the shift's record stay.

## When it goes wrong

A shift ends in one of four ways. Tikkets hears about each.

- **Submitted:** a pull request, waiting for review.
- **Asked a person:** the agent hit a question only a person can answer. The question lands on the tikket, the tikket waits for a decision, and nothing was guessed.
- **Handed back:** nothing was built (the machine never started, say). The approval stays and another shoveler can try.
- **Failed:** something may exist, such as a branch. A person looks at it and clears it in Tikkets.

When shifts fail one after another, the factory is usually the problem, not the tikkets: a bad model key, a broken image. After three failures in a row the Foreman pauses the factory and says why, instead of failing the whole backlog.

## Rework

Not happy with a result? **Send it back** in Tikkets, with a comment saying what is wrong. That approves it again, a new shoveler picks it up, and the fix lands on the same branch and pull request. The new shift reads your comment first.

## What a worker may touch

A worker is untrusted: it runs a coding agent on text from outside the factory. So it holds one secret, and that secret reaches only its own tikket, branch and repository.

- It never sees the Tikkets token, the GitHub App key, the model provider's key or the cloud credentials.
- git gets a short-lived token for that one repository, through a credential helper. The agent never holds it.
- In Tikkets it may read its tikket, add evidence and write the review guide. Nothing else.
- Shoveler refuses to work a repository whose default branch would let a worker push to it, or merge its own pull request. Protect `main` with a ruleset that requires a pull request and an approval.

The prompt is never the security control. Everything the agent is told is also enforced somewhere it cannot talk its way past.

## The crew

Every shift gets its own shoveler: a name like *Clinker 7F3* and a pixel face, both drawn from the shift's id, so the same shift always has the same worker. Their faces follow the shift: pleased when it is submitted, worried when they had to ask, unhappy when it failed.

The Foreman runs the floor. He has the white hat.

## Making a repository ready

A repository is ready for Shoveler when an agent can build in it unattended:

- `CLAUDE.md` or `AGENTS.md` says how to set it up and how to check a change.
- Its checks (lint, typecheck, tests) run headless, with test or seeded data.
- `main` is protected: a pull request and an approval are required.
- Optionally, `.shoveler/brief.md` says what only this codebase needs said.

The [shoveler-ready skill](https://shovvels.frakt.io/skills) walks your own coding agent through it.

## What Shoveler plugs into

- **Trackers:** Tikkets today. Linear is designed, though it can only approximate the approval gate.
- **Repository hosts:** GitHub (the Shoveler GitHub App), or a local sandbox for trying the factory without touching a real repository.
- **Workers:** local containers today, throwaway UpCloud machines in the EU next.
