Skip to content

Enforce generation input budgets before provider spend - #327

Merged
Ankit6149 merged 9 commits into
masterfrom
feat/connector-truth-batch
Sep 25, 2026
Merged

Ankit6149 merged 9 commits into
masterfrom
feat/connector-truth-batch

Conversation

@Ankit6149

Copy link
Copy Markdown
Owner

Advances #34 with a shared server-enforced input-budget slice.

Implemented:

  • reject generation request bodies above 512 KiB before JSON parsing
  • validate actual UTF-8 bytes even when Content-Length is absent/untrusted
  • stable machine-readable generation_limit.* issues with field, actual, max and safe guidance
  • server limits for project name, notes, audience, documentation links, document text, combined context, destinations, output types and canonical source/media record counts
  • /api/launch_kit validates all limits before repository/link ingestion and before provider generation
  • Studio surfaces the first precise limit diagnostic
  • MCP campaign schemas advertise the same field/count ceilings while the API remains the final enforcement boundary
  • regression coverage for byte caps, malformed JSON, individual/count limits, combined context, exact boundary acceptance and API/MCP ordering/parity

Still open for #34:

  • per-owner/session/IP request rate policy
  • concurrent campaign ceilings
  • provider-request-count budget
  • preflight token/cost estimates and hard spend limits
  • stress/abuse acceptance across deployment modes

@vercel

vercel Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
signal-flow-studio Ignored Ignored Preview Sep 25, 2026 11:15am UTC

@Ankit6149
Ankit6149 merged commit 476bacd into master Sep 25, 2026
5 checks passed
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