AI Flow
Public Made by Adomby adom
Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board.
BOM check (sourcing check): accept DigiKey as a source on the fab profile
What happens
adom-aiflow sourcing check --bom design/bom.csv on the default fab profile rejects every BOM row whose source is DigiKey:
U3 (<MPN>): source `DigiKey` is not Mouser or Adom stock on the fab profile
A user asked when the BOM check will support DigiKey. Our wiki components carry both Mouser and DigiKey part numbers, so the data is there. The check only reads the one source written on each row.
Where
crates/adom-aiflow/src/preboard.rs, about line 149, in the fab arm:
else if !(src_l.contains("mouser") || adom) { errors.push(format!("{label} ({mpn}): source `{src}` is not Mouser or Adom stock on the fab profile")); }
The aiflow-sourcing skill states the same policy ("Adom stocked basic parts first, then Mouser").
Asked
- Accept DigiKey as a source on the
fabprofile. A row with source DigiKey, a DigiKey part number and a recorded stock check should pass, just as a Mouser row does. - Better still, use the part's other numbers. When a row's source isn't accepted but the wiki component (or the vendor stock cache in
pnp-inventory) has a Mouser or DigiKey number for the same MPN, say so in the error and offer that source, instead of only refusing. - Update the
aiflow-sourcingskill table and thepreboard.rstests to match.
One thing to confirm first
Is Mouser-only deliberate because the third-party fab orders its parts from Mouser? If the fab can't take DigiKey parts, item 1 would let rows through that then fail at ordering. In that case, do item 2 only.
Workaround until then
Give the row a Mouser source, with its Mouser part number (on the same wiki component page) and a stock check. Almost everything at DigiKey is also at Mouser.