Review a specification against a checklist.
Done by an agent. Checked twice.
A verdict on every checklist item, with the quote that proves it or the exact gap the author must fix.
Real files in
- checklist.md
A team's spec readiness checklist: 21 items, each required or advisory, with the rule for what counts as met. 29 lines, 2 KB. - spec.md
A draft product specification for scheduled report emails, about three pages, with gaps and two numbers that disagree. 102 lines, 5 KB.
Sample data written by Atris. Not a real company.
Three steps
- 1.Read the checklist, then the whole spec
- 2.Judge each item on the evidence
- 3.Write the review
Claude Sonnet 5.5, 45 seconds. No web. It never saw the check.
Checked twice
- Passed: 21 of 21 checklist items appear once in review.csv
- Passed: 21 of 21 verdicts equal the verdicts marked by hand before the run (12 met, 9 not met)
- Passed: 12 of 12 items marked met carry a quote found word for word in the spec section the review names
- Passed: 9 of 9 items marked not met say what is missing
- Passed: 5 of 5 gaps that sit at one exact spot name it: the repeated id, the row with no priority, the stage with no date, the question with no owner and both values of the limit given twice
- Passed: summary.md says ready for build: no, with 8 required items not met, recounted from the review and the checklist levels
- Passed: 21 of 21 rows sit in checklist order with the level copied from the checklist and 12 of 12 met rows leave the gap empty
- Passed: 32 of 32 numbers written in the gaps are found in the spec
- Passed: summary.md lists 9 of 9 items to fix with required ones first and 32 of 32 numbers in those lines are found in the same item's row of review.csv
Second review by Claude Opus 5.5: pass.
Then we broke a copy of the output 6 ways on purpose. The check caught 6.
Checklist items: 21
Met: 12
Not met: 9
Required items not met: 8
Ready for build: no
## Required items to fix
- CK-04: Requirement id FR-6 is used twice in section 5 (for "A report is delivered within 10 minutes of its scheduled time." and for "The sender name on the email is the store name.").
- CK-05: Requirement FR-7 in section 5 ("A user can pause a schedule and resume it later.") has an empty priority, so it is not marked must, should or could.
- CK-06: Section 9 gives targets (30 percent of weekly active accounts with an active schedule; tickets below 40 a quarter) but no date by which either must be reached.
- CK-09: Section 7 says recipient email addresses are stored but their retention after a schedule is deleted is "TBD with legal"; only the 30-day retention of sent file copies is stated.
- CK-11: Section 10 stage 3 (Everyone, all paid plans) has the date "to be confirmed"; stages 1 (2026-12-07) and 2 (2027-01-11) are dated.
- CK-12: No section says how the feature is turned off after release; the only related text is per-schedule pause in FR-7, with no kill switch or rollback.How this was run
An AI agent on Claude Sonnet 5.5 was given a folder with the files below and a three-step flow, and nothing else. It had no web access and never saw the check. The check was written before the run and made stricter after it. It works the answer out again from the input files. Then Claude Opus 5.5 reviewed the result against the inputs. The input files are sample data written by Atris, with the problems a real week has planted in them.
Run 1 of 1 on 1 December 2026. The agent took 45 seconds.
What the second review verified
- All 12 'met' quotes appear word for word in the section named. For example, CK-02 'Support logged 214 tickets last quarter...' is in section 2, and CK-17 'An account can hold at most 25 schedules.' is in section 5.
- CK-21 catches the conflict between the 25-schedule limit in FR-5 (section 5) and 'Each account may create up to 30 schedules' in section 7. CK-04 catches FR-6 being used twice, and CK-05 catches FR-7's empty priority.
- Every not_met item matches the spec. CK-09: address retention is 'TBD with legal'. CK-11: stage 3's date is 'to be confirmed'. CK-15: section 8 says only 'To be written.' CK-06: section 9 has no date. CK-12: there is no way to turn the feature off. CK-14: Q2 has no owner.
- The summary counts are correct: 21 items, 12 met, 9 not met, 8 required items not met (all except advisory CK-14). Required items are unmet, so 'Ready for build: no' follows the checklist's rule. Fixes are listed with required items first.
What this run does not show
- The right verdict for each checklist item is a list marked by hand before the run.
- The check tests that numbers in a gap come from the spec, while whether the gap is explained well is judged only by the second review.
- The sample spec was written for this run with its gaps planted.
Would the check catch a wrong answer?
A check that cannot fail proves nothing. After the run we took a copy of the output, broke it one small way at a time and ran the check again. It caught 6 of 6. The check was made stricter after the first try at this, and the same untouched output was graded again.
Open every file
flow.md · the three steps the agent followed
# Review a specification against a checklist function: product for: the engineering lead who decides whether a spec is ready to build goal: Every checklist item has a verdict with proof and the author knows exactly what is missing. ## 1. Read the checklist, then the whole spec Read input/checklist.md first, including its rules for what counts as met. Then read input/spec.md from top to bottom. What an item asks for may sit in a section you would not expect, so do not judge an item from the section headings alone. ## 2. Judge each item on the evidence Give every checklist item one status: - `met` when the spec really contains what the item asks for. Copy the words that prove it. - `not_met` when it is absent, empty, still to be decided or only half there. For items about every row of a table, check every row. For items about numbers, compare each number with the other places the spec gives it. Judge only what is written. Do not assume the author meant to cover something. ## 3. Write the review Write output/review.csv with columns item_id,level,status,section,evidence,gap. One row per checklist item, in checklist order. level is copied from the checklist. For a `met` item, evidence is a quote copied word for word from one place in the spec with no table bars. section is the number of the section the quote sits in, like 7. gap is empty. For a `not_met` item, gap is one sentence that says what is missing and names the exact spot (the id, the row, the stage or the section) with the values involved. Write output/summary.md. Start with these five lines, each with its value: `Checklist items: `, `Met: `, `Not met: `, `Required items not met: `, `Ready for build: ` (yes or no, by the checklist's own rule). Then list what the author must fix, required items first. ## Done looks like - Every checklist item appears once with a status. - Every `met` item has a quote that can be found in the section named. - The ready for build line follows from the required items.
input/checklist.md · 29 lines, 2 KB
# Spec readiness checklist A specification is ready for build only when every item marked required is met. Advisory items should be met but do not block. An item is met only when the spec really contains what the item asks for. A heading with nothing under it does not count. Text that says TBD, to be written or to be confirmed does not count. When an item asks for two things, both must be there. | item | level | the spec must | |------|-------|---------------| | CK-01 | required | Name one owner, by name or by role. | | CK-02 | required | Give at least one number that shows how big the problem is. | | CK-03 | required | List at least one thing that is out of scope. | | CK-04 | required | Give every requirement an id that no other requirement uses. | | CK-05 | required | Mark every requirement as must, should or could. | | CK-06 | required | State a success metric with a target number and the date by which it must be reached. | | CK-07 | required | Say what the user sees or what the system does when the main flow fails. | | CK-08 | advisory | State a speed target with a number. | | CK-09 | required | Say what personal data is stored and how long it is kept. | | CK-10 | required | Say which kinds of user may use the feature. | | CK-11 | required | List the rollout stages and give every stage a date. | | CK-12 | required | Say how the feature is turned off if it goes wrong after release. | | CK-13 | advisory | Name the other teams the work depends on. | | CK-14 | advisory | Give every open question an owner. | | CK-15 | required | State the accessibility standard the screens must meet. | | CK-16 | advisory | Say how support staff will be prepared. | | CK-17 | required | State at least one maximum that stops a single account from creating without limit. | | CK-18 | advisory | Say which plans include the feature. | | CK-19 | required | Give recipients of any email a way to stop receiving it. | | CK-20 | required | Say how the feature will be tested before release. | | CK-21 | required | Never give the same limit or target two different values. |
input/spec.md · 102 lines, 5 KB
# Specification: Scheduled report emails Product: Corvel Insights (reporting for small online stores) Status: draft 3, sent for review on 2026-11-20 ## 1. Summary Customers build reports in Corvel Insights and then come back every week to download the same report and mail it to their team. This feature lets a customer schedule any saved report to be emailed to a list of people as a PDF or a spreadsheet, every day, week or month. ## 2. Problem Support logged 214 tickets last quarter asking how to send a report automatically. In 9 of the last 12 cancellation calls the customer said they had moved reporting into a spreadsheet tool that mails a weekly summary. Today the only way to share a report is to download it and attach it to an email by hand. ## 3. Goals and non-goals Goals: - A customer can schedule a saved report in under one minute. - Scheduled reports arrive on time without anyone signing in. Non-goals for this release: - Sending reports to chat tools. - Letting recipients change the report filters from the email. - Reports with live charts inside the email body. ## 4. Who it is for Store owners and their managers who review numbers on a fixed day each week. Recipients do not need a Corvel account. Who can use it: account admins and editors can create, change and delete schedules. Viewers can see schedules but cannot change them. ## 5. Requirements | id | priority | requirement | |----|----------|-------------| | FR-1 | must | A user can schedule any saved report to be sent daily, weekly or monthly at a chosen hour. | | FR-2 | must | A schedule has between 1 and 20 recipients. | | FR-3 | must | The report is attached as a PDF or a spreadsheet file, chosen per schedule. | | FR-4 | should | The email body shows the report title, the date range and the three headline numbers. | | FR-5 | must | An account can hold at most 25 schedules. | | FR-6 | must | A report is delivered within 10 minutes of its scheduled time. | | FR-6 | should | The sender name on the email is the store name. | | FR-7 | | A user can pause a schedule and resume it later. | | FR-8 | must | Every email has a link the recipient can use to stop receiving that report. | | FR-9 | could | A user can send a test email to themselves before saving the schedule. | ## 6. User flow 6.1 Create. From a saved report the user chooses Schedule, picks how often, the hour, the file type and the recipients, then saves. 6.2 Deliver. At the scheduled time the system builds the report, attaches the file and sends one email per recipient. 6.3 When something fails. If the report cannot be built, the system tries again 3 times, 5 minutes apart. If it still fails, no email goes to the recipients and the schedule owner gets an email that says which report failed and why. If an address bounces twice in a row, that recipient is removed and the owner is told. ## 7. Data and privacy The feature stores the email addresses of recipients, who may not be Corvel users. Addresses are visible only to admins and editors of the account. How long addresses are kept after a schedule is deleted: TBD with legal. A copy of each sent file is kept for 30 days so the owner can resend it. Each account may create up to 30 schedules, which keeps storage for sent copies within the current budget. ## 8. Accessibility To be written. ## 9. Success metric 30 percent of weekly active accounts have at least one active schedule. Tickets asking how to send a report automatically fall below 40 a quarter. ## 10. Rollout | stage | who gets it | date | |-------|-------------|------| | 1. Internal | Corvel staff accounts | 2026-12-07 | | 2. Early access | 50 accounts that asked for it | 2027-01-11 | | 3. Everyone | All paid plans | to be confirmed | The feature is included in all paid plans at no extra charge. Free accounts see the Schedule button with an upgrade prompt. ## 11. Dependencies - The messaging team runs the email sending service. Contact: the messaging team lead. They have agreed to raise our sending limit before stage 2. - The reports team owns the file builder for PDF and spreadsheet files. ## 12. Testing and support Testing: the quality team will run the full flow on stage 1 with 40 test schedules covering each frequency and file type, plus the three failure cases in 6.3. Support: a help article and a two minute video will be ready before stage 2. Support staff get a 30 minute walkthrough in the week of 2027-01-04. ## 13. Open questions | question | owner | |----------|-------| | Q1. Should weekly schedules follow the account time zone or the recipient's? | product manager | | Q2. Do we need a size limit for attached files? | | | Q3. Can a paused schedule be resumed by any editor or only by the person who made it? | design lead | ## 14. Sign-off Owner: the product manager for the reporting team. Reviewers: engineering lead, design lead, support lead.
output/review.csv · written by the agent, 22 lines
item_id,level,status,section,evidence,gap
CK-01,required,met,14,Owner: the product manager for the reporting team.,
CK-02,required,met,2,Support logged 214 tickets last quarter asking how to send a report automatically.,
CK-03,required,met,3,Sending reports to chat tools.,
CK-04,required,not_met,,,"Requirement id FR-6 is used twice in section 5 (for ""A report is delivered within 10 minutes of its scheduled time."" and for ""The sender name on the email is the store name."")."
CK-05,required,not_met,,,"Requirement FR-7 in section 5 (""A user can pause a schedule and resume it later."") has an empty priority, so it is not marked must, should or could."
CK-06,required,not_met,,,Section 9 gives targets (30 percent of weekly active accounts with an active schedule; tickets below 40 a quarter) but no date by which either must be reached.
CK-07,required,met,6,"If the report cannot be built, the system tries again 3 times, 5 minutes apart. If it still fails, no email goes to the recipients and the schedule owner gets an email that says which report failed and why.",
CK-08,advisory,met,5,A report is delivered within 10 minutes of its scheduled time.,
CK-09,required,not_met,,,"Section 7 says recipient email addresses are stored but their retention after a schedule is deleted is ""TBD with legal""; only the 30-day retention of sent file copies is stated."
CK-10,required,met,4,"Who can use it: account admins and editors can create, change and delete schedules. Viewers can see schedules but cannot change them.",
CK-11,required,not_met,,,"Section 10 stage 3 (Everyone, all paid plans) has the date ""to be confirmed""; stages 1 (2026-12-07) and 2 (2027-01-11) are dated."
CK-12,required,not_met,,,"No section says how the feature is turned off after release; the only related text is per-schedule pause in FR-7, with no kill switch or rollback."
CK-13,advisory,met,11,The messaging team runs the email sending service.,
CK-14,advisory,not_met,,,"Open question Q2 in section 13 (""Do we need a size limit for attached files?"") has an empty owner; Q1 (product manager) and Q3 (design lead) have owners."
CK-15,required,not_met,,,"Section 8 Accessibility says only ""To be written."" and names no accessibility standard."
CK-16,advisory,met,12,Support staff get a 30 minute walkthrough in the week of 2027-01-04.,
CK-17,required,met,5,An account can hold at most 25 schedules.,
CK-18,advisory,met,10,The feature is included in all paid plans at no extra charge.,
CK-19,required,met,5,Every email has a link the recipient can use to stop receiving that report.,
CK-20,required,met,12,"the quality team will run the full flow on stage 1 with 40 test schedules covering each frequency and file type, plus the three failure cases in 6.3.",
CK-21,required,not_met,,,"The per-account schedule maximum is 25 in FR-5 (section 5) but 30 in section 7 (""Each account may create up to 30 schedules"")."
output/summary.md · written by the agent, 18 lines
Checklist items: 21
Met: 12
Not met: 9
Required items not met: 8
Ready for build: no
## Required items to fix
- CK-04: Requirement id FR-6 is used twice in section 5 (for "A report is delivered within 10 minutes of its scheduled time." and for "The sender name on the email is the store name.").
- CK-05: Requirement FR-7 in section 5 ("A user can pause a schedule and resume it later.") has an empty priority, so it is not marked must, should or could.
- CK-06: Section 9 gives targets (30 percent of weekly active accounts with an active schedule; tickets below 40 a quarter) but no date by which either must be reached.
- CK-09: Section 7 says recipient email addresses are stored but their retention after a schedule is deleted is "TBD with legal"; only the 30-day retention of sent file copies is stated.
- CK-11: Section 10 stage 3 (Everyone, all paid plans) has the date "to be confirmed"; stages 1 (2026-12-07) and 2 (2027-01-11) are dated.
- CK-12: No section says how the feature is turned off after release; the only related text is per-schedule pause in FR-7, with no kill switch or rollback.
- CK-15: Section 8 Accessibility says only "To be written." and names no accessibility standard.
- CK-21: The per-account schedule maximum is 25 in FR-5 (section 5) but 30 in section 7 ("Each account may create up to 30 schedules").
## Advisory items to fix (do not block)
- CK-14: Open question Q2 in section 13 ("Do we need a size limit for attached files?") has an empty owner; Q1 (product manager) and Q3 (design lead) have owners.
check.py · the check, written before the run
"""Compares each verdict with verdicts marked by hand, and looks up every quote in the spec section named."""
import csv, re, sys
from pathlib import Path
root = Path(sys.argv[1]); ok = True
def say(passed, text):
global ok; ok = ok and passed; print(("PASS " if passed else "FAIL ") + text)
flat = lambda s: " ".join(s.replace("|", " ").split())
spec = (root/"input/spec.md").read_text()
sections = {int(m.group(1)): flat(m.group(2)) for m in re.finditer(r"(?ms)^## (\d+)\. (.*?)(?=^## \d+\. |\Z)", spec)}
levels = dict(re.findall(r"^\| (CK-\d\d) \| (required|advisory) \|", (root/"input/checklist.md").read_text(), re.M))
# Marked by hand before the run, from reading the spec against each item.
NOT_MET = {"CK-04", "CK-05", "CK-06", "CK-09", "CK-11", "CK-12", "CK-14", "CK-15", "CK-21"}
# Gaps that sit at one exact spot, and the words that name it.
SPOTS = {"CK-04": [["FR-6"]], "CK-05": [["FR-7"]], "CK-11": [["stage 3", "3. Everyone", "Everyone", "third stage"]],
"CK-14": [["Q2"]], "CK-21": [["25"], ["30"]]}
want = {i: ("not_met" if i in NOT_MET else "met") for i in levels}
path = root/"output/review.csv"
if not path.exists():
say(False, "output/review.csv was not written"); sys.exit(1)
rows = list(csv.DictReader(path.open()))
g = lambda r, k: (r.get(k) or "").strip()
got = {g(r, "item_id"): r for r in rows}
once = sum(1 for i in levels if sum(1 for r in rows if g(r, "item_id") == i) == 1)
say(once == len(levels) and len(rows) == len(levels), f"{once} of {len(levels)} checklist items appear once in review.csv")
right = sum(1 for i, s in want.items() if i in got and g(got[i], "status") == s)
say(right == len(want), f"{right} of {len(want)} verdicts equal the verdicts marked by hand before the run ({len(want) - len(NOT_MET)} met, {len(NOT_MET)} not met)")
met = [r for r in rows if g(r, "status") == "met"]
def proven(r):
q = flat(g(r, "evidence")).strip("\"' ")
n = re.search(r"\d+", g(r, "section"))
return len(q.split()) >= 3 and n is not None and q in sections.get(int(n.group(0)), "")
quoted = sum(1 for r in met if proven(r))
say(bool(met) and quoted == len(met), f"{quoted} of {len(met)} items marked met carry a quote found word for word in the spec section the review names")
unmet = [r for r in rows if g(r, "status") == "not_met"]
told = sum(1 for r in unmet if len(g(r, "gap").split()) >= 5)
say(bool(unmet) and told == len(unmet), f"{told} of {len(unmet)} items marked not met say what is missing")
spot = sum(1 for i, groups in SPOTS.items() if i in got and all(any(w.lower() in g(got[i], "gap").lower() for w in alt) for alt in groups))
say(spot == len(SPOTS), f"{spot} of {len(SPOTS)} gaps that sit at one exact spot name it: the repeated id, the row with no priority, the stage with no date, the question with no owner and both values of the limit given twice")
summary = (root/"output/summary.md").read_text() if (root/"output/summary.md").exists() else ""
blocked = sum(1 for r in unmet if levels.get(g(r, "item_id")) == "required")
nums = {"Checklist items": len(rows), "Met": len(met), "Not met": len(unmet), "Required items not met": blocked}
stated = all(re.search(r"(?m)^\W*" + re.escape(k) + r":\D{0,4}" + str(v) + r"\b", summary) for k, v in nums.items())
ready = re.search(r"Ready for build:\W{0,4}(yes|no)\b", summary, re.I)
ready_ok = bool(ready) and ready.group(1).lower() == ("no" if blocked else "yes")
say(stated and ready_ok, f"summary.md says ready for build: {'no' if blocked else 'yes'}, with {blocked} required items not met, recounted from the review and the checklist levels")
# Stricter lines added after the run: levels, order and every number in the gaps and the fix list are compared with the inputs.
order = list(levels)
copied = sum(1 for i, r in enumerate(rows) if i < len(order) and g(r, "item_id") == order[i] and g(r, "level") == levels[order[i]])
tidy = sum(1 for r in met if not g(r, "gap"))
say(copied == len(levels) and tidy == len(met), f"{copied} of {len(levels)} rows sit in checklist order with the level copied from the checklist and {tidy} of {len(met)} met rows leave the gap empty")
digits = lambda s: re.findall(r"\d+(?:\.\d+)?", re.sub(r"\bCK-\d\d\b", " ", s))
spec_nums = set(digits(spec))
gn = gn_ok = 0
for r in unmet:
for x in digits(g(r, "gap")):
gn += 1; gn_ok += x in spec_nums
say(gn > 0 and gn_ok == gn, f"{gn_ok} of {gn} numbers written in the gaps are found in the spec")
fix = {}
for n, line in enumerate(summary.splitlines()):
for i in re.findall(r"\bCK-\d\d\b", line): fix.setdefault(i, []).append((n, line))
todo = [g(r, "item_id") for r in unmet]
listed = sum(1 for i in todo if i in fix)
first = lambda i: fix[i][0][0]
req_last = max([first(i) for i in todo if i in fix and levels.get(i) == "required"] or [-1])
adv_first = min([first(i) for i in todo if i in fix and levels.get(i) == "advisory"] or [10**6])
sn = sn_ok = 0
for i, found in fix.items():
own = set(digits(" ".join(got[i].get(k) or "" for k in ("section", "evidence", "gap")))) if i in got else set()
for _, line in found:
for x in digits(line):
sn += 1; sn_ok += x in own
say(bool(todo) and listed == len(todo) and req_last < adv_first and sn_ok == sn,
f"summary.md lists {listed} of {len(todo)} items to fix with required ones first and {sn_ok} of {sn} numbers in those lines are found in the same item's row of review.csv")
sys.exit(0 if ok else 1)
checklist.md: sample data written by Atris. Fingerprint ab9b613b78d1.
spec.md: sample data written by Atris. Fingerprint 032fe0d8f74b.
review.csv: written by the agent. Fingerprint e0ae1401154c.
summary.md: written by the agent. Fingerprint 19a755870c3d.