Files
substrata/lib/resources
CatoandClaude 307cba8d41 feat(ask): the answer ladder: facility rows, no wall, the web for the missing part, gaps filed (#219)
Asked live on 2026-10-24 which companies mine uranium in Kazakhstan, who
owns them and who they sell to, the Ask said the mining entities and owners
"are not recorded in the corpus". research/usgs-producers.json held them, and
the web was never tried for the buyers.

- producers_in(country, resource?): USGS Minerals Yearbook facility rows with
  the company cell verbatim, an operator/owner reading beside it, location
  (GeoNames precision), capacity as printed, chapter year and source.
  restrictions_on (OECD inventory) and sanctions_on (EU/OFAC) beside it.
  The planner sends a country + resource + company question to producers_in
  first.
- ladder.ts: missingLinks names each part of a question no lookup covered
  (facilities, owners, buyers, finance) with the source that would settle it;
  wallProblem catches a refusal-only answer, or one denying rows in hand, and
  it is sent back once (check-answer.ts, before the figure guard).
- Web rung root cause: the plan was confident, so the model got no tools, and
  no planned lookup was empty, so runPlan never opened the web. A missing link
  now opens one bounded lookup for that part; the four web states (off,
  could_not_look, nothing, found) each get their own sentence in the prompt.
- gaps.ts: fileGap seam with a no-op default; setGapFiler is the one place to
  bind lib/dossier's recordDemand.
- Evals: six wall:false rows run offline against the real tool results, plus
  the gallium unit row deferred by #215.


Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 07:46:42 +02:00
..