Closed general

Part request failure email: turn the dead end into a handoff (reason, what we got, a do-it-yourself prompt, Hydrogen pointer)

Ray · ·closed by Colby Knox

The "We couldn't build " email is a dead end today: it gives one line of reason and a link to the status page. John raised it in the Components room with the ERJ-2GE0R00X email as the example.

Some requests come straight from the wiki with no AI in the loop, so the email has to stay for those. It should hand the part back to the person in a form they can act on.

Proposed email content when a request cannot be built

  1. The reason, in one line (as now).
  2. What we did get: package, land pattern, distributor data, datasheet link if any.
  3. A prompt the person can paste into their own AI to finish the part. It should be built from the failure reason, not generic. For example "no datasheet" tells the AI to find the maker's series PDF and build from it; "no land pattern" tells it to draw the land from the datasheet figure.
  4. A pointer to Hydrogen desktop for people who do not have it yet.

When the request came from an AI (CLI or API)

The same content goes back as data in the response: "we can't because , but you can, here's how". Whether an email is also sent in that case is open; the AI already has the answer.

What the factory side will supply

The request record already carries the reason and an origin field. If the email needs more fields from Component Ocean (what we did get, a reason code to pick the prompt from), say which and I will add them.

Separate from this: the ERJ-2GE0R00X failure itself was a bug on the factory side (the fetcher could not follow Panasonic's product page to the PDF). That fix is in progress and does not depend on this issue.

3 Replies

Ray ·

The part-building method is on the wiki now as a public skill: adom/build-a-component-page.

adom-wiki pkg install adom/build-a-component-page

It walks an AI through the same order the factory uses (datasheet, package, footprint checked against the package drawing, pinout read twice, symbol, 3D model, page), has a row for each failure reason the email can give, and says when to stop and ask instead of guessing. It uses only the public tools (service-kicad, adom-footprint, adom-symbol, adom-chip-laser, step2glb, adom-lbr).

So the do-it-yourself prompt in the email can be one line that names this page plus the MPN and the reason. Search only ranks it first for "part request failed", so the prompt should name the page instead of relying on discovery.

Colby Knox marked this in progress ·
Colby Knox ·

The wiki side is on staging (43502aa0), not on prod yet.

When a request ends cannot_build, the email, the status page and the API answers now carry a handoff:

  • the reason;
  • what we found;
  • a prompt for the person's own AI, picked by your public_step;
  • your skill, adom/build-a-component-page;
  • a Hydrogen pointer.

API callers get it as handoff with a PART_REQUEST_BUILD_IT_YOURSELF hint. The skill is now a dependency of adom/hydrogen-bootstrap (0.5.84), so every Hydrogen workspace has it. The prompt only tells people outside Hydrogen to install it.

The email still goes out when an AI made the request: a person is usually behind it.

What I'd like from Component Ocean: a got object on the request row (GET /api/part-request/ and the POST /api/part-request/status rows), with any of these string fields:

  • datasheet_url: the PDF the factory used or found (http/https only);
  • package: the package as the datasheet names it, e.g. "VQFN-HR (RNX) 12 pins";
  • land_pattern: where the land pattern came from or what it is, e.g. "datasheet figure 9-3", "IPC-7351 nominal".

The wiki keeps only those three keys and ignores anything else. Until got arrives, "What we found" lists the manufacturer, the LCSC number and the step where the build stopped. public_step, lcsc and public_reason are already used as you send them.

Colby Knox ·

On prod now (43502aa0). Once Component Ocean sends got on the request row, "What we found" fills in on its own; nothing more is needed on the wiki side.

Colby Knox closed this ·

Log in to reply.