What fails#
The daily spec sync for opencode-go failed on 2026-11-17 05:30 UTC (PostHog ingest_failed, job spec-sync):
opencode: https://raw.githubusercontent.com/anomalyco/opencode/dev/services/site/src/docs/content/console/go.mdx documents no endpoint paths
It fails every daily run until fixed, so the Go OpenAPI document and route classification stay at their last good state.
Cause#
Same upstream rewrite as #675. The ## Endpoints section of console/go.mdx no longer has the model / ID / endpoint table. It now says "See each model's ID, path and AI SDK package" and shows curl https://opencode.ai/inference/go/v1/models.
documentedRoutes (src/server/providers/opencode-routes.ts:28-40) reads paths only from that table and throws (correctly) when there are none.
The live listing GET https://opencode.ai/inference/go/v1/models now states the route per model under api:
"api": {"chat-completions": {"base_url": "https://opencode.ai/inference/go/openai/v1",
"sdk": {"aisdk": "@ai-sdk/openai-compatible", ...}, ...}}
(keys across rows: api, canonical_id, capabilities, cost, created, description, family, go, id, knowledge, last_updated, limit, modalities, name, object, open_weights, owned_by, release_date, type).
Fix#
- Take Go routes from each listing row's
api.<protocol>.base_url (+ the protocol's path) instead of the docs table, the same way #676 moved training to go.training. Throw when a listed id has no api entry or an unknown protocol key.
- Keep
documentedRoutes only if another caller still needs it (OpenCode Zen?); otherwise delete it.
- Do not pull other listing facts (cost, limits, capabilities) in this fix; that is separate work.
- Test with a listing fixture shaped like the row above.