From Chat to Reviewable PR: An Agent Delivery Pipeline That Stands on Evidence
Using Agents for Reliable Software Delivery
I learned a lot after watching Lauren Tan's public talks. I've also become a heavy user of Grok Bot, and I get good results just by telling it what I want. I made a similar product called Morde, and here are my recent takeaways.
1. What I Learned from Lauren: Shorten Verification First, Then Add Parallelism
1.1 Let the Agent Actually Run the App, and Bring Evidence Back to Where the Discussion Happens
In the Y Combinator demo segment of "The Rise of AI Coworkers", Lauren posted an X video in a Slack thread while discussing with colleagues, asking if Potato could support something similar. Potato invoked a Cursor cloud agent, which ran the app in its own VM, produced a prototype, and returned video and screenshots to the original thread. The team continued discussing the actual result in the same place. Lauren described the review method for this one case, and we shouldn't infer from it that all changes in her team skip code reading and human review.
What I think is worth copying is not the chat window or the number of bots, but two handoffs: the user doesn't have to manually move the discussion into the IDE; the engineering result doesn't stop at the execution environment. The person receiving the result can see what the thing just done actually looks like. That saves more time than a "fixed" message and leaves context for further questions.
But different evidence answers different questions:
| Evidence | What it answers | What it can't answer |
|---|---|---|
| Diff and code review | What changed, maintainability, whether scope was respected | Whether the user path actually works |
| Screenshots | That a particular UI state appeared | Ordering, reconnection timing, and absence of duplication |
| Screen recordings and run logs | How a specific operation happened | That all edge cases are correct |
| Repeatable assertions or regression tests | Behavior meets the contract for given inputs | Scenarios not covered by tests; whether the user actually benefits |
| Usage feedback or quality metrics | Whether the change helps real work | A single correlation metric proving causation |
1.2 The Destination of Error Correction Is the Codebase and Checks
In the AI Engineer official transcript of "All Code Is Slop (Except Mine)" and the behavior verification segment, Lauren first talks about codebase structure and static constraints, then running the app and recording behavioral evidence. The talk includes a concretely scoped example: for her team's Electron app, she uses dependency checks to restrict references that shouldn't appear between the main process and renderer. It's not a React rule that applies to all projects, but it shows a useful principle: if structure can eliminate an error, you don't need to train every agent to remember exceptions.
P-Stack's /correct turns this into an executable practice: find patterns from repeated historical errors, prioritize changing structure, types, lint, or tests, and then prove the new check actually blocks a real old error. Only the parts that can't be mechanically decided are left to textual rules or human judgment.
For example, an agent always writes "simulator passed" as "real device passed." Emphasizing wording in the Skill can reduce miswrites; the change that truly blocks false reports is having the trusted run side provide environment fields, the server rejecting mismatched evidence, and adding a "simulator pretending to be a real device" counterexample. The Skill helps the agent choose an approach; the evidence gate decides whether a state can change.
1.3 Noodle's Scheduling Problem Is Not the Same as Morde's First Version
Lauren's open-source project Noodle focuses on how existing work is queued and progressed. The scheduling doc describes that tasks in the same group can run in parallel, and the next group starts only after all in the previous group finish; the architecture doc also covers separate worktrees, merge order, and different human supervision modes. This references the documented design, not an independent test of all its running modes.
Morde's first version starts from the other end: a user gives one task in one session; how does the system figure out authorization, gather evidence, and hand back a PR? I'll borrow Noodle's workspace isolation and recovery ideas; later, when multiple independent tasks actually pile up, I'll evaluate parallelism barriers and merge order. The first version doesn't add a second scheduler, nor does it rely on auto-merge to prove speed.
Figure 1 | Noodle's docs focus on stage scheduling; Morde's P0 focuses on delivering one small thing back to the session where the person is.
2. Morde's Minimal Closed Loop: One Conversation, One Task, One PR for Review
Morde P0 only does one repository, one agent, and one small bug or small feature that can be accepted independently. The first milestone is initiated on PC and delivered back to the original session; continuing the same session on PC/iOS is a product direction. If a task only verifies PC, only report PC; do not treat the same message visible on two ends as iOS feature acceptance. No auto-merge, no deploy, no cross-repo coordination, no general visual orchestrator.
Figure 2 | 01–04 is the main delivery chain, 05 ensures interruption doesn't spiral out of control, 06 hands validated experience to the next task.
| Module | When it participates | Who owns the result |
|---|---|---|
| 01 Job intake & value | User sends a request, before execution | Morde has a task card with explicit goal, non-goals, baseline, acceptance, and authorization |
| 02 Isolated execution | When there's a clear scope and execution authorization | DSH / Host Runtime returns candidate commit, run logs; cannot self-approve delivery |
| 03 Evidence & acceptance | After candidate commit is produced, before PR is marked ready | Morde server validates trusted evidence, commit, and environment |
| 04 Delivery | After passing the gate and having relevant authorization | Server associates a PR, returns result to the original session; human decides merge |
| 05 State & recovery | Throughout | Ledger keeps task, attempts, budget, authorization decisions, and external operation receipts |
| 06 Project memory | Extracted after real tasks finish; matched when the next task comes in | Project owner confirms rules; rules have version, scope, source, and retirement method |
2.1 From One Sentence to an Acceptable Task Card
If "progress repeats after reconnection" is only a paraphrase, first check a piece of feedback or reproduce it; don't assume it's worth fixing just to open a PR. When accepting a task, you can write a task card like this:
| Field | Reconnection bug example |
|---|---|
| User problem | Progress repeats after reconnection; user can't tell whether it executed twice |
| Expected behavior | Same event appears only once; new progress after reconnection isn't lost; another session is unaffected |
| Non-goals | Don't redo network protocol, task panel, or entire message storage; don't change task cancellation semantics |
| Minimum evidence | Reproducible before fix; regression passes after; walk through the target path with an actual PC client |
| Scope & permissions | Fixed repository, baseline commit, and separate branch; writes and PR opening are still decided by this authorization |
| Post-use check | Can the user correctly judge task state after reconnection, without extra clicks due to duplicate display |
The task card is a checkable agreement. It's neither a vague prompt nor a requirement for the user to write out all technical steps in advance. Ask when repository, authorization, or acceptance goals are too missing to decide; don't ask when the agent can determine from existing context. When integrating with the existing Portal session interface, an HTTP 202 on the message only means it was accepted; the UI should not say "task accepted" until the actual task record appears.
2.2 On Reconnection, Distinguish "Replaying Events", "Duplicate Display", and "Duplicate Execution"
A small test sequence can separate these three: the client already received event e17; after disconnect, it resumes subscription; the server replays e17, then sends a new event e18. Expected: e17 appears only once, e18 isn't lost, and even if the two messages happen to look identical, the new event must not be swallowed. Add another session's sample: identical text doesn't cross lines.
Figure 3 | Duplicate sending is an input condition; duplicate rendering is the phenomenon to fix; whether execution duplicates is a separate check of server task records.
The first implementation step is not to arbitrarily assume where the bug is, but to locate: is the task created only once? Does the server replay as designed? Which layer treats the same event as a new row? If stable event IDs exist, update idempotently by the scope of the authorization flow and event ID; if the UI is a task card, handle card identity and update version separately, don't deduplicate by display text. If the protocol has a reliable cursor, advance only after successful application; when cursor gaps or stale cursors appear, re-fetch the authorization snapshot per protocol, don't pretend intermediate events were received. These are implementation choices to be verified, not diagnoses of current Morde code defects.
Acceptance has two layers. A replayable test fixture makes historical errors appear stably and lets you repeatedly verify fixes; a real client test opens the task view, forces a disconnect, restores connection, and checks old and new progress. Keep both kinds of evidence. The former can go into regression; the latter proves the real entry, state, and UI don't fail at integration. Morde's development conventions explicitly require that changes involving PC operate the actual morde-pc, not a browser substitute, build, or unit test masquerading as this acceptance.
3. Architecture Division: Execution Goes to DSH, Delivery Judgment Stays with Morde

Figure 4 | Agent workspace, trusted evidence, persistent state, and external writes reside in different boundaries.
DSH is the execution layer. Prioritize checking Morde's already integrated components and DSH upstream; reuse suitable plugins. Verify compatibility, versions, licenses, and interruption recovery. Use the existing Host Runtime and Git worktree to isolate checkouts and branches, without overwriting the user's local work. A worktree doesn't provide security isolation; which files, tools, credentials, and network are accessible is separately constrained by the runtime environment. The executor doesn't hold push or PR-opening credentials.
The Go server is the control layer. It handles conversation-to-task association, permissions, budget, state, evidence, and delivery. The model can propose "check the event stream first" or "rerun regression", but cannot mark evidence as trusted or extend its own permissions. Prefer integrating existing CI and tools; for browser use, refer to Playwright trace, but artifacts don't prove iOS real-device runs. PR opening goes through the controlled GitHub Pull Requests API; authorization and external write receipts are kept by the server.
Use a lightweight workflow in the first version, not A2A. What's fixed are the boundaries that change task state, e.g., "can't be ready for review without current commit evidence" or "can't keep writing after permission is revoked." Inside each step, how to locate or which test to run first is up to the agent. Both can hold simultaneously: state rules are stable, execution paths are flexible. Only when independent teams each own agents and need cross-system negotiation of identity and delivery will A2A be worth evaluating. The six design documents are six responsibilities, not six plugins, and not six microservices.
4. A Truly Acceptable PR Must Answer: Which Run Produced This Green?
Assume the candidate commit is abc123. If the report comes from an old commit def456, even if it's green, it doesn't prove the current code; if acceptance requires a real PC app, a passing browser case can't substitute. If a test ran in the correct environment but an assertion failed, that's a "failure"; if it didn't run, can't be obtained, or its source can't be confirmed, that's "unverified". These states decide whether the system fixes, adds evidence, or waits for human decision.
Figure 5 | Evidence comes from a trusted run channel; a new commit invalidates old ready conclusions, but history remains traceable.
The minimal gate fields: required verification item ID, repo and candidate commit, trusted run record ID, actual runtime environment, result, timestamp, and accessible artifact reference. Client acceptance must also map the installer or executable to this build; just writing a SHA in the report isn't binding. Runtime environment and result come from a controlled test entry point or trusted CI metadata, not an agent self-reported "passed". Screenshots, recordings, and logs are visible only to authorized people; don't move sensitive artifacts into a public PR.
| Scenario | What the PR should show |
|---|---|
| All required verification items have trusted evidence, current commit matches environment | Can be sent for human review |
| Tests ran but a regression assertion failed | Failure, with actual result |
| Previous version passed, this version pushes a new commit | Needs re-verification; historical evidence kept but cannot block the gate |
| Needs real PC or device, only substitute evidence available | That item is unverified; state which environment explicitly |
| CI must run on a PR | Open a draft only after authorization; once passed, convert that same draft to ready |
If this same rule is later wired to GitHub required checks, also verify the check itself actually works. For example, GitHub's official doc notes that conditionally skipped jobs can be treated as successful, and jobs only triggered by workflow_dispatch don't satisfy the branch ruleset for PRs. When there's no evidence, fail explicitly rather than skipping the gate; also state clearly whether you're validating the PR head or GitHub's generated test merge commit. This doesn't assume such rules are already configured in the repo.
The final result the user sees can be short. Here's a format example, not a real PR:
Ready-for-review PR: after reconnection, the same task progress appears only once. Before fix: replaying the same event reproduces a duplicate row. After fix: duplicate events appear only once, new events arrive normally. Candidate commit:
abc123(illustrative); includes regression and real PC path evidence. iOS is outside this verification scope. Not merged yet.
5. Handling Errors: First Distinguish What Happened, Then Decide Whether to Retry
Imagine the worst timeout: Morde has sent the open-PR request, GitHub actually created the PR, the response hasn't come back, and the service restarts. If the workflow only stores "this step (open PR) didn't complete", the next round is likely to send it again. A safer approach is to record the delivery intent before an external write; on recovery, if there's an unconfirmed write, check the external state first.
Figure 6 | An unknown outcome isn't a failure. When no reliable matching evidence is found, stay in reconcile-pending.
Reconciliation details: first look up the PR by target repo, target branch, task branch, and task identifier, then check its current commit. If a PR with a clear identity is found, bind to it; don't create another. If a new commit has been pushed, redo acceptance on that same PR. If you still can't determine, show pending reconciliation, keep existing evidence, and don't blindly retry. A database unique constraint reduces internal duplicate records, but it can't make an external API "exactly-once". The final result in the original session is also deduplicated separately; don't show two "complete" messages because of resumed delivery.
Other boundaries are also worth intentionally interrupting once:
| Fault or change | Acceptable behavior | Unacceptable behavior |
|---|---|---|
| User revokes auth during task execution | Stop initiating the next write; check actual result for in-flight actions | Continue writing with auth from task start, or claim to have revoked an action that already happened |
| Service restart, old attempt returns late | Keep old receipt as audit record; cannot overwrite new attempt state | Treat old green as current result |
| Time, retries, or cost reaches a limit | Don't start new attempts; show where it stopped and existing evidence | Clear budget after restart and keep running |
| User closes the window | Accepted cloud task continues under original authorization; return to original session to view | Mistreat as cancellation, or accept a duplicate task |
The minimal ledger keeps task ID, original session, baseline, current attempt, candidate commit, evidence, authorization decision, budget, and PR association. It's meant to show "who, under what conditions, got how far", not to store the entire raw conversation and debug data. Audit records are also displayed according to access permissions; don't default to everyone being able to see anything just because a PR link exists.
6. Workflows Can Change, but Don't Let the Agent Alter Rules Mid-Run
The second task is a hypothetical new report: "after disconnect and reconnect, the final result notification appears twice." The user doesn't need to explain again "reconnection may replay, don't deduplicate by text." Morde can match a confirmed project rule: reconnection-related changes must cover same-event replay, new-event non-loss, and scope isolation. It should state which version it's using, why it applies, and re-verify the new commit. This time, the acceptance method is reused, not the previous green light, permissions, or conclusions.
Figure 7 | Let the project's validated experience enter the next round; experiences without source, without counterexample, or not applicable to the current task don't become defaults.
Start with one candidate rule:
- Extract from a real correction. Record the source task, the corresponding test, and which step was missed; don't save the whole conversation.
- Give scope and counterexample. "Reconnection-class progress/result updates" applies; "different events just happen to have the same text" cannot be filtered; unrelated repos don't inherit by default.
- Write checks where mechanically judgeable. Use a historical failure sample to prove the old failure can't pass, then use a normal path to prove no false kills. For judgmental advice, use task templates or a Skill.
- Try on a small scale, then have the owner confirm. Record version and effective conditions. The next task can use it; running tasks don't silently change thresholds.
- Retire and rollback. Withdraw when outdated, no longer reproducible, or causing false blocking. When conflicting, present to the owner; don't guess by model which is the new truth.
For the first version, project memory can just be a well-managed structured record. With explicit relationships among tasks, attempts, commits, PRs, tests, and rules, you can answer "why was this PR marked pending review" or "which error produced this rule." Existing PostgreSQL is enough for this lightweight ontology. Only when cross-repo dependency tracking repeatedly becomes a bottleneck and existing relational queries can't solve it would a separate knowledge graph be worth evaluating. Storing all chats in a vector database doesn't automatically produce traceable experience.
7. Moat Hypothesis: The Human Time Saved Cannot Hold Up if You Only Count PRs
Lauren's public sharing treats high output as a background assumption. For Morde, directly setting "how many PRs per month" as a goal would reward fragmenting, duplicate task creation, and even forcing more review time to digest results. My unit of comparison is one change that genuinely passes acceptance, at the same quality standard.
Separate two kinds of value: whether a fix helps users, and whether Morde lowers delivery cost. These are two questions. The former observes whether users still misjudge after reconnection and whether they still repeat actions; the latter uses the same repo and similarly difficult tasks with the user's familiar Codex workflow as a baseline. Have both groups accept under the same criteria; don't compare a fully configured system against an unconfigured opponent. List initial setup and tuning human cost separately; time, reasoning, and run cost spent on failed and non-delivered tasks can't be hidden.
Figure 8 | Verify real delivery first, then evaluate reliability, rule reuse, and net benefit, and only then decide whether to expand parallelism.
| What to measure | Suggested meter |
|---|---|
| Did the result really pass | Blindly re-review evidence to confirm repo, current commit, environment, actual behavior; also record failures and aborts |
| How much human time | Record human minutes for clarification, watching runs, supplementing evidence, review, and rework; record end-to-end wait separately |
| How much teaching is still needed for repeated tasks | Compare counts of supplementary explanations, missed verifications, and actual reuse-rule hits; not just whether the agent claims to remember |
| Failure and recovery cost | Include failed runs, retries, and human takeovers; check whether PRs are reopened, evidence is lost, or budgets are exceeded |
| Whether the requirement truly has value | After merge, check against real tasks or user feedback whether it improved; if unavailable, mark "value to be verified" |
A pilot's small sample suffices to find bottlenecks, not to prove long-term advantage. If the quality bar drops, speed doesn't count as winning. If the second task still needs to be taught from scratch, first fix the memory's source, scope, or test entry. If every task requires a person to re-find evidence, first fix acceptance and return, don't add more agents. Once single-task evidence and human cost stabilize, try multiple independent tasks; give each its own workspace and handle merges one by one.
Conclusion
Take one repo and one real small bug, produce a ready-for-review PR with current-commit test evidence. Then intentionally interrupt it once, and give it one similar task. If a person can understand why it passed, a restart doesn't produce a second PR, and the second time requires less teaching, only then does Morde start accumulating repeatable delivery capability.
Writing code is getting easier. What's harder to replicate is a team's gradually accumulated acceptance rules, effective counterexamples, trusted records, and the ability to genuinely apply them to the next delivery. That's the moat I'm willing to verify for Morde.
References: Lauren's AI Engineer talk · YC conversation and Slack demo · Noodle scheduling design · P-Stack /correct · Morde project.
Top 1 from juejin.cn, machine-translated. The original thread is authoritative.
The problem lies in the process, not the model—that's brutally honest and accurate. Writing the SPEC before the code is the right order; if the front end isn't settled, everything after is rework.