* fix(parsers): the timeline inliner stops at a whole-script expansion budget
* fix(parsers): charge bound arguments to the inliner budget and size it from the corpus
A large argument used many times in a helper body is cloned once per use,
which the body count did not cover. Charge the bound node's size for each
reference, set the budget to more than 10x the largest measured real script
(20,760 nodes), and test the hostile shapes from SECOPS-1698.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(parsers): trim inliner budget comments to keep the comment share from rising
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(parsers): charge default expressions and empty expansions to the inliner budget
Default parameter expressions were cloned before the budget was charged,
and once more during the droppable-helper preflight. Empty bodies spent
nothing although each expansion allocates a block. Charge both, and let
the preflight check only for spread arguments instead of building bindings.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Miguel Ángel <miguel.sierra@heygen.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>