Skip to content

fix: Validate large base64 action blobs without stack recursion - #69

Merged
idy merged 1 commit into
mainfrom
yesman/lbv/t35-base64
Nov 16, 2026
Merged

idy merged 1 commit into
mainfrom
yesman/lbv/t35-base64

Conversation

@idy

@idy idy commented Nov 16, 2026

Copy link
Copy Markdown
Member

The trusted collector fails before model review when a valid multi-MiB action blob reaches its base64 regexp: PR723 source run43963258759 stopped at action-sources.mjs:148 with RangeError: Maximum call stack size exceeded. Native gates then correctly fail because the admitted source did not succeed.

Replace the repeated-quartet regexp with the same length/padding grammar and a linear invalid-alphabet scan. Existing API encoded-length, blob8MiB/total32MiB, decoded size and Git object hash checks remain. No workflow/ref/policy/budget change, executable source loading or weakened fail-closed behavior.

Validation: 72 action-source tests PASS (57 existing +15 new). The same end-to-end valid4MiB/8MiB fixtures fail with RegExp RangeError on parentf4c15316 and pass here; 0/1/2/3-byte padding, wrapped API newlines, malformed interior/padding/alphabet/whitespace/unicode/length, unchanged8MiB ceiling+1 refusal covered. All10 remaining commands from test-review-scripts workflow PASS; diff check PASS.

This is a separate shared-tool dependency fix for idy/letsolo#723; it does not modify that PR's independently reviewed0315 source or bypass its7 required checks. Exact source 427d846db35a1584cd2efbb99cae31315cc588d6. Independent review, normal main merge and explicitly coordinated shared-ref publication still required before one normal source review retry. No current ref publication or caller rerun performed.

@github-actions github-actions 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.

❌ OpenAI PR Review: FAIL

Conclusion: Not ready. 1 readiness blocker must be resolved before merge.

Review checks

Check Result
PR format ❌ FAIL
Issue design ✅ PASS
Code & plan conformance ✅ PASS

Scope: 427d846db3 · f4c15316bb..427d846db3 · full · 1 diff chunk

Usage: 29s · 122,426 tokens · 49.2% cache hit · credits unavailable

Blockers

  • pr-format Pull-request title must use the lowercase prefix: Subject format.

Summary

Aggregated the completed native review and inspected its full diff, canonical listing, linked-Issue context, and PR discussion. No code findings require preservation or deduplication. No closing Issues are linked, so no Issue-plan conformance blockers apply.

Review metadata
  • Commit: 427d846db3
  • Range: f4c15316bb..427d846db3
  • Mode: full
  • Diff chunks: 1
  • Model: gpt-6.1-sol
  • Reasoning effort: low
  • Session: repo-1309321116-pr-69-v2
  • Generation: 66cfc5f20517c5bc0b810ccf2cc563bd73fbea15334daa1d39f7726f5c140e51
  • Evidence: 355865fa4443964f58b7cc7716c84a1138326995f00667dc4cd93de66cb34bcc

Totals

  • Input: 121,318
  • Cached input: 59,669
  • Cache write: 61,625
  • Output: 1,108
  • Reasoning: 61
  • Total: 122,426
  • Estimated credits: unavailable for this model
Token and cache details
Stage Mode Target Time Input Cached Hit Output Total Credits
pr deterministic format rules 0s 0 0 0.0% 0 0 N/A
code full chunk 1/1 13s 33,192 16,893 50.9% 490 33,682 N/A
pr full pr 9s 41,315 21,329 51.6% 353 41,668 N/A
code full aggregate 7s 46,811 21,447 45.8% 265 47,076 N/A

@idy idy changed the title fix(review): bound base64 validation stack for large action blobs fix: Validate large base64 action blobs without stack recursion Nov 16, 2026

@github-actions github-actions 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.

✅ OpenAI PR Review: PASS

Conclusion: Ready from the OpenAI review perspective. PR format, linked Issue design, and code/plan conformance passed with no actionable findings.

Review checks

Check Result
PR format ✅ PASS
Issue design ✅ PASS
Code & plan conformance ✅ PASS

Scope: 427d846db3 · 427d846db3..427d846db3 · incremental · 1 diff chunk

Usage: 7s · 60,728 tokens · 42.8% cache hit · credits unavailable

Summary

Aggregated the completed native review and inspected its full diff, canonical listing, linked-Issue context, and PR discussion. No code findings require preservation or deduplication. No closing Issues are linked, so no Issue-plan conformance blockers apply.

Review metadata
  • Commit: 427d846db3
  • Range: 427d846db3..427d846db3
  • Mode: incremental
  • Diff chunks: 1
  • Model: gpt-6.1-sol
  • Reasoning effort: low
  • Session: repo-1309321116-pr-69-v2
  • Generation: 494d2035757dfc354ed5991f7743bf938863b938e284376a21b3b58f76abca39
  • Evidence: 9f592b1ce1b3a0e56d0ceeaf118dd99d8a6cdbb0b1a460985785d1cd82c9ef0d

Totals

  • Input: 60,500
  • Cached input: 25,890
  • Cache write: 34,604
  • Output: 228
  • Reasoning: 0
  • Total: 60,728
  • Estimated credits: unavailable for this model
Token and cache details
Stage Mode Target Time Input Cached Hit Output Total Credits
pr deterministic format rules 0s 0 0 0.0% 0 0 N/A
pr incremental pr 7s 60,500 25,890 42.8% 228 60,728 N/A
code reused cached evidence 0s 0 0 0.0% 0 0 N/A

@idy
idy merged commit ad01395 into main Nov 16, 2026
14 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