Skip to content

Keep typed delivery records through the UI model - #2934

Merged
trissim merged 1 commit into
mainfrom
fix/typed-delivery-records
Oct 23, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/typed-delivery-records

Conversation

@trissim

@trissim trissim commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Keep decoded delivery rows as UnresolvedInput and HistoricalInput through the UI model. InputDelivery.from_wire no longer re-encodes them into dictionaries. UnresolvedInput owns record_text(); HistoricalInput adds only the cleared-notice suffix through its override.

Must land together with OpenHCSDev/toad#1170 (Toad head 132b8c6eb64c2f38a687e9d5d23813dc87ad2558).

Before: DeliveryOverview declared the record fields, InputDelivery converted them back to dicts, and Toad restated the wire keys and formatting. After: the existing record classes own the display text, and the consumer joins row.record_text(). The external wire names and FieldCodec implementation are unchanged.

Migrated tests/test_thread_presentation.py's dictionary-built row. Updated tests/test_boundary_decoding.py's existing assertions to expect typed records rather than encoded dictionaries; malformed-record rejection assertions remain.

Interpreter comparison against Toad main's original _records function: current sequence row 65 bytes, direct input row 71 bytes, uncleared historical row 55 bytes, cleared direct historical row 96 bytes. Every before/after UTF-8 value is identical; joined output is identical at 293 bytes. The actual from_wire result contains UnresolvedInput current rows and HistoricalInput historical rows.

No pytest or test functions run. Changed modules parse; git diff --check passes. input_origin.py is untouched.

Assumed: delivery detail text is intentionally unchanged; the two repos are advanced together. Bases: Core fc69af9 and Toad 96ab9fee4.

@trissim
trissim marked this pull request as ready for review October 23, 2026 22:00
Copilot AI balanced review requested due to automatic review settings October 23, 2026 22:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

Copy link
Copy Markdown

debt-src at 93353dd, every finding:

grew NoneAbsence:src/agent_comms/input_attempt.py +1
introduced NoneAbsence:src/agent_comms/input_attempt.py at lines [210]

@trissim
trissim merged commit 76e9b3e into main Oct 23, 2026
11 of 14 checks passed
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.

2 participants