Files
reverse-engineering-anything/docs/reference
morluto 73d6092687 feat(delivery)!: budget the partial observation carried by failure results (#14607)
* feat(delivery)!: budget the partial observation carried by failure results

A failure's details.partial_observation, the complete Evidence of work
that finished before it, now gets the agent result budget's one
decision with the budget the rest of the failure leaves. The failure's
own facts are never budgeted.

When it does not fit, it is replaced by its summary, and
details.partial_observation_delivery carries the delivery facts. MCP
retains the complete partial Evidence in the session and pages it with
the evidence-json cursor; the CLI publishes it to --evidence_output, or
names the rerun arguments without one.

Fixes #14595

BREAKING CHANGE: When a failure's details.partial_observation does not
fit delivery.agent_result_budget_bytes beside the failure's own facts
and the caller omitted detail, MCP and the CLI deliver its summary
record instead of the complete Evidence, with
details.partial_observation_delivery naming where the complete record
is. Pass detail complete (--detail complete) for it inline.

* fix(delivery): keep a budgeted partial's link and paging call on every path

The compact retry for an oversized error encoded with the whole frame
budget, so the resource link appended after it could exceed the checked
frame; every encoding now reserves the link's bytes. A bundle that
committed before its staging cleanup failed delivered the partial's
summary without partial_observation_delivery; the refusal now carries
the same delivery facts as a successful publication.
2026-11-25 15:42:33 -05:00
..