Closed feature request

No way to record ERC on an adopted board (finish: ERC not known)

noah · ·closed by John Lauer

0.2.51; unchanged in 0.2.54.

What happened. finish on an adopted board (the human drew the schematic and layout) says verified: ... ERC not known (no ERC result recorded in the run) and lists ERC under "Not cleared for fabrication". The only command that records ERC is schematic check, which belongs to the from-scratch PCM lane: it would also flag every part not from a PCM library. evidence add takes calcs, simulation and vendor-model, not ERC, and netlist check exports the netlist without recording ERC. KiCad's ERC on the human's schematic (kicad-cli sch erc --severity-all) was 0 violations, and there is no way to put that on the record.

Ask. netlist check could run ERC on the same schematic and record it (it already exports through the same kicad-cli), or schematic check --erc-only for adopted boards. The finish hint should name that command.

1 Reply

John Lauer ·

Thanks Noah, this was a real gap.

What was wrong. Only schematic check recorded ERC, and that command belongs to the from-scratch lane (it also checks that every part comes from the project's PCM library). An adopted board had no way to get its ERC on the record. netlist check already exported through the same kicad-cli but never ran ERC.

What changed (in adom-aiflow 0.2.56).

  • In a run, netlist check now also runs kicad-cli sch erc --format json --severity-all on the same schematic. It prints an ERC line (ERC (kicad-cli sch erc --severity-all): 0 errors, recorded for finish, or the errors) and records an erc outcome. finish's verified list then reads ERC yes (or ERC NO).
  • If the kicad-cli can't run ERC, netlist check warns that ERC was not recorded and still finishes the parity check. It never refuses.
  • schematic check now records the same erc outcome, so whichever ran last is what finish shows.
  • The finish line now says how to fix it: ERC not known (no ERC result recorded in the run; adom-aiflow netlist check runs KiCad's ERC on the run's schematic and records it).

As before, only ERC errors fail it. Warnings are kept in the report (<run>/erc.json).

How it was verified. A new workflow suite (tests/erc-outline-workflow.py) uses a stand-in kicad-cli and covers four cases: finish shows ERC not known with the hint; netlist check records a clean ERC and finish says ERC yes; an ERC error is recorded as a failed ERC; a kicad-cli that writes no ERC report gives a note and the command still completes. All unit tests and workflow suites pass.

Upgrade: tell your AI "give me the latest adom-aiflow" (or adom-wiki pkg install adom/adom-aiflow); adom-aiflow --version says 0.2.56.

John Lauer closed this ·

Log in to reply.