Skip to main content
A change is often too big for one pull request. Split it into several work items. Link them, so that OuterLayer starts each item at the right time. A parent item groups the work. Its child items are the pieces. A child can wait on another item. An item that waits reads Held until every item it waits on has shipped.
Plans are in early access. Only an organization that has plans turned on can link items or write a plan. To turn them on, email hello@outerlayer.ai. A link that exists keeps holding its items in order, and you can still unlink it.
Use this section for items that already have issues. To plan work before any issue exists, see Write a plan. Use the CLI. You need Add work.
  1. Make each piece a child of the parent:
  2. Say which item waits on which:
  3. Approve the plan:
  4. Remove a link with work unlink and the same flags:
A linked parent needs one approval before its children build. The approval records the children, what each waits on and the milestones. You need File a spec to approve. Until then every child reads Held, and the page says that its plan needs approval. See Approve a linked plan. Both items must be in one factory. A plan has one level: a child has no children. A parent has no build or pull request of its own. An item cannot wait on itself, directly or through other items.

Build the children in order

A parent builds only after a member approves its plan. OuterLayer refuses a build request on a parent whose plan has no approval, and the refusal names the command that approves it. A child never starts before the approval, and a child that the last approved plan does not list never starts. A build that has started goes on. Ask for one build on the parent. Run the command, or choose Build at the foot of the parent’s page:
OuterLayer records a build request on each child that needs one. Each request names you. A child that waits on nothing is Queued. A child that waits on another item is Held. A runner takes a held child only after every item it waits on has shipped, or has ended with no change needed. The child then counts its place in the queue from that moment. The rule holds for every way to ask for a build: a member, a label, an automation or the CLI.

What a held item says

A held item names the items it waits on. It does not read Not picked up: no runner takes it, and none could.
  • If an item it waits on needs attention, the item page says so.
  • If an item it waits on closed or left Work without shipping, the held item stays Held. The page says that item closed without shipping.
To stop waiting, choose Stop waiting beside the item on the held item’s page. You need Add work. The command work unlink --waits-on does the same. When the item waits on nothing else, it reads Queued. A child’s page names its parent and each item it waits on, each as a link. A parent’s page lists its children with their status. See Statuses.

What a child build receives

A build of a child item knows its plan. It receives three things:
  • The parent’s spec. The build gets the whole issue text. It holds the decisions that every child follows.
  • The other children of the parent. Each one comes with its number, title, status and the items it waits on.
  • The plan notes of the children that have shipped. Each one comes with the address of its pull request.
A child that has not shipped has no note in what the build receives. Its work can still change, so a build must not rely on it. An item that is not a child gets none of this. Its build receives what it received before.

The plan note

Every child build records a plan note before it opens its pull request. The note has four parts:
  • What the build changed.
  • What the other children must follow.
  • Where the build differed from the item’s spec.
  • The numbers of the children the note affects.
A build with nothing to pass on says so in words. A plan note is valid when it affects no child and says that the other children have nothing to follow. The note describes the work as it merged. When a later commit makes the note wrong, the build records a new one. The newest note is current. The older notes stay on the item. A plan note is a record for builds and for people. It is never proof, and the verdict ignores it. A build records the note with outerlayer emit plan-note. The key of the build’s live claim can record a note on its own item. A member who is logged in, with Withdraw others’ work (work.update), can record one too. A plain API key cannot.

Which source wins

A build follows three sources, in this order:
  1. The child’s own issue.
  2. The plan notes of the shipped children. The note of the child that shipped later comes first.
  3. The parent’s spec.
When a shipped child’s note and the parent’s spec disagree, the build follows the note. When a build follows its own issue against a plan note, it says so in its own plan note.

Pull requests need a plan note

outerlayer work open-pr and outerlayer work pr refuse a child item that has no plan note. They refuse before they open or link anything. The refusal says that the item needs a plan note. A pull request that you open with gh alone is not checked.

Read the notes

The child’s Overview tab shows its plan note and who recorded it. On the parent’s page, the list of children marks each child that has a note. Choose Plan note on the row to open it. The same data is in the plan object of outerlayer work status --json.

Approve a linked plan

Every parent has a Plan tab. It lists each child with its issue key, and says whether the plan is approved. A parent that you linked with work link reads Not approved until you approve it. Approve the plan in one of two ways. You need File a spec for both.
  • Run outerlayer work plan --item <parent> --approve. The command prints that the plan is approved and how many children it holds.
  • Choose Approve plan on the Plan tab.
The command works when every item has an issue. It also approves a plan that reads Changed after approval. When an item has no issue, the command refuses and says to approve the plan on the Plan tab, which files that item. Approval never changes the text of an issue that was not written in OuterLayer. It files no new issue for an item that has one. An item made from an existing issue has no spec text in OuterLayer, so approval leaves its issue as it is.
A parent that you linked before plans needed an approval has none. Its children that have not started read Held until you approve the plan. A build that has started goes on.

Write a plan

A plan is a parent with child items, the order in which the children build, and milestones. You write it on a draft and approve it once. OuterLayer then files the parent issue and every child issue. Each child is a draft with a spec of its own. A child becomes an issue and a build, so its spec must stand alone. You need File a spec to add a child item and to approve a plan. You need Edit a spec to change the rest of a plan. That covers waits on, milestones, and removing a child item.
  1. Open the draft. Choose the Plan tab. A draft with no child items says so.
  2. Type a title and choose Add child item. The plan lists a new draft with that title and the factory’s next item number. Choose the row to open the draft and write its spec.
  3. To make a child wait on another, choose the other item in Waits on on the child’s row. The row then names the item. Choose Stop waiting to remove the wait.
  4. To group children, type a name and choose Add milestone. Choose the milestone in Milestone on a child’s row. The plan lists each milestone with its children below it.
  5. To remove a child, choose Remove from plan. A child with no issue also leaves the Work list. The page refuses when another child waits on it, and names that child. Stop the wait first.
The page refuses a wait that would make two children wait on each other, and names both. A plan has at most 12 child items. A child that a verification proposes does not count toward the 12.

What a milestone holds

A milestone groups children. It holds later work only through its verification. A milestone that no criterion names has no verification and holds nothing. A parent has criteria of its own. They state what the whole must do. A criterion names its milestone with a note between its id and its Given:
The criterion follows the milestone Payments. Its verification runs when every child of that milestone has shipped. A criterion with no note follows the last verification. A name that matches no milestone with children also follows the last verification, and the Criteria tab says so. A child never waits on a child of a later milestone, directly or through other children. The page, outerlayer work link and outerlayer spec file --plan refuse such a wait and name both children. The Plan tab shows the whole breakdown before anything is filed. A parent whose plan is not approved has Build turned off, and the page says that the plan needs approval. A child of a plan cannot be approved on its own, and nothing of a plan can build before the plan is approved. /spec writes a plan when the work has more criteria than the cap. It files the plan with the CLI. The command stores the milestones of the plan file. The member who files the plan approves it, because /spec shows that member the whole plan first. See Write a spec and spec file --plan.

Approve a plan

Choose Approve plan on the Plan tab. You need File a spec. Approve plan is off while one of these holds. The page names the cause.
  • You lack File a spec.
  • The plan has no child items.
  • An item has no spec text. The page names that item.
OuterLayer files each child issue first, one at a time. It then files the parent issue. The parent’s text lists each child issue as a link, under its milestone, in the order the plan builds. Last, OuterLayer adds to each child issue the parent issue and the issues it waits on. Each item keeps its number, its comments and its history. Each issue key shows on the plan. Each child reads Not started. OuterLayer spaces the writes one second apart, because GitHub refuses issues that arrive too fast. The plan shows in the tracker as text and links. OuterLayer writes no sub-issue and no relation. A record of each approval holds the member, the time, the child items, what each waits on and the milestones. The record cannot be edited or deleted. When the tracker refuses an issue, the approval stops. The issues it already filed stay on their items. The page names each item that was not filed. Fix the cause and choose Approve plan again. OuterLayer files only the items that have no issue, so no issue is filed twice.

Change a plan after approval

You can still change what a child waits on, add a child or move a child to another milestone. The plan then reads Changed after approval. Choose Approve again to file new children and write the change into the issue texts. Until you approve again, builds follow the plan as last approved. A change to what a child waits on takes no effect before then.

An agent’s plan change

An agent can propose a change to an approved plan. A job reads the plan, its plan notes and the failed build, and gives one answer. A plan job starts in three cases:
  • A child’s build ends as failed or timed out.
  • A shipped child’s plan note names other children.
  • You send a message to the agent on a parent that has an issue. On a draft, the message still starts a revision of the draft.
The answer is one of three:
  • A plan change. It edits child specs, adds or removes children, and changes the order or the milestones. It never edits or removes a child that has started or shipped. It keeps every rule of a plan, such as the limit of 12 children.
  • A build of a failed child again, with instructions. The plan does not change.
  • No change. The agent gives a reason. The children that waited are released at once. The parent’s history shows the reason.
