Skip to main content

Pull requests — verification, evidence & merge

When a loop opens a pull request, Ouroboros verifies it before anything merges. The PR verification page at /prs/<id> is where you see what has been proved, what is still missing, and where you decide to merge, send the pull request back, or wait.

Merging is the step you cannot take back, so this page states what each check proves and what a merge will do before you confirm it.

PR verification: the revision cycle and the gates the pull request must pass before it merges.
The PR verification page for PR #514, can: fix flaky telemetry frame order under ISR load: a banner saying PR #514 has never been synced with its host, with Check again; the header with loop #1847, issue #482, a Demo data label, verifying — 5 of 7 gates green, the branch loop/482-canbus-flake into main and +68 −15 across 3 files, and the Request human review, Return to loop and Merge when all gates green buttons; the revision cycle from Revision 1, blocked on Test suite and Physical HIL, through a correction round to Revision 2 re-verifying; and the verification gates, with Build, Test suite, Physical HIL, Diff-vs-plan conformance and Secrets & license scan green, Second-model review unavailable, and Human approval not required by policy and auto-merge eligible.The PR verification page for PR #514, can: fix flaky telemetry frame order under ISR load: a banner saying PR #514 has never been synced with its host, with Check again; the header with loop #1847, issue #482, a Demo data label, verifying — 5 of 7 gates green, the branch loop/482-canbus-flake into main and +68 −15 across 3 files, and the Request human review, Return to loop and Merge when all gates green buttons; the revision cycle from Revision 1, blocked on Test suite and Physical HIL, through a correction round to Revision 2 re-verifying; and the verification gates, with Build, Test suite, Physical HIL, Diff-vs-plan conformance and Secrets & license scan green, Second-model review unavailable, and Human approval not required by policy and auto-merge eligible.

Finding a pull request​

There is no list of pull requests in the sidebar. You open one from the work that produced it:

  • the run console — PR verification in the header, and PR #512 ↗ on a merged run (see the run console);
  • test results — the PR #514 link in the header (see Test results);
  • the dashboard's completed loops.

Ouroboros finds a pull request by the run that opened it, so start from the run. A run whose pull request Ouroboros has not mirrored from your repository host has no link. The <id> in the address is Ouroboros's own, not the number on your host.

The loop's branch on your host​

A live run pushes its changes to one branch in your repository, named ouro/run-<run id>-<issue number>. It pushes when the run reaches a build stage and again when it reaches its pull-request stage, so a correction round adds commits to the same branch. It never rewrites the branch and never pushes to your default branch.

Each stage attempt that changed files is one commit, and every commit says who and what produced it:

PartWhat it holds
AuthorThe deployment's Ouroboros identity — Ouroboros <loop@ouroboros.invalid> unless your administrator changed it
Subject<stage>: <issue title> (#<issue number>)
BodyGenerated by an automated Ouroboros loop for run <id>; a person reviews it before it merges.
Ouroboros-Run:The run's id — the same run the console shows
Ouroboros-Workflow:The workflow and its version, as <workflow>@v<version>
Ouroboros-Model:The model alias the stage ran on
Ouroboros-Stage:The stage and the attempt, as <stage> attempt <n>
Co-authored-by:The person who confirmed the live run, when there was one

The commits are not signed. The run console's commit list shows the same commits. For what an administrator can configure and what Ouroboros refuses to push, see What Ouroboros writes to your repository.

The draft pull request a loop opens​

When a live run reaches its pull-request stage, Ouroboros opens a pull request from the run's branch into your default branch, through the ticket source that holds the issue. It is always a draft: a draft cannot merge, and your host does not ask code owners to review it until someone marks it ready. Its title is the issue's title, and its description says:

  • Opened by an Ouroboros loop under dry-run policy. This is a draft: nothing merges on its own.
  • Run: the loop, linked to its run console, with the workflow version and the model alias.
  • Summary: the issue's title, the stages that passed, and any correction rounds.
  • Acceptance criteria: each claim from the issue's plan, unchecked and marked unverified, no evidence yet — or No acceptance criteria were imported.
  • Build: the run's latest farm job with its pool, status and exit code — or Build: none ran for this run. — and a Run console link.
  • Cost: the run's spend and tokens.
  • Refs #<issue> — not a closing keyword, so merging the pull request does not close the issue by itself.

The pull request is mirrored into Ouroboros at once, linked to its run, and its criteria are imported into the criteria matrix, where you attach the evidence. Its gates are the same gates any pull request has. If the run's last stage runs again, it finds the same pull request rather than opening a second one.

A pull request a loop opened: always a draft, linked to the loop that opened it.
The header of PR #504, telemetry: allocate frame buffers from a fixed pool, at Revision 1: the tag loop #1830 · issue #465, a Draft chip, a Demo data label, verifying — 13 of 14 gates green, the branch loop/465-telemetry-buffer-pool into main and +214 −180 across 6 files, beside the Request human review, Return to loop and Merge when all gates green buttons and the note Loop #1830 has finished, so it cannot take a correction round.The header of PR #504, telemetry: allocate frame buffers from a fixed pool, at Revision 1: the tag loop #1830 · issue #465, a Draft chip, a Demo data label, verifying — 13 of 14 gates green, the branch loop/465-telemetry-buffer-pool into main and +214 −180 across 6 files, beside the Request human review, Return to loop and Merge when all gates green buttons and the note Loop #1830 has finished, so it cannot take a correction round.

The header​

The header reads PR Verification · PR #514 · Revision 2, then the pull request's title, the loop and issue it came from, and its state with a gate count — such as verifying — 5 of 7 gates green. A pull request your host holds as a draft also shows a Draft tag — every pull request a loop opens does. The state is one of:

  • verifying — gates are being evaluated on the latest revision.
  • armed — a merge is set to happen once every required gate is green.
  • blocked — a required gate is red.
  • merged or closed — the page is now a record; nothing can be armed, waived or approved.

Three actions sit beside it:

  • Request human review — makes Human approval required on this pull request.
  • Return to loop — sends a blocked pull request back to the loop for a correction round.
  • Merge when all gates green — takes you to the merge plan.

Owners, admins and members can request a review and return a pull request; only owners and admins merge. Viewers read the page. None of the actions appear once a pull request has merged or closed.

Revisions​

Revision cycle shows the pull request's history — publish → verify → correct → re-publish. Each push is a new revision with its own commit and gate results: Revision 1 … — blocked: Test suite, Physical HIL ✗, then a Correction round, then Revision 2 … — pushed, re-verification running. The last step says how the pull request will merge, such as Auto-merge (squash) on all gates green.

Select a revision to see its gates as they stood — the step is marked gates scoped here. Follow the latest revision takes you back. Approvals and returns only apply to the latest revision.

Verification gates​

Verification gates lists every check the revision must pass, with the count of green ones (5 / 7 green) and a link to the Run console →:

GateWhat it proves
BuildThe change builds on a farm runner — with the runner, the image and its size.
Test suiteThe tests passed — 63/63 after attempt 4. Links to the test results.
Physical HILThe hardware-in-the-loop measurements are within their limits.
Diff-vs-plan conformanceEvery changed file is one the plan named; out-of-scope edits are counted.
Secrets & license scanNo secret or disallowed license was found in the diff.
Second-model reviewA second model reviewed the change.
Human approvalA person approved, when your policy or a review request requires one.

Each gate shows its result and a line of evidence from the check itself, and links to where you can look closer — build farm →, test results →, physical tests → or guardrails →. A gate is:

  • ✓ green, or ✗ red — a red gate says why.
  • in progress while it is being evaluated.
  • – unavailable — nothing can evaluate it yet. Second-model review shows arrives with the provider stack: no review provider is connected, so it does not turn green on its own.
  • ○ not required — your policy does not ask for it. Human approval marked auto-merge eligible means the pull request can merge without a person.
  • ⊘ waived — let through on purpose. Choose waived to read the waiver's reason.

Neither not required nor waived counts as a pass; they are policy decisions, shown as such.

Human approval​

When a review is required, the Human approval row waits for an owner or admin: they see Approve and Decline. Declining asks Why it is declined — the gate turns red with your reason. A member who wants a review chooses Request review; the row then says it is waiting for an owner or admin.

Does the PR do what the ticket says?​

The criteria matrix lists each claim the pull request must satisfy — taken from the issue's plan (plan) or added by hand (manual) — with the evidence for it and its status: ✓ verified, unverified, or waived.

The criteria matrix: each claim from the issue, the evidence cited for it, and whether it is verified or waived.
The criteria matrix headed Does the PR do what the ticket says?, linking Issue #482 and counting 4 verified, 1 waived and 0 unverified: four plan claims, each with its evidence — a test and a hunk, a HIL measurement, and two notes — marked verified with Attach evidence and Waive buttons; the claim Flake must not reappear across temperature range, waived as not annotated with the reason rig runs at 22°C only — thermal chamber not in bench and a Waive again button; and + Add claim.The criteria matrix headed Does the PR do what the ticket says?, linking Issue #482 and counting 4 verified, 1 waived and 0 unverified: four plan claims, each with its evidence — a test and a hunk, a HIL measurement, and two notes — marked verified with Attach evidence and Waive buttons; the claim Flake must not reappear across temperature range, waived as not annotated with the reason rig runs at 22°C only — thermal chamber not in bench and a Waive again button; and + Add claim.

Each piece of evidence leads to what it cites. A test or a measurement opens the test results of the attempt that ran it, with that row selected. A hunk, such as hunk telemetry_buf.c:41–66, jumps to those lines under Changed files.

To work through the matrix, as an owner, admin or member:

  • + Add claim — write one claim in the ticket's words. It starts unverified.
  • Import from plan — copy the claims from the issue's plan, when it has one. Claims already in the matrix are skipped.
  • Attach evidence — cite proof for a claim (below).
  • Verify — mark a claim verified. It stays off until evidence is attached: a claim is verified by what is cited for it.
Attaching evidence to a claim: cite a test, a rig measurement or a hunk of the diff.
The Attach evidence dialog for the claim Telemetry frames must arrive in ISR order under load: What to cite with Test selected and Measurement and Hunk beside it, a Test to cite list from attempt 4, an optional Qualifier, and the Attach evidence and Keep on this page buttons.The Attach evidence dialog for the claim Telemetry frames must arrive in ISR order under load: What to cite with Test selected and Measurement and Hunk beside it, a Test to cite list from attempt 4, an optional Qualifier, and the Attach evidence and Keep on this page buttons.

Attach evidence asks What to cite:

  • Test — a test case from the run's latest test attempt.
  • Measurement — a rig measurement from that attempt.
  • Hunk — a changed file and the first and last line of the hunk.

Add an optional Qualifier, shown in parentheses after the evidence — for example 10⁶ frames, 0 reordered.

Waiving a claim​

Some claims cannot be proved here — the rig has no thermal chamber, say. An owner or admin chooses Waive and writes Why it cannot be verified here, for example rig runs at 22°C only — thermal chamber not in bench. Waive & annotate PR records the waiver and posts the reason as a comment on the pull request. The claim then shows:

  • waived · annotated on PR — the comment is on the pull request; select it to open it.
  • waived · annotation failed — your host refused the comment. Waive again retries.
  • waived · not annotated — the waiver was recorded without a comment. Waive again posts one.

Changed files and the review thread​

Changed files lists each file with lines added and removed, a stored excerpt of the diff, and Full diff on the host ↗. A file outside the plan is tagged outside the planned file list.

Review thread collects the reviews of the pull request: model reviews, the policy bot's notes and people's replies. A reviewer marks an entry blocking when it needs an answer; Reply & resolve answers it, marks it ✓ resolved, and the entry then reads was blocking. An entry marked simulated is demonstration data — no model wrote it.

Spend shows the tokens and cost of the loop and of verification, against the loop's cap.

Returning a pull request to the loop​

When a gate is red, Return to loop opens Return PR #514 to the loop. Select the red gates to send — Red gates to send as context — and confirm. The loop starts a correction round with them. Nothing is discarded: the branch and the pull request stay as they are, and the next push is verified as a new revision.

Merging​

Merge plan says how the pull request will merge: the Strategy (such as squash · delete branch), the Commit message, and what happens afterwards — Close issue #482 on merge, Comment evidence summary on the host PR, and Back-annotate roadmap with a Roadmap epic. Edit policy → opens the policy these defaults come from. Owners and admins change the plan; members read it.

Edit the commit message and choose Save message — the saved message is what merges.

When you choose Merge when all gates green, a confirmation states exactly what you are agreeing to:

Arming the merge: the confirmation states which gates it still waits on and that everything is checked again at merge time.
The confirmation Merge PR #514 when all gates are green: it merges automatically when Second-model review turns green, gates, head commit and mergeability are re-checked at merge time, and a merge cannot be undone from here; Second-model review is unavailable, so the merge waits until it is green, waived or no longer required; against Revision 2 b7e41d0, strategy squash and delete branch, then close issue #482, comment the evidence summary and delete the branch; merges as the workspace's configured token; and the Arm the merge and Keep on this page buttons.The confirmation Merge PR #514 when all gates are green: it merges automatically when Second-model review turns green, gates, head commit and mergeability are re-checked at merge time, and a merge cannot be undone from here; Second-model review is unavailable, so the merge waits until it is green, waived or no longer required; against Revision 2 b7e41d0, strategy squash and delete branch, then close issue #482, comment the evidence summary and delete the branch; merges as the workspace's configured token; and the Arm the merge and Keep on this page buttons.
  • Which gates it still waits on, and what each one's state means — a gate that is unavailable will not turn green on its own, so the merge waits until it is green, waived or no longer required.
  • The revision and commit it merges, the strategy, and what happens afterwards.
  • That gates, head commit and mergeability are re-checked at merge time. If any check fails, the plan disarms and says why — nothing merges.
  • A merge cannot be undone from here.

Arm the merge sets it going; the pull request is then armed and merges by itself once every required gate is green. Disarm stops it — members can disarm too. When every required gate is already green, the button reads Merge now and merges straight away, after the same re-check.

The merge is made with your workspace's configured token, not a bot account.

What can go wrong​

  • "PR #514 has never been synced with its host." or "… may be out of date." Ouroboros could not read the pull request from your host — the host may be unreachable, the credential refused, or sync stalled. What you see is what was last recorded. Choose Check again.
  • The plan disarmed itself. A re-check at merge time failed, and the plan says why:
    • A gate went red — fix it, or return the pull request to the loop, then arm again.
    • The head moved — a new revision was pushed after arming. Review its gates, then arm again.
    • The host reports a conflict — resolve it on the host, or return the pull request.
    • Dry-run is on — nothing merges while the dry-run policy is active. An owner or admin can turn it off in Settings → Policies.
    • The host refused the merge — nothing was retried; arm again once the host would accept it.
  • "This PR changed while the confirmation was open." Close it and review the gates again.
  • Verify stays off. Attach evidence to the claim first.
  • "No gate is red on revision 2 — there is nothing to send back." Return to loop only works while a required gate is red.
  • "This pull request does not exist." The link belongs to another workspace — check the workspace in the header.
  • A live run failed at its pull-request stage. The run console names why: the host refused to open the pull request as a draft (its own message is quoted), no GitHub ticket source can open pull requests for the issue, or the branch was never pushed. Ouroboros never falls back to a ready pull request. Fix the cause and run the issue again.