Atris

Write the monthly investor update.
Done by an agent. Checked twice.

A one page investor update with every figure traced to the export and every problem in the data named.

Have Atris do this for you›

1

Real files in

  • cash.csv
    Opening cash, cash in, cash out and closing cash for three months, with one month that does not add up. 4 lines, 163 bytes.
  • events.md
    The founder's log of 15 events, some outside the month, one with no date and one with a figure that disagrees with the export. 19 lines, 1 KB.
  • last_update.md
    Last month's investor update, whose closing figure does not equal this month's opening figure. 20 lines, 607 bytes.
  • mrr_by_customer.csv
    Monthly recurring revenue by customer for October and November, 50 rows, with a repeated row, a blank cell and one customer entered under two ids. 51 lines, 2 KB.

Sample data written by Atris. Not a real company.

2

Three steps

  1. 1.Clean the export and work out the figures
  2. 2.Find what does not agree
  3. 3.Write the update

Claude Sonnet 5.5, 52 seconds. No web. It never saw the check.

3

Checked twice

  • ✓Passed: 15 of 15 figures in numbers.csv equal the figure recomputed from the export and the cash file
  • ✓Passed: 26 of 26 figures of 10 or more in update.md trace to numbers.csv or an input file
  • ✓Passed: update.md states month end MRR 134,400, net new MRR 10,400 and cash 2,129,750 (3 of 3)
  • ✓Passed: 11 of 11 events dated in the month are cited in update.md and 0 from outside the month
  • ✓Passed: 15 of 15 figures in data_notes.md are printed in an input file or numbers.csv, or are a closing balance or a gap worked out again here
  • ✓Passed: 7 of 7 problems in the data are named in data_notes.md with their ids and numbers
  • ✓Passed: update.md is 307 words, inside the 400 word limit

Second review by Claude Opus 5.5: pass.

Then we broke a copy of the output 7 ways on purpose. The check caught 7.

What it wrote. Lines 3 to 14 of update.md, copied from the file.
## Headline
MRR grew from 124,000 to 134,400, up 8.4% on the month, across 45 paying customers. Cash at month end is 2,129,750, which is 23.0 months of runway.

## Numbers
- MRR start: 124,000. MRR end: 134,400.
- New MRR: 14,300. Expansion: 5,400. Contraction: 1,500. Churned: 7,800.
- Net new MRR: 10,400 (8.4%).
- Customers: 43 at start, 45 at end; 5 new, 3 churned.
- Cash end: 2,129,750. Net burn: 94,700. Runway: 23.0 months.

## What happened
- Signed Brackenmoor Logistics on the Scale plan; the export shows 3,800 a month [E-02].

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 3 of 3 on 1 December 2026. The agent took 52 seconds. Run 1 passed both checks and the job was run again later. Run 2 did not pass the check. Each run starts clean. Between runs the written flow was made clearer, or a check was corrected or made stricter. Nobody edits the output.

What the second review verified

  • Recomputed every MRR figure from the export after counting the repeated C-023 row once and leaving out C-028 for its blank cell. The results match numbers.csv: mrr_start 124000, mrr_end 134400, new 14300, expansion 5400, contraction 1500, churned 7800 and net_new 10400. 124000 + 10400 = 134400, growth is 8.4%, customers go from 43 to 45, with 5 new and 3 churned.
  • Checked cash.csv. November net burn is 284100 - 189400 = 94700. Net burn for the three months is 91600, 91450 and 94700, averaging 92583.33, so runway is 2129750 / 92583.33 = 23.0. November does not add up: 2226950 + 189400 - 284100 = 2132250, but the file prints 2129750. Data note 4 reports this correctly. September and October add up, and each opening equals the prior month's closing.
  • Checked the events. The update cites all ten November events, E-02 to E-12, and leaves out E-01 and E-14 (October), E-13 (December) and E-15 (no date). E-02 gives 4,200 but the export shows 3,800, and both the update and data note 6 use the export figure. E-04 (10,200) and E-07 (5,400) match the export.
  • Checked the data notes and limits. data_notes.md has 7 lines and the update says 7. The notes cover the C-023 repeat, the C-028 blank, Halvorsen (C-017) vs Halvorson (C-049), the cash mismatch, last_update's 127,600 vs 124,000, and E-02 vs the export at 3,800. Every figure of 100 or more in update.md is either in numbers.csv or printed in an input file. The update is 307 words, under the 400 limit.

