# 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": "Quakes",
  "build_directory": "/mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes",
  "probe_directory": ".drydock-probe",
  "code": {
    "identity": "b986f48eef601faf8d66e486b606b7d6c2273802",
    "dirty": false
  },
  "governed_gate": {
    "name": "full",
    "outcome": "PASS",
    "argv": [
      "sh",
      "sources/run.sh"
    ],
    "return_code": 0,
    "duration_ms": 7327,
    "detail": "",
    "timed_out": false,
    "build_identity": "0e3168c23f5c9c00",
    "stdout": "PASS A1: quakes summary /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS A2: quakes top /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS A3: quakes daily /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS A4: quakes regions /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS B1: quakes top --n 3 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS B2: quakes summary --min-mag 5.5 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS B3: quakes regions --min-mag 5.4 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS B4: quakes daily --min-mag 6 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS B5: quakes top --min-mag 5.1 --n 4 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS C1: quakes near --lat 27.72 --lon 85.32 --radius 800 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS C2: quakes near --lat 35.68 --lon 139.69 --radius 1500 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS C3: quakes near --lat 9.03 --lon 38.74 --radius 300 --min-mag 5.3 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS C4: quakes near --lat 0 --lon 0 --radius 100 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS D1: quakes summary --min-mag 9 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS D2: quakes daily --min-mag 9 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS E1: quakes summary /tmp/tmp.hViCFTrjNQ/no-such-file.geojson\nPASS E2: quakes summary /tmp/tmp.hViCFTrjNQ/garbage.json\nPASS E3: quakes summary /tmp/tmp.hViCFTrjNQ/feature.json\nPASS U1: quakes \nPASS U2: quakes frobnicate /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U3: quakes near --lat 27.72 --lon 85.32 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U4: quakes top --n 0 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U5: quakes summary --min-mag big /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U6: quakes near --lat 95 --lon 0 --radius 10 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U7: quakes summary --n 3 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U8: quakes summary\nQuakes: 26 passed, 0 failed (of 26)\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 B4: quakes daily --min-mag 6 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS B5: quakes top --min-mag 5.1 --n 4 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS C1: quakes near --lat 27.72 --lon 85.32 --radius 800 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS C2: quakes near --lat 35.68 --lon 139.69 --radius 1500 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS C3: quakes near --lat 9.03 --lon 38.74 --radius 300 --min-mag 5.3 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS C4: quakes near --lat 0 --lon 0 --radius 100 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS D1: quakes summary --min-mag 9 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS D2: quakes daily --min-mag 9 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS E1: quakes summary /tmp/tmp.tNWhTyG6Zt/no-such-file.geojson\nPASS E2: quakes summary /tmp/tmp.tNWhTyG6Zt/garbage.json\nPASS E3: quakes summary /tmp/tmp.tNWhTyG6Zt/feature.json\nPASS U1: quakes \nPASS U2: quakes frobnicate /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U3: quakes near --lat 27.72 --lon 85.32 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U4: quakes top --n 0 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U5: quakes summary --min-mag big /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U6: quakes near --lat 95 --lon 0 --radius 10 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U7: quakes summary --n 3 /mnt/c/Users/barlo/projects/drydock/uat/Quakes/runs/20261024.065111/build/Quakes/sources/quakes_2025-01-01_07.geojson\nPASS U8: quakes summary\nQuakes: 26 passed, 0 failed (of 26)"
    }
  ],
  "sea_trials": [
    {
      "criterion_id": "st-001",
      "title": "The supplied grader passes",
      "trial_type": "technical",
      "required": true,
      "criterion": "The completed quakes 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 every automated test passes.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "ubiquitous",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    },
    {
      "criterion_id": "st-003",
      "title": "Reports match the known answers",
      "trial_type": "behavioral",
      "required": true,
      "criterion": "The application shall compute the summary, top, daily, and regions reports from the snapshot, 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-004",
      "title": "Distance search uses the haversine formula",
      "trial_type": "behavioral",
      "required": true,
      "criterion": "When near is given a point and a radius, the application shall list every event within that haversine distance on a 6371.0 km sphere, nearest first.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "event",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    },
    {
      "criterion_id": "st-005",
      "title": "The magnitude filter applies to every report",
      "trial_type": "behavioral",
      "required": true,
      "criterion": "When --min-mag is given, the application shall compute every report over only the events whose magnitude is at least that value.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "event",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    },
    {
      "criterion_id": "st-006",
      "title": "Fetch saves the USGS feed",
      "trial_type": "behavioral",
      "required": true,
      "criterion": "When fetch is given a date range, the application shall request the USGS FDSN event query in GeoJSON and write the response unchanged to the output file, writing no file on a network or HTTP failure.",
      "verification": "proof",
      "testability": "deterministic",
      "consequence": "blocks",
      "pattern": "event",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    },
    {
      "criterion_id": "st-007",
      "title": "Errors map to exit codes",
      "trial_type": "behavioral",
      "required": true,
      "criterion": "If the file is unreadable or not a GeoJSON FeatureCollection, 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": ""
    },
    {
      "criterion_id": "st-008",
      "title": "Tests never use the network",
      "trial_type": "technical",
      "required": true,
      "criterion": "The application's automated tests shall exercise fetch through a stubbed HTTP call and shall not open a network connection.",
      "verification": "llm",
      "testability": "judgeable",
      "consequence": "scores",
      "pattern": "ubiquitous",
      "notation": "ears",
      "command": [],
      "extract": "",
      "evidence": "",
      "baseline": null,
      "operator": "",
      "target": null,
      "unit": ""
    }
  ],
  "reported": []
}
```
