Skip to content

fix(ci): make the endpoint-coverage check offline and deterministic - #26

Merged
njbrake merged 1 commit into
mainfrom
fix/offline-coverage-check
Aug 6, 2026
Merged

fix(ci): make the endpoint-coverage check offline and deterministic#26
njbrake merged 1 commit into
mainfrom
fix/offline-coverage-check

Conversation

@njbrake

@njbrake njbrake commented Aug 6, 2026

Copy link
Copy Markdown
Member

Note: this PR was drafted by Claude via back-and-forth with @njbrake. The reasoning and decisions are his; the prose is Claude's.

Makes the endpoint-coverage check deterministic. Companion to mozilla-ai/otari#516, which moves the drift gate into the gateway.

The check fetched docs/public/openapi.json from otari main over the network at test time, so its result depended on when it ran rather than on what the commit contained. An unchanged commit passed one day and failed the next. Because CI only runs on push and pull_request, main here was red from around July 21 and nobody saw it until August 6 (mozilla-ai/otari#438).

The gate now runs in the gateway, comparing the manifest against the spec from the same commit, so drift fails in the repo that causes it. What is left here is offline and structural: sections non-empty, sections disjoint, entries well-formed.

sdk-endpoints.txt becomes a generated artifact, pushed by the codegen workflow from the canonical copy in otari. AGENTS.md is updated accordingly, since it previously told agents to edit a file that will now be overwritten on the next regeneration.

Net effect on what is caught: no loss. The spec comparison still happens, just somewhere it can be trusted. What is lost is a check that was never reliable here, because it could not see a spec change until someone happened to push.

@njbrake
njbrake merged commit af17bdd into main Aug 6, 2026
5 of 6 checks passed
@njbrake
njbrake deleted the fix/offline-coverage-check branch August 6, 2026 16:25
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