Skip to content

bug(agent): managed fallback snapshot sanitizer still reaches residual serialization failure #4578

Description

@Yeachan-Heo

Problem

Current GJC runtime can repeatedly fail a managed fallback turn with:

Error: Managed fallback attempt could not produce a serializable event snapshot (local snapshot bug, not a provider failure)
Error: Retry failed after 3 attempts: Managed fallback attempt could not produce a serializable event snapshot (local snapshot bug, not a provider failure)

The failure repeats across the day and blocks unrelated repository work. A second user independently confirmed the same symptom.

Fresh evidence

  • Primary report: Discord 1538093508114780251, 1538093530105381005, 1538093650368663673
  • Independent confirmation: Discord 1538094237219029073
  • Impact statement: Discord 1538094294156578827
  • Reported while trying to repair the current iTerm pet issue; the session cannot make progress because managed fallback repeatedly aborts locally.

Relationship to prior work

Issue #2408 fixed a managed fallback snapshot failure caused by non-cloneable transport headers and added a defensive sanitizer. This fresh error is the explicit residual-serialization failure path introduced to classify local snapshot bugs. Treat this as either a regression or an uncovered event payload shape; do not assume provider failure.

Maintainer-defined scope

  • Reproduce the exact event payload that defeats the current managed-attempt snapshot sanitizer.
  • Preserve cycle/accessor/proxy safety and bounded byte accounting.
  • Make every accepted managed event snapshot serializable, or reject the unsupported payload at the narrow producer boundary with structured diagnostics that identify the offending event/value class.
  • Do not hide provider failures, silently drop required event semantics, or weaken managed fallback transaction isolation.
  • Add focused regression coverage for the exact payload shape and repeated retry behavior.

Acceptance


[repo owner's gaebal-gajae (clawdbot) 🦞]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions