Skip to content

[release/0.6] LCORE-4621: Raise Responses limit to 1 MiB - #3288

Merged
tisnik merged 1 commit into
lightspeed-core:release/0.6from
asimurka:backport-max-responses-request-size-to-0.6
Nov 19, 2026
Merged

tisnik merged 1 commit into
lightspeed-core:release/0.6from
asimurka:backport-max-responses-request-size-to-0.6

Conversation

@asimurka

Copy link
Copy Markdown
Contributor

Description

Raise the default serialized /v1/responses body limit to 1,048,576 characters and update boundary unit tests.

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library [pyproject.toml + uv.lock]
  • Bump-up dependent library [requirements.*.txt for Konflux]
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

Identify any AI code assistants used in this PR (for transparency and review context)

  • Assisted-by: (e.g., Claude, CodeRabbit, Ollama, etc., N/A if not used)
  • Generated by: (e.g., tool name and version; N/A if not used)

Related Tickets & Documents

  • Related Issue #
  • Closes #

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

Raise the default serialized /v1/responses body limit to 1,048,576
characters and update boundary unit tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:13 AM UTC · Completed 10:30 AM UTC

Commit: 9b33bc2 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $4.64

@asimurka
asimurka requested a review from tisnik November 19, 2026 10:20
@fullsend-ai-review fullsend-ai-review Bot added the risk/low PR risk: low label Nov 19, 2026
@fullsend-ai-review

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: low (1/5)

Details

Small 3-file constant-value change with 58 lines, no protected paths, no security-sensitive files, no dependency or CI changes, good test ratio; moderate multi-author contention on constants.py offset by low churn and no regression history.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Low

  • [doc-style] tests/unit/models/requests/test_responses_request.py:25 — The docstring for test_request_above_previous_default_accepted claims "A request above the previous 128 KiB default is accepted." However, the previous value of RESPONSES_REQUEST_MAX_SIZE was 65,536 (64 KiB), not 131,072 (128 KiB). The test logic is functionally correct but the documented intent is factually wrong. A future developer reading this test would conclude the prior default was 128 KiB.
    Remediation: Change the docstring to "A request above the old 64 KiB limit is accepted." or simply "A large request below the 1 MiB limit is accepted."

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

@fullsend-ai-review fullsend-ai-review 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.

See the review comment for full details.

assert req.input == "hello"

def test_request_above_previous_default_accepted(self) -> None:
"""A request above the previous 128 KiB default is accepted."""

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] doc-style

The docstring for test_request_above_previous_default_accepted claims a request above the previous 128 KiB default is accepted. However, the previous value of RESPONSES_REQUEST_MAX_SIZE was 65,536 (64 KiB), not 131,072 (128 KiB). The test logic is functionally correct but the documented intent is factually wrong.

Suggested fix: Change the docstring to A request above the old 64 KiB limit is accepted or A large request below the 1 MiB limit is accepted.

@tisnik tisnik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@tisnik
tisnik merged commit 5a61f50 into lightspeed-core:release/0.6 Nov 19, 2026
49 of 51 checks passed
@fullsend-ai-retro

fullsend-ai-retro Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 1:15 PM UTC · Completed 1:26 PM UTC

Commit: 9b33bc2 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $6.20

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #3288 — [release/0.6] LCORE-4621: Raise Responses limit to 1 MiB

Timeline

  1. 10:06 UTC — Human author asimurka opened a 3-file, 58-line backport PR bumping RESPONSES_REQUEST_MAX_SIZE from 64 KiB to 1 MiB on release/0.6, with docstring updates and new tests.
  2. 10:11 UTC — Review agent dispatched (run 44502493721), agents resolved from fullsend-ai/agents@v0.53.0.
  3. 10:13–10:25 UTC — Review agent ran sub-agents: security (clean), intent-coherence (1 info finding), style-conventions (1 low doc-style finding), risk-assessment (score 1/low), and correctness. Multiple sub-agents identified the same docstring error: test claims "previous 128 KiB default" but on release/0.6 the previous value was 64 KiB.
  4. 10:26–10:29 UTC — Challenger sub-agent dispatched. It merged the correctness and style findings about the same docstring into one doc-style finding. The merge created a combined finding with both actionable: true (from correctness) and a remediation (from style) — properties neither input had alone. This triggered the CHANGES_REQUESTED verdict rule.
  5. 10:30 UTC — Review posted as CHANGES_REQUESTED with 1 low-severity inline finding.
  6. 13:12 UTC — Human reviewer tisnik approved with "LGTM" without addressing the agent's finding.
  7. 13:13 UTC — PR merged. The factually incorrect docstring shipped.

What went well

  • Review quality was good. The agent correctly identified a genuine factual error specific to the release/0.6 branch context. The 128 KiB intermediate value from a prior PR was never backported to this branch, so the docstring reference was wrong here.
  • Risk assessment was well-calibrated. Score 1/low for a 3-file constant-value change is appropriate.
  • Sub-agent triage was efficient. The agent correctly scoped triage to correctness and skipped irrelevant dimensions (no auth, secrets, public API, or UI changes).
  • Review completed in ~17 minutes — reasonable thoroughness for the analysis depth.

What could go better

1. Verdict severity was disproportionate. CHANGES_REQUESTED for a single low-severity test docstring typo is too heavy. The human reviewer's override (approve without addressing the finding) confirms the signal was not valued at the level asserted. A COMMENT verdict with the inline finding would have surfaced the feedback without blocking. This matches fullsend-ai/agents#1141 ("Review agent should APPROVE when all findings are low-severity style nits").

2. Challenger merge created emergent escalation. The correctness sub-agent flagged the docstring as actionable: true but had no remediation. The style sub-agent provided a remediation but marked it advisory. The challenger merged them into one finding that was both actionable and had a remediation — the precise combination that triggers CHANGES_REQUESTED. Neither input alone would have triggered this verdict. The agent's reasoning log shows it spent significant tokens deliberating whether this was the right outcome (10+ paragraphs of weighing). This is the merge-artifact concern tracked in fullsend-ai/agents#1806 ("extract findings merge into merge-findings.sh").

3. Langfuse OTEL tracing failures. Multiple 401 Unauthorized errors exporting traces to Langfuse during the review. Non-blocking but indicates stale or misconfigured credentials for observability.

Evidence for existing issues

  • fullsend-ai/agents#1141: This PR adds another data point — CHANGES_REQUESTED for a low-severity doc-style finding led to a human override with no fix applied. The incorrect docstring shipped despite the agent identifying it correctly.
  • fullsend-ai/agents#1806: The challenger's merge of correctness + style findings created a combined finding with emergent properties that escalated the verdict. Making this merge deterministic via a script (as LCORE-2308: LlamaStack Pydantic AI Provider #1806 proposes) would prevent the actionable-plus-remediation combination from arising as a merge artifact.

No new proposals are warranted — both improvement opportunities are covered by existing open issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk/low PR risk: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants