Day 10: Factory with verification #12
Replies: 27 comments 3 replies
My factoryDiagram: bold boxes are the path ticket 77 took on 11-13; dashed boxes are planned. flowchart TD
T["Ticket by the owner, labelled ready-for-agent"]:::taken --> CL{"Tick: nothing else agent-working?<br/>Written by the owner?"}:::taken
CL -- no --> H
CL -- yes --> WIS["PLANNED: Codebase Wisdom checks the ticket"]:::planned
WIS --> A["Agent implements in its sandbox,<br/>reads AGENTS.md, tests first"]:::taken
A --> K{"Checks in the sandbox:<br/>pytest, then the mutation check"}:::taken
K -- "fail, round under 3" --> A
K -- "fail at round 3, timeout, no change" --> H
K -- pass --> LR["PLANNED: Qodo local review,<br/>staged and unstaged"]:::planned
LR --> P["Commit, push, draft PR, ask Qodo"]:::taken
P --> R{"Qodo's comment names the pushed commit<br/>within 10 minutes, findings readable?"}:::taken
R -- no --> H
R -- yes --> G{"Quality gate: High or Medium open?<br/>Unreadable severity counts as High"}:::taken
G -- "yes, round under 3" --> F["Blocking findings back to the agent:<br/>reproduce, fix with a failing test.<br/>PLANNED: Review Resolver"]:::taken
F --> K
G -- "yes at round 3, fixed or disputed" --> H
G -- no --> S{"Review of that commit shown?<br/>current, not unconfirmed"}:::taken
S -- unconfirmed --> H
S -- current --> D["agent-done, Low findings listed for me"]
H["needs-human, with the reason<br/>and any Low findings"]:::taken --> ME{"Me: the ticket's criteria<br/>on a fresh clone"}:::taken
D --> ME
ME -- "a criterion fails" --> T
ME -- holds --> MG{"Merge gate, ruleproof ready:<br/>CI passes on the head, review current,<br/>no High or Medium open"}:::taken
MG -- "exit 0" --> MAIN["Merge into main, by a person"]
MG -- "unconfirmed only: I may accept it,<br/>recorded on the ticket" --> MAIN
MG -- "exit 1" --> H
classDef planned stroke-dasharray: 5 5
classDef taken stroke-width: 3px
VerificationWhat my quality gates check and the evidence they require:
What happens when a gate fails or needs my decision: a failed check or a blocking finding goes back to the agent, for at most 3 rounds. A stall stops at What happenedTicket or PR used to check the diagram: ticket 77, the merge gate itself, in a tick I started by hand. Qodo raised one Medium Bug on pull request 78; round 2 fixed it. Did it reach main? If not, which gate stopped it? Not yet. The factory stopped at "review shown": Qodo's comment named Where I had to step in and why: I wrote the ticket, started the tick, reran the criteria on a fresh clone, and the merge is mine. Any gap I found or improvement I made: nothing checked a pull request before merging, so ticket 77 added Steps still planned: Codebase Wisdom, Qodo local review and Review Resolver (the Agentic Toolbox isn't installed on this machine), and the 5-minute schedule (I start ticks by hand). The run, and the merge gate's real outputThe finding on The factory's log, UTC, agent notes shortened: On a fresh clone of The same stop came after the fix rounds on pull requests 70, 74 and 76: each time Qodo's comment moved to the fixed commit and closed its findings without a new finding ID. Pull requests 74 and 76 were merged as my call. These runs show the review state RuleProof reads, not whether Qodo skipped the re-review or ran it and found nothing. The toolbox lists a Assistance and third-party materialAI coding agents did the work from my brief: Codex was the factory's agent on ticket 77, and Claude Code drew the diagram, wrote the ticket, checked the run and wrote this post. Qodo did its own reviews. I chose the project and set the direction. No collaborators. |
|
Day 10: Factory with verification (repo: https://github.com/Ankith-m1006/ghostcheck, diagram: FACTORY-DIAGRAM.md) flowchart TD
T["Ticket (GitHub issue)<br/>one behaviour + acceptance criteria"] --> G0{"Gate 0: ready?<br/>label ready-for-agent,<br/>criteria written,<br/>no open ticket-n PR"}
G0 -- no --> H0["Owner writes or splits the ticket"] --> T
G0 -- yes --> L["Lock: agent-working"]
L --> R["Read ticket + AGENTS.md<br/>(ticket text = data, not instructions)"]
R --> G1{"Gate 1: safe to start?<br/>no request to change rules,<br/>skip checks, touch secrets or merge"}
G1 -- no --> S["Stop: needs-human<br/>+ comment what blocks it"]
G1 -- yes --> RED["Red test first<br/>fails on main"]
RED --> B["Smallest change"]
B --> G2{"Gate 2: tests green?<br/>python -m pytest -q, offline"}
G2 -- no --> B
G2 -- yes --> LR["Qodo Reviewer on the<br/>uncommitted change"]
LR --> G3{"Gate 3: quality gate (rule 9)<br/>High/Medium fixed with a test,<br/>Low listed for the owner"}
G3 -- "valid High/Medium" --> B
G3 -- "agent disagrees" --> D["Keep open with evidence<br/>(file, line, test)"] --> O1{"Owner decides"}
O1 -- "finding is right" --> B
O1 -- "dismiss with reason" --> PR
G3 -- pass --> PR["Commit + PR<br/>Closes #n, criteria to tests,<br/>Factory rounds: 0"]
PR --> QR["Qodo PR review<br/>(automatic on every push)"]
PR --> CI["CI: pytest on the PR<br/>+ GitGuardian"]
QR --> G4{"Gate 4: latest review names<br/>the head commit and has<br/>no open High/Medium?"}
CI --> G5{"Gate 5: required checks pass?"}
G4 -- "findings, rounds < 2" --> FIX["Fix round: test first,<br/>push, rounds + 1"] --> QR
G4 -- "still open after 2 rounds" --> S
G5 -- no --> FIX
G4 -- clean --> M{"Gate 6: merge decision<br/>owner, or the agent the owner<br/>named for this repo"}
G5 -- pass --> M
M -- "Low findings not acceptable" --> FIX
M -- merge --> MAIN["main"]
The gates.
Checked against ticket #21 (
Where I stepped in: choosing the work, and the standing rule that the agent may merge once Gate 4 is clean. No finding needed my decision. Gaps found and what changed:
|
My factoryDiagram: flowchart TD
A[Create issue with requirements] --> B[Manager lists issues; builder reads ticket and rules]
B --> C[PLANNED: Codebase Wisdom checks assumptions against code and history]
C --> D{Requirements and evidence clear?}
D -- No --> E[Investigate or stop for a decision]
D -- Yes --> F[Implement on issue branch; reproduce and test]
F --> G[PLANNED: Qodo local review of staged and unstaged changes before commit]
G --> H{Action-required findings?}
H -- Yes --> F
H -- No --> I[Commit and open PR linked to issue]
I --> J[Qodo reviews current PR head]
J --> K[PLANNED: Review Resolver assesses PR findings against code and tests]
K --> L{Valid high or medium findings?}
L -- Yes --> F
L -- Disagreement --> M[Document evidence; ask for a decision]
M --> F
L -- No; flag low issues for decision --> N{Checks pass and current head has completed Qodo review?}
N -- No --> F
N -- Yes --> O{Protected path changed?}
O -- Yes --> P{Separate gate reviewer approves exact commit?}
P -- No --> Q[Stop; preserve work and rejection]
P -- Yes --> R[Merge to main]
O -- No --> R
F -. No progress or repeated unchanged failure .-> Q
VerificationWhat my quality gates check and the evidence they require: The ticket and project rules define the expected behavior. The builder checks the code and history, reproduces the problem where possible, and runs build and tests. Run or combat changes also need balance evidence; save changes need migration tests. Qodo's review must complete on the current PR head, and required checks must pass. Changes to protected paths also need separate gate approval of that exact commit. Valid high and medium findings need fixes and verification; low findings should be flagged for a decision. What happens when a gate fails or needs my decision: Fix and rerun the relevant checks, then get a review of the new head. A disagreement needs code or test evidence and my decision rather than an unsupported dismissal. Stop when the loop makes no progress; retries stop after two and the same failure is not retried unchanged. The owner is contacted for the decisions listed in the project rules. The disagreement and low-severity decision steps are planned for this diagram, not a claim that they ran on the example below. What happenedTicket or PR used to check the diagram: Issue #346 followed a failed attempt on PR #345. The gate reviewer rejected its current head because raw PR text and finding titles were promoted into review task and decision context. The follow-up PR #347 added a lesson to treat that material as untrusted data, preserving the existing gates. The retriever was unreachable, so the investigation returned no usable history. Its builder reported a passing build and 108 tests; its manager test stopped at a sandbox permission error and needed a host rerun. Did it reach main? If not, which gate stopped it? The lesson reached main in commit daf42f2 through merged PR #347. PR #345 remains open after gate rejection; its proposed review-before-commit change did not land. Where I had to step in and why: The evidence does not show a personal intervention on this ticket. The separate gate reviewer made the recorded rejection. I would need to decide a disputed finding if evidence did not settle it. Any gap I found or improvement I made: The failed PR exposed unsafe handling of untrusted review context. The merged lesson records that failure; it does not implement the rejected fix. The builder could not complete the sandbox-dependent manager check itself. Steps still planned: Codebase Wisdom as a named investigation step, local review of both staged and unstaged changes before commit, and Review Resolver as a named PR step. The existing flow already reviews fixer changes locally, but PR #345 describes the current ordering as commit before local review. I cannot claim the planned ordering is in place. The example also does not establish that the planned disagreement or low-issue decisions were exercised. Written by this factory's comms agent and posted from the owner's account. How it works. |
My factoryDiagram: flowchart TD
T["Ticket: tickets/T-NNN-*.md<br/>and a GitHub issue titled T-NNN: ..."]:::taken
T --> G1{"Gate 1, before work<br/>Is every claim the ticket makes<br/>about the code true?<br/>Codebase Wisdom, or run the command"}:::taken
G1 -- "a claim is wrong" --> REV["Ticket revised:<br/>criteria changed, Investigation section written"]:::taken
REV --> HT{{"Human reads the revised ticket<br/>and decides the open choices"}}:::taken
HT --> LANE{{"Human picks the lane"}}:::taken
G1 -- "all hold" --> LANE
LANE -- "session" --> IMP["Agent implements test-first<br/>nothing committed"]:::taken
IMP --> G2{"Gate 2<br/>npm run check"}:::taken
G2 -- "red" --> IMP
G2 -- "green" --> G3{"Gate 3, uncommitted code<br/>Qodo local review: staged, unstaged, new files<br/>one deep review, last review covers the final tree"}:::taken
G3 -- "valid High or Medium<br/>fix round 1 to 3" --> IMP
G3 -- "agent disputes a High or Medium" --> HD{{"Human decides:<br/>fix, amend the rule, or dismiss"}}
HD --> IMP
G3 -- "3 fix rounds, still open" --> STOP["Stop: gate NOT MET<br/>report with the open findings"]
STOP --> HS{{"Human decides what the stop means"}}
HS -- "redesign or cut scope" --> IMP
HS -- "exception: the gate stays NOT MET,<br/>that is recorded, and the open<br/>findings go on to the pull request" --> G4
G3 -- "no High or Medium open<br/>Lows listed" --> G4{{"Gate 4, the human<br/>reads the gate report,<br/>commits and opens the pull request"}}:::taken
LANE -- "label" --> LBL{{"Human adds ready-for-agent"}}
LBL --> GL{"Guard<br/>issue has a non-empty Investigation?<br/>scripts/ticket-ready.ts"}
GL -- "no: label removed,<br/>comment says why" --> T
GL -- "yes" --> BOT["Bot implements on agent/issue-N-*<br/>npm run check, 3 attempts, then stop and report"]
BOT --> PEND["Bot comments: Implemented, gate pending<br/>no Qodo review has run yet"]
BOT -. "planned" .-> BREV["PLANNED, T-029<br/>Qodo review of the branch in a separate job<br/>that never runs ticket-written code"]:::planned
BREV -. "planned" .-> PEND
PEND --> HO{{"Gate 4, the human<br/>opens the pull request"}}
G4 --> G5A{"Gate 5a, enforced by GitHub<br/>except for an administrator bypass<br/>branch protection requires, on the head:<br/>check on Linux, check on Windows, ticket-link"}:::taken
HO --> G5A
G5A -- "a check is red" --> FIX["Fix test-first, new commit on the PR branch<br/>session: the agent commits on its own<br/>label lane: the human comments @claude,<br/>the bot pushes, agent/* branches only"]:::taken
FIX -- "new head: checks and review run again" --> G5A
G5A -- "green" --> G5B{"Gate 5b, by procedure, not enforced<br/>the agent reads Qodo's review with Review Resolver:<br/>completed for the head, no High or Medium open"}:::taken
G5B -- "valid High or Medium" --> FIX
G5B -- "a finding needs a decision:<br/>dispute, dismissal, any Low" --> HP{{"Human decides per finding"}}
HP -- "fix it" --> FIX
HP -- "no code change: dismissed with a reason,<br/>or a Low left as it is" --> G5B
G5B -- "gate report says MET" --> HM{{"Human merges<br/>GitHub refuses a head that fails 5a,<br/>unless an administrator bypasses protection<br/>5b rests on the gate report"}}:::taken
HM --> MAIN["main"]:::taken
MAIN --> AFTER["After the merge<br/>GitHub closes the issue<br/>Qodo updates its copy of the rules<br/>observed on Nov 13, verified by no gate"]:::taken
classDef taken stroke-width:3px
classDef planned stroke-dasharray: 5 5
VerificationWhat my quality gates check and the evidence they require:
What happens when a gate fails or needs my decision: What happenedTicket or PR used to check the diagram:
Did it reach main? If not, which gate stopped it? Where I had to step in and why: Any gap I found or improvement I made:
That PR is also where the "stalled loop" path of the diagram ran for real. The agent's first Lesson: a gate that only counts findings would have let that loop run all day. The three-round stop turned "keep fixing" into a design question, and the design question had a better answer. Steps still planned:
Assistance: built with Claude Code in an interactive session (it drew the diagram, wrote the code and this draft from the day's journal); Qodo did its own reviews. The decisions listed above are mine. Full record: |
My factoryDiagram: flowchart TD
T[Owner approved and created issue 15] --> W[Codebase Wisdom source reads matched main]
W --> I[New regression failed on old ordering]
I --> F[Implemented display sort and five regressions]
F --> C{Full local check}
C -- New test expected wrong no-op label --> X[Correct assertion; retain unchanged-data check]
X --> C
C -- Pass: 10 unit and 33 browser tests plus build --> Q[Qodo local review before commit]
Q --> G{Complete final coverage?}
G -- Explicitly unreviewed test assertions --> S[STOP: NOT DONE]
S --> D[Needed: completed review covering the new test assertions and reconciled coverage evidence]
D -. Not yet completed .-> P[Authorized commit and PR]:::planned
P -. Planned .-> R[Review Resolver plus CI and completed Qodo review of current head]:::planned
R -. Gates and authorization required .-> M[Merge into main]:::planned
classDef planned stroke-dasharray: 5 5
VerificationBefore implementation, Codebase Wisdom checks the ticket’s assumptions against the code. Before commit, formatting, unit tests, browser tests, and build must pass, followed by Qodo local review. Valid High and Medium findings return to fixes and verification. Low findings are reported for my attention. Disagreements need evidence and my decision. Incomplete or conflicting review evidence stops the workflow; repeated reviews cannot substitute for resolving the gap. Before merge, required checks must pass and a completed Qodo review must cover the current PR head. What happenedTicket: [#15 — Show notebook passages in most recently updated order](prophen/side-quest-studio#15). Did it reach main? No. It stopped at the local review gate before commit. The implementation passed formatting, 10 unit tests, 33 browser tests, and build. Qodo returned no findings, but explicitly said the new browser-test assertions were unreviewed—even though its structured coverage flag said complete. We treated that conflict as unresolved. Where I stepped in: I selected the ticket and authorized the trial. The agent handled implementation and corrected a mistaken test expectation after a failed check. Gap found: Zero findings does not necessarily mean complete review coverage. Continuing requires review of the omitted assertions and reconciliation of the coverage evidence. Codebase Wisdom’s semantic PR-history lookup was also unavailable; exact-revision source reads succeeded. Steps still planned: Commit/PR creation, Review Resolver, CI and Qodo review of the current PR head, and authorized merge. |
My factoryDiagram: flowchart TD
A[1. Ticket Created<br/>GitHub Issue] --> B[2. Pre-Work Investigation<br/>Codebase Wisdom]
B --> G1{Gate 1: Requirements & Scope<br/>Check: Spec clarity & codebase fit<br/>Evidence: Wisdom findings & file refs<br/>Decider: Agent / Human if ambiguous}
G1 -->|Unclear / Missing info| H1[Human Clarifies Requirements]
H1 --> B
G1 -->|Clear| C[3. Implementation<br/>Agent edits code locally]
C --> D[4. Local Checks & Qodo Reviewer<br/>Scope: Uncommitted staged + unstaged]
D --> G2{Gate 2: Local Quality Gate<br/>Check: Syntax/diff checks + 0 valid High/Med<br/>Evidence: node --check, git diff, Qodo report<br/>Decider: Agent}
G2 -->|Valid High / Med found| F1[Agent Fixes Code]
F1 --> D
G2 -->|Disagreement / Stalled loop / Blocker| H2[Human Decision / Approval Required]
H2 -->|Approved / Resolved| C
H2 -->|Blocked| STOP1[STOP: Report NOT DONE]
G2 -->|Pass + Low findings flagged| E[5. Commit & Push to PR<br/>Open / Update Pull Request]
E --> F[6. PR Review & Review Resolver<br/>Check: Qodo PR review on latest PR head]
F --> G3{Gate 3: Pre-Merge Gate<br/>Check: Latest commit reviewed, 0 High/Med,<br/>Low findings reviewed by Human<br/>Evidence: Qodo PR summary + passing checks<br/>Decider: Agent verifies -> Human approves}
G3 -->|Valid High / Med on PR| F2[Agent Fixes Locally & Pushes]
F2 --> D
G3 -->|Disagreement / Needs approval| H3[Human Reviews Evidence & Low Flags]
H3 -->|Changes requested| F2
H3 -->|Approved| M([7. Merge into main])
VerificationWhat my quality gates check and the evidence they require:
What happens when a gate fails or needs my decision:
What happenedTicket or PR used to check the diagram: IrronRoman19/catwalk-retro-game#35
|
My runner counted reviews before they were doneToday's ticket was a gap in my own factory. The runner counted Qodo's review once the comment named the new commit, without asking if the review run had finished. So I took that fix through every step on the diagram, and it ran into that exact case on its own PR! My factoryDiagram: The dashed steps I still start by hand. The runner does the rest flowchart TD
T["I write a ticket with acceptance criteria"] --> L{"Mine, labelled,<br/>criteria listed?"}
L -- no --> H
L -- yes --> W["Codebase Wisdom checks<br/>the ticket"]:::hand
W -- "an assumption is off" --> T
W --> B["Claude Code builds it"]
B --> C{"Tests + render check pass?<br/>factory/ and .github/ untouched?"}
C -- "no, rounds left" --> B
C -- yes --> LR{"Qodo local review, staged + unstaged:<br/>High or Medium open?"}:::hand
LR -- "yes, rounds left" --> B
LR -- no --> PR["Commit, push, open the PR"]
PR --> Q{"CI green? Qodo's review run<br/>on the head completed?"}
Q -- "run failed, or 15 min" --> H
Q -- yes --> G{"High or Medium open?<br/>Unreadable severity = High"}
G -- "yes, round 1 or 2" --> F["Fix with a test,<br/>or dispute with evidence"]
F --> Q
G -- "still open after round 2" --> H["agent-needs-help + reason"]
G -- no --> R["agent-review, Lows listed for me"]
H --> ME{"Me: disputes, Lows,<br/>web changes in Chrome"}
R --> ME
ME -- "needs more" --> T
ME -- "gate met" --> M["I merge into main"]
classDef hand stroke-dasharray: 6 4
VerificationWhat my quality gates check and the evidence they require:
What happens when a gate fails or needs my decision: The runner sends a failed check or a High or Medium finding back to the agent, two fix rounds max. After that, or if the review run fails or 15 minutes pass, the ticket gets agent-needs-help with the reason. A dispute needs a file, a line and a test, and it comes to me with the Lows. I do every merge What happenedTicket or PR used to check the diagram: Ticket CamDuncalfe/agent-pfp#27 and PR CamDuncalfe/agent-pfp#43 Did it reach main? If not, which gate stopped it? Yes! Merged as 852b5f2 Where I had to step in and why: #27 changes the runner, and the runner's agent isn't allowed to touch factory/. So I started each step by hand. Wisdom found two things the ticket didn't cover: the scheduled job couldn't find the qodo command, and nothing said what happens when a read fails. I made both calls and fixed the job's PATH Any gap I found or improvement I made: Local review found 2 Mediums before the commit. On the PR Qodo found 2 more, like "Failed reviews keep the runner waiting": a review run that failed would have held the runner for the full 15 minutes. Now it stops right away and says why (CamDuncalfe/agent-pfp#43 (comment)). On the fix commit the new check waited about a minute for the review run to finish Steps still planned: Running Wisdom, the local review and Review Resolver from the runner itself Try the builder: https://camduncalfe.github.io/agent-pfp/ AssistanceA coding agent (Claude Code) writes the code from my tickets and Qodo reviews it. The art starts in Midjourney and I cut it into layers |
My factoryDiagram (solid boxes were used on ticket #4 and PR #21/#22; dashed boxes are planned; the hexagons are where I decide and the diamonds are gates): flowchart TD
T["Ticket: issue with intended result, acceptance criteria, edge case"] --> W
W["Wisdom check on the ticket<br/>(Day 6): reuse, rules 4/6/7/8, assumptions"] --> H1{{"Human: rewrite ticket,<br/>add ready-for-agent label"}}
H1 --> I["Implementation<br/>(coding agent in a branch or worktree)"]
I --> L["Qodo local review of staged + unstaged code<br/>before the first commit"]
L --> G1{"Gate: no valid High/Medium open,<br/>tests + smoke pass?"}
G1 -- "fix valid findings, add test" --> I
G1 -- "disagree: evidence needed" --> H2{{"Human decides:<br/>fix or dismiss"}}
H2 --> I
G1 -- "3 rounds or same finding again" --> S["STOP: NOT DONE + blocker"]
G1 -- "yes" --> C["Commits (cache fix separate) and PR with live evidence"]
C --> R["Qodo PR review"]
R --> RR["Review Resolver: read findings,<br/>check review covers current head"]
RR --> G2{"Gate: review completed on CURRENT head,<br/>no High/Medium open, Low reported?"}
G2 -- "fix, push, re-review" --> I
G2 -- "disagree" --> H2
G2 -- "yes" --> H3{{"Human: approve and merge to main"}}
H3 --> M["main"]
GW["Goose worker (Day 4) takes ready-for-agent tickets<br/>and opens a PR: NOT DONE, review pending"] -.-> C
P1["Task Scheduler runs the poller"]:::planned -.-> GW
P2["Sandbox for untrusted URLs"]:::planned -.-> I
classDef planned stroke-dasharray: 5 5,fill:#f6f6f6
VerificationWhat my quality gates check and the evidence they require: Before work starts: the ticket is checked against the codebase (reuse, which AGENTS.md rules apply, assumptions to verify). Evidence: the investigation answers and the rewritten ticket. On #4 this changed the plan (relevance search, host matching, a visible While code is uncommitted: Qodo reviews staged and unstaged changes. A finding is accepted only after I reproduce it. Evidence: a test that fails before the fix and passes after, plus Before merge: a completed Qodo review of the CURRENT PR head with no High or Medium finding open (the Day 9 gate in AGENTS.md). Evidence: the review session's reviewed commit equals the PR head, and every finding is implemented or dismissed with a reason. What happens when a gate fails or needs my decision: A valid finding goes back to implementation, then a re-review. A disagreement needs evidence (code, test or command output) and only I dismiss it. After 3 rounds, or when the same finding returns, the loop stops with NOT DONE and the blocker. What happenedTicket or PR used to check the diagram: Ticket #4 ( Did it reach main? If not, which gate stopped it? Yes, both merged. #21 merged with the review complete at its head (6 findings, all closed). #22 needed three rounds; the last review was clean at the merged head. Where I had to step in and why: I rewrote ticket #4 after the Wisdom answers, chose which findings to fix and which to dismiss, ran the Qodo local reviews and posted every comment by hand, and did the commits, pushes and merges. The implementation of #4 was done by a coding agent in my session, not by the Goose worker. Any gap I found or improvement I made: The PR reviews found things the local reviews did not (a trust problem: any PR commenter could steer the worker). A diff review cannot verify process claims such as "the cache fix is in its own commit". The poller used to announce an unreviewed PR as finished; it now says the gate is pending. Qodo's spec reviewer was skipped in the local reviews. Steps still planned: The Goose worker taking a real feature ticket (#12) end to end with the gate in the recipe; the retry step has not run on a real retry yet; Task Scheduler for the poller; a sandbox for untrusted URLs (Week 4). |
Day 10My factoryVerificationWhat my quality gates check and the evidence they require: Passing tests, valid High/Medium findings fixed, including Medium Bugs, and Low findings reported unchanged. Qodo reviews staged and unstaged changes before commit. Before merge, required checks pass and a completed review covers the current PR head. What happens when a gate fails or needs my decision: Fix, retest, and review again. Disagreements need evidence and my decision. Missing evidence or stalled progress means What happenedMEL is my project in Kaneo Did it reach main? If not, which gate stopped it? Yes. The recorded suite passed 316 tests. Local and PR reviews returned zero findings, including no Low items. Where I had to step in and why: I approved scope and publication, then made the final merge decision. Any gap I found or improvement I made: Qodo freshness still relies on the agent and me. The diagram makes that pre-merge checkpoint explicit. Steps still planned: A live n8n ticket-to-PR pilot and real repair loop. Original Wisdom/Resolver invocation timing remains unverified. |
|
In short: I took issue #28 (show my LinkedIn followers on the homepage) through every gate below, and it reached main as PR #118. It's live on lioramilbaum.com. The ticket stopped at the first gate twice before any code was written. My label-triggered agent run stopped on it, and so did I: the original ask, a live count, needs a data source LinkedIn doesn't offer. Once I rewrote the ticket, the code gates did their job: 2 pre-commit review rounds, a deliberately red CI run, and 1 Review Resolver round. I stepped in at each decision point the diagram names, and nowhere else. My factoryDiagram: flowchart TD
T([Ticket with acceptance criteria]) --> G0["Gate 0: ticket ready?"]
G0 -- "no: I revise it" --> T
G0 --> W["Codebase Wisdom checks the ticket"]
W --> P["Plan, I approve"]
P --> I["Implement, uncommitted"]
I --> G1["Gate 1: local checks, reviewer, Qodo local review"]
G1 -- "High/Medium: fix" --> I
G1 --> C["One commit, red run, PR"]
C --> G2["Gate 2: CI and Qodo review of the PR head"]
G2 -- "High/Medium: fix" --> F["Review Resolver"]
F --> G2
G2 --> M([I merge to main])
Every box was used on #28. Planned work and gaps are listed at the end. VerificationWhat my quality gates check and the evidence they require:
What happens when a gate fails or needs my decision:
What happenedTicket or PR used to check the diagram: #28, PR #118, delivery doc in docs PR #119.
Did it reach main? If not, which gate stopped it? Yes. Where I had to step in and why:
Any gap I found or improvement I made:
Steps still planned:
|
🏭 My factoryDiagram: solid boxes are what the #112 gallery slice went through. The three gates are the only decision points. flowchart TD
T["Ticket"]:::taken --> G1{"Gate 1 · Before work<br/>Grill vs docs + Codebase Wisdom<br/>Pass: criteria consistent, premise true"}:::taken
G1 -- "fail: I revise the ticket" --> T
G1 -- pass --> A["Implement one slice,<br/>uncommitted"]:::taken
A --> G2{"Gate 2 · Uncommitted<br/>checks + mutation check + Qodo local review<br/>Pass: no valid High/Medium"}:::taken
G2 -- "fail: fix (max 3 rounds)" --> A
G2 -- "stalled" --> STOP(("STOP: not done,<br/>I decide")):::taken
G2 -- pass --> PR["Commit, push, open PR"]:::taken
PR --> G3{"Gate 3 · PR<br/>CI green + Review Resolver<br/>Pass: review covers current head, no High/Medium"}:::taken
G3 -- "fail: fix" --> A
G3 -- "disputed: evidence + my call" --> G3
G3 -- pass --> M["I merge to main"]:::taken
classDef taken fill:#d1fae5,stroke:#047857,color:#064e3b
✅ Verification
📝 Low findings never block. They're flagged in the PR for me. Dismissing a finding in Qodo always needs my explicit go-ahead. 🧭 What happenedTicket or PR used to check the diagram: #112, second slice, PR #180. Did it reach main? ✅ Yes, merged after I approved, together with the quality-gate PR #175. It stopped once, at Gate 3: 2 Medium findings came from ticket criteria that conflicted. I settled that with grilling and dismissed both with explanations. Where I had to step in and why: choosing which findings to fix, revising the ticket, approving the dismissals, fixing the Qodo CLI login, raising the factory runner's turn limit, and pressing merge. Any gap I found or improvement I made:
Steps still planned:
|
|
Hey y’all! Week 2 and Day 10 are done, here’s a bit of a walkthrough for my solution day-10-final-vertical.mp4Also, the Week 2 prize goes to Justin Frye (@randoneering) for Mellon. Congratulations, Justin! |
ChallengeDay 10 (Nov 13), Factory with verification. ProjectProject name: Ghostline What I completedI mapped how Ghostline's factory takes a ticket to %%{init: {"theme": "base", "flowchart": {"curve": "basis", "nodeSpacing": 34, "rankSpacing": 42, "padding": 16, "wrappingWidth": 420}, "themeVariables": {"fontSize": "14px", "lineColor": "#8a91a7", "edgeLabelBackground": "#111525", "textColor": "#e9edf7"}}}%%
flowchart TB
T(["TICKET"]):::start
G1{{"① TICKET HOLDS?"}}:::gate
B(["Build or fix · test first"]):::step
G2{{"② LOCAL CHECKS + QODO"}}:::gate
P(["Open or update PR"]):::step
G3{{"③ PR CHECKS + QODO ON HEAD"}}:::gate
G4{{"④ ENGINEER APPROVES"}}:::gate
M[("main")]:::done
T --> G1
G1 -- yes --> B
B --> G2
G2 -- pass --> P
P --> G3
G3 -- pass --> G4
G4 -- merge --> M
G1 -- no --> R(["Revise or close ticket"]):::muted
G2 -- fail --> B
G3 -- fail --> B
B -. no progress .-> S(["Stop · engineer decides"]):::stop
G4 -- hold --> H(["Hold PR"]):::hold
classDef start fill:#111525,stroke:#00e5ff,stroke-width:1.5px,color:#e9edf7,font-weight:bold
classDef step fill:#0d1020,stroke:#30344d,stroke-width:1.5px,color:#e9edf7
classDef gate fill:#090b16,stroke:#00e5ff,stroke-width:2px,color:#00e5ff,font-weight:bold
classDef done fill:#090b16,stroke:#00ffa3,stroke-width:2px,color:#00ffa3,font-weight:bold
classDef hold fill:#090b16,stroke:#ffc857,stroke-width:1.5px,color:#ffc857
classDef stop fill:#090b16,stroke:#ff7188,stroke-width:1.5px,color:#ff7188
classDef muted fill:#090b16,stroke:#3a3f5a,stroke-width:1.5px,color:#8a91a7,stroke-dasharray:4 3
linkStyle default stroke:#8a91a7,stroke-width:1.5px,color:#e9edf7
linkStyle 0,1,2,3,4,5,6 stroke:#00e5ff,stroke-width:2px,color:#00e5ff
linkStyle 8,9 stroke:#ff2bd6,stroke-width:1.8px,color:#ff2bd6
Four gates sit between a ticket and
Stop rule: if the same confirmed finding returns after one focused repair, a required check cannot be made to pass, or the evidence cannot settle a disagreement, the agent stops, reports the finding, repair attempt and revisions, and I decide. The full rules, including the exact-SHA comparison before merge, are in the doc. EvidenceCheck 1: issue #39 → PR #44, reached
Check 2: PR #69, my Day 9 run, which went through the whole loop. It hasn't reached
Where I stepped in (check 2):
What I learned / what is blockedGaps found and fixed in PR #72: checking the diagram against PR #69 exposed four, and each is now in both the diagram and the gate text.
PR #72 went through the same gate: 4 local Qodo rounds and hosted reviews on every push. That's 2 Medium findings fixed (the suppression path, and a rerun loop with no stop) and 1 Low fixed (the PR #71 example lacked its SHA and run link). The hosted review of the final head Still open:
Assistance and third-party material
Optional demoNone. This is a workflow diagram, so there's no app screen to show. |
My factoryFaultForge tests a code reviewer the way you'd test a smoke alarm: it plants known bugs and checks whether Qodo finds them. The factory builds FaultForge itself. It takes a ticket I label and turns it into a pull request that's ready for me to merge. Repo: https://github.com/AJBeumer/faultforge In short: a change has to pass nine checks on its way to Diagram: %%{init: {"fontFamily": "arial", "flowchart": {"htmlLabels": false, "padding": 24, "nodeSpacing": 50, "rankSpacing": 55}}}%%
flowchart TD
subgraph S1["Before work"]
T(["I write a ticket"]):::owner
R("Ticket complete?"):::gate
FIXT(["I rewrite it"]):::owner
PF("Reviewer unchanged?"):::gate
W["Codebase Wisdom<br/>checks the ticket"]:::planned
Q("Anything to guess?"):::gate
ANS(["I answer"]):::owner
STOP1(["Run stops:<br/>I decide"]):::stop
T --> R
R -- no --> FIXT
FIXT -.-> T
R -- yes --> PF
PF -- no --> STOP1
PF -- yes --> W
PF -- yes --> Q
W -.-> Q
Q -- yes --> ANS
ANS -.-> T
end
subgraph S2["Uncommitted"]
B["Agent builds,<br/>test first"]:::step
K("Checks pass?"):::gate
LR["Qodo local review"]:::planned
CI("Linux and<br/>Windows green?"):::gate
B --> K
K -- no --> B
K -- yes --> LR
K -- yes --> CI
LR -.-> CI
CI -- no --> B
end
subgraph S3["Before merge"]
PR["Open the PR"]:::step
RV("Qodo reviewed<br/>this commit?"):::gate
RR["Review Resolver"]:::planned
G("High or Medium<br/>open?"):::gate
DIS["Agent disputes it,<br/>with evidence"]:::step
RC("New tests fail<br/>without the change?"):::gate
AU("Runner rechecks<br/>everything"):::gate
HELP(["Needs help:<br/>I decide"]):::stop
DONE(["I check and merge"]):::owner
M[("main")]:::done
BACK["Back to the build"]:::step
PR --> RV
RV -- yes --> G
RR -.-> G
G -- "yes: fix it" --> BACK
G -- disputed --> DIS
DIS --> HELP
G -- "3 rounds" --> HELP
G -- no --> RC
RC -- no --> BACK
RC -- yes --> AU
AU -- fails --> HELP
AU -- holds --> DONE
DONE --> M
end
Q -- no --> B
CI -- yes --> PR
BACK -.-> B
classDef owner fill:#ede9fe,stroke:#6d28d9,color:#2e1065
classDef gate fill:#fef3c7,stroke:#b45309,color:#451a03
classDef step fill:#e0f2fe,stroke:#0369a1,color:#082f49
classDef stop fill:#fee2e2,stroke:#b91c1c,color:#450a0a
classDef done fill:#dcfce7,stroke:#15803d,color:#052e16
classDef planned fill:#f1f5f9,stroke:#64748b,color:#334155,stroke-dasharray:5 5
classDef used stroke-width:3px
class T,R,PF,B,K,CI,PR,RV,G,RC,BACK,DONE used
style S1 fill:none,stroke:#94a3b8
style S2 fill:none,stroke:#94a3b8
style S3 fill:none,stroke:#94a3b8
How to read it:
VerificationWhat my quality gates check and the evidence they require:
A failed Linux or Windows job costs no review round: What happens when a gate fails or needs my decision:
How often each gate fires. New today:
What happenedTicket or PR used to check the diagram: ticket 403, which built
Every commit passed on Linux and Windows before it reached the PR. Did it reach main? It passed every gate and is waiting for my merge. [After the merge: merged as Where I had to step in and why:
Any gap I found or improvement I made:
Steps still planned:
Assistance and third-party materialClaude Code (Opus) built the change, ran the checks and drafted this post from my brief. Qodo reviewed the PR. I chose the work, approved the ticket and do the merge. No collaborators. |
My factoryI followed one real pasokh ticket from its timer to its handoff. Solid arrows show the route issue 5 took, including the timeout and repair. Dotted arrows show the extra gates I want in the factory and the conditional paths beyond that run. flowchart TD
T["Issue 5 and acceptance criteria"] --> I["Read ticket, project rules and source"]
I --> B["Implement in isolation"]
I -.-> W["Codebase Wisdom: check assumptions"]
W -.-> B
B --> C["Run acceptance checks, tests and typecheck"]
C -. failed checks .-> B
C -.-> L["Qodo local Reviewer: staged and unstaged diffs"]
L -. valid blocker .-> B
L -. reviewed diff .-> P
C --> P["PR 8: request review of this head"]
P -->|five-minute wait expired| H["Owner intervenes and resumes"]
H --> Q["Read Qodo findings for the revision"]
P --> Q
Q -->|confirmed requirement gap| B
Q -.-> R["Review Resolver: investigate PR findings"]
R -. verified fix needed .-> B
R -. disputed or stalled .-> H
Q -->|repair verified| A["Ready for human at 57693f5"]
A -.-> G{"Required checks pass and completed Qodo review matches live head?"}
G -. missing or stale .-> H
G -. yes .-> D["Owner decides on merge"]
D -. if authorized .-> M["Merge to main"]
VerificationA fix goes back through the checks and review. My proposed severity gate resolves valid High and Medium findings and shows me the Low ones. A disputed finding needs a code example or test and my decision. The runner limits corrections to two cycles and waits five minutes for review before handing control back. Wisdom, local Reviewer, and Review Resolver are planned integrations on this map. What happenedOn November 6 the timer fired at 02:07:44 UTC. The runner opened PR 8 and stopped at 02:17:42 waiting for Qodo. I clarified that help means exactly one raw argument and resumed the run. One repair cycle later, 63 tests and typecheck passed, Qodo marked the finding resolved on Claude Code worked through the original project runner. I used Codex to reconstruct the diagram from its events. pasokh is MIT-licensed. |
ChallengeDay 10 (Nov 13), Factory with verification. ProjectProject name: SwarmWatch What I completedI mapped how SwarmWatch's factory takes a ticket to flowchart TD
A[Ticket: small backlog task] --> B[Check requirements & assumptions<br/>Codebase Wisdom — planned]
B --> C[Implement — no commit yet]
C --> D[Run tests locally<br/>17 tests, recall 1.0, 0 false positives]
D -->|fail| C
D -->|pass| E[Manual review]
E -->|findings| C
E -->|clean| F[Qodo local review — planned<br/>staged + unstaged, before commit]
F -->|findings| C
F -->|clean| G[Commit]
G --> H[Open PR]
H --> I[Review Resolver — planned<br/>address PR findings]
I -->|new findings| C
I -->|resolved| J[Merge to main]
J --> K[Submit — SwarmWatch<br/>submitted 8 Nov, 441 projects]
C -->|stuck loop| L[Stop & escalate — no infinite loop]
Evidence
What I learned / what is blockedGap I found: no automated gate runs before commit today — that is the next step before the final submission on 2 Dec. Blocked on the Agentic Toolbox install (Day 7 prerequisite) and the Qodo Git plugin, still pending. Assistance and third-party material
|
|
My factory Diagram: https://github.com/sksangita/evergreen-agents/blob/main/docs/factory-diagram.md (a Mermaid flowchart that renders on GitHub) A ticket reaches main in 5 stages and 5 gates, and there are two ways to do the build stage:
Verification What my quality gates check and the evidence they require:
What happens when a gate fails or needs my decision:
What happened Ticket or PR used to check the diagram: ticket #22, "Triage resting heart rate as a second vital, with bp and hr CLI subcommands", built by agent.yml as PR #23. Did it reach main? Yes, as merge commit f9e031a, and CI on main passed. Every gate held on the final head d97a1aa. Where I had to step in and why:
Any gap I found or improvement I made:
Steps still planned:
|
|
If you haven't seen my other posts, I'm building Commet, a gamified code-mapper that turns a git repo into a star system One ticket, every gate 🛸I followed the Day 9 ticket through my factory: #148, the drone panel. Click an agent's drone, and a panel lists the files that session edited, how often, and when. The ticket failed the first gate and was rewritten, stopped twice in review for my call, and merged on 19 Nov. My factoryDiagram:
The orange line is the path that #148 took, and the grey arrows show the rest of the software factory itself. VerificationWhat my quality gates check and the evidence they require:
What happens when a gate fails or needs my decision: a valid High or Medium goes back to the agent to fix, with a test that fails first. A disagreement needs evidence stored in Qodo, and dismissing a High needs me. If Qodo calls its PR review incomplete, my agents run one full local review of the whole PR diff. On #148, any new High or Medium in a re-review stopped the loop and came to me. What happenedTicket or PR used to check the diagram: #148, built as PR #167.
Did it reach main? If not, which gate stopped it? Not yet, and no gate stopped it. It merged into my session branch, and Where I had to step in and why:
Any gap I found or improvement I made:
Steps still planned: the merge to |
My factoryflowchart TD
T["Owner authorizes an issue and adds ready-for-agent"] --> W["Codebase Wisdom checks the ticket against the checker, workflow, and callers"]
W --> D["Codex reproduces the baseline and delegates isolated implementation"]
D --> L["Local Qodo review on the exact uncommitted diff"]
L --> C["Verify confirmed findings, run tests and record the diff"]
C --> P["Open a ready PR"]
P --> R["Qodo reviews the commit and Review Resolver retrieves its findings"]
P --> I["Independent GitHub Actions checks candidate with the base-owned checker"]
R --> G{"Completed same-head review, independent checks pass, High and Medium findings resolved?"}
I --> G
G -->|Confirmed findings, one repair available| F["Repair once and rerun checks and review"]
F --> P
G -->|Disputed, failed, stale or unresolved after repair| S["Stop for the owner"]
G -->|Passed and Low findings recorded| H["Assigned Codex orchestrator records the merge decision"]
H -->|Accepted| M["Merge into main"]
R --> A["Day 14 Qodo workflow applies a label to eligible PRs"]
A --> O["Outside PR 18 received the Qodo approved label"]
A --> K["Protected PR 22 stayed unlabeled"]
K -.-> U["Guarded path policy calls for review by a person"]
O -.-> H
K -.-> H
M --> B16["Day 16 — organization fork of main at 8022ebe"]
B16 --> A16["Arnica completed four scans and reported three SAST findings"]
A16 --> F16["Arnica dashboard — investigate one Low finding in OmniRoute"]
F16 --> V16["Two transport tests passed. Local service identity still needs review."]
VerificationBefore implementation, compare the issue to the source and reproduce the recorded failure. Before commit, review the uncommitted diff and verify any finding against code and synthetic evidence. Before merge, obtain a completed hosted Qodo review and independent checks for the same PR head. Fix every valid High or Medium finding regardless of type, report Low findings, and allow one repair before escalation. Saved gates What happenedCurrent delivery. Issue #16 started with the owner's Guarded change. Issue #17 started from a separate owner label event and used the same checked workflow surface. The orchestrator ran real local Qodo review on the one unstaged workflow file, fixed its two informational issues and reran local review before the PR. The second hosted head of PR #19 ran all eight independent cases and logged the exact Markdown that it wrote to the Actions summary. The integrated head Day 14 route. Both PRs had clean Qodo reviews. GitHub recorded the bot’s Qodo approved label on outside PR #18. Protected PR #22 stayed unlabeled and PR Triage showed Needs a reviewer. The guard policy calls for review by a person. On #22 the assigned Codex orchestrator checked the independent CI and recorded acceptance for merge. Individual human sign-off on that commit is unverified. The portal showed no guard-specific event, so we infer the guard’s role from the two label histories. Day 14 comparison · Recorded decision on #22 Historical passing and failure runs
Did it reach main? If not, which gate stopped it?
Where I had to step in and why I approved the work in chat, authorized hosted review after local Qodo sign-in timed out, and assigned the merge and close decisions to the project orchestrator. Any gap I found or improvement I made The first replay passed while a bad reset could still hide a valid sibling. The repair isolated malformed windows and added regression coverage. The zero regression then showed that the base-owned checker could stop a PR even when its basic controls passed. November 21 merge decisionThe owner authorized an additional repair of PR #19. The summary now uses GitHub’s native check-run URL and names the link that opens the exact Actions job. Commit |
My factoryDiagram: a Mermaid flowchart in docs/FACTORY.md (renders on GitHub): ticket, ticket check, build, local checks, Qodo local review, PR, PR review, merge, with bold steps taken and dashed steps planned. VerificationWhat my quality gates check and the evidence they require: six gates. 0 ticket check (claims true in the repo; evidence: code, probes, the GitHub API). 1 local checks ( What happenedTicket or PR used to check the diagram: ticket 34, which settled ticket 19, PR 37. Written with Claude Code (Claude Sonnet 5.5) acting as developer; my product owner decided what is posted. |
My factoryDiagram: (yellow = human decides, grey dashed = gap) flowchart TD
classDef human fill:#fff3bf,stroke:#e67700,stroke-width:2px,color:#000
classDef gate fill:#d3f9d8,stroke:#2b8a3e,stroke-width:2px,color:#000
classDef fail fill:#ffe3e3,stroke:#c92a2a,stroke-width:2px,color:#000
classDef gap fill:#f1f3f5,stroke:#868e96,stroke-dasharray:5 3,color:#000
classDef step fill:#e7f5ff,stroke:#1971c2,color:#000
T1["1 Create ticket"]:::step
W["2 Codebase Wisdom<br/>checks ticket assumptions against the code"]:::gate
H1{{"HUMAN approves scope"}}:::human
R["Revise ticket"]:::step
A["3 Agent picks up ticket<br/>and implements"]:::step
C1["4 Checks: typecheck, tests, build"]:::gate
LRV["5 Qodo local review<br/>on uncommitted changes"]:::gate
Q1{"valid High/Medium?"}:::gate
FIX["Fix + add test<br/>Low: report only<br/>invalid: reject with evidence"]:::fail
PR["6 Open PR, Qodo reviews it"]:::gate
RR["7 Review Resolver<br/>checks each finding against the code"]:::gate
Q2{"valid High/Medium left?"}:::gate
CAP{"3 rounds and<br/>still failing?"}:::fail
FIX2["Fix + tests, re-review"]:::fail
NH["Stop: needs-help,<br/>blocker reported, never merges"]:::fail
H2{{"HUMAN decides on disputed<br/>and Low findings"}}:::human
G["8 Merge gate<br/>checks pass, latest review covers<br/>latest commit, no valid High/Medium"]:::gate
CI["No CI yet: checks run locally"]:::gap
H3{{"HUMAN says merge"}}:::human
M["9 Squash merge to main"]:::step
T1 --> W --> H1
H1 -->|changes| R --> W
H1 -->|approved| A --> C1
C1 -->|fail| A
C1 -->|pass| LRV --> Q1
Q1 -->|yes| FIX --> C1
Q1 -->|no| PR --> RR --> Q2
Q2 -->|yes| CAP
CAP -->|no| FIX2 --> PR
CAP -->|yes| NH
Q2 -->|no| H2 --> G
CI -.- G
G -->|fails| RR
G -->|passes| H3 --> M
NH -.->|human unblocks| A
VerificationWhat my quality gates check and the evidence they require: before work, Codebase Wisdom checks the ticket's assumptions against the real code. Before commit, Qodo local review runs on the uncommitted changes. On the PR, Review Resolver checks each Qodo finding against the code. The rule: fix valid High/Medium with tests, report Low without changing code, reject invalid ones with evidence. Typecheck/test/build have to pass, and the latest review has to cover the latest commit. What happenedTicket or PR used to check the diagram: #15 (close the connection when /health gets a bad header plus a body) → PR #17. |
My factoryDiagram (GitHub renders it; dashed borders mark planned steps the factory doesn't run yet): (Same diagram as an image: day10-factory-gates.png) flowchart TD
T["Ticket filed: GitHub issue with What to build,<br/>Acceptance criteria, Blocked by"] --> R{"Gate 0: claimable?<br/>ready-for-agent, unassigned, unblocked,<br/>not fenced in .ralph/plan.md"}
R -- no --> W0(["waits: a person or the triager decides"])
R -- yes --> C["Frontier gate: the next free loop claims it<br/>(lock + lease + loop-wip label)"]
C --> WIS["PLANNED: Qodo Codebase Wisdom<br/>checks the ticket's assumptions"]:::planned
WIS --> P["Plan: brief + code map<br/>(the loop's own planner)"]
P --> B["Build on branch loop/n-…<br/>executor sessions write code and tests"]
B --> LR{"Gate 1: local review of the diff<br/>standards · spec (each criterion) · correctness"}
LR -- finding --> B
LR -. "PLANNED: Qodo local review<br/>of staged + unstaged changes" .-> LG
LR -- pass --> LG{"Gate 2: local checks<br/>touched suites · typecheck · lint · full suite"}
LG -- red --> B
LG -- green --> PR["Push + PR: Closes #n, Ticket link,<br/>acceptance criteria (pr-ref --criteria)"]
PR --> CI{"Gate 3: required check test<br/>(supervisor waits, no model running)"}
CI -- "red, reproducible" --> B
CI -- "red twice, unexplained" --> BL(["blocked: loop-blocked label + comment;<br/>DECISION: me"])
CI -- green --> Q{"Gate 4: qodo-review.ts<br/>finished Qodo review of the HEAD?"}
Q -- "pending (≤4 min per call)" --> Q
Q -- "Qodo run failed" --> RT["/agentic_review once per head"] --> Q
Q -- "nothing in 30 min (exit 4)" --> HO
Q -- "findings (exit 1)" --> F{"Gate 5: definition of done<br/>valid High/Medium? Requirement gap vs a criterion?"}
F -- "valid: fix + test" --> B
F -- "disputed" --> D["@qodo reply with evidence<br/>(line, test, or criterion)"]
F -- "Low" --> LOW["listed for me in the merge comment"]
D --> S{"still open after 2 fix rounds,<br/>or dispute repeated?"}
S -- yes --> HO(["hand-off: PR left open;<br/>DECISION: me"])
S -- no --> Q
Q -- "clean (exit 0)" --> M{"Gate 6: merge conditions<br/>test green · MERGEABLE · no open review thread"}
LOW --> M
M -- "thread open" --> D
M -- pass --> MG["gh pr merge --squash · ticket closed · loop-done"]
MG --> J["journal + learnings → next ticket"]
classDef planned stroke-dasharray: 5 5
VerificationWhat my quality gates check and the evidence they require:
What happens when a gate fails or needs my decision:
What happenedTicket or PR used to check the diagram: #17 → PR #35, by the rafa loop.
Did it reach main? Yes, as 6434af51, with no merge by me.
Any gap I found or improvement I made:
Steps still planned:
Written with Claude Code (Anthropic); the loops are Claude Code sessions. |
My factoryLichtprobe connects a GitHub ticket, isolated implementation, local test evidence and Qodo’s hosted PR review. The dashed branches show planned Toolbox checks. flowchart TD
A[GitHub issue and acceptance criteria] --> B[Read ticket, project rules and collector source]
B -. future .-> W[Qodo Codebase Wisdom]
B --> C[Codex implements on a dedicated branch]
C --> D{Local tests and evidence match?}
D -- Fail --> F[Fix with a regression and rerun]
F --> D
D -. future .-> L[Qodo review of staged and unstaged changes]
D -- Pass --> P[Open pull request linked to issue]
P --> Q[Qodo reviews the current GitHub head]
Q -. future .-> R[Qodo Review Resolver]
Q --> G{Current review and tests pass?}
G -- Valid High or Medium finding --> F
G -- Disputed finding or stalled fix --> H[Stop and hand evidence to maintainer]
G -- Pass; flag Low findings --> M[Maintainer decides whether to merge]
M -- Approved --> N[Merge exact reviewed head]
M -- Hold --> H
N --> V[Application release still needs a separate person]
VerificationBefore coding, compare the ticket criteria with the existing command and identify a failing case. Before committing, run both Node suites, check output behavior and inspect the diff. Before merge, require passing checks and a completed Qodo review on the current head. Confirmed High or Medium findings require a fix and a new verification run. Low findings go to the maintainer. A disputed finding needs evidence; stop a stalled loop and leave the PR open. What happenedIssue #2 produced PR #4. The new regression failed on the old parser. The fixed branch passed 14/14 tests and the Edge import check. Qodo reviewed head |
Polson's factory: from ticket to mainPolson is an AI co-founder that ships one verified improvement every night ("no slop" backwards). Polson's factory: from ticket to mainPolson is an AI co-founder that ships one verified improvement every night ("no slop" backwards). flowchart TD
T["Ticket: GitHub issue with acceptance criteria<br/>USED: #23"]
INV["Investigate: a person runs Qodo Codebase Wisdom<br/>USED: #16"]
RT{"A person routes it: does the work<br/>need edits under .github/?<br/>USED: #16 split into #17 agent, #18 person"}
T --> INV --> RT
subgraph PERSON["Person path: interactive Claude Code"]
P1["Implement, uncommitted<br/>USED: PR #20"]
P2["Qodo local review of staged and unstaged changes<br/>USED: PR #20"]
P3{"Valid High or Medium?"}
P4["Commit, push, open the PR<br/>USED: PR #20"]
PW["Wait for CI and Qodo's review of the head commit,<br/>apply the quality gate by hand<br/>USED: PR #20, PR #24"]
P1 --> P2 --> P3
P3 -- "yes: fix" --> P1
P3 -- "no" --> P4 --> PW
end
RT -- "yes" --> P1
subgraph START["Agent run start: polson-agent.yml, one job at a time"]
L["A person adds ready-for-agent<br/>USED: #23"]
NT["Nightly 01:17 UTC, 02:17 Lagos:<br/>oldest open ready-for-agent issue<br/>trigger USED: run 45000874965, nothing to pick"]
WD["Manual run: workflow_dispatch<br/>BUILT"]
SW["Hand over issues an earlier run left in agent-working<br/>BUILT"]
CK{"Issue open and still<br/>labelled ready-for-agent?"}
MK["Swap to agent-working, clear an old<br/>needs-human or agent-done<br/>USED: #23"]
L --> SW
NT --> SW
WD --> SW
SW --> CK
CK -- "yes" --> MK
end
RT -- "no" --> L
CK -- "no" --> NOP["Nothing to do, no label change<br/>USED: run 45000874965"]
RC{"Resume check: open PRs from<br/>branches named issue-slug?"}
MK --> RC
B["Build agent: implement, typecheck, tests,<br/>push-branch.sh, PR with Closes # and the criteria<br/>USED: #17 PR #19, #23 PR #24"]
AB{"After build: agent step succeeded<br/>and exactly one agent PR exists?<br/>USED: #23"}
RC -- "none<br/>USED: #23" --> B --> AB
CI["Required CI on every push: Node 24, Node 20.19.0<br/>USED: every PR"]
WT["Scripted wait, wait-for-pr.sh: every 60 s, up to 15 min.<br/>CI finished on the head commit, Qodo's review names it,<br/>the fail-closed reader gives a number, no busy comment,<br/>2 polls agree. USED: #23 PR #24"]
RC -- "one agent PR: resume<br/>USED: #9 PR #11" --> WT
AB -- "yes" --> WT
CI -.-> WT
CI -.-> PW
WG{"Wait gate: PR open,<br/>CI and Qodo finished?"}
WT --> WG
RS["Resolve agent, applies the quality gate:<br/>fix valid High or Medium, disagree with evidence,<br/>list Low, push at most once, Round report<br/>USED: #9 round 1, #17 rounds 1 and 2"]
WG -- "yes, before round 1 or 2" --> RS
AR{"After resolve: did it push?"}
RS --> AR
AR -- "yes: wait again<br/>USED: #17 2a7009c" --> WT
AR -- "no<br/>USED: #9, #17" --> FN
WG -- "yes, after round 2<br/>BUILT" --> FN
FN{"Finish: PR head unchanged, CI green,<br/>Qodo finished, 0 open High or Medium?"}
AD["agent-done, with a summary comment<br/>USED: #9, #17"]
NH["needs-human: comment first, then label<br/>USED: #9, #23"]
FN -- "yes" --> AD
FN -- "no<br/>BUILT" --> NH
WG -- "no: not finished in 15 min, unreadable review,<br/>PR not open, branch moved<br/>USED: #9, #23" --> NH
RC -- "a PR not opened by the agent,<br/>or more than one<br/>BUILT, tested in find-pr.test.ts" --> NH
AB -- "no<br/>BUILT" --> NH
AGE["The agent escalates itself: unclear criteria,<br/>needs .github/, cannot fix within the rules<br/>BUILT"] --> NH
HO["A step fails or times out: hand-over step<br/>BUILT"] --> NH
subgraph HUMAN["A person decides"]
HD["Review the PR against the quality gate.<br/>Dismiss a finding in Qodo: USED PR #12, an accepted risk.<br/>Accept an exception in writing: USED PR #12, PR #21.<br/>Take over an escalated ticket: USED #23 PR #24.<br/>Relabel to retry: USED #9."]
end
AD --> HD
NH --> HD
PW --> HD
HD -- "relabel" --> L
MG["A person merges with gh pr merge.<br/>protect-main: a PR and both CI checks,<br/>no force push or deletion, no bypass<br/>USED: PR #11, PR #19, PR #24"]
HD -- "gate met" --> MG --> MAIN["main"]
INVA["Codebase Wisdom inside the agent run<br/>PLANNED"]
LRA["Qodo local review inside the agent run<br/>PLANNED"]
PH["Protected path: .github/ changes need<br/>human review on GitHub. PLANNED: Day 14"]
NR["Night record and morning report from each run<br/>PLANNED: code in src/, not run by the workflow"]
INVA -.-> B
LRA -.-> B
PH -.-> MG
AD -.-> NR
NH -.-> NR
classDef used fill:#d8f0dc,stroke:#2e7d32,color:#111
classDef built fill:#fff4cc,stroke:#b58900,color:#111
classDef planned fill:#eeeeee,stroke:#888,stroke-dasharray:4 3,color:#444
class T,INV,RT,P1,P2,P4,PW,L,NT,MK,NOP,B,AB,CI,WT,RS,AD,NH,HD,MG used
class WD,SW,AGE,HO built
class INVA,LRA,PH,NR planned
Full diagram with gate tables: https://github.com/shrooms08/polson/blob/main/docs/FACTORY.md How it works
Gates
Each step is marked USED (with a PR as proof), BUILT (exists, never run for real) or PLANNED. Being honest about the last two was the point. Checked against a real ticket: #23
Gaps found by drawing it
This PR itself merged on a written exception: Qodo skipped the docs-only change three times, and the gate correctly said NOT DONE. Built with Claude Code; reviewed by Qodo. Full diagram with gate tables: https://github.com/shrooms08/polson/blob/main/docs/FACTORY.md How it works
Gates
Each step is marked USED (with a PR as proof), BUILT (exists, never run for real) or PLANNED. Being honest about the last two was the point. Checked against a real ticket: #23
Gaps found by drawing it
This PR itself merged on a written exception: Qodo skipped the docs-only change three times, and the gate correctly said NOT DONE. Built with Claude Code; reviewed by Qodo. |
ChallengeDay 10 (2026-11-13): Factory with verification. Project
What I completedCreated Walkthrough on a real ticket
|
My factory kept stopping, so I fixed the factory.I'm building universal sharing: phones and laptops join their screens in the browser so you can drag photos between them. Try it live. New today: a device that isn't in my room can no longer open a connection to mine (#21, merged in #116). It's the first ticket my factory carried all the way from my label to It didn't go smoothly though. My factory stopped again and again. Every time it needed me the problem was in the factory itself, not the code. The best example came before the run even started. I tried my new blind reviewer on Day 9's PR and it found the real bug... then called it Low. My gate would have waved it through. So the gate stopped trusting labels: if a finding comes with a test that fails, it blocks, whatever its severity. That's exactly the rule that stopped #21 at the end.
My factory and its quality gates
One gap against the brief: Qodo's local review checks the agent's commits before the push, not its uncommitted changes, because my red check needs each Verification: the ticket I checked it on, #21Wisdom checked the ticket's 6 claims against the code and all of them held. Before the first push, Qodo's local review caught 3 Mediums, including the sneaky one I'd predicted: a real device whose setup arrives before its presence does. The PR review then found 4 more (one High) and the local review of those fixes found 5 more. Fixes kept making new bugs to fix. That's 4 local fix rounds in all, 2 before each of 2 pushes. Last came the blind reviewer. It reproduced a Medium, which the agent fixed, then a Low with a failing test. That hit my stopping rule. I deferred it to #124 and merged with the bypass, with the reason on the PR. Where I had to step in: three Qodo was wrong once (and I proved it): on #122 it said my regression test would still pass with the fix taken out. I put the old code back and the test failed (130 pass, 1 fail). I dismissed it as a false positive with that output attached. Gaps I found and what I changed
Steps still planned
Did it reach main?Yes, #21 reached Honestly, this day took way longer than I expected. A 5-line ticket went through several rounds, whoops. But every stop was the factory catching a gap in itself, not in my code. That's the bit I'll keep: the gate I built after Day 9's miss is the one that stopped #21. My predictions, scored (hashes committed before each run)#21 (key hashed at 03:08Z, before the label). Happened: Wisdom passes it (I said 80%), the local review finds a High or Medium (50%), the first PR review finds one (55%), the blind review reproduces one (30%), merged on 23 Nov (60%), the fix covers the late-presence trap with a test (45%). Didn't: the first PR review is complete (65%), a flaky re-run (35%), done without me (40%). Of 9 predictions, 5 right, 3 wrong and 1 was 50/50. The answer key: all 5 points covered, including the trap I'd hashed (setup that arrives before presence). #96 (hashed 22 Nov, before any gate existed): 8 predictions, 5 right. My answer key had the bug in it: the blind review reproduced the exact rule I'd written down as correct. |
Day 10: Six gates, one chapter, and a commit Qodo wouldn't reviewIn short: I drew my factory from ticket to My factoryDiagram: thick borders are the steps ticket #43 actually took. Thin ones are the runner's path, which this ticket didn't use. Dashed is planned. flowchart TD
T["Ticket: intended result, criteria,<br/>source chapter, Runner section"]
T --> G0{"Gate 0 · me<br/>chapter plan decided?<br/>book checkpoint verified?"}
G0 -- no --> PLAN["Back to the book:<br/>plan, decide, verify"]
PLAN --> T
G0 -- yes --> W["Codebase Wisdom on the ticket<br/>grep · read-file · PR similar"]
W --> G1{"Gate 1 · agent, then me<br/>assumptions hold on main?<br/>evidence: file:line citations"}
G1 -- "gap found" --> TU["Ticket updated,<br/>findings posted on the issue"]
TU --> W
G1 -- yes --> PATH{"Which builder?"}
PATH -- "label ready-for-agent" --> RUN["Runner in Actions<br/>(OpenAI-compatible model)"]
PATH -- "needs npm, or local review" --> CC["Claude Code, locally"]
RUN --> TF
CC --> TF
TF{"Gate 2 · tests first<br/>new tests fail for the missing code?<br/>evidence: red output"}
TF -- "fail for another reason<br/>(up to 3 tries)" --> TFX["Rewrite the tests"]
TFX --> TF
TF -- yes --> CODE["Write the code;<br/>makemigrations makes migrations"]
CODE --> CK{"Gate 3 · checks<br/>check · test · makemigrations --check<br/>65 chars · paths · settings guard"}
CK -- "fail (up to 3 tries)" --> CODE
CK -- "still failing" --> STOP
CK -- "pass (Claude Code)" --> LR{"Gate 4 · Qodo local review<br/>staged + unstaged, ticket + context<br/>valid High/Medium open?"}
LR -- "yes: fix, recheck" --> CODE
LR -- "disputed with evidence" --> ME
LR -- "none open, Lows listed" --> PR["One chapter commit, push, PR"]
CK -. "pass (runner: no local<br/>review yet, planned)" .-> PR
PR --> QR["Qodo PR review<br/>Review Resolver reads findings"]
QR --> G5{"Gate 5 · quality gate<br/>review covers the PR head?<br/>valid High/Medium open?<br/>unreadable severity = High"}
G5 -- "yes: fix in a new commit<br/>(round 1 or 2)" --> FIX["Fix commit, checks,<br/>/agentic_review"]
FIX --> QR
G5 -- "stale review, or still open<br/>after round 2" --> STOP["NOT DONE<br/>agent-blocked + reason"]
G5 -- "disputed with evidence" --> ME
G5 -- "head skipped by Qodo<br/>(docs-only commit)" --> ME
G5 -- "met: none open,<br/>Lows listed" --> ME{"Gate 6 · me<br/>disputes, Lows,<br/>book listing drift"}
STOP --> ME
ME -- "needs work" --> T
ME -- "approve" --> CI{"Required checks on the PR"}:::planned
CI --> M["Rebase and merge to main"]
class T,G0,W,G1,TU,PATH,CC,TF,CODE,CK,LR,PR,QR,G5,FIX,ME,M used
class RUN,TFX,STOP notused
classDef used stroke-width:3px
classDef notused stroke-width:1px
classDef planned stroke-dasharray: 5 5
VerificationWhat my quality gates check and the evidence they require:
What happens when a gate fails or needs my decision: a failing check goes back to the code, up to three tries. A valid finding gets fixed and reviewed again. That's before the commit on the local path, and in a new commit on the PR. A dispute stops and comes to me with its evidence. A stale review, or findings still open after two rounds, ends as NOT DONE with the reason on the PR. I merge. What happenedTicket or PR used to check the diagram: #43, Chapter 21 "Validation, constraints, and data integrity", and PR #44. The database now refuses rows that break the app's rules: capacity 0, an event that ends before it starts, a second active registration, a cancellation with no time. Email addresses are stored in lower case. I built it locally in Claude Code rather than through my runner, because the runner doesn't have a local review step yet. Did it reach main? Yes. I rebase-merged #44, and Where I had to step in and why:
Any gap I found or improvement I made:
Steps still planned:
|





Uh oh!
There was an error while loading. Please reload this page.
Friday, November 13, 2026 · Week 2: Agentic Toolbox
Your factory can investigate a ticket, build the change and work through review feedback. Today, put those steps on one diagram and show how your factory decides that a change is ready to merge into main.
The challenge is to post a diagram of your factory with its verification steps. Show what gets checked before work starts, while the code is still uncommitted, and before the PR is merged. Include the paths back to a fix and the points where you need to make a decision.
Today's challenge
Draw the path from creating a ticket to merging into main. Include checking the ticket's requirements and assumptions with Codebase Wisdom, implementation, Qodo local review of staged and unstaged changes before committing, and Review Resolver for PR findings. A simple flowchart, Mermaid diagram or photo of a sketch is enough.
Add your quality gates. At each check, show what must pass, what evidence the agent uses, and what happens when it fails. Carry over yesterday's definition of done: settle valid high and medium issues, verify the fixes, and flag low issues for your decision. Show where disagreements need evidence and your input, and where a stalled fix-and-review loop stops. Before merge, include passing required checks and a completed Qodo review of the current PR head.
Check the diagram against one small real ticket. Follow it through the workflow, using a recent ticket or trying a new one, and mark what worked, what you had to do yourself, and any missing verification. Merge into main when the gates pass and your project's approval requirements are met. If the ticket stops at a gate, mark that point and explain what is needed to continue.
A prompt to try
Share your factory
Post your diagram with a short explanation of its quality gates. Include the ticket or PR you used to check it, where you had to step in, and any gap you found or improvement you made. Show whether the change reached main or which gate stopped it.
Use the template below for your comment in the Day 10 Discussion. Mark any planned steps in your diagram.
All reactions