Skip to content

fix: guard get_question_batches and degrade malformed direct-built payloads (confirmation-pass-1) - #56

Merged
silversurfer562 merged 1 commit into
mainfrom
claude/modest-heisenberg-c4d569
Aug 20, 2026
Merged

fix: guard get_question_batches and degrade malformed direct-built payloads (confirmation-pass-1)#56
silversurfer562 merged 1 commit into
mainfrom
claude/modest-heisenberg-c4d569

Conversation

@silversurfer562

Copy link
Copy Markdown
Member

What

Recovered a committed-but-never-pushed session branch during the worktree sweep — genuine unmerged work with no prior PR. Pushed for review.

Guards get_question_batches and degrades malformed direct-built payloads (a FormQuestion built directly by the dataclass constructor, bypassing form_from_dict) rather than crashing.

Note

Branched from an earlier main; likely needs a rebase onto current origin/main before merge, and there may be overlap with already-merged confirmation-pass-1 work (#42/#44) worth checking for redundancy during review.

🤖 Generated with Claude Code

…yloads (confirmation-pass-1)

Two needs-a-look rows from the confirmation-pass-1 ledger (2026-08-20),
both direct-Python-API reach only:

- FormSchema.get_question_batches rejects non-positive batch_size with
  a named ValueError (before: -1 silently dropped every question, 0
  raised a raw range() error). Reject over clamp: the size is
  code-authored, so a loud error is catchable where a clamp reshapes
  the bug.
- Formatting helpers degrade malformed construct payloads like
  suggested_pick instead of crashing: confirm_consequences and
  endorsement_map are new one-place shape guards used by every surface;
  expansion_items skips non-dict rows. Parse-path rejection unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@silversurfer562
silversurfer562 force-pushed the claude/modest-heisenberg-c4d569 branch from 88f133d to a2f341f Compare August 20, 2026 14:13
@silversurfer562
silversurfer562 merged commit 79c2cdd into main Aug 20, 2026
7 checks passed
@silversurfer562
silversurfer562 deleted the claude/modest-heisenberg-c4d569 branch August 20, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant