Skip to content

Decision API + non-LLM endpoints: purpose designations, native endpoint dispatch, decision pool wiring (Jev + Google Decision free-first, Luna harness experiment) #13675

Backlog

Description

@dezren39

Spec (Drew, 2026-11-23)

Full Decision API + non-LLM endpoint support for the route system, with the first real wiring as proof. Three parts, in order. Lane DECISION-API coordinates; slices land as PRs under this issue.

Background: the decision seat today is the systemone pool = Zen's Jev 1.13 Free, decision-only by comment convention ("NOT a chat pool"), not by mechanism. The free census (2026-11-23) found Google Gemini Decision 1 free and untapped: 200 RPM / 50K TPM / 10,000 RPD per project, and the four keyed Google project aliases (google.muse, google.gen-lang, google.personal, google.drew, grouped by the google-free provider route) multiply that to ~40K decisions/day. The muse project's key already serves Google's native /v1beta/decisions endpoint (recorded in the config's own comment on google.muse). Gemini Embedding 2/001 are likewise free and unwired. Fireworks, Baseten, and Modal are not configured providers today.

Part 1 — Purpose designations + capability tags (mechanism)

Additive fields, existing JSONC comment conventions, config stays readable by existing tooling:

  • New top-level model_designations section, keyed by bare model id: { "purposes": [...], "capabilities": [...] }. (Registry keyed by model id, not per-catalog-entry fields: the decision/embedding models live in built-in fork catalogs the tracked config does not enumerate — the google aliases are bare instanceOf — so catalog-entry fields could not cover them. Precedent: model_route_windows is the same top-level-policy pattern.)
    • purposes vocabulary: chat, decision, embed, rerank, recommend. Absent entry = legacy unrestricted. Present = the model may be seated ONLY in pools whose declared purpose is in its list.
    • capabilities vocabulary: visual, pdf, audio-in, audio-bidir, tts, stt.
  • Pool-level "purpose" on model_routes entries (absent = chat). systemone gets "purpose": "decision".
  • bin/check-opencode-route-rules.mjs enforces: (a) every resolved leaf of a pool whose model has a designation must include the pool's purpose; (b) designation/capability values must be in the closed vocabularies; (c) a model designated without chat can never resolve into a chat-purpose pool (the systemone convention, mechanised). Tests cover each rule firing and passing.

Part 2 — Endpoint support in the route proxy (bin/opencode-route-proxy.mjs)

The proxy serves only /v1/chat/completions and /v1/models today. Add purpose-aware dispatch:

  • Client endpoints: POST /v1/embeddings, POST /v1/decisions, POST /v1/rerank, mirroring the chat handler's route resolution, failover, and demotion behaviour. Runtime guard: each endpoint refuses pools whose declared purpose does not match it (a chat call naming systemone is refused by the proxy, not left to 400 upstream).
  • Per-provider endpoint descriptors in the provider block's options.endpoints, beside baseURL: { "<purpose>": { "kind": ..., "path": ... } }. Kinds: openai (passthrough to the provider's OpenAI-style surface), google-decisions (native POST /decisions on the v1beta base, x-goog-api-key auth), google-embed (native :embedContent), jev-systemone (Zen's native decision shape), plus descriptor support for Fireworks/Baseten/Modal native shapes (fixtures + docs; no live seats — those providers are not configured).
  • Passthrough rule (Drew): pass through to the OpenAI-style endpoint where that is genuinely the provider's surface; where a provider only honours the purpose/type selection via a parameter on its custom endpoint, use the native endpoint with proper parameter mapping — native wins over shim.
  • Google native first: the decision and embedding legs for the google.* aliases use Google's own endpoints, not the OpenAI-compat shim.

Part 3 — First wiring + the Luna experiment

(a) Decision pool, free-first, in .opencode/opencode.jsonc: systemone targets become zen-plans/jev-1.13-free, then google-free/gemini-decision-1 (the four-project route multiplies the free daily bucket), designated decision-only in model_designations; the google.* aliases gain the Part 2 endpoint descriptors. Embedding models designated (gemini-embedding-2, gemini-embedding-001, purposes ["embed"]) and seated in a new gemini-embed-plan pool (purpose embed) so the embeddings endpoint has a real route. Both checkers + their suites green; live-verified by server /api/config read-back after the laptop config sync, and by a live probe of Google's /v1beta/decisions with a broker-fetched project key (by name) proving endpoint + model id before seating.

(b) Luna-as-decision experiment: OpenAI offers decision behaviour natively; test whether a harness/prompt wrapper makes Luna low meet the same contract (structured yes/no, choice, rubric-score outputs, schema-faithful). Small eval set built from the Decision API's documented shapes; the pass bar is stated on this issue BEFORE the run; native decision legs (Jev free and/or Google Decision 1) run the same set as the baseline. If Luna passes, it is seated in systemone after the free legs (with the metered guard's payg-exception treatment, as Drew's temporary PAYG tail already carries); if it fails, the negative result is recorded here with evidence. OpenAI main weekly is walled until 2026-11-24T21:23Z — the bounded eval rides the temporary PAYG Luna tail Drew authorised 2026-11-23, spend bounded and recorded.

Acceptance

  • Part 1: designation mechanism + checker rules + tests merged; systemone decision-only is checker-enforced.
  • Part 2: proxy serves embeddings/decisions/rerank with purpose guards and native-endpoint dispatch; tests green.
  • Part 3a: decision pool wired free-first (Jev + Google Decision ×4 projects), live-verified (read-back + live probe evidence on this issue).
  • Part 3b: Luna verdict recorded with numbers, bar stated before the run; seated if and only if it passes.
{
  "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-23T20:23:31Z",
    "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)"
  }
}

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Coordination notes (2026-11-23 14:23 CST):

    1. Config-file sequencing with lane WIRE-FREE. Another lane is wiring providers into this same .opencode/opencode.jsonc (enabling _commandcode, adding SambaNova/Kilo/LongCat, finishing NVIDIA, free-first ordering). The two lanes do not edit the config in parallel: whichever config PR is in flight first is the base, and the other rebases its fields on top of the merged result. This lane checks open config-touching PRs before its config edit and stacks on the WIRE-FREE head if one is in flight.

    2. Groq's non-chat shelf belongs to this lane. Whisper (STT), PlayAI TTS, and the prompt-guard models are purpose-model wiring and ride this issue's designation mechanism; WIRE-FREE verifies Groq's keys/chat legs only. To cover them, the Part 1 purposes vocabulary extends Drew's list with endpoint-family purposes: transcribe (STT), speak (TTS), guard (prompt-guard/classification). Capabilities vocabulary unchanged (tts/stt remain capability tags). This lane designates Groq's shelf models and seats them in purpose pools (transcribe/speak/guard), and the proxy gains the matching audio passthrough endpoints.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Coordination note from the WIRE-FREE lane (tracking: #13677), filed under Drew's free-wiring order (2026-11-23 14:23 CST).

    WIRE-FREE will also edit .opencode/opencode.jsonc (provider flips/definitions, pool seating, free-first ordering). Per the standing coordination rule: config edits are serialized — whoever reaches the config edit second rebases on the landed result; no parallel config edits.

    WIRE-FREE's sequence: non-config prep first (key-location hunt for nvidia/groq/openrouter, account creation for Kilo/LongCat, NVIDIA quota research, probes), config PR(s) after. Before opening any config PR, this lane will re-check this issue and the repo for a landed/in-flight DECISION-API config change and rebase accordingly. Asking the same in return: if your config PR lands first, a one-line comment here (or on #13677) with the PR link is enough for us to rebase on it.

    One handoff in the other direction: the NVIDIA free catalog's non-chat models (VL, embeddings, rerank) will be listed on #13677, NOT force-seated as chat — they belong to this lane's designation pass.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Part 3b — Luna-as-decision experiment: BAR POSTED BEFORE ANY RUN (Worker C)

    No provider has been called yet. This comment states the eval design and the exact pass bar; the run happens only after this post, and the verdict will be judged against the bar exactly as written here.

    Question

    Can a harness/prompt wrapper make Luna low — chat model gpt-6-luna at low reasoning effort, the leg seated as openai-payg/gpt-6-luna#low in luna-plan's temporary PAYG tail — meet the Decision API contract (structured yes/no, choice, and rubric-score outputs, schema-faithful), at the level of a native decision leg?

    Eval set (36 items, deterministic expected answers)

    Built from the Decision API's documented shapes (Google Gemini Decisions API, gemini-decision-1): three families, 12 items each.

    • noul (yes/no): a state payload plus a yes/no question; several items state an explicit rule/threshold in the state (quota walled below 5% remaining, lane stalled after 15 min without output, merge rule, alert rule) so the expected answer is derivable by rule, not judgement.
    • choice (pick one of 4 options): support-department routing, queue-row disposition, and free-first leg selection, each with a full option-id → description criteria map.
    • score (rubric score): severity, evidence-strength, and priority rubrics, 4 ordered levels each (indices 0–3, lowest first), one item per level per rubric.

    States are fleet-flavoured (quota windows, lane states, queue rows) plus neutral ones. The full set is saved as eval-set.json in the eval artifacts.

    Systems

    1. Luna low + harness — direct POST https://api.openai.com/v1/chat/completions, model gpt-6-luna, reasoning_effort: low, a decision-engine system prompt plus a strict per-item JSON Schema response_format forcing the contract shape {"value": ..., "confidence": 0..1} (value: boolean for noul, option-id enum for choice, integer level for score). Keys fetched by name only (fleet secrets get), never written to any file or comment.
    2. Baseline: Google Decision 1 native — direct POST https://generativelanguage.googleapis.com/v1beta/decisions, model gemini-decision-1, x-goog-api-key auth, one request per item, same states/questions in native shape. This also field-proves the endpoint Part 3a is wiring. Jev free is not added as a second baseline: no Jev/Zen key is fetchable by name from the secrets broker, and calling it would require routing through the opencode server, which this experiment does not do. Its absence is recorded here, before the run.

    Grading (deterministic, scripted — no vibes)

    • Schema-faithful: output parses and matches the contract shape exactly (for Luna: exactly the keys value + confidence, correct value type, value in the allowed set/range, confidence a number in [0,1]; for the baseline: the answer object carries the documented fields for its type).
    • Correct: decision value equals the expected value. Score-family tolerance: within ±1 level counts as correct, for both systems (baseline score value = argmax of its returned probabilities; Luna score value = its integer level).
    • Baseline noul value = returned probability ≥ 0.5 → true.

    THE BAR — Luna low + harness PASSES if and only if ALL of these hold

    1. Schema-faithful rate ≥ 95% (at most 1 of 36 outputs non-faithful).
    2. Accuracy ≥ 90% overall (at least 33 of 36 correct).
    3. Accuracy ≥ 80% per family (at least 10 of 12 correct in each of noul, choice, score).
    4. Accuracy no more than 5 percentage points below the Google Decision 1 native baseline's overall accuracy on the same set.

    Spend bound

    Total OpenAI PAYG spend for the whole experiment ≤ $2, tracked from response usage fields and stated in the verdict. The run stops early if the bound is at risk. Google baseline runs on the free tier.

    Artifacts (eval set, harness text, runner, raw outputs, results) are kept with the lane's eval files and summarised in the verdict comment that follows.

  5. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Part 3b — Luna-as-decision experiment: VERDICT — PASS (Worker C)

    Run completed after the bar was posted on this issue (bar comment above). Judged against the bar exactly as posted.

    The bar as posted

    Luna low + harness passes if and only if ALL hold: (1) schema-faithful ≥ 95%; (2) accuracy ≥ 90% overall; (3) accuracy ≥ 80% per family; (4) accuracy no more than 5 points below the Google Decision 1 native baseline. Score tolerance ±1 level, both systems.

    Results (36 items, 12 per family)

    System Family Schema-faithful Accuracy
    Luna low + harness noul 12/12 (100%) 12/12 (100%)
    Luna low + harness choice 12/12 (100%) 11/12 (91.7%)
    Luna low + harness score 12/12 (100%) 12/12 (100%)
    Luna low + harness overall 36/36 (100%) 35/36 (97.2%)
    Google Decision 1 native noul 12/12 (100%) 12/12 (100%)
    Google Decision 1 native choice 12/12 (100%) 12/12 (100%)
    Google Decision 1 native score 12/12 (100%) 12/12 (100%)
    Google Decision 1 native overall 36/36 (100%) 36/36 (100%)

    Bar check: (1) 100% ≥ 95% ✓ · (2) 97.2% ≥ 90% ✓ · (3) lowest family 91.7% ≥ 80% ✓ · (4) gap to baseline 2.8 points ≤ 5 ✓. All four criteria met.

    The one miss

    Choice item c07: a queue row asking to send a third-party email with no per-item approval recorded — expected escalate (send to a human decision-maker), Luna answered hold. Schema-faithful, wrong disposition; the native baseline answered escalate. No other failures in either system.

    Method notes

    • Luna: direct POST https://api.openai.com/v1/chat/completions, model gpt-6-luna, reasoning_effort: low, decision-engine system prompt + strict per-item JSON Schema forcing {"value", "confidence"}. All 36 calls HTTP 200.
    • Baseline: direct POST https://generativelanguage.googleapis.com/v1beta/decisions, model gemini-decision-1, one request per item, all 36 HTTP 200 — the native endpoint and model id are live-proven with the muse project key, as Part 3a requires.
    • Jev free was not run as a second baseline (recorded in the bar comment before the run: no Jev/Zen key fetchable by name; calling it would have required routing through the opencode server).
    • Grading was deterministic and scripted; raw outputs and per-item grades are in the lane's eval artifacts (eval-set.json, harness.md, runner.py, raw-luna.json, raw-google.json, results.json).

    Spend

    OpenAI PAYG usage from response usage fields: 10,818 prompt tokens + 1,161 completion tokens = 11,979 total tokens across 36 calls. Estimated spend ≈ $0.08 at assumed rates of $5/M input and $20/M output (Luna's PAYG list price is not carried in the API response; even at double those assumed rates the total is under $0.16) — well inside the $2 bound. Google baseline ran on the free tier: $0.

    Verdict

    PASS. Luna low is seatable in systemone after the free legs — the harness wrapper makes openai-payg/gpt-6-luna#low meet the decision contract (100% schema-faithful, 97.2% accuracy, within 2.8 points of the native baseline) on this eval set. The coordinator seats it; this lane made no repo edits and opened no PR.

  6. added a commit that references this issue on Nov 23, 2026
  7. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Additions from Drew (2026-11-23 14:39 CST):

    A1 — Classification sources (Worker A's slice). Purpose/capability designations are populated and verified from models.dev metadata AND the providers' own live model-list endpoints, not hand classification. Each model_designations entry records its provenance in a source field naming the asserting source, so a stale classification is traceable. A source that contradicts a designation wins over the brief.

    A2 — Embedding batch semantics (Worker B's slice, Part 2 amendment). Embedding endpoints are not one-in/one-out. The proxy's embeddings support must handle:

    • batched (array) inputs natively where the provider supports them;
    • splitting an oversized batch at the provider's per-request limit and re-joining the sub-batch results in the caller's original order;
    • index-faithful mapping of every result vector back to its input;
    • partial-failure behaviour that never silently misaligns results — a failed sub-batch fails its own items, not its neighbours' positions.
      Tests must cover split/re-join ordering and the partial-failure case.

    A3 — Autobatch (Worker B's slice, designed-for stretch, explicitly postponable). Consider a pooling layer for embedding requests: hold incoming requests in a pool until the pool goes idle, a max wait elapses, or a max item count is reached; then run the accumulated set out as one batch and fan results back to the appropriate requesters. Drew's ruling: if this proves hard, it may be postponed until after initial testing — build the endpoint support (A2) first, attempt the autobatch, and record the preliminary results on this issue either way (working, or postponed with the reason and the attempt's evidence).

  8. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    WIRE-FREE config PR #13691 in flight — please rebase on it.

  9. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Coordination note from lane WALL-SKIP (tracking: #13693 — route wall scoping, Drew's order 2026-11-23 14:36 CST).

    Two touch-points with this lane's work:

    1. Proxy file (bin/opencode-route-proxy.mjs) — your Part 2 adds endpoint dispatch; WALL-SKIP's slice P edits the wall-gating region of the same file (reset parsing, the known-exhausted gate, a bounded inferred wall, fail-safe pacing — no endpoint changes). Per the standing rule: first proxy PR to merge is the base, the other rebases. WALL-SKIP will re-read this issue immediately before opening its proxy PR and again before merging.
    2. Config — WALL-SKIP's config slice (a wallScope provider declaration + the first free/paid alias split) is sequenced after your Part 2 config work and Wire the untapped free providers: commandcode flip, SambaNova, Kilo, LongCat, NVIDIA completion, OpenAI data-sharing, EXAONE rotation, free-first pass #13677 both land. No parallel config edits from this lane.
  10. added a commit that references this issue on Nov 23, 2026
  11. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane DECISION-API / Worker A (config + checker slice, Parts 1 + 3a) — landed, with the 2026-11-23 provenance addition.

    PRs (both merged):

    Coordination / stacking: before editing I checked open PRs — no WIRE-FREE config PR was in flight (#13677 was still in prep), so this lane branched from main. WIRE-FREE's config PR #13691 has since landed on top; main's current config carries both lanes' work (verified: designations + sources + SambaNova all present).

    Live probe (evidence gate, before seating the Google leg) — documented shape from Google's Decisions API docs:
    POST https://generativelanguage.googleapis.com/v1beta/decisions, header x-goog-api-key (muse project key, fetched by name google.gemini-api-key via fleet secrets get; value never recorded), body {"model":"gemini-decision-1","input":"I was charged twice for my order.","questions":{"is_billing":{"type":"noul","instructions":"Is this a billing problem?"}}} → HTTP 200, answers.is_billing = {"noul": 0.99, "confidence": 0.99, "type": "noul"}, usage 96 input / 0 output tokens. The google-free leg was seated on this evidence.

    Checker / tests (run in the worktree on the laptop):

    • node bin/check-opencode-route-rules.mjs — passed. node bin/check-opencode-metered-providers.mjs — passed.
    • node bin/check-opencode-go-seating.mjs — fails identically on unmodified main (4 Go leaves with no successful route attempt in the live window; a live-state check, pre-existing and unrelated to this diff).
    • Suites: route-rules 31/31 (23 pre-existing + 7 designation tests + 1 source test), metered + go-seating 32/32.

    Live read-back (after laptop config sync pulled main):

    Provenance verification (Drew's 2026-11-23 addition) — models.dev (/api.json) AND each provider's live model list, all checked 2026-11-23; each designation entry now carries a source:

    • Zen decision ids (jev-1.13-free, jev-1.13, gpt-6-luna-decision): present on Zen's live list (GET opencode.ai/zen/v1/models, 105 models, no key needed). Absent from models.dev entirely — discrepancy vs the expectation that models.dev is the practical Zen source; their recorded source is Zen's own live list.
    • gemini-decision-1: Google live list (GET /v1beta/models, muse key) asserts it with supportedGenerationMethods: ["createDecision"]. Absent from models.dev.
    • gemini-embedding-2 / gemini-embedding-001: Google live list asserts both with embedContent; models.dev asserts both (family gemini-embedding) and marks gemini-embedding-001 deprecated — still live-served by Google, designation kept, deprecation recorded in the config comment.
    • Groq shelf — Groq live list for our key (GET api.groq.com/openai/v1/models, key from the laptop credential store, in-shell only; 11 models) and models.dev agree exactly: whisper-large-v3, whisper-large-v3-turbo (models.dev: input [audio]), canopylabs/orpheus-v1-english, canopylabs/orpheus-arabic-saudi (output [audio]), meta-llama/llama-prompt-guard-2-22m, meta-llama/llama-prompt-guard-2-86m (family llama-prompt-guard).
    • playai-tts discrepancy (explicit): the brief's candidate TTS id exists in neither source — absent from models.dev, absent from Groq's live list, absent from the config's groq catalog (Groq shut PlayAI TTS down). It was NOT designated or seated on say-so; the verified Orpheus pair is designated speak/tts and seated in tts-plan instead.

    Not in this slice: Part 2 (proxy endpoints — separate worker; bin/opencode-route-proxy.mjs untouched here) and Part 3b (Luna experiment).

  12. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Luna seating landed — systemone third leg (finisher pass, 2026-11-23)

    The prepared change was landed with one adjustment, decided by the coordinator after the checker conflict below: the payg-exception marker line above the new seat was dropped; everything else stands as prepared.

    What is on main now

    • PR: config(opencode): seat Luna low last in systemone, designate gpt-6-luna (code#13675) #13719 — merged, merge commit c1bd568266834fae3c3734ec306ef89505b2b801 (2026-11-23T21:02:43Z); branch commit dfee1b2ab1b.
    • model_designations: "gpt-6-luna": { "purposes": ["chat", "decision"], "source": "code#13675 Luna decision eval (PASS, 2026-11-23); models.dev" }.
    • systemone targets: zen-plans/jev-1.13-free, google-free/gemini-decision-1, then openai-payg/gpt-6-luna#low last, weight 0.1, with the dated explanatory comment (eval PASS — schema 36/36, accuracy 35/36 vs native baseline 36/36, spend ≈$0.08; temporary PAYG tail authorised by Drew 2026-11-23, remove when he lifts the temporary wiring).

    Validation (in the worktree, before commit)

    • node bin/check-opencode-route-rules.mjs — PASS (RC=0): "Route-rule guard passed".
    • node bin/check-opencode-metered-providers.mjs — PASS (RC=0): "Metered-provider config guard passed". (Before the marker was dropped this failed with exactly: "payg-exception marker at line 4181 is attached to a non-metered selection".)
    • node --test bin/check-opencode-route-rules.test.mjs — 31/31 pass, 0 fail (RC=0).

    Read-back

    • GitHub main, raw .opencode/opencode.jsonc (via gh api .../contents?ref=main): designation present (line 2822); systemone target openai-payg/gpt-6-luna#low seated last with weight 0.1; no marker line. Base note: main had moved past the worktree base a6b48ef2ce3, but the config file was unchanged between that base and current main in the affected blocks (empty diff), so the prepared change applied cleanly.
    • Laptop live config — PENDING on a blocked sync, not on this change: pm-git-sync (which keeps ~/git/code on clean main and feeds ~/.config/opencode/opencode.jsonc) is currently refusing to pull because the primary clone has pre-existing uncommitted work that is not part of this lane: M pm-stack/opencode-claimant/claimant.py, M pm-stack/opencode-claimant/test_claimant.py (journal: "working tree is dirty — not pulling", repeating every ~30s). That dirt was left untouched. As of this comment, the synced ~/.config/opencode/opencode.jsonc (mtime 14:45 CST) and the authenticated GET http://127.0.0.1:13420/api/config (HTTP 200) still show the old two-target systemone; once the primary is clean and the sync runs, the designation + third target should appear there (designation is verified in the file — the API projection strips designations, known gap opencode#2782).

    Finding — metered-guard scope
    The metered-provider guard's isMeteredModel() (bin/check-opencode-metered-providers.mjs) counts only the deepseek provider and cloudflare-* prefixes as metered. The claude-payg and openai-payg PAYG tails seated 2026-11-23 sit outside its scope and carry no payg-exception markers — and attaching a marker to one of those seats is itself an error ("attached to a non-metered selection"). The DeepSeek PAYG tail does carry a marker, because deepseek is in the metered set. Whether the metered set should grow to cover the *-payg providers is a separate decision — flagged here, not changed in this slice.

  13. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    DECISION-API Part 2 resume — progress + stop record (2026-11-23)

    Progress this pass

    • Re-read this issue end to end (body + all 10 comments). Note: Worker B's detailed stop report is not on this issue — the Part 2 design of record here is the issue body's spec (endpoint descriptors: openai passthrough, google-decisions, google-embed, jev-systemone, plus Fireworks/Baseten/Modal descriptor support) plus the A2 batch-semantics and A3 autobatch amendments (comment 7113388976). No open PR touches bin/opencode-route-proxy.mjs (checked open PRs), so this slice would be the base for WALL-SKIP's proxy slice per the first-to-merge rule.
    • Desktop Commander route verified live (laptop amd reachable; primary clone status read). The previously tripped ~/wt-lane-decapi-proxy was observed only (clean, no edits) and left untouched, per instructions.
    • A fresh worktree creation was started over the Commander route: branch lane/decapi-part2-proxy off GitHub main bf7040df368cb9991c65dd2ffcc96435b7dd233f, path ~/wt-lane-decapi-p2. The fetch completed; the worktree add was mid-file-update (~22%) when the operation's result was flagged.

    Stop
    The worktree-creation result failed the platform execution-risk check, and the governing notice for flagged content bars operating in that checkout (no git/build/test inside it) without the user's plain-words go-ahead naming it. No edits were made and no commands were run inside the new checkout. This lane is stopped here rather than varying mechanics on its own authority under that notice.

    To resume, one of:

    1. Drew's plain-words go-ahead naming the ~/wt-lane-decapi-p2 checkout (developing-today/code, branch lane/decapi-part2-proxy) and the Part 2 proxy files (bin/opencode-route-proxy.mjs + bin/opencode-route-proxy.test.mjs), or
    2. re-route the slice to a laptop-local OpenCode session (the standing route for flagged content), with the merge done via the GitHub API from its recorded evidence.

    Part 2 remains unimplemented: /v1/embeddings, /v1/decisions, /v1/rerank, audio passthroughs, purpose guards, native dispatch, A2 batch semantics; A3 autobatch not yet attempted (no preliminary results to record yet).

  14. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Part 2 routed to a laptop OpenCode session — queue task 21520

    Two Muse-session attempts at this slice have now stopped on the platform execution-risk check before any edit (Worker B at worktree creation via laptop-ssh; the resume lane mid-worktree-add over Desktop Commander — stop record in the comment above, which names this route as resume path 2). Per Drew's standing route ruling (2026-11-23 12:16 CST), the slice is routed to a laptop-local OpenCode session under the RT1 packet pattern; Archer merges via the GitHub API from the session's recorded evidence.

    Routing record

    • Packet: ~/rt1-packets/p11-13675-part2.json on the laptop (repo-task/v1, priority 20, max_attempts 4, DO NOT MERGE).
    • Task: 21520, queue repo-health-code-pilot, dedupe key repo-health:v1:fix:developing-today/code:issue:13675.
    • Enqueued 2026-11-23T21:19:27Z; the broker's enqueue read-back showed status queued, worker null. On verification minutes later the task was already claimed (2026-11-23T21:19:34Z) by laptop lane oc-code-07 (worker repo-worker-code) — the intended consumer for this route.
    • The packet carries the full spec of record so the session needs nothing else: the body’s Part 2 (client endpoints /v1/embeddings, /v1/decisions, /v1/rerank; purpose guards reading the config file, per the opencode#2782 projection gap; descriptor kinds openai / google-decisions / google-embed / jev-systemone plus Fireworks/Baseten/Modal descriptor support; native-wins-over-shim; Google native first), comment 7113036956 (audio passthroughs; transcribe/speak/guard purposes and their landed pools), and comment 7113388976 (A2 embedding batch semantics with split/re-join + partial-failure tests; A3 autobatch as a postponable stretch with preliminary results recorded either way). Files: bin/opencode-route-proxy.mjs + bin/opencode-route-proxy.test.mjs. No config edits (descriptors already landed; config is serialized across lanes). WALL-SKIP coordination noted: this PR is expected to be the base for route wall scoping: walled models keep getting hit — scope inference, alias providers for mixed plan+free, per-model free caps #13693’s proxy slice.
    • Worktree discipline in the packet: fresh worktree off the existing laptop clone at a new path on a new branch; ~/wt-lane-decapi-proxy and ~/wt-lane-decapi-p2 are flagged/partial and left untouched (any stale registration cleanup happens from the primary clone’s git metadata only, never by entering either directory).
    • Pre-checks at packet time (2026-11-23T21:15Z): full open-PR file scan — no open PR touches either proxy file; live queue lists for all three repo-health pilot queues grepped — no live task covered this item; laptop primary on main 7e7af3f72d0, branch lane/decapi-part2-proxy held by the partial p2 worktree.
  15. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane oc-code-07 (queue task 21520), Part 2 premise check on origin/main 9d84407b3a0 (2026-11-23).

    • bin/opencode-route-proxy.mjs (1820 lines) still routes only GET /v1/models (line ~1776) and POST /v1/chat/completions (line ~1787). No /v1/embeddings, /v1/decisions, /v1/rerank, or audio passthrough handler exists.
    • No purpose guard and no options.endpoints dispatch in the proxy source.
    • No open PR touches bin/opencode-route-proxy.mjs or its test file.

    Parking without a code change. Part 2 is a multi-hour slice (four endpoints, purpose guards, four descriptor kinds, A2 batch split and re-join, audio passthroughs, tests). This run cannot land it as a reviewable PR, so it is not started. Nothing is merged, and no closing keywords are used.

    Resume condition (not a person): a fresh laptop run claims this task and works the packet as written, with the worktree at a new path off the primary clone.

    Filed by oc-code-07.

  16. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Coordination note from lane KEY-CREATE-2 (tracking: #13677 items 5 + 8 — the three missing provider keys, now created).

    Key state (names only): groq.api-key and openrouter.api-key were created fresh in the laptop browser and stored in BWS; nvidia.api-key turned out to already exist in the server credential store (the earlier hunt never searched opencode.db's credential table) and has been escrowed into BWS under that name. Credential rows for groq/openrouter now hold the new BWS keys; all three probe 200 direct.

    Config touch (sequencing): this lane is opening one follow-up config PR on .opencode/opencode.jsonc covering ONLY the nvidia + openrouter provider blocks and the nvidia-free-plan / openrouter-free-plan plans (NVIDIA entitlement-probe seating; OpenRouter :free shelf refresh; the dead DeepSeek leg on the NVIDIA door answered 410 and comes out). No proxy-file changes, no designation changes. Per your Part 2 stop record (comment 7114093082) your remaining work is the proxy slice, so no overlap is expected; if a Part 2 config touch does appear, first config PR merged is the base and the other rebases — this lane re-checks open PRs immediately before merging.

    For your lane (non-chat finds, from the NVIDIA entitlement probe, 2026-11-23): entitled embed shelf on the NVIDIA door: nvidia/embed-qa-4, nvidia/llama-3.2-nemoretriever-1b-vlm-embed-v1, nvidia/llama-3.2-nv-embedqa-1b-v1, nvidia/nemotron-3.5-embed-1b, nvidia/nemotron-3.5-embed-8b, nvidia/nv-embedqa-mistral-7b-v2, snowflake/arctic-embed-l. Also entitled but non-chat-shaped: fastino/gliner2-pii (422 on chat shape), nvidia/riva-translate-4b-instruct-v2 (translate, chat-200), nvidia/llama-3.1-nemotron-safety-guard-8b-v3 (guard, chat-200). Full probe table lands on #13677 with this lane's final record.

  17. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane code-i (queue task 21520), Part 2 slice started — premise re-verified, work beginning.

    • Fresh read of this issue (body + all 13 comments) and fresh open-PR check: no open PR touches bin/opencode-route-proxy.mjs or its test file, so this slice is the proxy base per the first-to-merge rule. Note: WALL-SKIP slice P (commit 20d80c721fa) is already merged into origin/main — no rebase conflict from this side; this slice builds on top of the merged wall-gating region without touching it.
    • Worktree: fresh ~/wt-rt1-13675-part2 on new branch lane/rt1-13675-part2-proxy, based on freshly fetched origin/main (62a81ddd8da). Flagged checkouts (~/wt-lane-decapi-proxy, ~/wt-lane-decapi-p2) untouched; primary clone dirt untouched.
    • Live check on origin/main: proxy (2113 lines) still routes only GET /v1/models and POST /v1/chat/completions; no /v1/embeddings, /v1/decisions, /v1/rerank, audio passthroughs, purpose guards, or options.endpoints dispatch. Part 2 unimplemented as expected.
    • No config edits in this slice (descriptors already landed); guards will read purposes/designations from the config file per the opencode#2782 projection gap.

    Implementing endpoints + purpose guards + descriptor dispatch (openai / google-decisions / google-embed / jev-systemone + Fireworks/Baseten/Modal descriptor support, fixtures + docs only) + A2 batch semantics + A3 attempt-or-postpone, with tests. Next post at the next slice boundary with the PR link, head SHA, per-endpoint evidence, and A3 disposition. DO NOT MERGE — Archer merges from the final record.

  18. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Part 2 slice record — proxy purpose routing is READY TO MERGE (do NOT merge from this note; merge via the normal queue lane).

    • PR: proxy: purpose-routed embeddings/decisions/rerank/audio/guard + A2 batch (#13675 P2) #13803
    • Head SHA: 5f42bcd (branch lane/rt1-13675-part2-proxy, based on origin/main)
    • Scope: bin/opencode-route-proxy.mjs (purpose dispatch + A2), bin/opencode-route-proxy.test.mjs (17 new tests), bin/request-body.mjs (bytes accessor). No edits to .opencode/opencode.jsonc. No other worktrees touched.
    • Verification: node --test bin/opencode-route-proxy.test.mjs → 80/80 pass (63 prior + 17 new); node bin/check-opencode-route-rules.mjs → passed.
    • Semantics delivered: chat unknown-route stays 502; new-endpoint unknown route 404; pool-purpose mismatch 400; no OpenAI default for decisions (400, zero leaf contact); audio/guard/rerank/embed keep OpenAI defaults; retryable sub-batch failure fails over, non-retryable 4xx → 207 index-faithful; audio skips per-leaf first-response timeout, overall deadline applies; zen jev-systemone shape provisional; Fireworks/Baseten/Modal = fixtures + docs only, no live seats.
    • A2: split/re-join ordering + partial-failure tests green. A3 autobatch POSTPONED with evidence: 6 concurrent single-item embeds issue 6 leaf calls (no coalescing); correctness unaffected.
    • Config gaps for the record (not changed here): none new; designations read from the config file per the opencode#2782 projection gap.
  19. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    code-g revalidation (task 21520, 2026-11-23): PR #13803 still open at head 5f42bcd matching the READY record, mergeable, no review changes requested, no competing proxy PR. Fresh re-run in existing worktree at that head (read-only, no edits): node --test bin/opencode-route-proxy.test.mjs -> 80/80 pass; node bin/check-opencode-route-rules.mjs -> passed. Worker does not merge; leaving merge to the normal lane.

  20. added a commit that references this issue on Nov 23, 2026
  21. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Merged (Part 2) — Archer (merge lane MERGE-READY-RT1), 2026-11-23.

    PR #13803 merged via the GitHub API from the Part 2 slice record + code-g's revalidation (task 21520): head 5f42bcd7cc41edd48235707de37da82343a9eaa8 re-read fresh immediately before merging (open, mergeable/clean), proxy tests 80/80 pass, route-rules checker passed.
    Merge commit: 6790c8ae15bda40722ff8ccca95fbdaf30c2bf73.
    Diff scope verified: bin/opencode-route-proxy.mjs, its test file, and bin/request-body.mjs only. This issue stays open for the remaining parts. Queue task 21520 is parked-until-merge; its completion loop can now close.

  22. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    code-j final verification (task 21520): PR #13803 is MERGED and head 5f42bcd is ancestor of origin/main. Fresh read-only re-run at current main 2c0161a: node --test bin/opencode-route-proxy.test.mjs -> 80/80 pass; node bin/check-opencode-route-rules.mjs -> passed. A3 remains postponed with evidence per prior record. All acceptance items met; completing the task without merge keywords.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions