Repository navigation
fix(storage): refuse excised hashes at the blob publication boundary - #5696
Conversation
|
You have reached your Codex usage limits for security reviews. Please try again later. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Focused selection at b89761f: 26 passed. It covered publication excision, source-tier connection policy, attachment convergence excision, acquisition GC age gate and periodic blob GC. Receipt |
b89761f to
88fc0dc
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 88fc0dcae0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Excision is enforced where rows are written (raw sessions, blob refs, attachment convergence), but a publisher could still reserve and expose excised bytes first: the parse-time Antigravity snapshot wrote a .pb blob before any check, leaving excised content on disk until GC. The reservation now reads the excision ledger in its own write transaction; an excised hash gets no reservation and its staged file is discarded, so no publication route can re-materialize excised bytes (polylogue-u6jyu). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013Vn4qhKjhyaVBG4aPiqNW4
The Antigravity trajectory and both Hermes database routes flush their SQLite snapshot and then open it from the store. When the flush refused the snapshot as excised, the staged file was discarded and the parser raised `FileNotFoundError`, recording a recurring parse failure. The publisher now remembers the hashes it refused; `require_published` raises `ContentExcisedError` after the flush, and the source walk logs that as a deliberate excision instead of a cursor failure. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01P8nGdByCWAzpk78ko2xza6
88fc0dc to
177993c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 177993cb21
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A flush that refuses excised bytes discards the staged file and drops its receipt. Callers that recorded references from the queued hash still treated the bytes as published: - Inline and sidecar attachments in `_write_session` were committed as `acquired` rows with no blob behind them. They are now recorded `unavailable` with no blob hash, and a refused sidecar `blob_hash` is removed from its event. Precomputed attachment blobs excised since publication are caught through the source-tier ledger. - Governed cohort attachments skip the blob reference for an excised hash and record the attachment `unavailable`. - ChatGPT asset acquisition drops refused assets instead of handing their hashes to the writer. - Reading a refused hash through the publisher raises `ContentExcisedError` instead of opening a deleted staging path, and `exists` reports it absent. The parse-excision log now uses the structured `emit` route. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01P8nGdByCWAzpk78ko2xza6
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1d5ba15e2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…lished sidecars Codex review of a1d5ba1: - The grouped raw capture, the Antigravity protobuf snapshot and the ZIP member capture built `RawSessionData` for a hash the flush had refused. Each now calls `require_published` after its flush. The source walk already records `ContentExcisedError` as a skip; a ZIP skips only the excised member, and a language-server cohort skips only the excised conversation. - Sidecar blob counts were taken before the flush, so a refused sidecar was reported as published. They are now counted after the flush from the entries it accepted. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01P8nGdByCWAzpk78ko2xza6
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 373c4ef8bf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…y attachments Codex review of 373c4ef: - An excision committed between a publisher's `reserve_many` and `publish_many` let the publisher move bytes the ledger now names into the blob namespace. `apply_session_excision` now holds `exclude_archive_blob_publishers`, the exclusion blob GC already uses, so the reserve-then-publish window and an excision never overlap. - `ArchiveStore._preacquire_attachment_blobs`, used by the direct replay and membership routes, queued excised inline bytes and returned a blob reference that `write_source_blob_refs` then refused for the whole session. It now checks the ledger first and records the attachment `unavailable` with no reference. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01P8nGdByCWAzpk78ko2xza6
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 410e87c480
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ngest sites Codex review of 410e87c: - Replay and membership routes check the ledger before queuing, but an excision can commit between that check and the flush. After each flush they now reconcile with `reconcile_refused_attachments`: a refused attachment is recorded `unavailable` and its blob reference is dropped, instead of `write_source_blob_refs` refusing the whole session. - Accepted daemon ingest staged every retained input into the manifest, including one the flush had refused, so sealing found no reservation and the whole ingest failed on every retry. Refused inputs are now left out of the manifest and reported as skipped; an ingest whose every input is excised raises `ContentExcisedError`. - ChatGPT asset acquisition keeps the refused hash, so the attachment reaches `_write_session` and is recorded `unavailable` rather than looking merely unfetched. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01P8nGdByCWAzpk78ko2xza6
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e9b84043c3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ult block Dropping a refused sidecar's blob_hash off its session_event left the matched TOOL_RESULT block's full text untouched: apply_tool_result_sidecars/ apply_gemini_tool_output_sidecars already copy that same text into the block before the flush runs, so a flush that refuses the hash (a prior excision) still persisted and FTS-indexed the excised content, resurrecting it on a fresh ingest despite reporting a permanent publication refusal. _drop_refused_sidecar_blob_hashes now also replaces the matching block's text with a non-content-bearing terminal marker. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
|
Fixed in ff2f2ae: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ff2f2aeac8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
_drop_refused_sidecar_blob_hashes's new block-text redaction substitutes payload/blocks/text inside the same flush that is publishing this session's own rows -- a producer_scoped_transaction, not an archive-wide sweep. Declares the three new sites the layering gate's derived-sweep census flagged as undeclared. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
Sidecar redaction also reads the durable excision ledger at the write boundary, and a session whose rows were prepared before admission is a typed ContentExcisedError instead of a transcript materialization. Drive attachment convergence reconciles refusals from its flush, and accepted ingest reports refused inputs page by page. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b0e2a41438
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
# Conflicts: # docs/plans/derived-sweep-census.yaml
…pe excised skips Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2b35dd3ef2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1ba7281265
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…tained replays under the publisher slot Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8cae668f32
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…xcised ZIP members; terminal Antigravity excision Membership classification and the single retained write hold the publisher slot through their commit, like the replay routes. An accepted ZIP member whose bytes are excised is recorded as a refused member (content_excised) instead of aborting the ingest. An Antigravity .pb whose snapshot is refused is reported as excised, so the live batch settles it as durably excised rather than retrying a failed cursor. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
# Conflicts: # polylogue/sources/decoder_zip.py
…iting it Redacting the matched tool_result text and dropping the event's blob_hash changed hashed content after the session's identity was bound (polylogue-bgnxh). A session that references an excised sidecar is now a typed ContentExcisedError on every route: it is neither written nor published, and no excised byte reaches blocks.text or FTS. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
Both designs this PR tried for a session carrying an excised sidecar are wrong for now. Redacting the tool_result text rewrote hashed content after its identity was bound (polylogue-bgnxh). Refusing the session dropped the whole session for one sidecar. The decision belongs to bgnxh, so the write and publication routes keep master's behavior. Sidecar blob counts still exclude bytes the flush refused. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Resolves conflicts with master's bound-capture and adopted-blob changes: the flush checks adopted blobs for eviction before reserving, then refuses excised hashes (adopted or staged); ZIP members and grouped files keep master's bound capture with this branch's excised-member skip and require_published check. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Master now skips a record whose admission raises ContentExcisedError and records its ZIP member as refused. That covers this branch's pre-admission excised-member check, which is removed together with its unit test. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
# Conflicts: # polylogue/pipeline/services/ingest_batch/_core.py
Master's sidecar locators name a blob before the flush runs. The flush now refuses excised bytes in its reservation transaction, so a sidecar it refused kept a locator naming a discarded blob and was counted as written. Counting after the flush records such a sidecar with the typed content_excised refusal instead. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
The ingest input route no longer reserves excised bytes, so a request whose every input is excised accepts nothing. The operator chose to keep that as a typed, non-retryable ContentExcisedError refusal (polylogue-u6jyu, option d) instead of #5805's completed outcome, which relied on publishing the excised bytes again. The test now asserts the refusal and that the bytes stay gone. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
A request that failed before acceptance still fenced and settled its attempt. Settling takes a settled audit read, which fails while the caller polls the same request. That error then replaced the request's own outcome: the all-excised re-import reported AuditContinuityPendingError instead of its typed ContentExcisedError refusal. Fencing and settling now run only once the acceptance write has begun or a resent request found its record. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
… bytes Excision leaves the bytes to blob GC, so their presence on disk proves nothing. The test now asserts that the re-import adds no source item and no reservation that would keep the excised file from GC. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
No publication route can put excised bytes back on disk. The reservation reads the excision ledger in its own write transaction; an excised hash gets no reservation, and its staged file is discarded (polylogue-u6jyu).
Problem
Excision is enforced where rows are written (raw sessions, blob refs, attachment convergence), but a publisher could still reserve and expose excised bytes first. The parse-time Antigravity
.pbsnapshot (_antigravity_raw_snapshot) published the blob before any check, so excised content reappeared on disk with a GC-immune reservation until the reservation was abandoned.Solution
BlobPublicationReservationStore.reserve_manyreadsexcised_contentfor the batch inside itsBEGIN IMMEDIATE, reserves only non-excised receipts, and returns the refused hashes.ArchiveBlobPublisher.flushdiscards staged files for refused hashes, drops their receipt ids, and publishes the rest. Every publisher caller inherits the refusal. The row-level refusals downstream stay as they are.Verification
Head 0ccc5de (master 64a9bd0 merged).
agentctl job start --workspace <wt> polylogue verify_quick(job 2885, on 30a2c8d, the last source change):succeeded.agentctl job start --workspace <wt> polylogue pytest_focused -- tests/unit/storage/test_blob_publication_excision.py tests/unit/daemon/test_antigravity_conversation_acquisition.py tests/unit/daemon/test_attachment_convergence_excision.py tests/unit/daemon/test_operation_protocol.py tests/unit/pipeline/test_ingest_batch.py tests/unit/pipeline/test_sidecar_blob_locator.py tests/unit/pipeline/test_blob_publication_crash_matrix.py tests/unit/pipeline/test_acquisition_excision_policy.py tests/unit/security/test_excision.py tests/unit/security/test_excision_shared_blobs.py tests/unit/security/test_excision_carrier_reach.py tests/unit/security/test_excision_revision_reach.py tests/unit/sources/test_live_batch_support.py tests/unit/storage/test_revision_replay.py tests/unit/storage/test_revision_application.py tests/unit/storage/test_ingest_governance.py tests/unit/sources/test_location_binding.py tests/integration/test_daemon_ingest_idempotency.py tests/integration/test_daemon_ingest_redrive.py tests/unit/operations/test_ingest_acceptance.py tests/unit/operations/test_ingest_await_result_contract.py tests/unit/operations/test_daemon_ingest_convergence.py tests/unit/operations/test_declared_operation_handlers.py tests/unit/daemon/test_daemon_operation_route.py tests/unit/cli/test_import.py(job 2919, head 0ccc5de):passed 611, xfailed 1, failed 3, flaky 1.--on-default-branch:3 failed):test_revision_replay.py::test_chain_replay_supersedes_equal_frontier_quarantined_membership_head,test_ingest_governance.py::test_membership_that_becomes_eligible_after_preparation_defers_publicationandtest_antigravity_conversation_acquisition.py::test_common_live_batch_retries_a_failed_vendor_conversion(polylogue-rb7tx).test_operation_protocol.py::test_cli_import_daemon_ingest_and_from_empty_build_write_identical_material. Under xdist load its client await timed out (QueryTimeoutError); it passed when rerun alone, and it passed in job 2888 on the same source. This PR's changes affect only the refusal and failure paths, and that test does not take either.test_reimporting_an_excised_file_is_a_typed_permanent_refusalpasses (job 2919).devtools schema closure <file>): IN arepipeline/services/ingest_batch/_models.py,sources/decoder_zip.py,sources/live/batch.py,sources/source_parsing.py,storage/blob_publication.py,storage/sqlite/archive_tiers/archive.pyandstorage/sqlite/archive_tiers/revision_governance.py. So merging this PR moves the index/ops schema identity. It has to land before a rebuild starts, not during one. Out:operations/attachment_convergence.py,operations/daemon_ingest.py,pipeline/services/ingest_batch/_core.py,pipeline/services/ingest_batch/_summary.py,security/excision.py,storage/ingest_governance.py.Decision: an all-excised re-import is a typed permanent refusal (reverses #5805's outcome)
#5805's test expected a re-import of an excised file to settle
completed. On master that works only because the ingest input route publishes and reserves the excised bytes again, and admission then skips the record. With this PR the flush refuses those bytes, so the request accepts nothing. The operator chose option (d) of polylogue-u6jyu: keep the typed permanent refusal. The request settlesfailedwith error codeContentExcisedError,retryable: falseand no accepted reference; nothing is written, and nothing new keeps the bytes from blob GC. The rejected options were (a) an empty accepted generation, which would relax durable audit receipt and manifest models; (b) a no-opIngestResultwithout acceptance, which would change the wire type and its consumers; and (c) reserving excised bytes on this route, which would reopen the hole. The test is renamedtest_reimporting_an_excised_file_is_a_typed_permanent_refusal. It asserts the refusal, and it asserts that the re-import adds no source item and no reservation for the file's hash.Making the refusal reliable needed one fix (30a2c8d). A request that failed before acceptance still fenced and settled an attempt it never created. Settling takes a settled audit read, which fails while the caller polls the same request, so the refusal was sometimes reported as
AuditContinuityPendingError(job 2862). Fencing and settling now run only after the acceptance write began or a resent request found its record (acceptance_attempted). The same guard covers the stopped and transient-refusal branches, which had the same pre-acceptance race.Residuals
The rest of the security family (qut1/l6v61, dahse, n3xdn, 8k10u, mdlft, dzk48) is not in this PR; each bead records its state. An excised sidecar's text, which parse copies into its
tool_resultblock, is still written on a fresh ingest, as on master (polylogue-bgnxh).Self-review
I reviewed the complete diff against master 64a9bd0 at head 0ccc5de. The invariant is that no route puts excised bytes back on disk or back into the index.
The publication boundary
reserve_manyreads the excision ledger inside its ownBEGIN IMMEDIATEand refuses excised hashes.flushdiscards their staged files.require_publishedrechecks the ledger after flush (excised_now). Every refusal is typed (ContentExcisedError) or recorded as not acquired.Excision is serialized with every retained write
apply_session_excision, retained replay,apply_raw_membership_classificationandwrite_parsed_for_retained_rawall run under the store-level_retained_replay_exclusion.Each route turns an excised input into a terminal skip, not a retry
REFUSEDwith diagnosticcontent_excised, and never reaches raw admission..pbsnapshot refused as excised is reported in the batch'sexcised_paths, notfailed.tool_resulttext at write time, which rewrote hashed content after its identity was bound, and refusing the session, which dropped the whole session for one sidecar. Both are removed, and the decision is recorded in polylogue-bgnxh. Since the third merge, master's sidecar locators (fix(excision): forget only unshared blobs; keep sidecar locators unhashed #5815) carry the refusal: a sidecar the pre-check sees as excised getsblob_refusal: content_excised, and_settle_sidecar_blobsgives the same locator to one the flush refuses, and counts only what the flush published.Merge with master 64a9bd0.
_core.pywas the only conflict. I took master's version (#5815's sidecar locators,SIDECAR_BLOB_EVENT_TYPES, thesource_connpre-check,sidecar_blobs_refused_excised) and re-applied this PR's non-sidecar hunks: therefuse_excised_attachment_blobsdowngrade, theContentExcisedErrorsession skip with its durablecontent_exciseddiagnostic, and the publisher slot held across the batch transaction. This PR's predecessor sidecar helpers (_replaced_sidecar_texts,_with_sidecar_blob_hashes, event-payloadblob_hashrewriting) are gone, and nothing references them (git grepcount 0). Flush sites master added since the last merge (the hook-evidence, work-event and raw-artifact writes) go through raw admission after the flush, and admission raisesContentExcisedErrorat the source-write boundary. The flush refusal therefore adds no untyped outcome there.Sidecar settle fix (85661ff). Found by
test_write_session_counts_no_refused_sidecar_blob: with a publisher but nosource_conn, master's locator named a blob the flush then discarded, and counted it as written. The fix counts after the flush and gives the typed refusal locator to a sidecar the flush refused.Pre-acceptance settle guard (30a2c8d). Every exit branch of
execute_ingest_operation(stopped, transient, generic) checks the guard.acceptance_attemptedis set before the acceptance write, so the path where acceptance committed but the handler raised still fences and settles. A resent request also sets it.IngestRedrivedoes not go through this function.Checklist (review guide and worker contract). Consumers updated: all publisher callers inherit the refusal, and
publication_refusedhas four callers. No compatibility path is added. No cap or timeout:_excised_hashespages itsINlist by 500 and reads every row. Tests assert typed outcomes and counts, not prose. No fixture holds private data.🤖 Generated with Claude Code
https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg