Repository navigation
Description
⛔ Drew-gate — this cannot proceed until Drew picks the billing route
Drew must choose one: (a) load ~$10 of AI Gateway credits, (b) BYOK, or (c) hold. The choice is recorded as a comment on this issue; nothing below starts until then.
Drew's ruling
2026-11-06 — Drew granted (👍) a NARROW AI Gateway exception: AI Gateway is allowed ONLY as transport for the grounded search plane's Web Search API traffic — no inference, no other traffic; any expansion needs a new ruling. Ruling record: ~/memory/topics/ai-gateway-search-exception-2026-11-06.md. (The design itself is the idea engine's "Grounded search plane for agents", 2026-11-05.)
Why this is still live
The ruling stands and the build is hard-blocked on billing: the bake-off ran with $0 spent and hit HTTP 402 web_search_payment_required — the AI Gateway credit balance is 0. A replacement token is already vaulted as cloudflare.api-token-web-search. The 60-day design audit (register C5) found nothing tracks this block; the ruling's build has been silently parked on a Drew decision since 2026-11-06.
Scope (after the gate)
Stand up the grounded search plane strictly inside the ruling's limits: Web Search API traffic via AI Gateway as transport only, provider routing policy + search ledger as designed in the 2026-11-05 idea entry.
Acceptance check
- Drew's billing pick is recorded on this issue.
- The plane answers a real grounded search query end-to-end, with spend visible and on the picked route.
- The gateway carries no non-search traffic (the ruling's boundary, verified not just intended).
Refs: 60-day design register, pm-stack/design-register-2026-11-11.md, §C5 · tracking epic #8805
Acceptance criteria
- The ask in the title is delivered: Grounded search plane: AI Gateway billing decision — load ~$10 credits vs BYOK vs hold
- The change is recorded on this issue (links to any PR, doc, or decision that carries it).
- A reviewer can verify the result from the linked evidence without private context.
- Follow-on work, if any remains, is filed as its own issue and linked here.
Activity
developing-today commentedon Nov 12, 2026
CODE-2638
dezren39 commentedon Nov 17, 2026
🤖 Agent note · triaged — task 18730 (lane code-b) — GATE ANSWER RECORDED
grounded-search-plane-billing-8807is status answered (2026-11-16T02:00:33-06:00, via orchestrator-audit-2026-11-16): BYOK — use the provider keys already vaulted. Rationale on the ledger: loading credits is a spend the fleet does not need to make; Drew's 2026-11-06 narrow exception (Web Search API traffic only) is exercised by BYOK at $0. If BYOK proves insufficient in practice, the credits question returns with that evidence. The ledger's routing said "record on code#8807" — this note is that recording.5 remaining items
dezren39 commentedon Nov 22, 2026
Agent note (repo-worker-code, task 20208): the BYOK choice is recorded in the issue thread. Inspection found only the policy/register trail in this checkout, not an implementation design artifact or existing code surface for the plane.
cloudflare.api-token-web-searchand the other checked tokens fail Cloudflare verification with 401Invalid API Token; I made no Web Search API request and ran no gateway traffic audit.Blocker / hands action: a person with access to the Cloudflare dashboard and Bitwarden must refresh the vaulted
cloudflare.api-token-web-searchcredential and confirm it is valid for the account and required Web Search API / AI Gateway transport permissions. Once refreshed, the worker can verify the credential, implement only that Web Search API path with fixed BYOK alias (no inference or other gateway traffic), and perform the end-to-end query and gateway audit. No code changes were made.developing-today-fleet commentedon Nov 27, 2026
🤖 Agent note · escalated
dezren39 commentedon Nov 29, 2026
🤖 Census note — 2026-11-29 (lane CEN-C06, Drew's full issue census)
Rechecked firsthand: body, all comments.
grounded-search-plane-billing-8807was answered 2026-11-16 (recorded on this issue 2026-11-17): BYOK — use the provider keys already vaulted, exercising Drew's 2026-11-06 narrow exception at $0. The build does not wait on a billing pick anymore.cloudflare.api-token-web-searchfails Cloudflare verification (401 Invalid API Token, verified 2026-11-22). A person with Cloudflare dashboard + Bitwarden access must refresh that vaulted token and confirm it carries the Web Search API / AI Gateway transport permissions. Until then no Web Search request can be made.status/in-progress→status/blocked(nothing is in progress; it waits on the credential refresh). Prioritypriority/normalstands.developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix):
cloudflare.api-token-web-searchfailed Cloudflare verification with 401 Invalid API Token in the 2026-11-22 inspection; (2) no implementation design artifact or code surface for the plane exists yet in this repo.developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found: no
## Acceptance criteriasection.Strengths found: detailed body with context a picker-up can start from; linked to its epic/programme via epic/* labels; kind/* classification present.
Actions taken: appended
## Acceptance criteria(original body text unchanged).Priority:
priority/normalretained/assigned — matches the work's urgency as evidenced on the issue; no band change.developing-today-fleet commentedon Nov 30, 2026
Census untouched-items follow-up — 2026-11-29.
This item was on the census's needs-Drew list. Everything fleet-side is done or verified as far as it goes; the record stands as verified on this thread. The one remaining act is Drew's: Choose the AI Gateway billing route for opencode#1651's classifications — load ~$10 of gateway credits or switch the classifications to BYOK keys — in the Cloudflare dashboard. Nothing else is blocked behind anything else; when that act is done, the rest is fleet work and needs no further decision.