Working on a company
The review loop is how a change gets approved. This page is where the change lives until then: a work. Five steps — start, request approval, approve, finish, adopt — and you can come in at any of them.
A work is three things that always travel together:
- a branch,
work/<you>/<slug>; - a record on that branch,
.structure/work/<slug>.md: the title, who opened it, when, what it was cut from, and whether it is open or closed. You never write it; the commands do; - a checkout of its own, in a folder beside the company:
.structure-worktrees/<company>-work-<slug>.
Your company's own folder stays on its one copy, main. The work happens next to it.
Everything here is a command. Where a build carries the IDE (see Install and first run), its Home shows the same works and offers the same steps as buttons; the steps below say what Home shows where it matters. A build without the IDE does all of it from the terminal.
A company can span several repositories. A work belongs to the repository it is cut in, and a change to a division's document is approved under that division's own rules: see A company of several repositories.
1. Start
structure work start "tighten the pricing page"
This cuts work/<you>/tighten-the-pricing-page from main, writes the record, opens the checkout and prints its path on the last line. In the IDE the same step is Start work, the button on the right of Home, level with the company's name: it asks the title in place, Enter starts the work, and the new work opens, empty, with its record. cd there and work in whatever editor you like. The push gate, .githooks/pre-push, which refuses to push a work branch that has no record, is one of Structure's own files: every compile writes it on main, so every branch has it. A company compiled before October 2026 gets it from its next structure compile --write. Arm it once per clone with git config core.hooksPath .githooks.
structure work status
Run from inside the checkout, it shows the record and where the work stands on this machine: entered (here and current), behind (a coworker pushed more to it), or closed.
A work someone else started shows up on your Home as not on this machine. Open makes the checkout on your machine; Update brings a checkout current with what they pushed, and only when you have no unsent edits. Neither moves anything of yours.
structure work start refuses, and says why, when the title has no letter or digit in it, when that branch already exists (here or at origin, started on another device), or when there is nothing to cut from.
2. Request approval
In the IDE it is the Request approval button; in the checkout, the command behind it is structure propose, the way you always do:
structure propose company/pricing.md -m "what changed and why"
An approval request is a step of the work: it is filed on it. The work's record lists the request, and the work's branch is shared so whoever approves can see the work it belongs to. Nothing about the request itself changes. It is still the same card, the same check, the same approval.
Only what needs a signature asks for one. When none of the work's changed documents is gated — drafts, notes, memory — the IDE offers Finish instead, and Finish lands the work on the company directly (step 4). Request approval is offered when at least one changed document is gated (the mission, anything canon), and the request carries the rest of the work's changes with it.
You do not have to start a work first. Run structure propose from your company folder, and Structure starts the work for you (work/<you>/<slug>, with its record, and no checkout) and files the request on it. You will see a line saying so. In the IDE an approved document the company gates (the mission, anything canon) draws read-only, and its band says Approved. To change it, start a work: Start work there starts the work with the document's title and opens that document inside it, with the editor.
3. Approve or decline
structure queue
structure approve <id>
On Home a work with an approval request on it reads in the request's state, and the list says Approval requests · 2 waiting on you when any wait on you:
- waiting on you — it is yours to approve. Approve… opens the request on the work's page: its documents, then Approve and Decline side by side. It is the card from the review loop.
- waiting on Miranda — someone else approves. You can read it; there is no button. Who approves follows the rule you set for that kind of document: if a role gates it, the people who hold that role.
Approving your own request is fine, as it always was. Declining closes it; the Log says Miranda declined Pricing.
An approval request that was made before works existed has no work. It is listed by its own title, in the same two states, and nothing invents a record for it.
4. Finish
structure work finish
finish runs structure check on the checkout and refuses on any error, printing the check's own line. It also refuses while the checkout has changes you have not committed, because it pushes what is committed and nothing else. When both are clean it closes the record and pushes the branch.
In the IDE, Finish on a work whose changes need no approval lands them on the company first — the
same check and the same merge an approval makes — and closes the work; the Log says Miranda finished
Letter 6 v2. Approving a work's request closes the work with it. structure work finish in a
terminal closes a work with nothing left to land.
Approving a work's request writes the closed record onto main in the approval's own commit, so main says closed for a finished work. A work that lands as a pull request says closed on main when structure work finish was its last push.
If a finished work gets one more commit, for a change asked in review, run structure work finish again. It closes the record again with the new time, in a commit of its own, and pushes. With nothing new since the close it says the work is already closed. If the work had already landed on main, a pull request from the same branch will conflict with that landing; finish says so, and what to do.
A closed record names the commit it was closed at, under the heading ## Closed at commit.
What happens to a finished work's branch
Once a finished work is on main, structure serve removes what it left behind: its checkout on this machine, its branch here, and its branch in the company's copy. It does this after it syncs with the company's copy. Nothing is removed while anything would be lost:
- the record says closed, on the branch and on
main; - no request filed on the work is still waiting for an answer;
- everything of the work is on
main:mainholds the very record the branch finished with, written straight onto the commit that record names, or failing that, every file the work changed reads the same onmain; - the branch here and the branch in the company's copy are the same commit, or the one in the company's copy is already gone. The company's copy is asked, or a serve uses what its own sync heard from it less than a minute ago; what this machine last fetched is not taken for an answer;
- a checkout goes only when the only files changed in it are ones Structure itself wrote (its compiled files, such as
AGENTS.md). Those are put back first, and then git removes the checkout by its own rule, so it refuses if anything else is there; - a checkout that holds a file git ignores stays, because removing the checkout would delete that file: an install folder, a build folder, a file of keys. Two things do not count: a
.DS_Store, and the skill links Structure itself makes in.claude/skills/; - a branch stays in the company's copy while another branch there is built on it and is not on
mainyet.
Anything that fails one of these is left as it is. structure clutter lists every piece of work with the reason it can or cannot be removed.
Every branch a serve removes is written first to removed-work.log in Structure's settings folder, with the commit it pointed at. To put one back while git still has the commit: git branch work/tess/launch-copy <commit>. The log is what a serve was about to remove, so a branch named in it may still be there. It is your own file on your machine: nothing sends it, asks for it or attaches it.
No serve, no removal. If no serve runs on the company, nothing is removed for you: run structure clutter --commands to see what can be removed and the command that removes each one.
Finished work that had landed before this version of Structure is removed the same way, by the same rules, at most 25 pieces of work at a time. A serve says one line when it removes something. If the history of main changed since the serve last looked, it removes nothing that once and says so; after that it carries on as usual.
5. Adopt a branch you cut by hand
Branches that were not made this way are outside the contract. structure check says so with one quiet line per branch:
site-fixes is outside the work contract — run: structure work adopt site-fixes
It is information, not a failure. To bring one in:
structure work adopt site-fixes
That writes the record and renames the branch to work/<owner>/<slug>, here and at origin, in one step. The branch's commits are untouched; adopting adds one commit, the record. It refuses, and renames nothing, when a checkout of the branch has unsaved changes, when it has commits origin does not, or when the new name is taken. --owner <segment> names someone other than you.
On Home, outside branches are one line below your work: N branches outside the contract · Review. Review lists each with who last touched it and when. Adopt does the same as the command. Close deletes the branch, here and at origin, after you confirm; it refuses while a checkout of it has unsaved changes.
A whole company at once
For a company with a pile of old branches, print the plan first:
structure work adopt --all --dry-run
It reads every branch at origin and gives each one a disposition: delete (cut by hand and already merged into main), adopt (not merged: renamed into a work, owned by whoever made its last commit, or by --owner <branch>=<segment>), hold (it needs a better name first, and the row says so), or leave (the company's main, proposals, works already in shape, and the branches Structure keeps for its own records). Then:
structure work adopt --all --yes
does it, one line per branch, and ends moved — N of N. The branches Structure keeps for its own records are never listed, counted, or offered for adoption.
When something's off
structure work status— the record and presence of the work you are standing in.structure check— a work branch with no record is a warning with the command that fixes it; a record that does not parse is an error, andstructure work adopt <branch>rewrites it.- A rename that stops — unsaved changes, unpushed commits — says which and renames nothing. Commit or push, then adopt again.
A work is a branch, its record is a file on it, and finishing is a push with the check passing — Structure never makes you say it that way.