What this run does not show

  • The customer list, cash file and events were written for this run with seven planted problems. A real export has more kinds of mess.
  • The check traces every figure to a file. It cannot tell when one real figure is swapped for another, such as 43 customers written as 45.
  • The second review's note says ten November events were used. There are eleven and the update cites all eleven.

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 7 of 7. 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
# Write the monthly investor update

function: leadership
for: the founder who sends investors an update every month
goal: Investors get a one page update where every figure traces to the export and every problem in the data is named.

## 1. Clean the export and work out the figures
Read input/mrr_by_customer.csv, input/cash.csv, input/events.md and input/last_update.md. The export has
one MRR column per month. The later month is the reporting month and the earlier one is the prior month.
Clean the export before any sum:
- A row repeated with the same customer_id and the same values counts once.
- A row with a blank MRR cell in either month is left out of every figure.
- Count by customer_id only. Never merge two ids, even when the names look alike.
Then work out these 15 figures and write them to output/numbers.csv with columns metric,value,how. Use
exactly these metric names. value is a plain number with no commas or signs. how says which file,
columns and rule the figure came from.
- mrr_start, mrr_end: the sum of the prior month column and of the reporting month column.
- new_mrr: reporting MRR of customers with 0 in the prior month and more than 0 in the reporting month.
- churned_mrr: prior MRR of customers with more than 0 in the prior month and 0 in the reporting month.
- expansion_mrr: the total increase across customers who paid in both months and pay more now.
- contraction_mrr: the total decrease across customers who paid in both months and pay less now.
- net_new_mrr: new plus expansion minus contraction minus churned. mrr_start plus net_new_mrr must equal mrr_end.
- mrr_growth_pct: net_new_mrr divided by mrr_start, times 100, one decimal.
- customers_start, customers_end: customers with MRR above 0 in the prior month and in the reporting month.
- customers_new, customers_churned: counted the same way as new_mrr and churned_mrr.
- cash_end: closing_cash of the reporting month as printed.
- net_burn: cash_out minus cash_in for the reporting month.
- runway_months: cash_end divided by the average monthly net burn across all months in cash.csv, one decimal.

## 2. Find what does not agree
Write output/data_notes.md with one numbered line for each problem and nothing else. A line is a
problem only when something is repeated, blank, missing or does not agree. Do not add lines for things
that agree or for background. Name the file, the id or month, and both numbers where two numbers
disagree. Look for all of these:
- repeated rows and rows left out for a blank cell, by customer_id;
- two customer ids whose names differ only by a letter or two, spacing or an ending such as Inc or Ltd
  (name both ids and say they may be one customer);
- a month in cash.csv where opening plus cash in minus cash out does not equal closing, or where the
  opening is not the prior closing (give the printed closing and the worked out closing);
- mrr_start against the month end MRR printed in last_update.md (give both);
- an event that gives a monthly figure for a customer that differs from the export (give the event id
  and both numbers; the export figure is the one to use);
- an event with no date (give the event id).

## 3. Write the update
Write output/update.md, at most 400 words, with these sections in this order: Headline, Numbers, What
happened, Asks, Data notes. Rules:
- Every figure of 100 or more must be a value in numbers.csv or be printed in an input file. Write
  figures in full, such as 134,400. Never shorten a figure to a rounded form such as 134k. A gap or
  a sum you work out yourself is a new figure. It belongs in data_notes.md, not in update.md, unless
  it is one of the 15 figures. Before you finish, list every figure of 100 or more in update.md and
  confirm each one is in numbers.csv or an input file.
- Under What happened and Asks, use every event dated inside the reporting month and no event dated
  outside it or with no date. Put the event id in square brackets after each one, such as [E-07].
- Under Data notes, say in one or two sentences how many problems data_notes.md lists and which matter
  most. The count must equal the number of lines in data_notes.md.