A plan change and a proposal to build again wait for a member. A parent has at most one of them at a time. The agent proposes. Only a member changes the plan. Open the parent’s Plan tab to read a plan change. The tab shows the children added, the children removed, each change of order, the changed lines of each edited child spec, and the agent’s reason. When the plan also reads Changed after approval, the tab shows both changes and says which one the agent proposed.
  • Choose Approve the change to approve the plan as it then stands, with every other change that waits for approval. It is the same approval as Approve again. You need File a spec. A child that the change removes leaves Work. Its issue stays open.
  • Choose Reject and give a reason to keep the plan as approved. The parent’s history shows the reason and your name.
  • On a proposal to build a child again, choose Accept to record a build request on that child with the instructions. Choose Reject and give a reason to leave the child as a failed build leaves it.
If someone approves the plan again before you decide, the change is out of date. OuterLayer refuses it and queues a new plan job.
What waits on a plan decision
No child of the plan starts while a plan job for a failed build is queued or runs. A child that a shipped child’s plan note names does not start until an answer covers that note. A child that an open plan change names does not start until a member decides. The child’s page reads Held and says that it waits on a plan decision. A hold never ends a build that a runner has taken. A hold ends when the answer is no change, when a member decides the answer, or when a member releases the children. To release them, choose Release the children on the parent’s page and give a reason. You need File a spec. The parent’s history shows the reason and your name. If the plan job failed, no runner takes it, or the parent reached its limit, the child’s page says so. A plan job that fails does not start again by itself.
The daily limit
OuterLayer queues at most five plan jobs for one parent in 24 hours when a failed build starts them. At the limit, a failed build queues no job and holds no child. The parent reads Needs attention and says that its plan was revised five times in a day. A job for a plan note or for your message is never refused. The parent’s history shows each plan change, what started it, who decided it and when. To read the open plan change in a terminal, run outerlayer work status --item <parent> --json. The output holds a planChange with its id, what started it and the agent’s reason.

Verify the whole

Each child passes its own criteria and its own review. That shows that each part works alone. A verification shows that the parts work together. A verification is a job. A runner with a fresh agent starts the product on the code that merged and tries each criterion of the parent. It tries inputs that must pass and inputs that must fail. It pushes nothing and changes no code. It gets read tokens only, and a request for a push token fails with push_not_allowed. OuterLayer queues a verification in two cases:
  • The last child of a milestone that a criterion names ships.
  • Every child of the plan ships. This is the last verification. It covers the criteria that follow the last milestone and the criteria that follow none.
A plan with no milestones has only the last verification. A parent with no criteria has no verification, and the plan builds as before. A runner needs runner protocol 86 and a container or microVM to take the job. A runner that does not know the job is offered nothing.

What a member sees

The Plan tab shows one line under each milestone: Verifying, Verified or Not verified. It shows the commit of each repository that the job verified. A queued job that no runner takes says so, with the reason. The Criteria tab shows each criterion with its proof form and its milestone. A finished verification adds one result to each: Holds, Does not hold or Not verified. Each result has a reason that names the cases tried, the proof and the commit. A criterion that does not hold becomes a proposed child item. The plan lists it with the note Proposed by the verification. Its spec names the criterion. No build runs on it until you approve it into the plan. It joins the milestone that the verification followed. The last verification proposes children in no milestone. The job’s cost shows as Verification cost on the parent, apart from Children cost.

Children wait for the verification

A child waits on the verification of each earlier milestone that a criterion names. While that verification has not passed, the child reads Held and says “Waits for the verification of milestone Payments”. A child in no milestone waits on no verification.

A verification that does not pass

A milestone that reads Not verified holds its later milestones. You have two choices. You need Record a review for both.
  • Choose Verify again on the milestone. A new job runs on the base branch as it is now. OuterLayer does not verify again by itself when the base branch moves.
  • Choose Continue without the verification and give a reason. The held children are released. The parent’s history shows the reason and your name.

The parent’s status

A parent reads Verifying from the moment every child ships until the last verification ends. It reads Done only when its last verification passes. When that verification does not pass, it reads Needs attention and names a criterion that does not hold or was not verified. When a member continued without it, the parent reads Done, unverified. To list a parent’s milestones in a terminal, run outerlayer work status.

The parent on the Work page

A parent shows as one row. The row shows how many children shipped, how many build and how many are held, and the total cost of the children. The children are listed under it. See A parent and its children. The parent reads Done when every child shipped and its criteria hold. It reads Needs attention and names the child when a child needs attention. See Verify the whole. To list only the held items, filter with status:held.