Skip to content

Bound public model work requests#104

Merged
vahid-ahmadi merged 1 commit into
mainfrom
agent/bound-public-model-work
Jul 26, 2026
Merged

Bound public model work requests#104
vahid-ahmadi merged 1 commit into
mainfrom
agent/bound-public-model-work

Conversation

@vahid-ahmadi

Copy link
Copy Markdown
Contributor

What changed

  • publishes MCP schema bounds for expensive OBR and SVAR inputs
  • limits OBR shock periods to 1-40 quarters
  • limits SVAR forecast horizons to 1-40 quarters
  • limits SVAR posterior draws to 50-10,000
  • enforces the same bounds in the core adapters before importing or running a model
  • adds regression tests for schemas and direct adapter bypasses

Why

The public, no-key MCP endpoint accepted unbounded integer work requests. A malformed or abusive request could trigger excessive model computation even when callers bypassed the MCP layer.

Validation

  • 52 focused core/wiring tests passed
  • Ruff passed on all changed Python files
  • git diff --check passed

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
macromod Ready Ready Preview, Comment Jul 26, 2026 1:43pm

Request Review

@vahid-ahmadi
vahid-ahmadi marked this pull request as ready for review July 26, 2026 13:51
@vahid-ahmadi
vahid-ahmadi merged commit d675687 into main Jul 26, 2026
5 checks passed
@vahid-ahmadi
vahid-ahmadi deleted the agent/bound-public-model-work branch July 26, 2026 13:51
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