Skip to content

feat(route-audit): add catalog snapshot and route checks (#1173) - #4703

Merged
dezren39 merged 12 commits into
mainfrom
repo-health/task-6630
Nov 9, 2026
Merged

dezren39 merged 12 commits into
mainfrom
repo-health/task-6630

Conversation

@dezren39

@dezren39 dezren39 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

provider-catalog-sync now has an offline snapshot handoff, and the OpenCode guard verifies effective tier coverage plus effort variants where the tracked catalog declares them.

laptop proxy lists + models.dev
  -> snapshot-provider-catalogs --output-dir <dir>
  -> provider-catalog-sync --source-dir <dir> --models-dev <dir>/models.dev.json
  -> machine-readable catalog diff

tracked OpenCode JSONC
  -> recursive route/provider-route expansion
  -> skip disabled/funds leaves; check scout/workhorse/specialist/summit coverage and effort pins
  -> basic CI guard

Disabled seats remain legal dormant references per the switchboard; they are excluded from effective membership and cannot prove coverage. Built-in and runtime-overlay catalogs are reported as unknown, not failed.

Evidence

  • Before: Detached audits could not reach laptop proxy ports and had no route-rule verifier.
    After: node --test bin/provider-catalog-sync.test.mjs bin/provider-catalog-snapshot.test.mjs bin/check-opencode-metered-providers.test.mjs bin/check-opencode-route-rules.test.mjs — 58 passed; both canonical-config guards pass.
  • Snapshot integration test feeds generated local files directly into runSync and detects a validated addition without network access.

Merge Danger

Door: Two-way; revert the tooling/CI commit to roll back.

Blast Radius: Narrow. Tooling and guard wiring only; no OpenCode route/model config or workspace files changed.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 3, 2026 01:29
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e241803b-a6cf-477f-96e2-c58020bf937c
Commits

Reviewing files that changed from the base of the PR and between 9892da4 and 0308d94.

Files selected for processing: 8

  • .github/workflows/opencode-config-guard.yml
  • bin/check-opencode-metered-providers.mjs
  • bin/check-opencode-route-rules.mjs
  • bin/check-opencode-route-rules.test.mjs
  • bin/provider-catalog-snapshot.md
  • bin/provider-catalog-snapshot.test.mjs
  • bin/provider-catalog-sync.mjs
  • bin/snapshot-provider-catalogs.mjs
Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T05:39:43.965570Z
We couldn’t complete this review. Comment @codex review to try again.
0308d94 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 726ec25ff2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bin/check-opencode-route-rules.mjs Resolved
Comment thread bin/check-opencode-route-rules.mjs Resolved
Comment thread bin/check-opencode-route-rules.mjs Resolved
Comment thread bin/check-opencode-route-rules.mjs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c074bb1a2b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bin/check-opencode-route-rules.mjs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 215cfbfe71

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bin/check-opencode-route-rules.mjs Resolved
Comment thread bin/check-opencode-route-rules.mjs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 70a598426f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bin/check-opencode-route-rules.mjs Resolved
@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · handed off

repo-worker-code-k added 2 commits November 8, 2026 23:20
Resolve the workflow guard and provider-source conflicts against main's
2026-11-06 proxy-infra decommission, and keep the route-audit work
consistent with it:

- opencode-config-guard: take main's unfiltered pull_request trigger,
  setup-node and seating fixtures, then add the provider-catalog and
  route-rule steps.
- provider-catalog-sync: keep main's reduced PROVIDER_SOURCES table
  (only the synthetic fixture-proxy remains) and keep the branch's
  export so the snapshot tool can enumerate it.
- snapshot tests: drive expectations off the source table instead of the
  retired commandcode/chatgpt ports.
- route rules: tolerate an emptied chain stage (workhorse-primary is
  targets: [] by design) while still flagging a missing targets list.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit 2b53f81 into main Nov 9, 2026
2 of 6 checks passed
@dezren39
dezren39 deleted the repo-health/task-6630 branch November 9, 2026 05:40
@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

agent-note:v1
state: done
task: 14042 (queue repo-health-code-pilot, worker repo-worker-code, lane code-p)

Completed as already_done: PR #4703 was verified MERGED by fresh REST read (merged_at 2026-11-09T05:39:58Z, merge sha 2b53f81, head branch repo-health/task-6630) before this lane did any shepherd work. The shepherd target had already landed; no further action owed on PR #4703.

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