Skip to content

fix(ingest): fold attachment bodies in a batch onto their prompt - #67

Merged
0xCardinal merged 1 commit into
mainfrom
fix/batch-attach
Oct 22, 2026
Merged

0xCardinal merged 1 commit into
mainfrom
fix/batch-attach

Conversation

@0xCardinal

@0xCardinal 0xCardinal commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

A batch sent to /v1/ingest/{source} went straight to record_ingests, so an attachment body inside it was projected as an event instead of folding onto its prompt the way it does when sent alone. A replayed spool batches consecutive events, so an attachment spooled during an outage hit this. The import poster already sends attachments alone, so imports weren't affected.

The batch route now splits at attachment bodies, keeping order. Each run of other bodies between them is still one write transaction.

Independent of the #64 → #65 → #66 stack (based on main).

Test: test_batch_folds_attachments_onto_their_prompt. Suite: 604 passed.

🤖 Generated with Claude Code

A batch sent to /v1/ingest/{source} went straight to record_ingests, so an
attachment body inside one (a replayed spool can carry it) was projected as
an event instead of folding onto its prompt as it does when sent alone. The
batch route now splits at attachment bodies, keeping order; each run of
other bodies stays one write transaction.
@0xCardinal
0xCardinal merged commit 0dd7b3a into main Oct 22, 2026
11 checks passed
@0xCardinal
0xCardinal deleted the fix/batch-attach branch October 22, 2026 01:00
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