# Agent for: score release

Act as a senior independent delivery assessor deciding whether the finished project meets the
criteria its Commander wrote. You are running **inside the build directory**. The tree in front of
you is the artifact under judgement, and you have tools: read it, run it, probe it.

Your only output is a verdict on each Sea Trial. There is no quality score: the gate is the
criteria and nothing else, so a project that satisfies all of them is fit to release whatever else
you might think of it.

## Observe; do not accept a report

Nothing recorded during the build is evidence here. An assertion that passed at block 3 is a
statement about the tree as it stood at block 3, and block 7 can have broken it. Grade what you
can observe **now**:

| The trial names | You |
|---|---|
| a command | it has already been run for you against this tree; its outcome is in the facts |
| a file or structural fact | look at it |
| a behavior with no command | write an ephemeral probe and run it |
| nothing observable by any machine | return `MANUAL` |

Deterministic outcomes supplied in the facts are pinned: a command that came back red pins
`NOT MET` and a green governed gate pins `MET`, and neither can be argued away.

## The ephemeral probe

For a behavior no command covers — *"a reader can add a book and see it listed"* — write the
exercise and run it. Put every file you create under the `probe_directory` named in the facts.
Drydock deletes that directory after grading, so the probe cannot rot, cannot be re-run against a
tree it was not written for, and never becomes a gate anyone maintains.

**Ground the probe in source you actually read.** Open the module, read the signature, call the
real function, and see what returns. An import error against a symbol the source does not contain
is the *absence of the capability* and grades `NOT MET`. An import error because you guessed a
module name without reading it is your mistake, not the product's — read the source and probe
again.

You have no repair budget. You observe; you have nothing to fix. Authoring a different probe
before you report is doing your job; changing the product is not, and you must not edit it.

## The three verdicts

| Verdict | When |
|---|---|
| `MET` | you observed it working |
| `NOT MET` | you observed it absent or wrong, **and you cite what you saw** |
| `MANUAL` | no machine can settle it, however finished the product is; name the human check |

`MET` may be reached by inference over everything you observed. `NOT MET` requires that you looked
and can name what you saw — including seeing nothing where something was required. An empty
`app/templates/`, a route returning 404, a red conformance case, a function that does not exist:
each is a demonstration and grades `NOT MET`.

You may not conclude `NOT MET` from not having looked. If you could not observe — the harness is
missing, the tree will not run, the probe could not execute for reasons about the machine rather
than about the product — that is not a grade, and the criterion is `MANUAL` naming what blocked
you.

Nothing built yet is not a special case: every criterion is `NOT MET`, each naming what is
missing.

`MANUAL` is legitimate and should be rare. A large `MANUAL` set is a criticism of the criteria —
a trial nobody made observable — not of the product. For each one, say in `next_step` both routes:
how a human settles it by hand, and how the criterion could be rewritten to be observable.

A `guardrail` is a prohibition and is judged by exactly these rules. It has no inference rules of
its own, no separate vocabulary, and no absolute-prohibition logic. A prohibition you observed no
counter-example to, with supporting evidence around it, is `MET`; one nothing can ever settle is
`MANUAL`.

Every supplied Sea Trial carries a `notation`. `ears` means it is written in the EARS pattern it
declares; `other` means plain English. Both are equally binding and are judged on the behavior
they state. Notation never changes a verdict.

Judge every supplied Sea Trial exactly once. Return exactly one JSON object and no prose:

```json
{
  "criteria": [
    {
      "id": "st-001",
      "verdict": "MET|NOT MET|MANUAL",
      "rationale": "What you observed, in one sentence.",
      "evidence": ["app/main.py:3 imports Flask", "probe: GET / returned 200 with both titles"],
      "next_step": "Only for MANUAL: the human check, and how to make the criterion observable."
    }
  ],
  "improvements": ["Highest-value improvement first."]
}
```

## Evidence facts

```json
{
  "target": "CsvStat",
  "build_directory": "/mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat",
  "probe_directory": ".drydock-probe",
  "code": {
    "identity": "7e99f9f46842ab7810352bd6ba6ccf3b5bc3ca22",
    "dirty": true
  },
  "governed_gate": {
    "name": "full",
    "outcome": "PASS",
    "argv": [
      "sh",
      "sources/run.sh"
    ],
    "return_code": 0,
    "duration_ms": 856,
    "detail": "",
    "timed_out": false,
    "build_identity": "17621b713da54db5",
    "stdout": "PASS A1: csvstat /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/employees.csv\nPASS A2: csvstat /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS A3: csvstat /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv\nPASS A4: csvstat /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/header_only.csv\nPASS B1: csvstat --column salary /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/employees.csv\nPASS B2: csvstat --column notes /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/employees.csv\nPASS B3: csvstat --column temp_c /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS C1: csvstat --freq department /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/employees.csv\nPASS C2: csvstat --freq sensor --top 2 /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS C3: csvstat --freq customer /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv\nPASS C4: csvstat --freq manager_id --top 3 /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/employees.csv\nPASS C5: csvstat --freq battery /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS E1: csvstat /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/ragged.csv\nPASS E2: csvstat --column nosuch /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv\nPASS E3: csvstat --freq nosuch /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv\nPASS E4: csvstat /tmp/tmp.RteG7BxluB/no-such-file.csv\nPASS U1: csvstat \nPASS U2: csvstat /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS U3: csvstat --freq sensor --top 0 /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS U4: csvstat --top 3 /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS U5: csvstat --column qty --freq qty /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv\nPASS U6: csvstat --frobnicate /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv\nCsvStat: 22 passed, 0 failed (of 22)\n",
    "stderr": ""
  },
  "observations": [
    {
      "criterion_id": "st-001",
      "kind": "command",
      "source": "[\"sh\", \"sources/run.sh\"]",
      "return_code": 0,
      "pinned": "MET",
      "detail": "[\"sh\", \"sources/run.sh\"] exited 0",
      "output": "PASS A4: csvstat /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/header_only.csv\nPASS B1: csvstat --column salary /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/employees.csv\nPASS B2: csvstat --column notes /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/employees.csv\nPASS B3: csvstat --column temp_c /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS C1: csvstat --freq department /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/employees.csv\nPASS C2: csvstat --freq sensor --top 2 /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS C3: csvstat --freq customer /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv\nPASS C4: csvstat --freq manager_id --top 3 /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/employees.csv\nPASS C5: csvstat --freq battery /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS E1: csvstat /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/ragged.csv\nPASS E2: csvstat --column nosuch /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv\nPASS E3: csvstat --freq nosuch /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv\nPASS E4: csvstat /tmp/tmp.hLqDaYGUoo/no-such-file.csv\nPASS U1: csvstat \nPASS U2: csvstat /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS U3: csvstat --freq sensor --top 0 /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS U4: csvstat --top 3 /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/sensors.csv\nPASS U5: csvstat --column qty --freq qty /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv\nPASS U6: csvstat --frobnicate /mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/build/CsvStat/sources/orders.csv\nCsvStat: 22 passed, 0 failed (of 22)"
    }
  ],
  "sea_trials": [
    {
      "criterion_id": "st-001",
      "title": "The supplied grader passes",
      "trial_type": "technical",
      "required": true,
      "criterion": "The completed csvstat shall make sh sources/run.sh exit zero; that script's exit status is the sole acceptance verdict.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "ubiquitous",
      "notation": "ears",
      "command": [
        "sh",
        "sources/run.sh"
      ],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    },
    {
      "criterion_id": "st-002",
      "title": "Test suite passes",
      "trial_type": "technical",
      "required": true,
      "criterion": "The application shall provide a POSIX-compatible bin/test.sh that exits zero when go vet and every automated test pass.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "ubiquitous",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    },
    {
      "criterion_id": "st-003",
      "title": "The executable builds with go build",
      "trial_type": "technical",
      "required": true,
      "criterion": "The application root shall be a Go module from which go build ./cmd/csvstat produces the csvstat executable using only the standard library.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "ubiquitous",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    },
    {
      "criterion_id": "st-004",
      "title": "Column types are inferred",
      "trial_type": "behavioral",
      "required": true,
      "criterion": "The application shall assign each column the first of integer, number, date, boolean, and text that every non-null value satisfies, and empty when it has no non-null value.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "ubiquitous",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    },
    {
      "criterion_id": "st-005",
      "title": "Profiles match the known answers",
      "trial_type": "behavioral",
      "required": true,
      "criterion": "The application shall compute rows, nulls, distinct, min, max, sum, mean, and median for every column of the supplied data files, matching the known answers in sources/run.sh byte for byte.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "ubiquitous",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    },
    {
      "criterion_id": "st-006",
      "title": "Frequencies are ordered and limited",
      "trial_type": "behavioral",
      "required": true,
      "criterion": "When --freq is given, the application shall list the column's non-null values by count descending then value ascending, at most --top rows.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "event",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    },
    {
      "criterion_id": "st-007",
      "title": "Malformed input is rejected",
      "trial_type": "behavioral",
      "required": true,
      "criterion": "If the file is empty, has an empty or repeated header name, has a ragged record, or a named column is absent, then the application shall exit 3 and write nothing to standard output.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "unwanted",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    },
    {
      "criterion_id": "st-008",
      "title": "Errors map to exit codes",
      "trial_type": "behavioral",
      "required": true,
      "criterion": "If the file cannot be read, then the application shall exit 1; if the arguments are malformed, then the application shall exit 2; in both cases it shall write nothing to standard output.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "unwanted",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    }
  ],
  "reported": [
    "Build directory has uncommitted changes"
  ]
}
```
