Skip to content

fix: stabilize SuperAPI direct route - #7

Merged
01-Yang merged 4 commits into
zero-one/brandfrom
codex/fix-superapi-direct-route
Aug 14, 2026
Merged

fix: stabilize SuperAPI direct route#7
01-Yang merged 4 commits into
zero-one/brandfrom
codex/fix-superapi-direct-route

Conversation

@01-Yang

@01-Yang 01-Yang commented Aug 14, 2026

Copy link
Copy Markdown
Owner

What changed

  • map the stable container name superapi-direct to Docker host-gateway
  • add a repository contract that rejects pinned numeric Docker bridge addresses
  • validate the mapping in Zero One CI
  • document the production canary, rollback, and post-change acceptance thresholds

Why

Production usage isolation showed that the public SuperAPI path had materially worse TTFT and provider 5xx than the existing host-local direct tunnel. The initial live canary used 172.18.0.1:18181, but a Docker bridge address can change whenever the Compose network is recreated. This change makes the direct route durable without changing application images or credentials.

Validation

  • sh -n deploy/zero-one/test-direct-upstream.sh
  • sh deploy/zero-one/test-direct-upstream.sh
  • sh deploy/zero-one/test-routing.sh
  • YAML parse of Compose and workflow files
  • git diff --check

Production deployment remains a separate operator step: update the host Compose file, validate the rendered mapping, force-recreate only sub2api, verify the tunnel from the container, and then replace the temporary numeric Base URL with http://superapi-direct:18181.

@01-Yang

01-Yang commented Aug 14, 2026

Copy link
Copy Markdown
Owner Author

CI baseline note: the required backend-security and frontend-security failures are unrelated to this Compose/docs change. The current stable baseline now fails on Go 1.26.5 standard-library advisories fixed by upstream #5639, and nanoid@3.3.17 fixed by upstream #5638. No audit exception or branch-protection bypass is proposed. Keep this PR draft until those fixes land in a stable upstream tag and the Zero One baseline is synced separately.

@01-Yang

01-Yang commented Aug 14, 2026

Copy link
Copy Markdown
Owner Author

Production canary update (2026-08-14 CST):

@01-Yang
01-Yang marked this pull request as ready for review August 14, 2026 16:28
@01-Yang
01-Yang merged commit 91a0c46 into zero-one/brand Aug 14, 2026
24 checks passed
@01-Yang
01-Yang deleted the codex/fix-superapi-direct-route branch August 14, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant