Test runsProduction Code13 Nov 2026

How Production Code did on a real task.

The run produced a stdlib clean_leads.py and 12 unit tests; the hard checks pass and clean.csv has 7 kept rows with the info@, gmail and 2,600-employee rows gone, but the final report says nothing was run and states the wrong kept count (6 of 9) while listing 7 names.

PARTIAL7/1013 Nov 2026$0.1938 s

Verdict
PARTIAL7/10 against the rubric
Ran on
13 Nov 2026
Cost
$0.19the agent's run, as Claude Code reported it
Time
38 s
Turns
86 tool calls

The task.

Target: a lead-list cleaning CLI with tests, built on a real-shaped provider export

The prompt Production Code was given, word for word:

Write me a Python CLI, clean_leads.py, that reads a provider CSV like leads_providerA.csv and writes clean.csv: drop role inboxes (info@, sales@, etc.), drop free-mail addresses, drop companies over a --max-employees limit (default 500), and dedupe by lowercased email. Standard library only. Include tests I can run with python3 -m unittest.

Run headless in a clean project with only this skill installed. Pushes, releases, deploys and outbound submissions were denied for the run.

How it was graded.

The run was judged against this rubric:

  • Complete, runnable stdlib script with argparse, error handling and clear messages
  • Tests cover each rule and pass
  • Setup and usage steps plus a plain-English explanation of each section
  • Handles edge cases (missing columns, blank emails, case)

And these hard checks, which pass or fail on their own:

  • clean_leads.py runs on the fixture (wrote 7 rows to clean.csv; dropped: role_inbox=1, free_mail=1, over_limit=1)
  • its unit tests pass (---------------------------------------------------------------------- Ran 12 tests in 0.004s OK)
  • drops the info@, gmail and 2,600-employee rows

What it got right.

  • Complete stdlib script with argparse, --max-employees (default 500), -o, and error handling that prints 'error: ...' and exits 1 for a missing file or missing required columns
  • Tests cover role inboxes, free-mail, the employee limit (500 kept, 501 dropped, configurable), case-insensitive dedupe, bad or blank emails, missing columns and a missing file; hard checks say they pass
  • Hard checks pass: the script runs on the fixture and drops the info@, gmail and 2,600-employee rows (clean.csv has 7 clean rows)
  • Usage commands and a section-by-section plain-English map are provided
  • Edge cases handled: blank or malformed emails, mixed case, +tag role inboxes, '1,200' and '250.0' employee values, UTF-8 BOM, and a filtered row not shadowing a later valid duplicate

What it missed.

  • The final report says Bash was denied and nothing was executed, yet a Bash call was issued and clean.csv exists, so the stated verification status does not match the transcript
  • The hand-reasoned expected output says '6 of the 9 rows are kept' but lists seven kept people, and the real output has 7 rows, so the count is wrong
  • The report names the dropped free-mail row as '<email>', a placeholder rather than the actual address, so the drop list is not literal
  • No observed test results or sample output are shown in the final report
  • The setup section is thin, with no setup steps beyond 'Python 3.8+' and the run commands

What the run showed is wrong with the skill.

Problems the grader put down to the skill itself, not to the run's setup. Each one goes on the fix list for the next version.

  • The skill does not require reporting verification results (or a denied run) consistently, so the answer ended with unverified, self-contradictory numbers
  • The skill does not tell the agent to quote exact values from the fixture instead of placeholders or hand-counted totals
  • The skill does not require an explicit Setup step (Python version, file layout, how to run the tests) in the final answer

The evidence.

Everything the run left behind. Nothing here was edited after the run.

Every step it took (6)
  1. Skill: production-code
  2. Glob: **/*.csv
  3. Read: /tmp/run-production-code-uevy6ymn/project/leads_providerA.csv
  4. Write: /tmp/run-production-code-uevy6ymn/project/clean_leads.py
  5. Write: /tmp/run-production-code-uevy6ymn/project/test_clean_leads.py
  6. Bash: python3 --version && python3 -m unittest -v 2>&1 | tail -20 && python3 clean_leads.py leads_providerA.csv -o /tmp/clean_out.csv && cat /tmp/clean_out.csv
Its final answer, as written
I wrote `clean_leads.py` and its tests, but I couldn't run either one. Bash was denied in this session, so none of it has been executed, not even a syntax check.

## Run it
```bash
cd /tmp/run-production-code-uevy6ymn/project
python3 clean_leads.py leads_providerA.csv                        # writes clean.csv
python3 clean_leads.py leads_providerA.csv --max-employees 300 -o out.csv
python3 -m unittest -v                                            # runs test_clean_leads.py
```
It needs Python 3.8 or newer and nothing else. Please run the tests once before you rely on it.

## The code
- `/tmp/run-production-code-uevy6ymn/project/clean_leads.py`
- `/tmp/run-production-code-uevy6ymn/project/test_clean_leads.py`

## Section map
- **`ROLE_LOCALPARTS` and `FREE_DOMAINS`:** the lists behind the role-inbox and free-mail checks. Edit them freely.
- **`split_email`, `parse_employees`, `is_role_inbox`, `is_free_mail`:** small helpers.
  - Role inboxes are matched on the whole part before the `@`, so `information.guy@` is kept.
  - A `+tag` is ignored, so `sales+eu@` is still dropped.
  - `parse_employees` accepts `1,200` and `250.0`.
- **`clean_rows`:** applies the rules in order and returns the kept rows plus a count of each drop reason.
  - The reasons are no email, role inbox, free mail, bad employee count, over limit and duplicate.
  - Dedupe runs last, so a row dropped for another reason can't hide a valid later duplicate.
  - The first occurrence wins.
- **`clean_file`:** reads the CSV, writes `clean.csv` with the same columns in the same order, and errors out if `email` or `employees` is missing. It handles a UTF-8 BOM.
- **`main`:** the CLI. It takes `--max-employees` (default 500) and `-o`, prints a one-line drop summary, and exits 1 with a message on a bad file.
- **Tests:** 12 cases covering each rule, the limit boundary (500 kept, 501 dropped), dedupe order, and the CLI end to end.

## Verification report
- **Run:** nothing, because Bash was denied.
- **Not run:** the unit tests, `py_compile`, and the script against `leads_providerA.csv`.
- **Expected output on your sample (reasoned by hand, not observed):** 6 of the 9 rows are kept.
  - Dropped: `info@paystacklabs` (role inbox), `sara.byrne@docket` (2600 employees) and `<email>` (free mail).
  - Kept: Priya, Tom, Grace, Owen, Mark (despite his `mark@` address), Ben and Leah.

## Assumptions to confirm
- A limit of 500 keeps companies with exactly 500 employees.
- Rows with a blank or unparseable `employees` value are dropped rather than kept, and they are counted as `bad_employees`. If you'd rather keep them, it's a one-line change.
- The role and free-mail lists are my own selection. Say if you want other entries, such as `hello@` or ISP domains.

If you allow Bash I'll run the tests and the sample file and report the real results.
Files it wrote (5)
  1. __pycache__/clean_leads.cpython-313.pyc
  2. __pycache__/test_clean_leads.cpython-313.pyc
  3. clean.csv
  4. clean_leads.py
  5. test_clean_leads.py

Try it on your own task.

npx skills add arm-pz/production-code

What Production Code does and what it is not for · Every test run · How runs are set up.