Repository navigation
fix: Clear the scattered master failures and their four product defects - #5171
Conversation
Eleven unrelated failures on master, triaged individually. Four were product defects: - decoder_zip: scan_jsonl_session_artifact synthesises a parse-as-session classification when no record was small enough to inspect. That retention rule is for a raw whose only classifier is a weak path heuristic; used as positive evidence here it overrode an OriginSpec terminal artifact rule, and polylogue-9ykn then refused the member for want of conversational evidence -- dropping the bytes entirely. An unresolved probe now keeps the path rule and names the skipped inspection. - config/logging_fields: #5134 emitted the refused keys as a list on a field the structured-log allowlist does not carry, so the event named a refusal without naming what it refused. Registered config_keys and joined them. - blob_store/blob_gc_index_watermark: the index-liveness watermark sits in the blob namespace root, which iter_namespace did not exempt, so a first-party control file was reported to the operator as a critical invalid namespace entry telling them to quiesce blob writers. blob_store now owns the reserved-name set and the watermark imports it. - mutation_actuators: #5154 made delete_sessions raise for an id with no index row, so the apply committed the durable suppressions and then aborted. Only ids PREPARE recorded as present reach that call. The rest were stale tests, each naming what changed: an instrumentation counter blind to #5147's chunked read, a fixture still splicing a header polylogue-u19l removed, an assertion still expecting the unrepaired FTS index #5049 fixed, and a route #5097 deleted. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedNext included review available in 52 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (12)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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. |
Summary
Eleven unrelated failures on
master, triaged one at a time. Four were product defects and are fixed here; five were stale tests, each naming the change that made it stale; two are left red with their cause established.Evidence
Full-corpus
verify_allon frozenmaster(890a2921e), job 1570, receipt.cache/verify/runs/20260914T200510Z-all-4027943-f8bc83ff, 22,524 selected, 147 failures with zero schema skew.Per-failure classification
test_verified_backup_avoids_rehashing_scratch_blobs_after_validationtest_discovered_project_toml_capability_keys_are_refused_and_loggedtest_seed_demo_archive_creates_ready_queryable_archivetest_seeded_archive_fixture_resolves_through_the_registrytest_a_session_absent_from_the_index_is_still_tombstonedtest_archive_ingest_large_zip_artifact_streams_to_blob_referencetest_every_live_declaration...[blob-integrity]test_every_live_declaration...[session-fingerprint-stamps]test_append_plan_resynthesizes_an_append_kind_headtest_full_ingest_writes_archive_with_route_observabilitytest_tier_prototype_is_atomically_published_and_restored_read_onlytest_declared_devtools_route_runs_the_real_seeded_checkThe four product defects
(6) A ZIP member's bytes were dropped entirely. #5117 correctly threaded
max_record_bytesinto the JSONL classification probe, butscan_jsonl_session_artifact's oversized-record branch synthesises aparse_as_session=Trueclassification ("uninspected oversized provider JSONL record retained for streaming parse"). That retention rule exists for a raw whose only other classifier is a weak path heuristic. Used as positive evidence in_admit_non_session_zip_artifacts, it overrode the OriginSpec-declared terminal artifact rule — so asubagents/workflows/.../journal.jsonlmember was routed as a session, refused by polylogue-9ykn for want of positive conversational evidence, and the bytes were lost (raw_artifacts=0,raw_sessions=0). An inspection that read nothing has not answered the narrower question this caller asks. The path rule now stands and the skipped inspection is named viasources.zip.artifact_probe_unbounded— the same posture #5117 chose for its own ZIP probe ceiling. Verified outside pytest:raw_artifacts=1,blob_size == len(payload).(2) A refusal that would not say what it refused. #5134 emitted
keys=rejected(alist) onconfig.capability_keys_refused, butkeysis not in the structured-log allowlist (logging_fields.py), soemitdropped it — and even registered,_scalarwould have reduced a list to<list>. Registered aconfig_keystoken field and emit the joined names. The field is drawn from a closed set of declared setting names, never a user value.(7a) A first-party control file reported as blob corruption.
blob_gc_index_watermarkwrites.polylogue-index-liveness-watermark.jsoninto the blob namespace root, butBlobStore.iter_namespaceexempted only.polylogue-blob-namespaceand.staging— so its own control file surfaced as a criticalinvalid_namespace_entriesfinding telling the operator to "quiesce blob writers".blob_storenow owns the reserved-name set (it is the module that decides what may sit in that root) and the watermark module imports it, so the two cannot drift.(5) A tombstone that committed and then aborted. #5148 added the tombstone-without-index-row path; #5154 then made
ArchiveStore.delete_sessionsresolve every id and raiseKeyErrorfor one with no row. The apply committed the durable suppressions and then raised, losing the receipt for a tombstone that had already landed. Only ids PREPARE recorded inpresent_in_indexnow reach that call — exactly the complement of thetombstoned_without_index_rowset the receipt already names, and deleting a row that is not there is a no-op anyway.The stale tests
(1) #5147 (
ae9149902) replacedblob_path.read_bytes()in_verify_archive_file_set_backupwith a 1 MiB chunked stream.tests/infra/backup_read_counter.pyinstruments onlyPath.read_bytesandbackup._sha256_file, so the scratch proof read became invisible — the blobs are still read and hashed. The counter now also countsPath.openon blob paths. Anti-vacuity: rereading scratch blobs during receipt construction doublesopen:scratch; dropping the restore proof zeroes it.(8) polylogue-u19l (
f3bbf413a, carried by #4549) stopped splicing a syntheticsession_metaheader into Codex append blobs so stored bytes stay a literal slice of the live file. This one fixture still wrote_session_meta + deltawhile declaring a 124-byte window over a 185-byte blob, soverified_reconstructed_prefix_hashcould never match — every sibling fixture in the file already used literal deltas. Anti-vacuity: droppingappend_headfrom the head-kind guard returnsNone.(9) #5049 (
73766c276) addedrepair_message_fts_index_syncto live full ingest precisely because thedefer_fts=Truecontract's promised repair was never performed — "a freshly ingested 50k-message session searched as empty" until the next 60s tick. The test still assertedindexed == 0. Anti-vacuity: deleting that call zeroes it.(11) The route it pinned was deliberately deleted by #5097 ("Delete the dormant verify export command and blob-conservation alias"), whose no-caller grep missed this test.
devtools verify blob-conservationnow falls through to theverifytier runner, which refuses inside an agent job and exits 2. The product check is healthy (referenced_blobs == present_blobs == 1). Retargeted to the one surviving declared route,polylogue ops maintenance blob-conservation --output-format json, and renamed accordingly.Left red, with cause established
(3)
test_seed_demo_archive_creates_ready_queryable_archive— beadpolylogue-wrvy2(P0, open) is accurate and matches exactly:codex-sessiondeclarestopology_capabilities.parent_dispatch.state == "structurally-absent", sowrite.pynever mintssession_links.parent_tool_use_block_id, and thedelegationsresolved branch (archive_tiers/index.py:1594-1596) joins on precisely that column — the row lands asedge_only. The bead's open question is adjudication: is the codex capability declaration wrong, or doesdemo/seed.py:845assert an outcome its own origin forbids? That is a design decision, not something to settle inside a test-failure sweep. Confirmed accurate and left red, as instructed.(7b)
[session-fingerprint-stamps]— not reproducible at head. A fresh schema-coverage artifact built in-process stamps the current fingerprints and reportsok. The receipt's artifact (build_id = git:890a2921) carriesrecipe_id/source_semantics_id/archive_schema_idthat no clean process at that commit computes: it was published into the shared/realm/tmp/polylogue-seeded-artifactscache by a process with uncommitted product changes, andbuild_idrecords the commit but cannot record dirtiness. Filed aspolylogue-c4a1o(P2).(4) and (10) — pass at head in every run made; the
SchemaSkewErrorappears only in multi-file runs. A prototype-cache hypothesis was refuted empirically: recorded tier prototypes carry an emptyschema_identitytable, so a page copy cannot stamp a stale identity. Classified as in-process order-sensitive contamination with the mechanism unlocalised — recorded onpolylogue-c4a1oas adjacent evidence, explicitly not as a claim that they share its cause. Not called flaky: no wait is involved.Verification
Every one of those 88 is the
CHECK constraint failed: native_id IS NOT NULL OR content_identity IS NOT NULLclass owned by another agent — parsed from the receipt'spytest-report.json, non-CHECK failures: 0. They are concentrated intest_archive_verification.py, which builds archives through the affected fixtures. None of the eleven failures in scope remains red except (3), which is deliberate.devtools gate format/lint/mypy(2869 files) /layering— all clean.Schema closure — all six product files are IN
This moves the derived schema identity. It must land before a fresh rebuild starts, never during one.
Residuals
polylogue-wrvy2; (7b) and the order-dependent pair underpolylogue-c4a1o.delete_sessionsshould treat an absent session as an error at all is arguably the real fix: Excise every revision of a session and name what survives #5154 question and needsarchive.py, which was outside this change's scope.polylogue ops maintenance blob-conservationprints anArchive root: …banner ahead of its JSON on a--output-format jsonsurface. The test slices from the first brace rather than reaching intopolylogue/cli/**; the banner-on-JSON behaviour is untouched and arguably wrong.🤖 Generated with Claude Code
https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK