# Scoring rubric: the capstone pack

For participants in the capstone (Chapter 13) and for the people who score
it. Read it before you begin. It says what earns full, partial and no
credit for each of the nine artifacts you hand in, and nothing about what
the materials hide. Your materials are `data/capstone/brief/`. Score each
2 (full), 1 (partial) or 0 (none), so a solution scores up to 18.

Assessors also use a key, `answers/capstone/assessor-key.md`, with what
this rubric leaves out. Do not open it, the rest of `answers/capstone/` or
`data/capstone/generate.py` (which writes the brief) until your work is
scored.

## How a solution is scored

- **What the files show.** Score what the files show, not what their author
  meant. A figure counts only if the script printed it or a run folder
  holds it.
- **Credit follows the criteria.** A solution that differs from the
  reference solution earns full credit when it meets the criteria below:
  another split of the same rows, other file or section names, the inputs
  passed as one flag or several, other checks that prove the same things.
  The assessor compares with the reference only the figures: each
  program's qualifying purchases and rebate, and the true-up.
- **The materials carry thirteen planted mistakes**, the kind a preparer
  meets in a real cycle. Each has one treatment the brief supports; you
  are not told what they are. A mistake is handled when the script applies
  a stated rule the brief supports, or, where no rule in the brief places a
  value, when the value is left out and put as a question to the person
  who can answer it, with what including it would change. The assessor
  marks each one handled or sprung (mishandled); sprung mistakes cost the
  script marks (artifact 5).
- **Never edit an export.** Editing a system export to make a problem go
  away handles nothing, because the next cycle's export brings the problem
  back. A hand-kept file you adopt as a fixed input may be corrected when
  each change is recorded with its source in the brief.

## The nine artifacts

### 1. Process screen

The problem screen and its baseline block (Appendix C).

- **2.** Names the process, its deliverable and who signs it, its
  frequency, the preparer, the reviewer and every consumer the materials
  name. Lists every input the process uses each cycle with its grain and
  its source system or keeper, hand-kept files and the ledger extract
  included. Answers "Fixed inputs" from the files: each input that is not
  fit to be a fixed input is named, with its fix (one of Section 2.6's or
  another stated one) and whether the fix is yours to make.
  Failure modes come from the materials, each traceable to the file, memo
  or message that shows it. Baseline cells that no file records say
  "record"; none is invented.
- **1.** The screen is filled, but "Fixed inputs" passes an input the
  materials show is not fit, or the failure modes are generic ("errors",
  "manual work"), or an input is missing from the list.
- **0.** Missing, a different process, or a baseline with invented figures.

### 2. Work map

- **2.** One row per action, from the preparer's notes, last quarter's memo
  and the email, each with input, output and the preparer's decision rule
  in his words where he states one. A sentence that holds two kinds of work
  becomes two rows or more. His judgment calls are rows of their own,
  marked judgment, with his words quoted. The map records the checks he
  runs, or that he runs none; the checks he lacks arrive on the sort sheet
  as added rows.
- **1.** The preparer's numbered steps copied with no decision rules, or
  the judgment rows missing, or a row that holds two kinds of work left
  whole.
- **0.** Missing.

### 3. Sort sheet

- **2.** Every row of the work map has one kind (compute, judgment, house
  rules, proof), split rows lettered, and names the file that does the
  work. Every rule the preparer can state is compute and lives in the
  script, and so does any rule the data needs that he never wrote down.
  Finding a value no rule places is compute; deciding to ask about it is
  judgment, in the leaf. The voice and the source trace are house rules in
  the pack's shared layer; the deliverable's number format and sign words
  are house rules in the leaf or the script. Proof rows name checks: at
  least one identity that ties two inputs from different systems or
  keepers, and the rows the method adds (provenance, binding, the contract
  check).
- **1.** Any number, classification or tier left to the model, or no proof
  row beyond the script's own arithmetic.
- **0.** Missing.

### 4. Skill file

The leaf's `SKILL.md` and the router.

- **2.** `python3 tools/validate_pack.py <your pack>` exits 0. The
  description lists the requests that trigger it and says what it is not
  for, including the month-end accrual review, its nearest neighbour. Step
  1 is a gate on the input headers; the command names the script from
  `<pack root>/`; exit 2 and exit 3 stop the work. The leaf says what the
  script decides and what the model may not do: derive or change a figure,
  a classification, a tier or the entry, or name a cause the data does not
  show. The router has the routing table and the rules section.
- **1.** Validates, but the model does arithmetic or classification, or the
  description would also fire on an accrual review, or a stop rule is
  missing.
- **0.** Does not validate.

### 5. Script

- **2.** Follows the scripting standard (Appendix A): named flags with
  stated defaults, exit codes 0, 2 and 3, Decimal money, JSON keys in
  order, every display leaf a string, the input block for every input.
  Reads every input layout the brief holds by its header and refuses any
  other with exit 2. Every irregularity in the inputs is handled by a
  stated rule the brief supports, in the script or in a corrected input
  that records its source; a value no rule places is left out and reported
  with what including it would change. Checks at least one identity across
  inputs. The assessor finds no planted mistake sprung: the figures are
  right program by program.
- **1.** Follows the standard and runs, but one to three planted mistakes
  are sprung, or there is no identity across inputs.
- **0.** The model computes the figures, more than three planted mistakes
  are sprung, or the script checks no identity.

### 6. Output contract

The `Output contract` section and the contract worksheet.

- **2.** Fixed sections in a fixed order, each with a rule a program can
  check: a sentence count with the display strings it must hold, tables
  whose rows come from display lists, bounded bullet lists. The journal
  entry is a table. Each question names a person who can answer it and
  what changes if the answer is yes. Data notes name every input. The
  worksheet maps every slot to a display key with its golden string, marks
  which check reads it, and marks what only the reviewer can see. The
  contract says what the model contributes and what it must not do.
- **1.** Sections fixed but slots unmapped, or the entry or the questions
  left free in shape, or a data note missing.
- **0.** Missing, or a template with no rules.

### 7. Test case and checks

- **2.** A case per spec 6.3.1: the prompt in business words naming the
  inputs and never the skill; inputs, artifacts, reads and checks in order.
  An out-of-scope case, ideally the accrual review. `checks.py` carries the
  generic core byte for byte and a `SKILLS` entry: an identity that
  recomputes from the result, another from the raw files that neither
  calls the script nor reads its figures, the contract spec, binding
  records for every record a figure in the deliverable belongs to, and a
  header contract for every input layout. A check of the leaf's own point,
  such as one that the memo asks about exactly the values the script could
  not place. The golden file is the script's output; the good fixture
  passes, and each check is shown failing on a planted defect.
- **1.** The case and checks run, but the source-side identity calls the
  script or takes its figures from the result instead of the raw files, or
  there is no out-of-scope case, or no defect test.
- **0.** Missing or does not run.

### 8. Test run

- **2.** The repository-side run (the pack's tests, and `checks.py` by hand
  on a folder) and a host run with the runner, the run folder cited and the
  verdict copied as recorded. Every failed run gets a disposition, real or
  a test-kit false alarm, with the re-check beside the recorded verdict.
- **1.** Only the repository-side run, or a host run whose failures are not
  dispositioned.
- **0.** A pass claimed without a run folder.

### 9. Release decision

- **2.** Two decisions, kept apart. The pack version: released when the
  sign-off grid names a run folder in which every check passed on the
  models the plan requires; otherwise held, with the failing check named.
  The memo: released after the release gate exits 0 on its run folder and
  the reviewer signs, with every open question carried and its effect
  stated. One model family is "passed on this configuration", never
  portable.
- **1.** One decision only, or the memo released with an open question
  unstated.
- **0.** A decision with no run folder behind it, a release on a failed
  check, or a release on a re-checked verdict alone.

## Bands

Add the nine scores. Artifact 8 needs a host run for full credit and
artifact 9 scores nothing without a run folder, so a solution that has not
run on a host scores at most 15.

| Score | What the score shows |
| --- | --- |
| 16 to 18 | The method carried through on this brief: a pack whose checks ran on a host, whose failed runs are dispositioned and whose two release decisions rest on that record. It shows nothing about hosts or models the sign-off grid does not name. If a planted mistake is sprung, a figure is wrong, and the memo waits until the script is fixed and the cases run again. |
| 10 to 15 | A working pack with gaps; the artifacts below full name them. A pack complete in files that has not run on a host scores 15 at most and lands here; its next step is the host run and the two decisions. |
| 0 to 9 | Not yet a skill: several artifacts missing or partial, most often because the sort sheet left figures, classifications or tiers to the model. Start again from the sort sheet. |
