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.
Link items
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.-
Make each piece a child of the parent:
-
Say which item waits on which:
-
Approve the plan:
-
Remove a link with
work unlinkand the same flags:
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: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.
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.
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.
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:- The child’s own issue.
- The plan notes of the shipped children. The note of the child that shipped later comes first.
- The parent’s spec.
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 theplan 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 withwork 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.
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.- Open the draft. Choose the Plan tab. A draft with no child items says so.
- 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.
- 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.
- 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.
- 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.
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: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.
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.
- 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.
- 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.
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, runouterlayer 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 withpush_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.
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, runouterlayer 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 withstatus:held.