# Agency Operator Kit, free sample: the operator ledger and a five-check starter

Free. By PaperChaseWebb Inc., 2026-11-03. Python 3.8 or newer, standard library only.

If your agents decide, adopt, build and deliver things for your agency, this sample gives you the one habit that makes it all traceable: a single ledger where every item points at its evidence and carries a person's name before it goes live. It includes the operating loop table from the full kit, a ten-column starter ledger and a read-only checker with five of the full desk's checks, tested.

## The operating loop

| Item | Kind | Evidence | Result that allows approved or live |
|---|---|---|---|
| a price, offer, hire, partner, contract, or any spend at or over your line | decision | a ratified verdict | RATIFIED |
| a skill, plugin, MCP server or repo | tool | a trial record | ADOPT, or ADOPT WITH LIMITS |
| a new agent project | project | a saved scaffold check | SCAFFOLD OK |
| a comment-to-DM keyword | delivery | a clean register | REGISTER CLEAN |

Your agent may draft every column except approved_by and approved_on. You type those.

## The five checks

| Check | What it catches |
|---|---|
| M1 | approved or live with no approver or no date |
| M2 | an agent named as the approver |
| M3 | approved or live without the result its kind requires |
| M4 | a spend at or over the council line (default $1,000) with no ratified decision behind it |
| M5 | approved before the evidence existed |

~~~sh
python3 operator_mini.py ledger.csv
python3 test_mini.py
~~~

Both were run on 2026-11-03 on Linux: the example prints `ledger OK: 0 findings` and all 6 tests pass (the clean example, then each of the five faults planted alone). The tests expect operator_mini.py in a folder named mini/ next to tests/, as below.

File: mini/operator_mini.py

~~~python
#!/usr/bin/env python3
"""operator_mini.py: five read-only checks on a small operator ledger (free sample).

Usage: python3 operator_mini.py ledger.csv [--council-over 1000]
Columns: id, kind, title, status, spend_usd, council_ref, evidence_result, evidence_on, approved_by, approved_on
Exit 0 = clean, 1 = findings, 2 = the file could not be read. Standard library only, writes nothing.
"""
import csv, re, sys

NEED = {"decision": "RATIFIED", "tool": "ADOPT", "project": "SCAFFOLD OK", "delivery": "REGISTER CLEAN"}
AGENT = re.compile(r"\b(grok|claude|codex|hermes|gpt|chatgpt|gemini|agent|bot|assistant|ai|copilot|cursor)\b", re.I)
RULES = {
 "M1": "approved or live with no approver or no date",
 "M2": "an agent is named as the approver",
 "M3": "approved or live without the result its part requires",
 "M4": "spend at or over the council line with no ratified decision behind it",
 "M5": "approved before the evidence existed",
}


def check(rows, over=1000.0):
    out, by = [], {r.get("id", ""): r for r in rows}
    for r in rows:
        r = {k: (v or "").strip() for k, v in r.items() if k}
        i, active = r.get("id", "?"), r.get("status") in ("approved", "live")
        res = r.get("evidence_result", "").upper()
        if active and not (r.get("approved_by") and r.get("approved_on")): out.append(("M1", i))
        if AGENT.search(r.get("approved_by", "")): out.append(("M2", i))
        need = NEED.get(r.get("kind"), "?")
        if active and not (res == need or (need == "ADOPT" and res == "ADOPT WITH LIMITS")): out.append(("M3", i))
        try: spend = float(r.get("spend_usd") or 0)
        except ValueError: spend = 0.0
        ref = by.get(r.get("council_ref", ""), {})
        if active and r.get("kind") != "decision" and spend >= over and not (ref.get("kind") == "decision" and (ref.get("evidence_result") or "").upper() == "RATIFIED"):
            out.append(("M4", i))
        if active and r.get("approved_on") and r.get("approved_on") < (r.get("evidence_on") or "9999"): out.append(("M5", i))
    return out


def main(a):
    if not a or a[0].startswith("-"): print(__doc__); return 2
    over = float(a[a.index("--council-over") + 1]) if "--council-over" in a else 1000.0
    try:
        with open(a[0], newline="", encoding="utf-8") as f: rows = list(csv.DictReader(f))
    except OSError as e:
        print("could not read:", e); return 2
    F = check(rows, over)
    for c, i in F: print("%s %s: %s" % (c, i, RULES[c]))
    print("%d findings" % len(F) if F else "ledger OK: 0 findings")
    return 1 if F else 0


if __name__ == "__main__":
    sys.exit(main(sys.argv[1:]))
~~~

File: mini/ledger.csv

~~~text
id,kind,title,status,spend_usd,council_ref,evidence_result,evidence_on,approved_by,approved_on
D-01,decision,Raise the retainer floor,approved,0,,RATIFIED,2026-10-27,Iris Calder,2026-10-27
T-01,tool,Transcript cleanup skill,live,0,,ADOPT WITH LIMITS,2026-10-29,Iris Calder,2026-10-29
T-02,tool,Editing suite plugin,live,1200,D-01,ADOPT,2026-11-03,Iris Calder,2026-11-04
V-01,delivery,Comment GUIDE on the pricing post,live,0,,REGISTER CLEAN,2026-11-04,Iris Calder,2026-11-04
P-01,project,Client onboarding desk,open,0,,,,,
~~~

File: tests/test_mini.py

~~~python
#!/usr/bin/env python3
"""Tests for the free sample's operator_mini.py: the example is clean, and each of five faults is caught alone."""
import csv, io, os, sys, unittest
H = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.join(H, "mini"))
import operator_mini as om


def base():
    with open(os.path.join(H, "mini", "ledger.csv"), newline="", encoding="utf-8") as f:
        return list(csv.DictReader(f))


class Mini(unittest.TestCase):
    def codes(self, rows): return sorted({c for c, _ in om.check(rows)})
    def plant(self, rid, **kw):
        rows = base()
        for r in rows:
            if r["id"] == rid: r.update(kw)
        return self.codes(rows)
    def test_clean(self): self.assertEqual(self.codes(base()), [])
    def test_M1(self): self.assertEqual(self.plant("V-01", approved_on=""), ["M1"])
    def test_M2(self): self.assertEqual(self.plant("V-01", approved_by="Hermes"), ["M2"])
    def test_M3(self): self.assertEqual(self.plant("T-01", evidence_result="HOLD"), ["M3"])
    def test_M4(self): self.assertEqual(self.plant("T-02", council_ref=""), ["M4"])
    def test_M5(self): self.assertEqual(self.plant("T-02", approved_on="2026-11-01"), ["M5"])


if __name__ == "__main__":
    unittest.main(verbosity=1)
~~~

## For Grok Bot, Claude Code, Codex and Hermes

Paste this into your standing order or AGENTS.md:

~~~text
Keep ops/ledger.csv. Every decision, tool, project and comment keyword gets a row with the evidence its process produced, copied exactly. Leave approved_by and approved_on empty for the owner. Run python3 mini/operator_mini.py ops/ledger.csv before saying anything is done. Never spend, send, publish, post or install anything for real.
~~~

## What the full kit adds

The Agency Operator Kit ($99) bundles the four packs that produce this evidence (Decision Council, Pinned Trial Method, Comment to DM Delivery and Agent Project Scaffold, $111 separately) with the full Operator Desk: eighteen checks that open each evidence file and confirm it, catch an edited verdict by its hash, a trial that changed its target folder and a stale project check, plus a weekly sign-off only you can run at your own terminal, 35 tests and agent files for all four harnesses.

If you would rather have the loop run with you, Managed Ops starts at $5,000/mo with $2,500 onboarding and a 3-month minimum. Book a call on the paperchasewebb.ai homepage. Every price is a starting price.

Grok Bot, Claude Code, Codex and Hermes belong to their owners. Not endorsed by any of them.
