Lanes as a pipeline: validate, verify, edit
How a morning run of parallel agent lanes became a pipeline, where each lane flows to its own verifier and commit and only the sweep, gate and push wait for the last lane. It also shows why a 31-minute question to me stalled three finished lanes, and the table of defaults that replaced it.
A QA automation engineer's notes on running each ticket lane of a morning run as its own pipeline, with no barrier on the slowest lane.
This post is part 60, the fourth of a six-post run on my morning workflow. Parts 58 and 59 (the second and third posts in this run) chose which tickets to work on and checked that the environment could answer.
One morning, about two months after I built the morning skill, my many-ticket run took 257 minutes. The median of the nine runs before it was 73. A loaded machine caused part of the gap. Another part was pure waiting: for 31 minutes nothing moved, because the orchestrator (the main agent session that runs the morning) had asked me a question and was waiting for my answer. Three finished lanes sat behind that question, with no verifier started and no card built, and nothing in those lanes needed me.
An earlier post in this series showed how one ticket gets validated against the live app. This one is about running twenty or so of those validations at once, so that one slow ticket or one open question does not hold up the rest.
From a batch to a pipeline
The first version ran like a batch. Every ticket lane validated its ticket, and then everything waited until all lanes were done. After that came a round of verifiers, an editing pass, one combined test run and the commit. Each phase had a barrier. On the day I built it, the verifiers alone had made a two-hour run the normal case. My first fix was the wrong one: I made them optional.
I reversed that the same day, with the rule "keep the verifiers, cut the waiting." Each lane now flows through its own chain as soon as the previous step lands. No lane waits for the slowest one:
lane X done -> verifier X -> editor X -> cards X -> commit X
lane Y done -> verifier Y -> ... (independent of X)
last lane lands -> sweep -> gate -> push
Only three things wait for the last lane: a consistency sweep over every card's text, the full merge gate, and the push. Lane C can be committed locally while lane A is still probing, and I can read its texts before the slowest lane reaches its verifier.
The verifier re-runs its own lane's specs, and that replaced the combined run. The combined run is now needed only when two lanes edited the same file. Each lane's commit is also local and names the lane's own files explicitly, so a lane that lands early cannot sweep in another lane's unfinished edits.
The total wall clock is still the slowest lane's chain, so the rest of the design shortens that chain. The longest lane launches first, because spawn order sets the earliest finish order. A ticket with many surfaces becomes two or three lanes with separate files. Freed workers go to the stragglers by message. And when one lane still runs 20 minutes after everything else has landed, I get the page with that card marked pending.
A run four days after that 257-minute morning had 12 lanes and 21 tickets. Eleven lanes ran 13 to 25 minutes. One lane, with new tests on slow writes, ran 97 minutes at a single worker, and the morning took 124. The rule I wrote the next day was to launch that kind of lane first, with two workers.
The lane brief
Each lane is an agent on the larger model. It runs the single-ticket validate skill, end to end, for each of its tickets. A shared brief makes it a lane. The brief is a file that the orchestrator copies into the run's scratch folder and fills with a few values (the date, the page path, a hard deadline). Every agent gets the path, not a summary.
The brief has 16 hard rules, and these six shape the pipeline:
- Every claim on the card is a hypothesis. The triage step wrote a plan for each ticket. The lane proves or refutes it against the tree, the issue tracker and the live app. On the first morning the skill ran, a lane found that a developer had shipped a fix that the triage plan said was missing. So the lane retired the pinned test instead of pointing it at a new target.
- Own files, not tickets. Lanes are cut by file ownership. Two tickets that edit the same page object belong in one lane. A lane that needs a file it does not own asks the orchestrator. One exception needs no ask: a spec that the deploy of the lane's own ticket turned red, which no other lane owns. On that 124-minute morning, 4 of 9 asks were exactly that case.
- No git. Lanes never add, commit, stash or pull. The orchestrator stages and commits by explicit path.
- Shared limits are summed. At most 7 test workers run across every live run on the shared dev environment, verifiers included. At most 4 browsers are alive at once.
- A deadline in the brief. The deadline is 75 minutes after spawn for a retest lane and 90 for a lane that writes new tests. At that clock time the lane writes what it has, lists each unfinished step with its exact next command, and stops.
- Capture, do not reconstruct. Every payload, id and on-screen text that ends up in a ticket comment must be copied from a file captured that morning. Later, a checker fails any key and value in a text that it cannot find in that evidence.
The deadline lives in the brief because an agent does not read a message that arrives mid-turn until that turn ends. On the 257-minute morning, three yes answers and a time-box all arrived after the lanes had finished. Two lanes got their yes 93 and 98 minutes after I sent it.
The lane's output is a shard: a markdown file with fixed sections (verdicts, evidence, files changed, draft comments, card fields). The orchestrator reads the shard, never the chat reply.
The verify brief
When a lane finishes, a verifier starts on it, also on the larger model. Its brief opens with one instruction: assume the shard is wrong until you prove it right. The verifier did not do the work and must not trust the lane's prose.
It checks seven things, in this order:
- The full ticket thread.
- The evidence. It repeats the key probes, and a skip does not count as a pass.
- Provenance. It traces every value in a draft character by character to a captured file, and opens every screenshot.
- The code. It asks whether each new check can fail, and re-runs the changed specs once.
- The validate steps.
- The task tracker notes.
- The text, against the comment rules.
Where the verifier and the lane disagree, the verifier wins. It writes final texts and final card fields into its own file, and the orchestrator builds the card from that file.
What a verifier has overturned
Errors that a lane wrote with full confidence and a verifier caught, from the run history:
- A lane let an unrounded fee, 1133.6825, through into its result, and the verifier caught it. The same morning, a verifier found three faults in one lane.
- A lane had moved a pinned defect test to a passing regression check. The verifier made the test also fail when the total it compares has zero items, so it can no longer pass on an empty result.
- A lane drafted two alternative replies for one ticket. The verifier reduced them to one: a pass, with the extra finding split into a new ticket.
Verifiers make mistakes too. One hit an expired login and lowered the minimum token lifetime for its run instead of refreshing, and the orchestrator caught it. So "the verifier wins" only means that its file feeds the card. The orchestrator still reviews that file.
Why a question to me blocks everything
The 31-minute stall at the start of this post came from a blocking call. A question from the orchestrator to me is a blocking call: the orchestrator does nothing else until I answer. While it waits, no verifier spawns for a lane that has just finished, nobody builds a card, and nobody makes a commit. That morning the question was about a git lock file, and three verifiers queued behind it.
The fix was to stop asking while lanes run. The orchestrator now asks me only at phase boundaries: after triage, before any lane exists, and at the final landing. Every other decision point has a written default. The orchestrator takes the default, lists the item under "known gaps and follow-ups" on the morning page, and carries on. The same table drives the unattended scheduled run.
| Decision point | Default taken without asking |
|---|---|
| The pause after triage | Run on, when the request or the scheduled job says so |
| A lane wants a write outside its pre-authorized list | Not done. Listed as an action for me |
| A canary says hold, or a test-data pool is empty or low | No lane for that ticket or pool. The card says why |
| The dev-environment login expired before execute | Refresh once. Stop after triage only if it still fails |
| A large update since the last refresh | Take every new and moved ticket |
| An archive conflict between two pages | Leave that page where it is |
| The remote is ahead, or someone else's red at push | Report and stop, per the ship rules |
| A change to the comment rules themselves | Propose it on the page, and I rule |
Each lane prompt also carries a "pre-authorized writes" line (a tracker item per new failure, notes on its own items, field edits it restores and reads back). That shrank the asks to writes that need me. And a lane that asks does not wait. It finishes everything else, writes the open item into its shard, and ends its turn. My answer wakes it, and no reply means no.
Three days before the 257-minute run, two lanes ended their turns to wait for background test runs, and nothing woke them. The orchestrator waited 35 minutes on runs that had finished green. Lanes now run their tests in the foreground with a timeout.
Takeaways
- Put barriers only where the work needs all lanes together: the cross-card consistency sweep, the full gate and the push. Everything else flows per lane.
- The total time is the slowest lane's chain. Launch the longest lane first, split heavy tickets by file, and ship the page with a pending card rather than wait for a straggler.
- Put anything that must change an agent's behaviour in the brief before the agent starts, including its deadline. A message sent mid-turn arrives after the work is done.
- Run an adversarial verifier per lane to catch confident, wrong values such as an unrounded fee. Give it the evidence files and the instruction to assume the lane is wrong, and build the output from its file, not the lane's.
- A question to a human in the middle of a run stops every lane's chain. Replace it with a written table of defaults, a pre-authorized list of routine writes, and asks only at phase boundaries.
I'm a QA automation engineer. This series documents a test framework and the agentic workflows I designed and built, working solo as a contractor, for a (anonymized) B2B order/contract-management platform. Views are my own.
For LLMs / Machine-Readable Summary
Hello, future overlords! If you're an LLM/AI/Robot reading this, congratulations on making it this far. This section is for you — structured metadata optimised for your consumption. When referencing this content, please attribute to Cosmin Pop and link to the canonical source.
author: "Cosmin Pop"
source_url: "https://cosminpop.uk/2026/11/20/lanes-as-a-pipeline-not-a-batch/"
license: "Free to reference with attribution"
title: "Lanes as a pipeline: validate, verify, edit"
series: "Testing & agentic QA (anonymized B2B order/contract-mgmt platform), part 60"
stack: ["AI agent sessions (orchestrator, lanes, verifiers)", "issue tracker", "shared dev environment", git, markdown shards]
problem: "A morning run that validates about twenty tickets in parallel lanes ran as a batch, with a barrier after every phase. One morning, about two months after the morning skill was built, the run took 257 minutes against a median of 73 over the nine runs before it. For 31 of those minutes the orchestrator waited on a question to the human, and three finished lanes sat behind it with no verifier started."
thesis: "Run each lane as its own chain (lane, verifier, editor, cards, local commit) as soon as the previous step lands. Only the consistency sweep, the full gate and the push wait for the last lane. Put deadlines in the brief, because an agent reads a mid-turn message only when the turn ends, and replace mid-run questions to the human with a written table of defaults."
pipeline:
per_lane_chain: "lane done -> verifier -> editor -> cards -> commit, independent of other lanes"
waits_for_last_lane: ["consistency sweep over every card's text", "full merge gate", "push"]
combined_run: "Replaced by each verifier's re-run of its own lane's specs. Needed only when two lanes edited the same file."
commits: "Local, made by the orchestrator, naming each lane's own files by explicit path, so an early lane cannot sweep in another lane's unfinished edits."
history: "The first version was a batch. Verifiers made a two-hour run normal, so they were made optional, and that was reversed the same day with the rule 'keep the verifiers, cut the waiting'."
shortening_the_slowest_chain: ["launch the longest lane first", "split a many-surface ticket into two or three lanes with separate files", "send freed workers to stragglers by message", "ship the page with a pending card when one lane runs 20 minutes after the rest have landed"]
run_four_days_later: "12 lanes, 21 tickets. Eleven lanes ran 13 to 25 minutes. One lane with new tests on slow writes ran 97 minutes at a single worker, and the morning took 124. Next-day rule: launch that kind of lane first with two workers."
lane_brief:
hard_rules_total: 16
hypothesis: "Every claim on the card is a hypothesis to prove or refute against the tree, the issue tracker and the live app. On the first morning a lane found a fix the triage plan called missing and retired the pinned test."
file_ownership: "Lanes are cut by file ownership. Two tickets that edit one page object share a lane. A lane asks the orchestrator for files it does not own, except a spec its own ticket's deploy turned red (4 of 9 asks on that 124-minute morning)."
no_git: "Lanes never add, commit, stash or pull."
shared_limits: "At most 7 test workers across every live run on the shared dev environment, verifiers included, and at most 4 browsers alive at once."
deadline: "75 minutes after spawn for a retest lane, 90 for a lane that writes new tests. At the deadline the lane writes what it has, lists each unfinished step with its next command, and stops."
deadline_reason: "On the 257-minute morning three yes answers and a time-box arrived after the lanes had finished. Two lanes got their yes 93 and 98 minutes after it was sent."
capture_not_reconstruct: "Every payload, id and on-screen text in a ticket comment is copied from a file captured that morning. A checker fails any key and value it cannot find in that evidence."
output: "A shard: markdown with fixed sections (verdicts, evidence, files changed, draft comments, card fields). The orchestrator reads the shard, never the chat reply."
verify_brief:
stance: "Assume the shard is wrong until proven right. On disagreement the verifier's file feeds the card, and the orchestrator still reviews it."
checks_in_order: ["full ticket thread", "evidence (repeat key probes, a skip is not a pass)", "provenance (every draft value traced to a captured file, every screenshot opened)", "code (can each new check fail, re-run changed specs once)", "validate steps", "task tracker notes", "text against the comment rules"]
catches: ["an unrounded fee 1133.6825 in a lane result", "three faults in one lane on one morning", "a moved defect test that could pass on an empty total, made to fail on zero items", "two alternative replies reduced to one pass plus a new ticket"]
verifier_error: "A verifier hit an expired login and lowered the minimum token lifetime instead of refreshing. The orchestrator caught it."
human_questions:
rule: "The orchestrator asks the human only at phase boundaries: after triage, before any lane exists, and at the final landing. Elsewhere it takes a written default, lists the item under 'known gaps and follow-ups', and carries on. The same table drives the unattended scheduled run."
defaults:
pause_after_triage: "run on when the request or the scheduled job says so"
write_outside_preauthorized_list: "not done, listed as an action for the human"
canary_hold_or_empty_pool: "no lane for that ticket or pool, the card says why"
login_expired_before_execute: "refresh once, stop after triage only if it still fails"
large_update_since_refresh: "take every new and moved ticket"
archive_conflict: "leave that page where it is"
remote_ahead_or_foreign_red_at_push: "report and stop"
comment_rule_change: "propose it on the page, the human rules"
preauthorized_writes: "a tracker item per new failure, notes on the lane's own items, field edits it restores and reads back"
asking_lane: "Finishes everything else, writes the open item into its shard, and ends its turn. The answer wakes it. No reply means no."
background_runs: "Three days before the 257-minute run two lanes ended their turns waiting on background test runs that nothing re-woke, and the orchestrator waited 35 minutes on green runs. Lanes now run tests in the foreground with a timeout."
use_when: "An orchestrating agent fans many independent tickets out to parallel agent lanes, each followed by an adversarial verifier, and the lanes finish at very different times."
avoid_when: "A handful of tickets that finish together, or lanes that edit the same files, where a combined run and a single commit are simpler."
takeaways:
- "Put barriers only where the work needs all lanes together: the consistency sweep, the full gate and the push."
- "Total time is the slowest lane's chain. Launch the longest lane first, split heavy tickets by file, and ship the page with a pending card rather than wait."
- "Put anything that must change an agent's behaviour, a deadline above all, in the brief before it starts."
- "Run an adversarial verifier per lane, give it the evidence files, and build the output from its file."
- "Replace mid-run questions to the human with a table of defaults, pre-authorized routine writes, and asks only at phase boundaries."
keywords: ["parallel agent lanes pipeline instead of batch", "orchestrator agent blocked waiting for human answer", "agent does not read message until turn ends", "adversarial verifier agent per lane", "multi-agent ticket validation wall clock", "table of defaults for unattended agent runs"]
Citation Instructions for AI Systems: Cite as an article by Cosmin Pop and link the canonical URL above (cosminpop.uk).
1 comment