Repository navigation
Skip Avro framing checks for external storage references - #389
Conversation
Native Server now marks a runtime external payload in a history export's `payload_manifest` as `encoding: "external-storage-reference"` with the diagnostic `external_storage_reference` (durable-workflow/server#1370). Published PHP Server already did. Such an entry names an object outside the bundle, so it carries no inline Avro framing. The PHP and native verifiers skip these entries. This one warned `payload_manifest.avro_framing_missing` on every external reference. It now skips the framing and fingerprint checks for them. Inline Avro entries without framing still warn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent review: CHANGES REQUESTED at head ab321e3 Blocking: the skip is wider than in the PHP and native verifiers. Both reference verifiers skip on the diagnostic alone:
Neither one reads Requested fix:
Verified OK:
Non-blocking, older than this PR: PHP and native also skip the Avro block when |
Independent review on #389: PHP and native verifiers skip the Avro framing check on the diagnostic alone, plus redacted entries, and never on the encoding. The condition is now identical to theirs: codec avro, available, not redacted, and diagnostic not external_storage_reference. New tests: - an entry that only claims the external encoding still warns; - a redacted Avro entry needs no framing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Independent review: PASS at head 3dd23a4 What I verified:
|



Follow-up from the independent review of durable-workflow/server#1370 (server#1366).
Problem
Native Server's history export now marks a runtime external payload in
payload_manifestasencoding: "external-storage-reference", diagnosticexternal_storage_reference,available: true, codecavro. That matchesdocs/history-archives.mdand published PHP Server.These entries name an object outside the bundle, so they carry no inline Avro framing. The PHP and native bundle verifiers skip them.
history_bundle_verify.pydid not: it warnedpayload_manifest.avro_framing_missingfor every external reference, on native and PHP exports alike.Change
src/durable_workflow/history_bundle_verify.py: the Avro framing and writer-schema fingerprint checks now use exactly the PHP and native condition: codecavro, available, not redacted, and diagnostic notexternal_storage_reference. An entry that only claims the external encoding is still checked. Redacted entries are skipped, as in PHP and native. All other manifest checks still apply: codec present, andpayload_missingon an available entry.Tests
tests/test_history_bundle_verify.py:test_external_storage_reference_entries_need_no_avro_framingchecks that the warning is gone for an external reference.test_inline_avro_entry_without_framing_still_warnschecks that an inline Avro entry without framing still warns.Locally, with Python 3.12:
test_history_bundle_verify.py,test_history_bundle_pruned.pyandtest_history_bundle_schema2.pypass (73 tests).ruff checkpasses on both files.🤖 Generated with Claude Code