Repository navigation
docs: D10.2 -- the branchable field lives on the MCP surface - #27
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #26, which I filed today after D26 left
errorinVerdictand incli._EXITwith 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 faultmust be a field there, and why partspec writes a placeholder before any target runs (its
#358).
netspec's
check --format jsonprints to stdout. Absence is per invocation, cannot bemistaken for a stale success, and coincides exactly with exit
4. The failure D10'ssentence guards against does not arise.
The structured consumer already carries it
Measured, not asserted — the MCP surface (D18) on a fault:
report_unavailableis the field.mcp.py::_with_reportalready cites D10 for exactlythis, 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
4already 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 carriesreport_unavailableand no inventedreport, and a successful run does not carry thekey. 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 checkandjust testgreen: 251 passed, 6 skipped.