"Done" is the least reliable word in software. An agent reports success, the PR looks plausible, and whether the spec's outcomes are actually true in the code is a question nobody re-checks. Verification closes that gap by grading the implementation against the spec, and it grades the artifact, not the story: you name the pull request, and Pathmode goes and reads the diff.
The input
Two things:
- A pull request, as a URL or
owner/repo#123, readable by the workspace's GitHub connection - The IntentSpec the work was built against, with its outcomes, constraints, edge cases, and verification checks
The flow
1. Point verification at the PR. The agent (or you) calls verify_implementation with the intent ID and the PR URL. This usually happens as the last step of an agent run, right after the PR opens.
2. Pathmode reads the diff itself. The files come from GitHub, not from the builder's memory of them. Low-signal paths like lockfiles and build output are ranked out so the grader's budget goes to code that can actually answer the question.
3. Every item gets a verdict, with citations. Each outcome, constraint, constitution rule, edge case, verification check, and recorded decision gets a verdict with cited reasoning. Pass means the evidence supports it; fail means the evidence shows a violation. Unclear means the change touches it but the evidence does not settle it. Not applicable means the change does not touch the area it governs.
4. The verdict records what it rests on. Every result carries its basis. A run graded on the real diff says so; a run with no PR to read is marked as a self-report, which is context for the grader, not evidence. The distinction is kept, so a self-graded "pass" never masquerades as an inspection.
5. The result lands on the intent. The verdict is logged as an implementation note, next to the spec it graded, and a failed item opens a finding rather than passing quietly.
With the GitHub webhook connected, reviews can run automatically. Link the intent using the documented reference patterns. Pathmode runs an advisory review when the pull request opens or changes, then checks the merged changes and records the intent as shipped. You can also request a review with verify_implementation. These reviews do not block merges or replace executed tests.
Shipped does not mean the outcome was achieved. A diff review can identify supporting code and possible gaps. Run the required tests and record outcome measurements separately. Inspect the basis of those measurements before accepting the result; an AI score or lifecycle label does not prove the user’s need was met.
The output
- A verdict per item, including uncertainty, so you can see what remains unproven
- Reasoning that cites the diff, so a skeptical reviewer can check the checker
- A recorded basis for the verdict: what was read, and whether it was the artifact or a self-report
- An audit trail on the intent, so "did we verify this?" has an answer six months later
Why this beats trusting the agent's summary
When the builder describes its own work and the grader grades the description, the evidence and the thing being graded have the same author. That's not verification, it's a book report. A pointer is checkable; prose is not. Reading the PR breaks the loop: the code either shows the outcome or it doesn't, and the citation says where.
Try it yourself
- Finish an agent run that ends in a pull request
- Have the agent call
verify_implementationwith the intent ID and the PR URL - Read the per-item verdicts and citations on the intent
- Investigate failed items, run the agreed checks, and record outcome measurements after shipping
Related
Bring this workflow to your team.
Keep the evidence, decisions, and follow-up work together in your product.
Start with Pathmode