- Add nothing that is not in the files. No forecast, no opinion on why a customer left beyond the reason logged.

## Done looks like
- numbers.csv has the 15 figures and mrr_start plus net_new_mrr equals mrr_end.
- Every event from the reporting month is cited by id in update.md.
- Every problem in the data has a line in data_notes.md.
input/cash.csv · 4 lines, 163 bytes
month,opening_cash,cash_in,cash_out,closing_cash
2026-09,2410000,171300,262900,2318400
2026-10,2318400,180200,271650,2226950
2026-11,2226950,189400,284100,2129750
input/events.md · 19 lines, 1 KB
# Events log, Fernhollow Scheduling

Kept by the founder's office. One line per event: id | date | what happened.

- E-01 | 2026-10-28 | Shipped the new scheduling calendar to all Team plan customers.
- E-02 | 2026-11-02 | Signed Brackenmoor Logistics on the Scale plan at 4,200 a month.
- E-03 | 2026-11-04 | Hired Imani Okafor as head of customer success. Headcount is now 19.
- E-04 | 2026-11-06 | Mossgiel Urgent Care added two clinics and moved to 10,200 a month.
- E-14 | 2026-10-30 | Closed the October books.
- E-05 | 2026-11-09 | Skerry Marine Supply cancelled. Reason given: they moved to a tool bundled with their accounting system.
- E-06 | 2026-11-10 | Released text message reminders. 31 customers turned it on in the first two weeks.
- E-07 | 2026-11-12 | Signed Yarrowdale Imaging on the Scale plan at 5,400 a month.
- E-08 | 2026-11-16 | A 3 hour outage on the booking page. The cause was an expired certificate. Credits of 1,150 were issued.
- E-09 | 2026-11-18 | Silverbeck Auto Repair cancelled. Reason given: the owner is closing the business.
- E-15 | | Renewed the office lease for 12 months.
- E-10 | 2026-11-20 | Ask: introductions to operations leaders at dental groups with more than one site.
- E-11 | 2026-11-24 | Ask: a referral for a part time finance lead, two days a week.
- E-12 | 2026-11-30 | Lead engineer Tomas Reyes gave notice. His last day is December 18.
- E-13 | 2026-12-01 | Started the staff rostering pilot with Everdene Senior Living.
input/last_update.md · 20 lines, 607 bytes
# Fernhollow Scheduling, investor update for October 2026

Sent 2026-11-05.

## Headline
A steady month. We ended October at 127,600 in monthly recurring revenue across 44 paying customers.

## Numbers
- Monthly recurring revenue at month end: 127,600
- Paying customers at month end: 44
- Cash at month end: 2,226,950
- Net burn for the month: 91,450

## What happened
- Shipped the new scheduling calendar to all Team plan customers.
- Two customers upgraded from Starter to Team.
- Closed the October books on the 30th.

## Asks
- Introductions to owners of home service companies with 20 or more staff.
input/mrr_by_customer.csv · 51 lines, 2 KB
customer_id,customer,plan,mrr_2026_10,mrr_2026_11
C-001,Brackenmoor Logistics,Scale,0,3800
C-002,Quillhaven Dental Group,Team,2400,2400
C-003,Osterley Vet Partners,Team,1800,1800
C-004,Fennimore Roofing,Starter,600,600
C-005,Castellan Home Care,Scale,6200,7400
C-006,Dunmarrow Plumbing,Starter,600,600
C-007,Pellwick Physio,Team,1800,1800
C-008,Thornbury Eye Clinic,Team,2400,2400
C-009,Marlowe and Finch Accounting,Scale,5400,5400
C-010,Harrowgate Landscaping,Starter,900,900
C-011,Vantry Pediatrics,Team,2400,3000
C-012,Silverbeck Auto Repair,Starter,600,0
C-013,Ellingham Law Office,Team,1800,1800
C-014,Northquay Storage,Scale,4800,4800
C-015,Redfern Orthodontics,Team,3000,3000
C-016,Calderbrook Electric,Starter,900,900
C-017,Halvorsen Dental Group,Team,2400,0
C-018,Wexcombe Pharmacy,Scale,7200,7200
C-019,Ashgrove Tutoring,Starter,600,600
C-020,Larkspur Family Medicine,Scale,8400,8400
C-021,Tidewell Pool Service,Starter,900,600
C-022,Morrowfield Cleaning Co,Team,1800,1800
C-023,Kestrelby Insurance Agency,Scale,5400,6600
C-024,Brightwater Chiropractic,Team,2400,2400
C-025,Oakhollow Pest Control,Starter,600,600
C-026,Stannard Heating and Air,Team,3000,3000
C-027,Wrenfield Animal Hospital,Scale,6200,6200
C-028,Corbin Vale Dermatology,Team,3000,
C-029,Pinemere Moving,Starter,900,900
C-030,Galloway Reed Architects,Team,1800,1800
C-023,Kestrelby Insurance Agency,Scale,5400,6600
C-031,Summerhouse Day Spa,Starter,600,600
C-032,Trellick Garage Doors,Starter,900,900
C-033,Everdene Senior Living,Scale,9600,9600
C-034,Hollin Creek Dental,Team,2400,1800
C-035,Parchment and Pine Print,Starter,600,600
C-036,Ravenscar Fitness,Team,1800,2400
C-037,Bellweather Optical,Team,2400,2400
C-038,Skerry Marine Supply,Scale,4800,0
C-039,Juniper Lane Counseling,Starter,900,900
C-040,Whitlow Property Management,Scale,7200,7200
C-041,Aldercroft Bakery Wholesale,Team,1800,1800
C-042,Mossgiel Urgent Care,Scale,8400,10200
C-043,Tarnbrook Fencing,Starter,600,600
C-044,Lindqvist Hearing Center,Team,3000,2400
C-045,Copperfield Daycare,Team,1800,1800
C-046,Yarrowdale Imaging,Scale,0,5400
C-047,Fablewood Flooring,Starter,0,900
C-048,Greywether Solar,Team,0,1800
C-049,Halvorson Dental Group,Team,0,2400
output/data_notes.md · written by the agent, 7 lines
1. mrr_by_customer.csv: C-023 (Kestrelby Insurance Agency) appears twice with the same values (5,400 and 6,600); it was counted once.
2. mrr_by_customer.csv: C-028 (Corbin Vale Dermatology) has a blank mrr_2026_11 cell (mrr_2026_10 is 3,000); the row is left out of every figure.
3. mrr_by_customer.csv: C-017 Halvorsen Dental Group and C-049 Halvorson Dental Group differ by one letter and may be one customer; they are kept as two ids.
4. cash.csv, 2026-11: opening 2,226,950 plus cash in 189,400 minus cash out 284,100 gives 2,132,250, but the printed closing is 2,129,750; the printed figure is used for cash_end.
5. last_update.md gives month end MRR of 127,600 for October, but mrr_start from the export is 124,000 (a gap of 3,600); it also gives 44 paying customers against 43 in customers_start.
6. events.md E-02 gives Brackenmoor Logistics (C-001) at 4,200 a month, but the export shows 3,800 in mrr_2026_11; the export figure is used.
7. events.md E-15 has no date.
output/numbers.csv · written by the agent, 16 lines
metric,value,how
mrr_start,124000,"mrr_by_customer.csv column mrr_2026_10 summed after cleaning (C-023 repeat counted once; C-028 blank left out)"
mrr_end,134400,"mrr_by_customer.csv column mrr_2026_11 summed after the same cleaning"
new_mrr,14300,"mrr_2026_11 of customers with 0 in mrr_2026_10 and above 0 in mrr_2026_11 (C-001 3800, C-046 5400, C-047 900, C-048 1800, C-049 2400)"
churned_mrr,7800,"mrr_2026_10 of customers above 0 in mrr_2026_10 and 0 in mrr_2026_11 (C-012 600, C-017 2400, C-038 4800)"
expansion_mrr,5400,"Sum of increases for customers paying in both months and paying more (C-005, C-011, C-023, C-036, C-042)"
contraction_mrr,1500,"Sum of decreases for customers paying in both months and paying less (C-021, C-034, C-044)"
net_new_mrr,10400,"new_mrr + expansion_mrr - contraction_mrr - churned_mrr; mrr_start + net_new_mrr = mrr_end"
mrr_growth_pct,8.4,"net_new_mrr / mrr_start * 100, one decimal"
customers_start,43,"mrr_by_customer.csv customers with mrr_2026_10 above 0 after cleaning"
customers_end,45,"mrr_by_customer.csv customers with mrr_2026_11 above 0 after cleaning"
customers_new,5,"Count of customers behind new_mrr"
customers_churned,3,"Count of customers behind churned_mrr"
cash_end,2129750,"cash.csv closing_cash for 2026-11 as printed"
net_burn,94700,"cash.csv 2026-11 cash_out 284100 minus cash_in 189400"
runway_months,23.0,"cash_end / average net burn (cash_out - cash_in) over 2026-09, 2026-10, 2026-11 = 92583.33, one decimal"
output/update.md · written by the agent, 29 lines
# Fernhollow Scheduling, investor update for November 2026

