Decide in the queue
Use Queue to read the evidence behind a question and choose an answer. A question asks for judgment about evidence Mainworthy has recorded. The policy sets who can answer and which answers count. An answer the policy accepts becomes a decision. Read the consequence beside each answer to see how it affects the gate, which tells you whether a commit, change, or run has enough evidence to pass.


Find the question to answer #
To answer a question, follow these steps.
- Press g q to open Queue.
- Select a question.
- Read its evidence and the text beside each available answer.
- Press the answer key.
Queue lists the questions that block the most first. Among questions that block the same amount, it shows the newest first. A question about a test with no case blocks nothing and comes last, regardless of age.
Use j and k to move between questions. Press Space to expand the evidence. For a failure, you can see the sample result's diagnostic detail, step trail, attachments, and build link when the report includes them. Open Diagnostic detail to read the full log. It starts collapsed so you can reach the steps and files first. To save an attachment, use Download beside it. To open a test's page, select its reference.
Expand Quarantined tests at the end of the evidence to see tests whose failures the project excuses under a quarantine, or to propose a quarantine. A shaded lower edge means more evidence continues below the answers.
In a short desktop window, scroll the question pane to read evidence and reach the answers. The sidebar and question list stay in place. For a proposal, an answer key or button shows the next unread edit first. If you have scrolled the evidence out of view, the button scrolls the pane to reveal it. Once you have seen every part, press the answer key again or scroll to the button and click it to record the answer.
"Open" lists questions that need an answer. "Settled" lists decisions, including answers that ended because the cause passed, a flaky hold expired, or a tracker issue closed. When you open a question by its address, Queue can select "Settled" even if it has an older "Open" list cached. If you replace an answer automatically inherited from the base commit, "Settled" shows your replacement on the question for the failure cause. An ended answer shows who answered, what they answered, and how and why the answer ended.
"All" comes first, followed by "Proposals", "Unlinked", "Failures", "Findings", and "Sign-offs". Press ] to move to the next view or Alt [ to move back. Each view opens with its first question selected. To find a finding in a long queue, use ] to reach "Findings". If you follow a link to a question that the current view excludes, Queue switches to "All" and shows the question.
On a desktop, each row takes one line. Queue shortens long failure titles in the middle so you can see the end, where failure titles usually differ. It shortens other titles at the end. On a phone, titles wrap to two lines. Point at a title to read it in full. See the keyboard guide for the full key list.
If a read fails, Queue shows Retry and the reason if the reply gives one. Until the first read succeeds, Queue leaves out the counts and the message that the queue is clear. If a later read fails, Queue tells you and keeps the last list it could read.
If somebody settles a question before your answer arrives, their decision stands. Queue says the question was settled meanwhile and shows its current decision. This also applies when you answer a selection or take advice. Other questions in the selection can still receive your answer.
Start with blocking questions #
Start with the failures at the top of Queue. The line beside "Queue" separates them from questions that can wait. For example, it can show "2 failures to explain · 3 agent proposals · 63 more can wait". The count beside Queue in the sidebar is red only while a failure question is open.
A failure is the one kind of question that blocks anything. While a failure remains unexplained, no gate that counts it passes. An earlier occurrence of the same cause that someone answered for another build stays excused there. Every other kind leaves things as they are until someone answers. A proposed edit waits, a finding stays on record, and a test with no case still runs and still gates the build.
Under its title, each open question says what leaving it costs. These are example messages.
- "Listed as blocking R-83. While this is open, no gate that counts the unexplained failure passes."
- "Blocks nothing. Left alone, these tests still run and still gate the build, and no case gets credit for them."
The runs a failure lists are the ones it was listed under as its results arrived. Open a run to read its gate as it is now. An older commit's run can pass again while a newer commit keeps the question open.
A failure stops blocking a gate when a decision explains the failure or another result replaces the failing result. A newer passing attempt of the same job replaces the failing result. A skipped or blocked attempt leaves the failure in place. A result that explicitly corrects the failing result replaces that failure regardless of the correction's outcome, including passed, skipped, or blocked. A pass reported beside the failure replaces nothing. The pass and failure disagree, and a person settles the disagreement. A pull request's gate is the gate of its newest commit, so a newer commit that passes moves the pull request on. The older commit keeps the verdict it had.
A failure that only an agent reported, or one typed for a session, is counted by no commit's gate. It is still a failure to explain.
A question asks for a judgment about recorded evidence. It is not a test result.
Several occurrences of the same failure cause can share one question.
A planned run's disputed slot has a separate "Disputed" question for each cause
and scope. Explaining the cause leaves that dispute waiting for its own answer,
even when the cause was explained first. Under standard and strict, someone who reported neither side settles the dispute. The cause answer still applies in other slots,
runs and scopes where that answer already held. See disputed slots.
If the same assertion failure occurs in more than 50 distinct tests across more than five
files for one commit, Mainworthy starts asking one question per file. The split starts when
Mainworthy applies the report that takes the cause past both limits.
Reports for the same repository and commit count together, including different environments.
Each title starts with "Split by file" and names the file. Your answer covers that file's cause.
Earlier results keep their grouping, and earlier answers keep their effects.
Later reports on that commit also split new files. Other commits keep that cause separate for a file
seen before the split as well as after it, even when they contain fewer failures.
Reports without a commit count separately.
Results without a reported file get a separate group when a cause splits.
The guard counts reported files, so missing file names do not help reach the threshold.
Look for "blocks gate" and the runs named beside the question.
Failures already present on the base #
The base is the commit Mainworthy compares the change against. Under the loose policy, if the
same test fails with the same cause on the base, the policy excuses it automatically. Find the
decision in "Settled" with the exact results it excuses and the base results that support it.
Other tests with the same message still need their own evidence. Splitting a report leaves the
same tests eligible. An answer inherited from the base on one pull request does not change
another pull request that shares the base.
If pull requests share a head commit, they share its gate. The policy excuses a failure only when every pull request with that head has the same failure on its base, even if some are closed or merged. If any base passes, is unspecified, or has no report, the failure waits for a person. When that pull request moves to another commit, the others qualify again. If more than 20 pull requests share a head, the failure waits for a person.
Mainworthy compares the current base in the same repository. It uses the effective results from people and pipelines. To qualify, the base result must fail in the same environment, by the same method, and in the same job. A newer passing attempt, a correction, a decision that the result was a mistake, or a change of base can end the excuse. A skipped or blocked retry leaves the earlier failure in place. Agent reports neither supply base evidence nor receive an automatic excuse based on it.
When the evidence changes, Mainworthy updates the affected commits and planned runs immediately. That includes reports Mainworthy recovers after a restart. When the head lands on trunk, Mainworthy ends the excuse for that commit. Trunk answers apply, and Mainworthy asks about unexplained failures again. On trunk, "Already failing on base" is unavailable as an automatic answer. An unexplained failure waits for a project member.
If you adopt a policy that disables automatic excuses based on the base, Mainworthy ends the existing ones immediately and asks one ordinary question per remaining cause. If the new policy allows them, Mainworthy restores eligible excuses immediately, including ones an earlier policy ended.
If you withdraw the automatic answer, Queue keeps one ordinary failure question for you to answer. The policy stops answering for that commit and cause, even after retries of the base or change. Another commit or cause can still qualify.
To replace the automatic answer in one command, use decide. Mainworthy withdraws it and answers
the ordinary question. Your authorized replacement takes precedence if the policy would otherwise
answer the ordinary question automatically during withdrawal. Your answer follows the usual
failure holds. A failing retry on the base leaves it in place, and a flaky answer expires at the
policy's limit. The reply's q names the question you requested. Use effects.question to find
the ordinary question and replace or withdraw your answer later.
Either withdrawal or replacement can require a reason or a project admin, who holds admin on
that project and can accept its policy changes. If Mainworthy refuses the replacement, the automatic
answer stays in place. It returns invalid for a missing reason or forbidden for insufficient
permission. The needs field explains the requirement. If an agent can replace the inherited
answer but can only advise on the ordinary cause, Mainworthy returns forbidden, keeps the inherited
answer, and records no advice.
Under standard and strict, the comparison is a hint for the person answering. A person's
"Already failing on base" answer still covers the build they answered about. Mainworthy includes
the preset policies. Upgrades can change them.
Choose an answer #
Only answers that apply to the current evidence are available. For example, "The failure was a mistake" applies to a disputed planned-run result. "Already failing on base" is available for a change, not a trunk failure.
A proposed edit (adopt) #
| Key | Answer | What it does |
|---|---|---|
| a | Accept | Makes this the current version. |
| r | Reject | Leaves the case as it is. The proposal stays in the history. |
A test with no case (map) #
| Key | Answer | What it does |
|---|---|---|
| l | Link to a case | Results of this test count for the case from now on. |
| c | Create cases | Makes one case per test and links them. |
| t | Track without a case | Keeps them as tests without cases. They still gate the build. |
| Unlink | The test stops counting for its case. |
A failed result (failure) #
| Key | Answer | What it does |
|---|---|---|
| d | Defect in the product | A product bug. The gate fails until a build passes. |
| t | The test is wrong | The test is wrong. The gate fails until the test is fixed. |
| e | Expected: behaviour changed | The behaviour changed on purpose. The gate fails until the case and the test say so. |
| f | Flaky | The test passes and fails on the same code. Blocks nothing; asked again after the policy's flaky period or when the evidence changes. |
| i | Infrastructure | The test environment broke, not the product, such as a network outage. By default, excused for this build only. |
| n | Already failing on base | It already failed on the commit this change started from, so this change did not cause it. Excused for the build it was given on. |
| m | The failure was a mistake | The failing result was a mistake. The passing result stands. |
A finding from a review (finding) #
| Key | Answer | What it does |
|---|---|---|
| a | Accept | Agree. A suggestion it carries becomes a proposed edit by its author. |
| r | Reject | Disagree. It is not raised again for this version. |
| d | Duplicate | Already covered by another finding. |
| z | Defer | Not now, without agreeing or disagreeing. It stays on record and is not raised again for this version. |
Closing a run (signoff) #
| Key | Answer | What it does |
|---|---|---|
| a | Approve | Closes the run with the verdict it has now. |
| r | Reject | Leaves the run open. |
A key records the answer immediately unless the answer needs another field. "Link to a case" opens a case picker for each test. "Defect in the product" lets you enter an optional defect reference. Enter records the defect answer with that reference. Escape records the defect answer without a reference. If the policy requires a reason, enter it before submitting. The queue keeps unfinished reference and reason text on this device.
Where the policy leaves the reason optional, press w before the answer key to give one, for example to say why you reject a finding. When prompted, type the reason. Press Enter to record both, or Escape to cancel the answer. Press w again, or move to another question, to answer without one. On a phone, Actions lists "Give a reason with the answer". A phone's keyboard has no Escape: leave the defect reference empty and press Enter to skip it, and choose Cancel under Actions to cancel an answer that asks for a reason.
See what an answer changed #
After an answer, the queue shows the next question. Above it, a line names the answer you recorded and links to what the server's reply says it changed: a case and the version it is at now, the cases an import made and their folder, the proposal a finding became, or the run an approval closed. Press o to open the first link, or select any of the links. On a phone, tap the link. The line stays until you move to another question, answer again or undo.
If evidence changes while you answer, Mainworthy refuses the stale answer. Read the new evidence before trying again. A decision names the evidence you saw.
Answer several questions at once #
To answer several questions, select the questions and give one answer. The answer goes to every selected question in one request. Use these controls to change the selection.
- To add or remove a question, click the box at the start of its row or press x on the question shown. A click elsewhere on the row opens the question and keeps the selection.
- To select a range, hold Shift and click a row. The range starts at the last row you selected or cleared and ends at the clicked row.
- To add or remove a question by clicking its row, hold ⌘ or Ctrl while you click.
- To select all listed questions of the selection's kind, press . With nothing selected, the key uses the kind of the question shown. Press again to clear the selection.
- To clear the selection, press Esc.
A selection contains one kind of question, so one answer means the same thing to every question in it. You cannot select a question you cannot settle or a row of another kind. The status line says why. Proposals and findings that suggest edits need their edits on screen before an answer counts. Answer those one at a time.
"Select all" takes the questions listed so far. To include the rest, press "More questions" first. A selection holds at most 500 questions, the most one answer sends. The status line says how many it left out.
The bar above the list counts the selection, such as "3 failures selected". Questions about tests with no case are counted by their tests, "9 unlinked tests selected": one question covers the tests of a file, or every test that came with no file. A question whose tests cannot be read is answered on its own. The answers under the evidence apply to the selection. The line above them says when the question shown is not one of the selected questions. The queue offers an answer only when every selected question takes it. "Link to a case" asks for a case for each test, so answer one question at a time. An answer that needs a defect reference or a reason asks once and gives the same text to all. Record or cancel that answer before changing the selection. Advice is about the question shown. While a selection exists, ↵ does not take advice.
Each question gets its own decision. Queue stays on "Open" after the batch is answered, even when a question read finishes later. To withdraw all those decisions, press u, as you would for one decision. A refused question returns to the list, for example if its evidence changed while you were choosing an answer. The other questions stay answered.
In a phone browser, open a question and choose Actions for "Select question", "Select all of this kind", or "Clear selection". The rows have no box there.
Review a proposal #
An adoption question asks whether a proposed edit becomes current. Agent rows start with "by an agent". The heading names the proposal and explains why it is not in effect yet, using the current policy and who it asks, with a link to How policies work. When your answer counts, the answer area says so. For a new case, Accept "Adds this case to the suite". Reject "Adds no case. The proposal stays in the history." For several new cases, Accept adds all of them and Reject adds none of them. For a mixed proposal, Accept "Applies every change in it at once". Reject "Applies none of it. The proposal stays in the history." With several proposals selected, Accept "Applies each selected proposal in full" and Reject "Applies none of them". Read the proposed changes beside the existing case. While a proposal waits, each edit is shown applied to the case as it is now, so a change made after the edit was proposed shows too. An edit that would be refused on its own is shown as it was proposed, and so is every edit of a decided proposal. A restore shows the case as it is beside the version it brings back, preconditions and fields included. When a case it changes moves while the proposal is open, the page reads it again, and starts its edits from the top. The web app reads proposals in pages of at most 200 edits and loads every page before allowing an answer. In Queue and a case's timeline, Accept and Reject bring the proposal into view and show its first unread part in the same press. Choose the answer again after reading each part. It records the answer only once every edit has been shown. In a case's timeline, each press pages the edits inside the card. The outer pane stays in place while the next unread part can be shown inside the card. If the pane clips that part or the inner scroll reaches its end, the same press moves the pane to expose it. This also works when a wrapped status makes the card taller than a short window. Edits behind the sticky answer buttons do not count as shown. If a step is taller than the visible area, each press shows its next unread section. The whole step must have been on screen before an answer counts. Jumping straight to the bottom does not skip unread edits. Scroll positions reached and left between animation frames do not count as shown. If resizing or zooming changes a part's height, read that part again. On a phone, scroll the page to read the edits. If any remain unread, Accept brings the first unread part into view. A policy edit lists the settings and clauses it changes. A clause sets who answers a kind of question and what an agent's answer is worth. The first matching clause applies, so the edit also shows any change in order. If someone changed the policy since the edit was proposed, Queue says so and Mainworthy refuses to accept the edit. A move or reorder names the case it is asked to follow, or says it goes to the end of the folder. Accepting applies the edits in order. A case asked to follow another lands right after it when that case is in the same folder by then, and at the end of the folder otherwise. A case asked to follow itself goes to the end. Cases moved together follow one another in the order given, in each folder they end up in, and with the case they follow among them they take the place where it stood. "Accept" makes the proposal current. "Reject" leaves the case as it is and keeps the proposal in history. These choices do not by themselves excuse a test failure. Queue confirms Reject with "The proposal stays in history; the case is unchanged." Accept keeps the adopted version in history.
A proposal whose case changed after it was made cannot be accepted: accepting is refused, and the case stays as it
is. Reject it and propose the edit again on the current version
(see write cases).
Structured propose requests keep text as written. For outline input, use the capture syntax.
If an edit on its own would be refused now, the queue says why. If the case changed after the edit was proposed, reject the edit and propose it again on the newer version. Accepting applies a proposal's edits in order and checks the proposal as a whole, so it can be refused when no edit is.
Decide how to track a test with no case #
An unlinked-test question asks how to keep a test that has no case.
A project asks it when its policy says "Ask in the queue" for tests with no case.
With the other settings, the policy tracks the tests or creates their cases automatically.
Find those answers under "Settled". If someone withdrew or overrode the automatic answer, the
policy leaves the file's question open.
Under standard with "Create a case for each test", an agent's reported tests also wait for a person to adopt their new cases.
See policy.
"Link to a case" makes future results count for the chosen case.
"Create cases" creates one case per test and links each test to its case, for every test of the file with no case, also those past the 50 the question lists. One answer creates up to 100,000 cases, the maximum number of tests in one report. If the file has more unlinked tests, link some first. The question stays open until then.
"Create cases" works when the policy accepts new cases automatically. That means anyone under loose or a person under standard.
Under strict, or for an agent under standard, a person must adopt each new case. Mainworthy refuses "Create cases" in those situations.
To link tests when a person must adopt new cases, follow these steps.
- Propose the cases.
- Have a person adopt the cases.
- Answer with "Link to a case".
"Track without a case" keeps the test without a case. The test still gates the build.
Tests reported with neither a file nor a class name share one question under the file "(no file)". The question lists those tests like any other file's tests, and its answers act on them the same way.
To answer several files now, select them and give one answer. To give every file the same answer from now on, change the project's choice instead of answering each row. Open Policy in Settings. Under "Tests with no case", choose "Track without a case" or "Create a case for each test". The policy then answers all open questions about files automatically.
A link holds for the tests it names. The file's tests it leaves without a case are asked about at once in a new question, and so is a test that turns up later in the same file. The earlier links stay. "Track without a case" is about the file as it was. When the file's tests with no case change, the file is asked about again.
You can change a file's answer by answering its question again while nothing else has changed the file's tests with no case since. Mainworthy first takes back what the earlier answer did. If another answer, a report or an undo has changed the file since, Mainworthy refuses: undo the answer, then answer the question as it is now. A question answered before Mainworthy began keeping each file's count of tests with no case, or one brought in by an archive import, is refused this way once even when its file is unchanged. Undo the answer, then answer again.
These choices settle the mapping question. They do not turn a failed result into a pass. An existing result keeps its original basis, the case and version it applies to. Link decisions affect later results. See report results.
Explain a failure #
Failure evidence names the change and its title, with the short commit as secondary detail. For a trunk failure it shows the branch, such as main, and the merged change when the server records that exact landed commit. With no recorded association it shows only the branch and commit. Open the named change to read its gate and results. Test history and commit runs use the same identifiers.
Choose "Defect in the product" when the product needs a fix.
Choose "The test is wrong" when the test needs a fix.
Choose "Expected: behaviour changed" when the intended behavior changed.
All three attribute the failure to the target and make its gate failed.
An expected change still needs the case and test to agree with that change.
These answers carry to later occurrences of the same cause in the same scope, so nobody is asked again on each commit while the cause keeps failing. They have no fixed expiry date.
When the fix arrives #
You do not withdraw these three answers after a fix. The answer ends by itself when the cause passes in the newest
commit of its scope, for example the next commit of the pull request, or the next commit on trunk.
The question stays in "Settled" with your answer and the automatic ending. The ending uses
rule: "passed" and the reason "Every test it named passed on <commit> where it had failed; the answer ended."
See export and verify an audit. If the cause fails again later, it is a new question.
The command mainworthy get Q-1 also returns the ending and the original answer under decision.supersedes.
If the tests pass on another commit of the same pull request or branch where the cause never
failed, Mainworthy records that the change fixed the failure. The ending shows the change that fixed it: "Fixed by another commit of pr:482", with ", which
merged" or ", which closed without merging" once the change has ended. decision.fixedIn carries the change's key
and whether it is open, merged or closed. Such a failure needs no issue of its own: the pull request that fixed
it is the record, and it names the issue it was for.
If the same commit passes on retry, the ending keeps the automatic reason and identifies no fix. Endings recorded before Mainworthy noted fixes claim none either. Mainworthy does not know which of two
commits is newer or when one was pushed, so the sentence says "another commit", not "a later one" or "before it
merged". Whether an ending is a fix is decided when it is recorded, as fixed: true in its answer.
An ended answer cannot be withdrawn. A timed expiry or tracker closure shows its own reason for ending the answer.
When you select an ended answer, the footer and command palette leave out "Undo answer".
The answer ends only when that commit's run shows all of the following.
- No test fails with the cause, whether an answer explains the failure or not.
- Every test the question lists passes, including tests covered when the answer carries to later failures, in each environment where a pipeline or a person has seen it fail with the cause in this scope. A passing retry of the failing commit counts. The job that runs a test does not matter, so a sharded pipeline can move tests between jobs. A shard that has not reported one of those tests yet keeps the answer. So does a test that the fix renamed or removed.
When your pipeline reports its shards with --shard, the answer also waits until every shard of the commit has
reported. A report that is accepted and not yet applied keeps the answer too. See report from sharded jobs.
Otherwise Mainworthy does not know whether every job of a commit has reported. So the answer can end before a job
that has not reported yet: one that runs a test the question does not list, or one that runs a listed test that
another job or a person already passed in that environment. If that job then fails with the cause, the failure is
a new question.
When a carried answer covers more tests, changing that answer requires the question's current evidence.
An answer sent with an earlier evidence hash returns conflict and the current hash. Read the question again
before changing the answer. Repeating the standing answer with its original hash still returns already.
The answer stays when the question has more tests than it lists, which is fifty. It also stays when the cause once failed in an environment that no longer reports. Withdraw it then. It also stays while an open planned run names the question. Withdraw such an answer yourself when it no longer applies.
Like an answer that expired, an answer that ended no longer explains the earlier commits it covered.
Their gates read blocked, and nobody is asked about them. A pull request's gate is the gate of its newest commit.
"Flaky", "Infrastructure" and "Already failing on base" do not end on a pass. A flaky test passes some of the time.
Choose "Flaky" for an unreliable failure. The outcome stays recorded but is excused. With the supplied presets, that answer carries for 14 days or until its basis changes. When the hold ends, Mainworthy asks again if the failure still needs a decision. The project can change the number of days. See policy.
Choose "Infrastructure" for a failure in the environment. It excuses the build you are answering about, including its specific environment, rather than later commits or another environment of that commit.
Choose "Already failing on base" when the same cause already failed where the change started. It excuses this target only. The next commit is judged separately. The evidence can show a hint that the same cause fails on the base.
A normal answer to a "Disputed" question classifies its named failures only in that slot. It cannot replace the cause's answer or another slot's settlement. Later agent reports of that cause keep a person's settlement while the non-agent evidence and scope stay the same. "The failure was a mistake" instead sets the named results aside everywhere they count in an open run and in their commit gate. It does not judge a new failure reported later. See runs.
An excuse removes that failure's block. The gate passes only if no other condition prevents a pass. Missing results, other failures, and disputes still need attention.
Judge a finding #
A finding asks whether you agree with an observation, often from an agent. "Accept" agrees with it. In the web queue, a suggestion it carries becomes a proposed edit by the finder. That edit follows the normal adoption policy. "Reject" records disagreement. "Duplicate" records that another finding covers it. "Defer" records that you are leaving it for later.
These answers stay with the finding's recorded basis. They do not convert a review into a runtime pass or directly change a commit's gate. A review's completion record is separate. A new commit under the same pull request needs another review, even if the case text is unchanged. See agents for the distinction between reviews and test results.
Close a completed run #
A sign-off question asks whether to close a planned run that passes.
"Approve" closes it with its current verdict. "Reject" leaves it open.
Approval is refused if the run no longer passes when the answer arrives.
Under loose, standard, and ci, the policy normally approves a passing run automatically.
Under strict, a person supplies the answer and a reason.
The evidence shows the run's verdict and each nonzero count. It lists categories with no results, such as
missing or skipped, together on one line.
See runs.
Undo or withdraw an answer #
To withdraw your latest answer, press u. On a phone, choose Undo answer under Actions. To withdraw an earlier answer, follow these steps.
- Open "Settled".
- Select a decision.
- Use its withdrawal button.
Your authority still depends on the current policy. The original decision and its withdrawal both stay in the record.
The undo button on the last-answer line withdraws that answer even while you read "Settled". The question returns to "Open" only after the server confirms the withdrawal or a fresh read confirms it is already open. While a withdrawal is pending, its question stays shown as withdrawing, outside the Open list. An answer key queues a replacement for that question and sends it only after the withdrawal is confirmed. If another question is current when the withdrawal is confirmed, the queued answer is discarded with a message. The cursor stays on the question you chose. If that question is still settled, confirmation keeps you on "Settled". A refused or lost withdrawal reports failure without showing the question as reopened and discards the queued answer.
Undo names the decision returned by your answer. If somebody replaced it meanwhile, the withdrawal conflicts and their decision stays. The withdrawal button in "Settled" names the decision shown there. Read the question again before withdrawing a replacement. For a selection, undo sends one request with each decision id. A refused answer is not withdrawn, and a refused withdrawal does not stop the others. The message names the failed withdrawals. After a lost reply, pressing u again sends the same request under the same command id and reads its recorded reply. In "Settled", u withdraws the decision on the question you see. If a withdrawal reply was lost, the shortcut retries it only if it names that question. After a refusal, read the question again before withdrawing its current answer. The queue updates only withdrawals it has not yet confirmed, including when the first reply was lost. If somebody already withdrew the decision, the queue reads the question again and says it is already open.
API and command-line callers can send {"undo":"Q-12","ifDecision":31}. The server
compares ifDecision inside the transaction that withdraws the decision. Without it,
undo deliberately withdraws whichever decision currently stands, subject to the current
policy. Use the receipt's decision id when taking back a specific answer. Advice is
not a decision receipt, and undo does not withdraw advice on an open question.
To withdraw up to 500 decisions together, send a list with a required ifDecision for each question:
mainworthy decide --json '{"undo":[{"q":"Q-12","ifDecision":31},{"q":"Q-13","ifDecision":32}],"reason":"Taking back the selection","cmd":"undo-selection-1"}'
The HTTP API accepts the same input. One shared reason applies to every withdrawal.
The reply has one entry per question, in request order. A changed decision returns conflict
without preventing other withdrawals. Retry with the same input and cmd to read the recorded replies without new writes.
MCP discovery offers only the single-question withdrawal form.
Withdrawing an excuse recomputes gates that depended on it. A failure can become unexplained again. Withdrawing a link removes that decision's link unless a newer link has replaced it. Withdrawing an approval reopens its run.
An adopted proposal cannot be withdrawn. Restore earlier case content as a new version instead. See write cases. Withdrawing an older decision does not undo standing work made by a newer decision.
Create or link a tracker defect #
An operator can configure GitHub Issues or Jira Cloud for a project and destination. If both trackers name the same Mainworthy project, Mainworthy uses Jira for new defects and links. A link then takes a Jira key. Mainworthy still checks existing holds from either tracker.
On a failure question in the queue or the case's history, choose Create GitHub issue (or Create tracker issue for Jira).
The action appears when the server reports a configured tracker and your project grant
includes two capabilities. You need read to see cases, results, questions, and the gate. You also
need produce to write and edit cases, report results, review, and send answers. It includes record, which lets you report results
and attachments, and report that a change ended.
Use Alt+g, or find the action for the question in the palette. In a case with several failures, choose the question in the palette.
Review the exact destination, title and body returned by the server, then choose Send to tracker.
The body includes the project, case basis, test reference and name, result and outcome, raw target, environment, build URL, failure and recorded case content.
The web app sends the preview's confirmation digest. If the destination or content changed, the server returns conflict. Cancel and open the review again before sending.
The request uses the question's latest sample failed result. The screen shows the created issue's link or the error returned by the server.
To answer the question with "Defect in the product", use the issue reference if it applies. Creating an issue alone leaves the question and failure as they were.
Use mainworthy tracker or the API to create an issue from a failed or errored result.
The CLI can create without a confirmation digest because it has no review step.
API callers can send do: "preview" with the same result and command id as creation, then send do: "create" with the returned confirm digest.
Preview is a read: it queues nothing and does not consume the command id.
The request sends the failure message and detail, the tested target, and the reported build URL to that destination.
It also sends the recorded case version and its content when known.
Review what the report contains before sending it to a public repository or shared Jira project.
A test's get reply lists result ids in last[].id.
A case's timeline reply also includes result ids. A run slot lists result ids in fills[].result.
If the failed result is 123, use these commands:
mainworthy tracker --json '{"do":"create","result":123,"cmd":"defect-result-123"}'
mainworthy tracker-status --id defect-result-123
Previewing, creating and linking all need read and produce, including for a result you recorded yourself: the draft contains recorded case content and the tracker destination. This applies to the button, CLI and API. Reading a request's status needs read.
The server sends up to twenty queued requests once a minute.
When stopping, it waits for the request already in flight and leaves queued requests for the next start.
If saving that reply fails, the server logs the error once and finishes shutting down.
A completed request returns an issue URL and the issue's state as the tracker reported it.
To check an existing issue, use these commands:
mainworthy tracker --json '{"do":"link","result":123,"key":"42","cmd":"link-result-123"}'
mainworthy tracker-status --id link-result-123
If only GitHub is configured for the project, use the issue number in the configured repository.
Mainworthy refuses pull requests. For Jira, use the issue key in the configured project, for example QA-42.
Record the returned URL as the optional reference in a Defect in the product answer.
Creating or checking an issue does not answer the failure question. The answer still follows the project's policy.
Reuse the same cmd when retrying a request after a lost reply.
Its first receipt still says queued, so use tracker-status to read the current delivery state.
The server does not retry a failed request automatically.
After a timeout or a restart that leaves a request sending, check the tracker before creating another request.
The issue may already exist. Link that issue if you find it.
Delivery requests and their status stay on this instance. Archives leave them out. To keep the issue reference in an archive, record the reference in a decision before archiving. A restored archive keeps historical command receipts but has no corresponding tracker status. The restored instance does not send those requests again. Requirement mirroring, Azure DevOps, and GitHub Enterprise remain planned.
End a defect hold when its issue closes #
The server checks defect references that exactly match an issue URL or tracker reference in the configured destination.
GitHub uses closed. Jira uses status category done, regardless of the status's display name.
The server records an ending decision with a reason naming the issue and removes the old excuse.
If the failure still appears, the server asks it again.
Closure does not count as a passing test. If the issue reopens, the old hold does not return.
Answering the reopened question as a defect with the same closed issue ends the hold again at the next check.
The server checks up to twenty due defect decisions each minute.
After a failed read, it keeps the hold and retries with increasing delays, up to an hour.
The deadline survives a restart. The server does not poll references outside the configured destination or in another format.
GitHub references look like github:example/shop#42. Jira references look like jira:https://example.atlassian.net#QA-42.
An archive keeps the defect decision and its reference but leaves out polling state. If the destination is configured on the instance, the server checks live defect holds afresh after import.
If a check fails, the defect decision in the queue and the failure's case history show when the tracker first became unreadable.
They also show a short reason. The question's get reply and the decided inbox reply carry the warning in decision.trackerError.
A successful read clears the warning. The server logs one warning per failing issue until a successful read clears the failure.
Several holds naming the same issue, retries, and restarts do not repeat the warning.
For HTTP 401, ask the operator to renew the tracker token in the server configuration and restart the server.
For HTTP 403 or 404, check the account's permissions and the issue key.
If the issue moved to another key, withdraw the old defect answer.
Answer the failure again with the new key's canonical issue URL or tracker reference.
If Jira returns status category undefined, set the issue's status category to new, indeterminate, or done in Jira.
The hold stays until a successful check finds the referenced issue closed, or you withdraw or replace the answer.
Hand a failure to a coding agent #
A failure question offers two buttons under its evidence, even after a decision. If the policy answered the failure automatically, find the question and its buttons under Settled.
- Copy for an agent (y) copies a brief: the question and its link, the failing tests, the commit and branch, the failure message, and a request to find and fix the cause. Paste it into whichever agent you use.
- Hand to the agent (h) asks the server to post that brief to the agent the instance is configured to start. It appears only on the project an operator configured with
MAINWORTHY_HANDOFF_PROJECT,MAINWORTHY_HANDOFF_URLandMAINWORTHY_HANDOFF_SECRET. The server's brief also carries the build link and the sample result's further output, which the copy leaves out.
After a hand-off, the question says whether it was sent or why not. The server queues a durable job and does not repeat a send whose outcome is uncertain: "sent" means the endpoint answered with a 2xx status, not that the agent fixed anything. An endpoint that answered with an error, or did not answer within 15 seconds, may still have started the agent. A hand-off whose job lease expires after sending began is marked failed when recovery next runs, because it may have arrived. Starting another instance does not fail a live send. Look for the agent's work before handing the question off again.
To hand off a failure, you need answer, the capability that makes your answer count where the policy asks a project member. To read the latest hand-off status, you need read.
mainworthy handoff --json '{"question":"Q-70","cmd":"handoff-q70-1"}'
mainworthy handoff-status --question Q-70
A handoff queued by an older version with a username or password in its public address is refused before delivery. Correct MAINWORTHY_PUBLIC_URL, restart the server, and hand the failure off again.
The server posts JSON with these fields: id (the request's cmd), project, question, title, url (the question on this instance, when MAINWORTHY_PUBLIC_URL is set), brief, message, tests, target, branch and build. The header X-Mainworthy-Signature holds sha256= and the hex HMAC-SHA256 of the body under the secret. X-Mainworthy-Delivery repeats id.
Start a T3 Code thread for each hand-off #
In T3 Code, make a scheduled task in the repository's project with a webhook trigger that starts a new thread for each request. Check its signature with header x-mainworthy-signature, hex encoding and prefix sha256=, under the same secret as MAINWORTHY_HANDOFF_SECRET. Its prompt takes the brief from the body, for example:
Mainworthy handed you a failing test. Fix it in a worktree of its own and open a pull request.
{{body.brief}}
Set MAINWORTHY_HANDOFF_URL to the task's webhook address. T3 Code reaches it through T3 Connect, so the machine running T3 Code must be on for a hand-off to start a thread.
Hand-offs stay on this instance. Archives leave them out, and a restored instance does not send them again.
Check who may answer #
The question says whose answer counts. Mainworthy checks the project policy and the capabilities your token grants you. An agent's answer can count, remain advice, or be refused. A pipeline cannot answer. Some failure decisions require a person who did not report the evidence. Read policy before changing who can answer.