fix(ploeg): keep a writer's problem and solution when Claude stdout is malformed #162
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ryangr0/ploeg-writer-narrative-malformed-stdout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Claude ParseOutcome now treats the result envelope and PLOEG_OUTCOME_FILE as independent sources: a writer's problem/solution, findings, verdict, outcome or created Work Items survive a malformed/banner/truncated envelope; usage comes only from the envelope and stays nil when undecodable; agent-written usage is discarded; the exit error stays authoritative; the shared runner parse-error contract is unchanged. Tests written first and failing on old code: new conformance property WritingRunAccountSurvivesGarbageOnStdout (Claude failed, ACP/exec/OpenHands passed), Claude fake-executable table through harness.RunCommand (exit 7, idle timeout, cancel, {} and malformed box), worker runAgent+resolveOutcome on a new PR. Checks: go test ./... all ok; go vet, gofmt, go build, brand-marks, license-check, openspec validate (17/17), helm-golden check pass. Checks left to CI: full mise run verify stopped at Vloer typecheck (tsc not installed in this worktree). 🤖 Generated with Claude Code