Files
reverse-engineering-anything/docs/development
morluto 78cb7172a6 feat(limits)!: report the value a per-call limit needs and derive its recovery (#14625)
* feat(limits)!: report the value a per-call limit needs and derive its recovery

A per-call parameter limit (`control_kind: "parameter"`) now carries an
optional `required_value`, and its refusal projects the typed
`adjustable_budget` under `details.refusal` with `control`, `default_value`
and `required_value`. The refusal owns the recovery: "Pass a larger
<parameter> on the next <operation> call (at least N; range a..b), then
retry", or a narrower request when the control is at or below the need's
maximum. The CLI renders the step with the command's flag and command.

ELF notes and debug-link, pcap producer limits, PE/native read budgets and
WASM artifact paths drop their duplicate authored recovery and report the
measured need where they compute it.

BREAKING CHANGE: per-call parameter refusals gain `details.refusal`, and
their `remediation.action` wording changes to the generated form.

* feat(limits): offer the session setting beside a setting-backed per-call limit

The adjustable_budget recovery is now rendered from its details.refusal
facts alone (which gain `source` for settings), so the CLI parses those facts
and re-renders the recovery with its flag and command instead of matching
display text; authored recovery is never rewritten. A per-call control backed
by a registered setting names both routes: the next call, then the setting
through update_analysis_settings, or its launch environment variable for a
one-invocation caller. Per-call-only controls keep one route.

inspect_wasm_artifact reports the larger of its oversized selection counts
as required_value, so one retry admits both fields.

* refactor(limits): render refusal recovery once in the delivering adapter's spelling

Refusal recovery is rendered at projection in the spelling of the adapter
that delivers it: MCP names the contract field and tool; a CLI command binds
its own spelling (flag or JSON-option path, rea <command>, launch
environment route) around its run. Authored recovery never reaches the
renderer, so nothing distinguishes it by text. The CLI no longer re-parses
details.refusal or rewrites the generated sentence; the prefix-matching
rewrite and its fact schema are removed.

* test: expect the typed refusal for Flutter APK and NTFS per-call limits

Per-call parameter limits now carry details.refusal; these tests landed on
main asserting its absence.
2026-11-25 22:24:51 -05:00
..