Repository navigation
Description
Summary
The list of generator-owned docs pages is defined in three places, and one copy has already drifted:
scripts/generate-provider-docs.mjsmain()writes five files:supported-providers.md,configuration.md,sdks.md,rust-adk.md,typescript-adk.md.Taskfile.ymlGENERATED_FILESlists the same five and feeds them toprettier --writeandgit diff --exit-codeingenerate/generate:check..github/workflows/ci.yml, jobdrift, stepFail on schema drift, re-implementsgenerate:checkinline and hardcodes the list twice more (once forbunx prettier --write, once forgit diff --exit-code) - with only four files.sdks.mdis missing from both.
The effect: when the canonical schema gains or loses a provider, the generator rewrites the GENERATED:sdks-provider-list region of sdks.md in CI, but the diff check never looks at that file, so the job stays green while sdks.md is stale. bun test does not cover this either - it compares against the offline fixture, not the live schema.
Principle applied - clean-code: duplication (the same config value defined in several places, plus a copy-pasted command body). The Taskfile header comment already states the intended shape: tasks "simply delegate to the matching bun script in package.json". generate and generate:check are the only two that do not, which is why CI had to copy them. The fix is local: one definition of the drift check that both the Taskfile and the CI job call.
Acceptance Criteria
- Before:
ci.ymljobdriftspells out the generator command, the prettier command and thegit diffcommand with its own four-file list. After: the step calls one shared entry point (for examplebun run generate:check, withgenerateandgenerate:checkadded topackage.jsonscripts) and contains no file names. - Before:
Taskfile.ymlgenerateandgenerate:checkcarry their own command bodies and theGENERATED_FILESvar. After: both delegate to the matchingbun runscript like every other task in the file, and still passSCHEMA_REPO/SCHEMA_REFthrough. - Before: the generated-file list exists in
Taskfile.yml(five files) and twice inci.yml(four files). After: it exists in exactly one place outside the generator and includessdks.md. - A local edit inside the
GENERATED:sdks-provider-listregion ofsdks.mdmakes the drift check fail (it passes today in CI). - The "run
task generateand commit" failure message is kept. - Existing tests still pass (
bun test,bun run format:check,bun run lint:md,bun run build).
Activity
edenreich commentedon Nov 16, 2026
@infer can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Nov 16, 2026
Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.9· CLI:v0.262.0· Gateway:v0.67.1· View JobTodos
Pull Request
#1245
✅ Infer Result: Success
Done. All the acceptance criteria for #1237 are met on PR #1245 (marked ready for review, Roadmap board item moved to QA).
What changed
package.json: addedgenerateandgenerate:checkscripts.Taskfile.yml:generateandgenerate:checknow just delegate to the matchingbun runscripts like every other task, still passingSCHEMA_REPO/SCHEMA_REFthrough. TheGENERATED_FILESvar and the inline prettier /git diffcommand bodies are gone..github/workflows/ci.yml: thedriftjob's "Fail on schema drift" step is now a singlebun run generate:check- no file names, no copy-pasted command body.scripts/generate-provider-docs.mjs:GENERATED_FILESplus aREGIONS_BY_FILEtable are now the single source of the five generated paths,sdks.mdincluded.main()formats its own output withprettier --write, and a new--checkmode regenerates and snapshot-compares each page, exiting 1 with the kept "Runtask generateand commit the result." message plus aStale files:line naming the drifted pages.AGENTS.md: the offline regeneration steps drop the now-redundant manualbunx prettier --writepass.One thing the issue's example design alone would not have covered: a "regenerate then
git diff" check silently erases any hand edit inside aGENERATED:*region before the diff runs (I proved this live - my injectedsdks.mdedit passed that variant). The snapshot-compare in--checkis what makes the requested failure actually observable, and it closes the real CI hole: schema changes to theGENERATED:sdks-provider-listregion now fail the drift job instead of rewritingsdks.mdinvisibly.Verification
bun test(12 pass),bun run format:check,bun run lint:md,bun run build- all pass.bun run generate:checkpasses on a clean tree and fails withStale files: sdks.mdand exit 1 after a hand edit inside theGENERATED:sdks-provider-listregion.Skipped: no per-region flag plumbing or dependency changes - the prettier invocation reuses the repo's existing
bunx prettier, and the list intentionally has zero copies outside the generator (one place total, which is strictly stronger than the criterion's one-place-outside).Risk: a failing local
bun run generate:checkleaves the regenerated (canonical) pages on disk - rungit statusandgit restoreor commit them to see what drifted. The drift check only detects what regeneration would change, so hand edits outside the generated regions still pass it by design.Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.9· CLI:v0.262.0· Gateway:v0.67.1· Exit Code:0· Duration: 7m 24sTokens: 5,463,026 in · 60,854 out · 5,523,880 total (44 requests)
Tool calls: 64 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Nov 17, 2026
🎉 This issue has been resolved in version 0.9.27 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