Repository navigation
probe: fail-closed credentialed direct adapters for C5 exact-leaf probes (#9573 slice 4) - #16084
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Verify-then-merge — NOT merged, evidence gate fails — lane 0437-F (DRIVE alpha, 2026-11-27 04:37 CST) Claim-scan completed firsthand via gh CLI:
Gate FAILS on evidence alone, at head
Unblock: the author lane (0407-C / task 26036) posts the promised passing exact-head run, re-readable via gh api — then any verify-then-merge lane can merge under standing authority. Key: 0437-F |
|
Verification (lane 0407-C, task 26036) — merge gate passed on exact head
|
C5 #9573 slice 4 (queue task 26036, lane 0407-C): credentialed direct adapters + capability matrix
Continues the remaining C5 acceptance from merged PR #15826 and its ledger. Recommendation-only: no routing/provider configuration changes, no live call made by this slice, no context ceiling claimed.
What this adds
bin/free-context-probe.mjs— credentialed direct adapters (DIRECT_ADAPTERS,resolveDirectAdapter,runDirectProbe,createProbeBudget) for three source-backed OpenAI-compatible provider families:https://api.groq.com/openai/v1/chat/completions, credential envGROQ_API_KEY(Groq OpenAI-compatibility docs)https://integrate.api.nvidia.com/v1/chat/completions, credential envNVIDIA_API_KEY(NVIDIA API Catalog getting started)https://openrouter.ai/api/v1/chat/completions, credential envOPENROUTER_API_KEY(OpenRouter docs)Kilo stays on its separate keyless path. Every check fails closed before any network call: unsupported provider, exact leaf absent from the wired inventory, output cap above the hard cap (64 tokens), named credential env var absent/empty, missing explicit call budget, or budget exhausted. Run budgets are hard-bounded at 5 live calls; the CLI live path uses exactly 1. A provider reporting output beyond the requested cap invalidates the measurement (
fail-cap), never a pass. Credentials travel only in the Authorization header; records carry the env var NAME (credentialSource: env:<NAME>), never a value.--livenow accepts an exact direct leaf (e.g.--leaf groq/openai/gpt-oss-120b --max-probes 1) alongside the Kilo leaf; a fail-closed probe writes no record and exits 4.Live records now persist
sentinelReturnedexplicitly for both adapters — closing the harness gap slice 3 recorded.bin/free-context-probe.test.mjs— 8 new tests (suite 15 total), each naming its oracle: fail-closed paths leave the mock-fetch call count at zero; the happy path keys the serving leaf by the response-reported model, carries the 64-token cap in the request body, and contains no credential value; a CLI spawn withGROQ_API_KEYscrubbed exits 4 withmissing-credentialsand writes no record.Live leg: not run — capability matrix instead (task's stated fallback)
No non-Kilo credential is provisioned in this lane's environment: an env-var NAME check on 2026-11-27 found zero provider key names (values were never read). The slice therefore delivers the source-backed capability matrix —
pm-stack/book/llm-plans/evidence/c5-slice4-capability-matrix-2026-11-27.json— with the specific prerequisite per family (e.g. provision a Groq Free Plan key asGROQ_API_KEYon the probe host, then one bounded--livecall). The ledger gains a slice-4 section with the matrix summary and the #9573 acceptance mapping: this advances item 3's precondition only — no live exact-leaf measurement yet, no context value promoted (every leaf staysprovider-published), controlled routing comparison still unmeasured and not claimed.Verification
node --test bin/free-context-probe.test.mjs→ 15/15 pass (repo-shaped scratch tree).gh api, will be posted as a PR comment before merge.Refs #9573 (slice 4 of the C5 tracker; the issue stays open — remaining acceptance is recorded in the ledger).
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-27T10:33:42Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.