Skip to content

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

Closed

Description

@CameronBrooks11

Left open deliberately by D26 (A1/A2), recorded there and on
https://heibench.com/adjudications.html under A2. Filing it so it is tracked somewhere
actionable rather than only described.

What is missing

docs/DECISIONS.md D10 says an environment fault is:

Carried in the report as a field a consumer can branch on, not as prose in a message.

Verdict now contains "error" (D26) and cli._EXIT maps it to 4, but nothing ever
returns it
. An environment fault raises EnvironmentError_, which main catches at
cli.py:57 and turns into exit 4 plus a message on stderr. No netlist was read, so
there is no CheckReport to compute a verdict from and no document is emitted.

$ netspec check contract.py --format json   # engine missing
error: no working kicad-cli found. ...

This is an environment problem, not a finding about your design.
$ echo $?
4

stdout is empty. A consumer that reads only the JSON gets nothing to branch on, which is
the half of D10 that says "a field, not prose".

Why this is not labelled silence-defect

Checked before filing rather than assumed. check --format json prints to stdout and
netspec persists no report file, so there is no previous run's verdict: "pass" left
standing — the failure mode partspec#358 describes does not arise here. The fault is
communicated, loudly, by exit 4 and a stderr message. What is missing is the
structured form, so this is a D10 completeness gap rather than an instance of the core
defect. Labelling it would put a tenth case on
https://heibench.com/silence.html that does not belong there.

Shape, if it is worth doing

An error document would need a schema decision, which is why D26 declined to assume it:

  • What identifies it — the existing schema key with verdict: "error" and no
    results, or a distinct envelope?
  • Does it carry contract and source when the contract may be what failed to load?
  • Does check_report() grow an error path, or does a separate builder own it?

Worth weighing against the alternative: that exit 4 plus stderr is sufficient for the
structured consumer, and D10's sentence should be narrowed to say so. Either resolution
closes this; what should not stand is the current state, where D10 states a requirement
the code does not meet and D26 records the gap without a decision.

Environment

netspec 0.9.0, main at the D26 merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions