Skip to content

docs: D10.2 -- the branchable field lives on the MCP surface - #27

Merged
CameronBrooks11 merged 1 commit into
mainfrom
docs/d10-where-the-field-lives
Sep 6, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
docs/d10-where-the-field-lives

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Closes #26, which I filed today after D26 left error in Verdict and in cli._EXIT
with nothing returning it. That reads as D10 unmet. It is not, and the reason is worth
writing down rather than leaving for the next reader to rediscover.

What D10 imported, and what did not come with it

D10 says the fault is "carried in the report as a field a consumer can branch on, not as
prose in a message"
, and its own text calls it "adopted from partspec, and the most
valuable thing taken from it".

partspec persists reports to deterministic paths. A run that fails and writes nothing
leaves the previous run's verdict: "pass" standing on disk — which is why the fault
must be a field there, and why partspec writes a placeholder before any target runs (its
#358).

netspec's check --format json prints to stdout. Absence is per invocation, cannot be
mistaken for a stale success, and coincides exactly with exit 4. The failure D10's
sentence guards against does not arise.

The structured consumer already carries it

Measured, not asserted — the MCP surface (D18) on a fault:

exit_code            4
meaning              "environment fault ..."
report_unavailable   "netspec could not run; see error"

report_unavailable is the field. mcp.py::_with_report already cites D10 for exactly
this, and names the key rather than implying it by absence, "because a silently missing
key is indistinguishable from a key an agent forgot to read".

So D10 stands and its "in the report" is narrowed to "in the structured surface".

What I deliberately did not build

An error document on the raw CLI path — a verdict: "error" envelope with no results.
It would hand a consumer a second thing to parse where an empty stdout beside exit 4
already answers, and every field in it would restate the exit code. The decision records
that if netspec ever persists reports to a path, D10.2 is void and partspec's placeholder
question returns with it.

Test

One added to test_boundaries.py, pinning both halves: the fault carries
report_unavailable and no invented report, and a successful run does not carry the
key. It passes with or without the decision text, by design — it asserts the behaviour
D10.2 describes rather than a change, so it guards the claim from drifting rather than
proving a fix.

just check and just test green: 251 passed, 6 skipped.

D26 put `error` in Verdict and in the exit map and nothing returns it,
which reads as D10 unmet. It is not, and the reason should be written
down rather than rediscovered.

D10 came from partspec, and one thing did not come with it. partspec
persists reports to deterministic paths, so a run that fails and writes
nothing leaves the previous run's pass standing -- which is why the fault
must be a field there. netspec prints to stdout: absence is per
invocation, cannot be read as a stale success, and coincides with exit 4.

The structured consumer is MCP, and it already carries the field.
Measured: exit_code 4, meaning, and report_unavailable, the last named so
a missing key cannot be confused with one an agent forgot to read.

An error document on the raw path is deliberately not added -- it would
be a second thing to parse where empty stdout beside exit 4 already
answers. If netspec ever persists reports, this is void.

Closes #26
@CameronBrooks11
CameronBrooks11 merged commit e1c5fe8 into main Sep 6, 2026
5 checks passed
@CameronBrooks11
CameronBrooks11 deleted the docs/d10-where-the-field-lives branch September 6, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

D10 asks for the environment fault as a report field; only the exit code carries it

1 participant