fix: fit target annotations after echo redaction

Merged
TH
13h ago
+156-39

Summary

Fit target annotation fields, ancestry, and escaped payloads at serialization, after recorder echo substitution, for single targets and both multi-target endpoints. Preserve raw sizing for evidence selection and remove its competing final fit. The change touches six files, with no scope expansion.

Fixes #4367. This overlaps the older oversize case in #4344; it is based on main, not that PR.

Validation

  • Base 45e1372fa6d8fabe26ff35ab2ec207ccc58e53bd: recorder regression fails on field, payload, and multi-target annotations. At prior head 345c265024, the excessive-ancestry regression fails.
  • Head f85c5ca1c4825d4d6f4ffa4cd12749aff99bea6d: 109 focused tests and pnpm run check:production-exports pass.
  • pnpm check:affected --run --head f85c5ca1c4: passed, receipt run-W76zUq, exactCommit: true.
  • Repo Guards & Compatibility passed at the new head. Integration Tests and Coverage remain GitHub-authoritative. No device run was requested. Independent review was unavailable; the diff received a cold self-review.

šŸ¤– Generated with Claude Code