reach

command
v1.801.470 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command reach answers: does the DEPLOYED api answer every address this document publishes?

The document is a build-time weave of each app's own projection of its own router (plugin/embed.go). `surface-check` proves that weave equals the source. Neither proves the thing a caller actually needs: that the address is reachable in production. Three things break that and nothing else checks any of them —

a stale subset      the binary serves /v1/billing/gpu/eligibility and
                    publishes /v1/billing/gpu-eligibility, from ONE build
a missing mount     manifest/apps.go is a third, hand-maintained source of
                    truth and must be a superset of what each app registers
an edge interceptor a worker in front of the origin answering /v1/models*
                    and /v1/pricing* that no repo in this fleet can see

THE RATCHET. Every line in the ratchet file is `METHOD /path`: an address this document publishes that production does not route, each one a named defect owned by someone. The file may only SHRINK. A 404 that is not in it fails the release; a line in it that now answers is a line to delete. That is what keeps a defect being closed from blocking every release while it is open, without letting a new one in — and unlike an allowlist it names what is wrong instead of hiding that anything is.

This was openapi/reach.py. It is Go now for one reason: cloud is a Go service — 2000+ .go files and no Python in the shipped image — and the only thing that needed a Python runtime was this gate. On Ubuntu 24.04 that turned into a dependency the runner refuses to install (PEP 668: `pip install` answers "externally-managed-environment"), so a gate about routing kept failing over package management. gopkg.in/yaml.v3 is already a direct dependency here, so this costs nothing to build and nothing to provision.

Usage: reach <spec.yaml> <base-url> <ratchet-file>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL