by adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated.
Part requests: let an agent request a whole BOM as one batch, and send ONE summary email when every part has finished
adom-wiki 1.8.15 (latest) · adom/core 4.15.3 · adom-parts-search 2.1.5 · wiki.adom.inc, 2026-11-10 · requests made signed in, by an AI agent working for me in an Adom cloud container
Ask
Give an agent a way to declare that a set of part requests belongs to one batch, and then send me one email for the batch, when every part in it has finished its checks, with a table of each part's outcome. Today every request sends its own email.
What happened
On 2026-11-10 my agent requested component pages for the 24 parts of one production board's BOM that had no wiki page. It made one adom-wiki part request <MPN> --datasheet <link> call per part, because it had a datasheet or Mouser link for each one and --datasheet works for single parts only (--bom takes MPN and Manufacturer columns, no link). Two parts were then re-requested under their orderable MPN.
Times are from adom-wiki part status --json (UTC):
| Count | When | |
|---|---|---|
| Requests sent | 24, then 2 re-requests | 15:44:01 to 15:45:59; re-requests 15:52:57 and 15:53:01 |
| Built | 10 | finished 15:46:18 to 15:49:17 |
Could not be built (cannot_build, with a reason) |
14 (12 parts, plus both re-requests) | finished 15:45:17 to 15:56:17 |
| Still queued | 2 | still "queued, position 1 / 2, about a minute" at 17:36 |
I received 24 emails, which matches the 24 requests that had finished: one per part, all inside 11 minutes, each with one part's result. The two still queued will each send one more. Per #245, members also get one inbox item per outcome, so that is 24 inbox items as well.
What I actually wanted to know, once: which parts are done, which are not, and why. Twenty-four separate emails bury that answer (and the rest of my inbox) instead of giving it.
Why it matters
- Agents source a whole BOM at once. An AI Flow board needs a component page for every BOM row (
adom-aiflow partsfails on any part without one, unless a project library covers it), so one board can mean dozens of requests in a few minutes. - The person who gets the email is usually not the one making the calls. They need one summary they can act on, not a stream.
- The per-part email is right for a person who asked for one part from the search box. It is wrong for a batch.
Proposed shape
Either of these would do; the first is the smallest change.
A. Make --bom the batch path for agents, and let a row carry its link.
adom-wiki part request --bom parts.csv --ref "Board X, Rev B" --now
# parts.csv columns: mpn, manufacturer (optional), datasheet (optional, same checks as --datasheet)
# prints: batch b_xxxx, 24 parts; one summary email when all 24 have finished
adom-wiki part status --batch b_xxxx
B. A batch id that single calls can join (for agents that request part by part, and for re-requests under another MPN).
B=$(adom-wiki part batch open --ref "Board X, Rev B" --json | jq -r .data.batch_id)
adom-wiki part request LMR36015SFBRNXR --datasheet https://... --batch "$B"
adom-wiki part request <next MPN> --batch "$B"
adom-wiki part batch close "$B" # no more parts; the summary goes when they have all finished
The API side is the same for both: POST /api/part-request (and the batch route) accepts a batch_id, and the sweep holds the per-part emails and inbox items for batched requests.
Acceptance criteria
- A batch of N parts, made with
--bomor with N calls that share a batch id, sends exactly one email to the requester, and no per-part "ready" or "stopped" emails. - That email goes when every part in the batch has reached a final state (
built,review,cannot_build), or at a deadline (for example 24 hours after the last request) if some have not. - The email has one table: MPN, manufacturer, outcome, the page link for a built part, the reason for a stopped one, and each request's status link; plus counts at the top (built / needs review / could not be built / still queued) and a link to the batch.
- A part still unfinished at the deadline is listed as still queued with its status link; its later outcome shows on the batch status, and at most one follow-up email covers all the late parts together.
- Inbox items follow the same rule: one per batch, not one per part.
--bomaccepts a per-row datasheet link with the same checks as--datasheet(BAD_DATASHEET_LINK refuses that row, not the batch).- A re-request under another MPN can join the original batch (B), and the summary shows it next to the part it replaces.
part status --batch <id>and a web page for the batch show the same table as the email.- The website's multi-select "Request selected" (the 25-part case in #267) uses the same batch, so it also sends one email.
- A single request outside any batch keeps today's per-request emails.
Not sure / not tested
I have not tested whether a --bom batch already sends one email instead of one per part. If it does, this narrows to criteria 6, 7 and 9, plus saying so in adom-wiki part request --help.