← Back to Pull requests

chore: sync Comfy API v2 specification and Comfy Router pages (cloud@8bd19df3) #2647

Merged
cloud-code-bot[bot] merged 5 files (118 lines) on Dec 03, 2026 07:17 UTC
View on GitHub
cloud-code-bot[bot] cloud-code-bot[bot] commented on Dec 03, 2026 07:11 UTC
Author

Automated sync of the public Comfy API v2 and Comfy Router specifications used by the generated API references, and of the Comfy Router API pages generated from the Comfy API contract. Source: cloud@8bd19df3.

router-openapi.yaml is the public Comfy Router contract, projected from the same upstream contract the Router pages are generated from and the same projection the Router SDKs vendor (the Python and Swift copies byte-for-byte; the TypeScript SDK reformats its copy with oxfmt). It is GENERATED - edit the upstream contract, not this copy. If this is the first sync that carries it, it renders nothing until this repository gives it an openapi: navigation entry.

development/comfy-router/reference.mdx is GENERATED - edit the upstream contract, not this copy. It is regenerated on every sync and an edit made here is overwritten by the next one.

development/comfy-router/quickstart.mdx, development/comfy-router/limitations.mdx, development/comfy-router/litellm.mdx and development/comfy-router/realtime.mdx are hand-written upstream and published verbatim. They are likewise overwritten on every sync, so edit them upstream. If this is the first sync that carries one of them, it also needs a navigation entry in this repository before it renders.

development/comfy-router/pricing.mdx is NOT part of this sync: it is GENERATED in this repository by bun run router-pricing:gen from router-pricing/metronome-rates.json and the model pages, and this sync refuses to change it. To change the page, edit its generator or rate snapshot here.

router-schemas/<provider>/<model>.json are the exact GET /v2/models/{id}/openapi.json documents for every model with an authored schema; the docs generator (.github/scripts/snippets/gen-code-pages.ts) reads them. They are GENERATED and the directory is MIRRORED on every sync, so a document removed upstream is removed here too - edit the upstream contract, not these copies.

development/comfy-router/models/**/code.mdx, the model index development/comfy-router/models.mdx, the serving-provider index development/comfy-router/providers.mdx and the docs.json entries for them are this repository's OWN derived output: the sync runs bun run code-pages:gen -- --prune over the documents above and commits the result, so code-pages is green as opened and no regen commit is needed on this branch. They are GENERATED and PRUNED - a page whose model left the catalog is deleted here too, and providers.mdx exists only while some model publishes an x-comfy-router-alt-providers leg.

This is the single rolling sync pull request for the published Comfy API v2 specification and Comfy Router pages. It lives on chore/sync-comfy-api-v2-spec, and every later upstream change force-updates that branch and refreshes this description with the new source commit — so there is only ever one open sync pull request here, and its diff is always the current one. Please do not push commits to this branch; the next sync would overwrite them (it checks first and fails rather than doing so silently).

The projection strips internal operations and non-public source annotations, and fails before this pull request can be created if a known internal marker survives. When this repository's DOCS_SYNC_AUTOMERGE variable is true, .github/workflows/sync-pr-automerge.yml squash-merges it once every check has finished green; otherwise it waits for human review.

Diff: 118 lines (+94 / -24) across 5 files Reviewer: github-actions[bot] Review duration: 6m
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.52) × (1 − Review Confidence (0.40)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 118 lines diff across 5 files
0.52
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
40%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.286
Rapid Merge rapid_merge
0.100
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #2647"
general weight: 0.35
Assignees
cloud-code-bot[bot] cloud-code-bot[bot]
Labels
risk: low confidence: 40.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 52.4% (MEDIUM) · Higher = larger blast radius
52.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 40.5% · Lower = rushed or shallow review
40.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 31.2% · Safe to merge
31.2%
Repository