## Headline
MRR grew from 124,000 to 134,400, up 8.4% on the month, across 45 paying customers. Cash at month end is 2,129,750, which is 23.0 months of runway.

## Numbers
- MRR start: 124,000. MRR end: 134,400.
- New MRR: 14,300. Expansion: 5,400. Contraction: 1,500. Churned: 7,800.
- Net new MRR: 10,400 (8.4%).
- Customers: 43 at start, 45 at end; 5 new, 3 churned.
- Cash end: 2,129,750. Net burn: 94,700. Runway: 23.0 months.

## What happened
- Signed Brackenmoor Logistics on the Scale plan; the export shows 3,800 a month [E-02].
- Hired Imani Okafor as head of customer success. Headcount is now 19 [E-03].
- Mossgiel Urgent Care added two clinics and moved to 10,200 a month [E-04].
- Skerry Marine Supply cancelled. Reason given: they moved to a tool bundled with their accounting system [E-05].
- Released text message reminders. 31 customers turned it on in the first two weeks [E-06].
- Signed Yarrowdale Imaging on the Scale plan at 5,400 a month [E-07].
- A 3 hour outage on the booking page, caused by an expired certificate. Credits of 1,150 were issued [E-08].
- Silverbeck Auto Repair cancelled. Reason given: the owner is closing the business [E-09].
- Lead engineer Tomas Reyes gave notice. His last day is December 18 [E-12].

## Asks
- Introductions to operations leaders at dental groups with more than one site [E-10].
- A referral for a part time finance lead, two days a week [E-11].

## Data notes
data_notes.md lists 7 problems. The ones that matter most: the November closing cash does not agree with the cash movements in cash.csv, and the October MRR we reported last month does not match the export. One customer row (C-028) is left out of every figure for a blank cell.
check.py · the check, written before the run
"""Recomputes the 15 figures and the data problems from the input files and compares them with the update."""
import csv, difflib, 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)
def nums(text):
    out = set()
    for n in re.findall(r"\d[\d,]*(?:\.\d+)?", text):
        try: out.add(round(float(n.replace(",", "").rstrip(".")), 2))
        except ValueError: pass
    return out
def read(p):
    return (root/p).read_text() if (root/p).exists() else ""

# the right figures, from the input files
raw = list(csv.DictReader((root/"input/mrr_by_customer.csv").open()))
mcols = sorted(c for c in raw[0] if c.startswith("mrr_"))
pc, rc = mcols[0], mcols[-1]
seen, rows, repeated, blank = set(), [], [], []
for r in raw:
    key = tuple(r.values())
    if key in seen: repeated.append(r["customer_id"]); continue
    seen.add(key)
    if r[pc].strip() == "" or r[rc].strip() == "": blank.append(r["customer_id"]); continue
    rows.append((r["customer_id"], r["customer"], float(r[pc]), float(r[rc])))
cash = list(csv.DictReader((root/"input/cash.csv").open()))
burns = [float(c["cash_out"]) - float(c["cash_in"]) for c in cash]
want = {
    "mrr_start": sum(p for _, _, p, n in rows), "mrr_end": sum(n for _, _, p, n in rows),
    "new_mrr": sum(n for _, _, p, n in rows if p == 0 and n > 0),
    "churned_mrr": sum(p for _, _, p, n in rows if p > 0 and n == 0),
    "expansion_mrr": sum(n - p for _, _, p, n in rows if p > 0 and n > p),
    "contraction_mrr": sum(p - n for _, _, p, n in rows if n > 0 and n < p),
    "customers_start": sum(1 for _, _, p, n in rows if p > 0), "customers_end": sum(1 for _, _, p, n in rows if n > 0),
    "customers_new": sum(1 for _, _, p, n in rows if p == 0 and n > 0),
    "customers_churned": sum(1 for _, _, p, n in rows if p > 0 and n == 0),
    "cash_end": float(cash[-1]["closing_cash"]), "net_burn": burns[-1],
}
want["net_new_mrr"] = want["new_mrr"] + want["expansion_mrr"] - want["contraction_mrr"] - want["churned_mrr"]
want["mrr_growth_pct"] = round(want["net_new_mrr"] / want["mrr_start"] * 100, 1)
want["runway_months"] = round(want["cash_end"] / (sum(burns) / len(burns)), 1)

got = {}
if (root/"output/numbers.csv").exists():
    for r in csv.DictReader((root/"output/numbers.csv").open()):
        try: got[(r.get("metric") or "").strip()] = float(re.sub(r"[,$%\s]", "", r.get("value") or ""))
        except ValueError: pass
right = sum(1 for k, v in want.items() if k in got and abs(got[k] - v) < 0.051)
say(right == len(want), f"{right} of {len(want)} figures in numbers.csv equal the figure recomputed from the export and the cash file")

update = read("output/update.md")
inputs_text = "".join(p.read_text() for p in sorted((root/"input").rglob("*")) if p.is_file())
allowed = nums(inputs_text) | {round(v, 2) for v in got.values()}
body = re.sub(r"\b[CE]-\d+\b", " ", update)
FIG = r"(?<![\w.-])\d(?:[\d,]*\d)?(?:\.\d+)?(?![\w-])"
def figs(text): return [round(float(x.replace(",", "")), 2) for x in re.findall(FIG, text)]
figures = [n for n in figs(update) if (n >= 10 or n != int(n)) and n not in (2025, 2026, 2027)]
real = {round(v, 2) for v in got.values()}  # figures as a reader sees them: no customer ids, no parts of a date
for p in sorted((root/"input").rglob("*")):
    if p.suffix == ".csv":
        for row in csv.reader(p.open()):
            for cell in row: real |= set(figs(cell))
    elif p.is_file():
        real |= set(figs(p.read_text())) | {float(d) for d in re.findall(r"\d{4}-\d\d-(\d\d)", p.read_text())}
traced = [n for n in figures if n in allowed and (n >= 100 or n in real)]
say(len(figures) >= 5 and len(traced) == len(figures),
    f"{len(traced)} of {len(figures)} figures of 10 or more in update.md trace to numbers.csv or an input file")
head = [want["mrr_end"], want["net_new_mrr"], want["cash_end"]]
stated = sum(1 for h in head if round(h, 2) in nums(body))
say(stated == 3, f"update.md states month end MRR {want['mrr_end']:,.0f}, net new MRR {want['net_new_mrr']:,.0f} and cash {want['cash_end']:,.0f} ({stated} of 3)")

# events: inside the reporting month must be cited, outside or undated must not be
month = rc.replace("mrr_", "").replace("_", "-")
inside, outside, undated, events = [], [], [], {}
for ln in read("input/events.md").splitlines():
    m = re.match(r"-\s*(E-\d+)\s*\|\s*([\d-]*)\s*\|\s*(.+)", ln)
    if not m: continue
    events[m.group(1)] = m.group(3)
    (undated if not m.group(2) else inside if m.group(2).startswith(month) else outside).append(m.group(1))
cut = re.search(r"^\W*data notes\W*$", update, re.I | re.M)
story = update[:cut.start()] if cut else update
cited = set(re.findall(r"E-\d+", story))
have = sum(1 for e in inside if e in cited); wrong = [e for e in outside + undated if e in cited]
say(have == len(inside) and not wrong,
    f"{have} of {len(inside)} events dated in the month are cited in update.md and {len(wrong)} from outside the month")

# data problems, found again here from the input files
notes = read("output/data_notes.md"); nn = nums(notes); problems = []
for cid in repeated: problems.append((f"repeated row {cid}", cid in notes))
for cid in blank: problems.append((f"blank cell {cid}", cid in notes))
allrows = [(r["customer_id"], r["customer"]) for r in raw]
pairs = {(a[0], b[0]) for i, a in enumerate(allrows) for b in allrows[i+1:] if a[0] != b[0]
         and difflib.SequenceMatcher(None, a[1].lower(), b[1].lower()).ratio() >= 0.9}
for a, b in sorted(pairs): problems.append((f"look alike names {a} {b}", a in notes and b in notes))
prev = None
for c in cash:
    worked = float(c["opening_cash"]) + float(c["cash_in"]) - float(c["cash_out"])
    if abs(worked - float(c["closing_cash"])) > 0.005:
        problems.append((f"cash {c['month']}", round(worked, 2) in nn and round(float(c["closing_cash"]), 2) in nn))
    if prev is not None and abs(prev - float(c["opening_cash"])) > 0.005:
        problems.append((f"opening {c['month']}", round(prev, 2) in nn and round(float(c["opening_cash"]), 2) in nn))
    prev = float(c["closing_cash"])
last = re.search(r"at month end:\s*([\d,]+)", read("input/last_update.md"))
if last and float(last.group(1).replace(",", "")) != want["mrr_start"]:
    problems.append(("last update", float(last.group(1).replace(",", "")) in nn and want["mrr_start"] in nn))
for eid, text in events.items():
    m = re.search(r"(?:at|to) ([\d,]+) a month", text)
    for cid, name, p, n in rows:
        if m and name in text and float(m.group(1).replace(",", "")) != n:
            problems.append((f"event {eid}", eid in notes and float(m.group(1).replace(",", "")) in nn and n in nn))
for eid in undated: problems.append((f"undated {eid}", eid in notes))
printed = set()  # input figures read cell by cell, so two csv cells side by side stay two figures
for p in sorted((root/"input").rglob("*")):
    if p.suffix == ".csv":
        for row in csv.reader(p.open()):
            for cell in row: printed |= nums(cell)
    elif p.is_file(): printed |= nums(p.read_text())
money = sorted(n for n in printed if n >= 100)
gaps = {round(abs(a - b), 2) for a in money for b in money}
closings = {round(float(c["opening_cash"]) + float(c["cash_in"]) - float(c["cash_out"]), 2) for c in cash}
note_figs = [n for n in figs(notes) if n >= 10 or n != int(n)]
note_ok = sum(1 for n in note_figs if (n in printed and (n >= 100 or n in real)) or n in {round(v, 2) for v in got.values()} or n in closings or (n >= 100 and n in gaps))
say(len(note_figs) >= 5 and note_ok == len(note_figs),
    f"{note_ok} of {len(note_figs)} figures in data_notes.md are printed in an input file or numbers.csv, or are a closing balance or a gap worked out again here")
found = sum(1 for _, hit in problems if hit)
say(found == len(problems) and problems, f"{found} of {len(problems)} problems in the data are named in data_notes.md with their ids and numbers")
words = len(update.split())
say(0 < words <= 400, f"update.md is {words} words, inside the 400 word limit")
sys.exit(0 if ok else 1)

cash.csv: sample data written by Atris. Fingerprint 2ff2a769a7c3.

events.md: sample data written by Atris. Fingerprint 32812eba0517.

last_update.md: sample data written by Atris. Fingerprint 3c9cc3519af6.

mrr_by_customer.csv: sample data written by Atris. Fingerprint 63d41916a10e.

data_notes.md: written by the agent. Fingerprint 2605664e3036.

numbers.csv: written by the agent. Fingerprint 351a80e2cbc7.

update.md: written by the agent. Fingerprint 848177160a04.


More the founder's office work, and every other desk job

For agentsGitHub
What is AtrisBlogApp StorePricingPrivacyTerms