Skip to content

Report and enforce effective managed-data upload limits - #92

Merged
obsessixnv merged 5 commits into
mainfrom
fix/39-effective-data-limits
Sep 15, 2026
Merged

obsessixnv merged 5 commits into
mainfrom
fix/39-effective-data-limits

Conversation

@obsessixnv

@obsessixnv obsessixnv commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

A complete data file could be rejected by the 1 MiB managed-data envelope limit after MCP advertised 1.5 MB inline support or recommended an unlimited staged upload. The server now distinguishes compact payload, escaped envelope, inline transport, staged file and complete HTTP request limits using resolved startup configuration.

Domain overflow reports measured bytes, the applicable limit and whether changing transport can help. Optional advisory data_size measurements reject known-impossible uploads before reserving a handle; actual content is independently validated on consume. Existing clients and whitespace-heavy JSON remain supported, with no sampling, truncation, capacity increase or migration. Data upload responses and tool/prepared-prompt guidance expose the effective limits.

Validation on the combined branch after #91: 269 unit tests, 293 browser tests, and full throwaway-Postgres integration, including exact boundaries, escaping/UTF-8, runtime overrides, real HTTP request boundaries/direct PUT separation, omitted/understated measurements, and unchanged versions/audit/upload state on failure. Production dependency audit and shell syntax pass. Independent review found no blocking issues. CI covers the supported Node matrix and browser workflows.

Closes #39.

@obsessixnv obsessixnv added bug Something isn't working audit:2026-09-14 Functional and reliability audit of commit 420bad8; cybersecurity excluded. priority:P2 Normal: correctness, reliability, or supported-workflow failure. size:M Medium: roughly 1–3 engineering days including focused checks. area:mcp Pages mcp functionality and maintenance. labels Sep 15, 2026
@obsessixnv
obsessixnv merged commit 5b003b8 into main Sep 15, 2026
5 checks passed
@obsessixnv
obsessixnv deleted the fix/39-effective-data-limits branch September 15, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:mcp Pages mcp functionality and maintenance. audit:2026-09-14 Functional and reliability audit of commit 420bad8; cybersecurity excluded. bug Something isn't working priority:P2 Normal: correctness, reliability, or supported-workflow failure. size:M Medium: roughly 1–3 engineering days including focused checks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P2] Advertised managed-data upload sizes exceed the actual envelope limit

1 participant