Repository navigation
refactor(agents): reuse canonical model runtime facts - #177651
Conversation
Unify thinking and prototype classification with existing owners and share the fork API descriptor without weakening hosted-tool denial or authority checks. Synthetic accessor-backed blocks use one captured type value; serialized provider data is unchanged.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
|
Merged via squash.
|
Unify thinking and prototype classification with existing owners and share the fork API descriptor without weakening hosted-tool denial or authority checks. Synthetic accessor-backed blocks use one captured type value; serialized provider data is unchanged.
What Problem This Solves
Model execution repeats existing thinking-block, prototype-key, and credential-mode classification. Session forks also maintain two copies of the supported API roster, one for admission and another for disabling hosted tools.
What Changed
Reuse the existing thinking-block and blocked-object-key owners, and the exact-mode normalizer in the route-auth owner. One private fork descriptor now supplies both API membership and the provider's disabled tool-choice shape. Both unsupported-API checks stay, along with every live-authority, hosted-tool denial, cancellation, prefix, replay and recovery check.
This model-runtime area split removes 21 net production lines in five files, plus the exact obsolete two-cast assertion-baseline row. No tests are changed. The retired thinking predicate is core-private with no SDK/public-package consumer; no SDK symbol, public signature, config, schema, protocol or dependency change.
Best-effort tradeoffs accepted
Evidence
src/gateway/session-row-scope.ts|unicorn/no-new-array|1baseline mismatch (98 received/97 expected), matching the coordinator's open main-flake signature. No suppression or allowance was added.