Skip to content

fix(delivery): 255-safe provenance descriptions + loud upload port (#131 findings) - #132

Merged
Polichinel merged 1 commit into
developmentfrom
fix/historical-upload-metadata
Jul 27, 2026
Merged

fix(delivery): 255-safe provenance descriptions + loud upload port (#131 findings)#132
Polichinel merged 1 commit into
developmentfrom
fix/historical-upload-metadata

Conversation

@Polichinel

Copy link
Copy Markdown
Collaborator

Run-0 verification (#131) found the historical upload stranded as an orphan file: bytes in the bucket, metadata document rejected (description > 255 chars — the C-15 prose prefix), error only logged by the store's graceful degradation, port ledger falsely green.

  • delivery/provenance.compact_description: compact JSON provenance guaranteed ≤255, fail-loud (never truncate silently); both description paths use it; pipeline-core-free and unit-tested.
  • _ContractStorePort.upload now raises on success=False — upstream graceful degradation can't silently strand our artifacts again.

A rerun after this merge heals the gap: dedup is document-keyed, so the orphan (no document) won't block a fresh historical upload. 🤖 Generated with Claude Code

…riptions + loud upload port

Run-0's historical upload stranded an orphan: the file uploaded but Appwrite
rejected its metadata document (description attribute caps at 255 chars; the
prose-prefixed C-15 provenance exceeded it), and the store module's graceful
degradation only logged the error — the port's ledger then falsely claimed
success. Two fixes: provenance.compact_description (delivery/, pipeline-core-
free) emits compact JSON provenance guaranteed <=255 with fail-loud refusal to
truncate, used by both historical description paths; _ContractStorePort.upload
now inspects the OperationResult and RAISES on success=False — upstream
graceful degradation must never silently strand our artifacts.

Refs #131 (run-0 delivery verification).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Polichinel
Polichinel merged commit bf1da86 into development Jul 27, 2026
4 checks passed
@Polichinel
Polichinel deleted the fix/historical-upload-metadata branch July 27, 2026 19: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