Skip to content

fix(storage): refuse excised hashes at the blob publication boundary - #5696

Merged
Sinity merged 34 commits into
masterfrom
claude/bugsweep-5
Sep 29, 2026
Merged

Sinity merged 34 commits into
masterfrom
claude/bugsweep-5

Conversation

@Sinity

@Sinity Sinity commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

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 .pb snapshot (_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_many reads excised_content for the batch inside its BEGIN IMMEDIATE, reserves only non-excised receipts, and returns the refused hashes.
  • ArchiveBlobPublisher.flush discards 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.
  • All three failures are inherited. They fail the same way on a clean detached master 64a9bd0 (job 2802, --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_publication and test_antigravity_conversation_acquisition.py::test_common_live_batch_retries_a_failed_vendor_conversion (polylogue-rb7tx).
  • The flaky test is 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.
  • The renamed test_reimporting_an_excised_file_is_a_typed_permanent_refusal passes (job 2919).
  • Derived-identity closure (devtools schema closure <file>): IN are pipeline/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.py and storage/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 settles failed with error code ContentExcisedError, retryable: false and 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-op IngestResult without 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 renamed test_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_result block, 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_many reads the excision ledger inside its own BEGIN IMMEDIATE and refuses excised hashes. flush discards their staged files.
  • require_published rechecks 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_classification and write_parsed_for_retained_raw all run under the store-level _retained_replay_exclusion.
  • A batch holds the publisher slot across its transaction, and excision targets are resolved under that exclusion.

Each route turns an excised input into a terminal skip, not a retry

  • A ZIP member's bytes that match an excised hash are skipped at decode.
  • On the daemon publish path the member is recorded as REFUSED with diagnostic content_excised, and never reaches raw admission.
  • An Antigravity .pb snapshot refused as excised is reported in the batch's excised_paths, not failed.
  • Excised sidecars keep master's behavior. This PR tried two designs: redacting the tool_result text 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 gets blob_refusal: content_excised, and _settle_sidecar_blobs gives the same locator to one the flush refuses, and counts only what the flush published.
  • Excised replay attachments are skipped.
  • Excised raws settle as skipped, and the reason is durable.

Merge with master 64a9bd0. _core.py was the only conflict. I took master's version (#5815's sidecar locators, SIDECAR_BLOB_EVENT_TYPES, the source_conn pre-check, sidecar_blobs_refused_excised) and re-applied this PR's non-sidecar hunks: the refuse_excised_attachment_blobs downgrade, the ContentExcisedError session skip with its durable content_excised diagnostic, and the publisher slot held across the batch transaction. This PR's predecessor sidecar helpers (_replaced_sidecar_texts, _with_sidecar_blob_hashes, event-payload blob_hash rewriting) are gone, and nothing references them (git grep count 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 raises ContentExcisedError at 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 no source_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_attempted is 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. IngestRedrive does not go through this function.

Checklist (review guide and worker contract). Consumers updated: all publisher callers inherit the refusal, and publication_refused has four callers. No compatibility path is added. No cap or timeout: _excised_hashes pages its IN list 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

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T01:38:26.885242Z 8cae668 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Sinity

Sinity commented Sep 27, 2026

Copy link
Copy Markdown
Owner Author

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 20260927T230451Z-focused-test-4125416-0bdb321c.

@Sinity
Sinity enabled auto-merge (squash) September 27, 2026 23:06

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread polylogue/storage/blob_publication.py Resolved
Sinity and others added 2 commits September 28, 2026 09:27
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

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread polylogue/storage/blob_publication.py Resolved
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

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread polylogue/storage/blob_publication.py Resolved
…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

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread polylogue/storage/blob_publication.py Resolved
Comment thread polylogue/storage/blob_publication.py Resolved
…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

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread polylogue/storage/blob_publication.py Resolved
Comment thread polylogue/sources/assembly_chatgpt.py Resolved
Comment thread polylogue/storage/blob_publication.py Resolved
…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

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Sinity and others added 2 commits September 28, 2026 16:31
…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
@Sinity

Sinity commented Sep 28, 2026

Copy link
Copy Markdown
Owner Author

Fixed in ff2f2ae: _drop_refused_sidecar_blob_hashes now also redacts the matching TOOL_RESULT block's text (replaced with a non-content-bearing marker) when its sidecar's publication is refused, not just the session_event's blob_hash. Regression coverage added to test_write_session_counts_and_references_no_refused_sidecar_blob; focused tests pass.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread polylogue/storage/blob_publication.py Resolved
Comment thread polylogue/operations/daemon_ingest.py Resolved
Comment thread tests/unit/security/test_excision.py Resolved
Sinity and others added 2 commits September 28, 2026 17:23
_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

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread polylogue/security/excision.py Resolved
Comment thread polylogue/storage/blob_publication.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread polylogue/storage/blob_publication.py Resolved
Comment thread polylogue/storage/blob_publication.py Resolved
Comment thread polylogue/core/enums.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread polylogue/storage/blob_publication.py Resolved
Comment thread polylogue/security/excision.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread polylogue/operations/daemon_ingest.py Resolved
Comment thread polylogue/sources/source_parsing.py Resolved
…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
Sinity and others added 3 commits September 29, 2026 04:59
# 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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

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
@Sinity
Sinity disabled auto-merge September 29, 2026 08:26
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Sinity and others added 2 commits September 29, 2026 13:32
# 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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Sinity and others added 3 commits September 29, 2026 14:14
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
@Sinity
Sinity enabled auto-merge (squash) September 29, 2026 12:38
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Sinity
Sinity merged commit 0914f89 into master Sep 29, 2026
3 checks passed
@Sinity
Sinity deleted the claude/bugsweep-5 branch September 29, 2026 12:41
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