Repository navigation
fix: close inherited master failures in sources, storage, devtools - #5850
Merged
Merged
Conversation
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes master's focused suites green again. The baseline run on master
633ec18ffc(job 3431, 30 files) had 41 failures and 1 error, and every other PR was running into them. They come from 20-odd separate causes. Where production was wrong, this PR fixes production and uses the failing test as the regression. Where a merged PR had deliberately changed the contract, it updates the test to the new contract and cites that PR. Two failures remain, each with a bead and the evidence below.Beads: polylogue-ouv5f (all eight tests fixed), polylogue-0e6m3, polylogue-h9da0 and polylogue-wple (audited and noted; their open criteria are listed under Residuals).
Problem
Job 3431 (
pytest_focused --on-default-branch, 30 files, 1539 tests) reportedpassed 1497, failed 41, error 1. Its failed-test rerun also crashed: the rerun passed…::test_x@web-reader[param-…]back to pytest, and pytest answeredERROR: not found.Solution: production defects fixed
test_raw_observation_derivation×4,test_retained_tool_output_convergence(Gemini)enrichment_dependency_digestskipped the evidence digest that every retained seal computes. Every prepared artifact of those providers therefore read as stale, andpublishreturned False forever, so Hermes, Antigravity, ChatGPT and Gemini retained raws never converged.sources/revision_backfill.py).test_observation_runtime::test_structured_raw_only_sidecar…{"source": path}value that_old_path_fallbackrefuses, so new sidecar evidence never reached the cache.schemas/source_inference.py).test_verification_evidence_lanereconcile_and_record_abandoned_verify_runscomparedcache.parent(that is,.cache) to the checkout, so the test was never true. The checkout's reconciled runs went to cache-local history, and cache-local evidence too (#5720), instead of the durable lane.runs_root.parents[2]. The checkout uses the XDG history andverification_evidence_path(); a relocated cache keeps local files.test_web_reader::test_archive_filter_kwargs…iter_search_summariesanactions_onlylane parameter. The count route still counted every FTS hit forretrieval_lane="actions".count_search_sessions(actions_only=…)and the count route pass the lane. New regression:test_actions_lane_count_counts_only_sessions_its_search_returns.test_command_catalog::test_tool_outcome_help…--helpbefore argparse could print it (#5720).PATH.refresh_session_repos*stampedrepos,repo_checkoutsandsession_reposwith the wall clock, so no rebuild could reproduce them._write_repo_edgesdoes. New test:test_refresh_stamps_the_session_time_not_the_wall_clock.test_daemon_http_securitybrowser_capture/server.py). No allowlist entry was added.report_nodeid_to_selectordid not handlename@group[param-…], the shape that shortened ids take under loadgroup, and the long-id map stored uncollectible@groupids.devtools/pytest_rerun.py,tests/conftest.py).test_session_partition_convergence(fd leak)test_session_partition_convergence(fields_digest)derived/session/input_binding.py).Solution: tests updated to contracts that merged PRs changed
test_import_preflight: several unidentified trajectories are refused (fix(sources): resolve Codex P1 parser findings #5711); the old test expected ids minted from row position.test_artifact_taxonomy: a brain sidecar is observed asagent_sidecar_metaschema evidence (fix: pin topology reads to one snapshot and preserve schema evidence #5781), never as a session.test_tool_result_unknown_reason_contract×3: a step with no verdict field isnot_reported(fix(sources): fix parser, source-walk and fingerprint review findings #5798). A new route coversunsupported_constructwith an unmapped status.test_source_laws: the stand-in parser accounts for its outer records (fix(parsers): certify only records a parsing owner accounted for #5816).test_revision_replay: the direct replay binds Codex enrichment evidence as the retained writer does (fix(intake): one interpretation across live and retained routes #5643).test_retained_tool_output_convergence(Gemini): the fixture sidecar is longer than the 40,000 characters the envelope advertises (the fix(intake): one interpretation across live and retained routes #5643 partial-write guard).test_schema_policy_contracts: FTS triggers are matched by whole table name (messages_fts_readiness_bindingis not FTS-backing); the restart test clears the bootstrap memo as a restart does (perf(core): Memoize bootstrap validation and bound the codex replay spool #5428). Deletedtest_every_prior_index_schema_version…: at fresh v1,SCHEMA_VERSION - 1is 0, which is the "interrupted create" state that is re-created by design. No prior version exists.test_durable_migrations: an archive two slots behind gets the typed refusal from chore: Retire transition-era machinery after its required source/correc… #5806, and the tier is untouched. The docstring ofapply_declared_durable_migrationsis corrected. Filed as polylogue-7yq3f.test_schema_validation: the member schema namesid(fix: Exclude generated build provenance from semantic fingerprints #4856 reports unnamed fields), and the keys are plain names, so the marker is what suppresses them.test_synthetic_wire_support::test_chatgpt_witness…: the part text also survives on the tool block, so the test drops it there too.test_archive_ingest_shared_raw: a ZIP member with a malformed record isterminal_corrupt_input(fix(sources): close ez5b9 live-intake and parser P1 findings #5823 F039); a census runs once per raw.test_plain_cli_snapshots: empty is exit 2 and degraded is exit 1 (surfaces/outcome.py).test_cross_surface_agreement,test_query_composition_laws: the CLI reads through a real daemon (chore: Route every CLI mutation and long operation through daemon autho… #5805). The naive-join mutant lifts the read authorizer (fix(storage): route remaining archive readers through read profiles #5642) the wayattach_readonly_databasedoes.test_resource_pilot×2: parser scratch SQLite (:memory:and temp files) is allowed; any database file or tier is not.test_codex_debt_w1and the convergence properties: the harness bound each session's own evidence to message 0 and stamped replayed messages with the child's values. Since fix(storage): preserve replay ownership, lineage and usage evidence #5826 shares only an identical prefix, no lineage prefix was shared at all, and the append-prefix laws were vacuous. A fork now replays its parent's parsed prefix exactly, and its own evidence moves to the first message it authored. The mutation test's_resolve_session_graphmutant returnsset()to match the current signature.test_query_exec_laws×4: stub the convergence probe in fake-store stats tests (fix: decide read outcomes from returned rows; resolve codex debt #5700), add thetool_inputprojection field, and expect a second window sized to the remaining limit.test_verifystubs the executor,test_pytest_suite_cost_pluginbuilds the recorder before patching RSS,test_verification_terminal_receiptsupdates the sizing stub signature, andtest_verification_resultadds the chore: batch polylogue-20260928-071715-abb675fe #5720flakyfield.test_http_bounded_mutationsadds the fix: Codex review debt: parsers (16 findings) #5723 summary read to its test double.Derived-identity closure (
devtools schema closure): these files are IN:archive/query/archive_execution.py,schemas/source_inference.py,sources/revision_backfill.py,storage/derived/session/input_binding.py,storage/derived/session/repo_observations.py,storage/sqlite/archive_tiers/archive.py. The rest are out.Verification
633ec18ffc, job 3431:passed 1497, failed 41, error 1.agentctl job start --workspace /realm/worktrees/polylogue-master-green polylogue pytest_focused -- <61 files>, job 3578, heada7f4465c56:passed 2336, failed 2after the in-slot rerun. The first attempt ran under host I/O contention, with workers in D state. 25 of its 27 first-attempt failures wereTimeout (>120.0s), and every one of those passed when rerun alone.test_web_reader::…searches_from_archive_tiers: a socket timeout under the same load. It passed alone in job 3861 (devtools test: PASSED exit=0).test_supported_routes_validate_selected_schema_and_parser_entry_point: inherited, see Residuals.test_query_exec_laws×4, idempotence ×7 and mutations ×2 fail on master the same way. All of them are fixed here.1d3b3545c5, job 3920 (24 files):passed 589, failed 1after the in-slot rerun. The one failure,test_inferred_corpus_loop::test_every_supported_inferred_element_reaches_convergence_and_red_twin, was aTimeout (>120.0s)insideload_package_catalogunder the same host load. It passed alone in job 3973 (devtools test: PASSED exit=0).verify_quickon head1d3b3545c5, job 3921:verify: PASSED exit=0. The hostedci/circleci: quick-gatepasses.verify_quickon heada7f4465c56, job 3579:verify: PASSED exit=0.Self-review
I did two passes over the full diff against
master, usingdocs/review/codex-review-guide.mdand the generic worker-contract list. Pass 1 found two defects, both fixed in1d3b3545c5and3ec0a5fa2f. Pass 2 was clean._archive_count_sessions_for_specand the daemoncountmode (operations/daemon_reads.py). Pass 1 found them withgrep -rn count_search_sessions polylogue(7 call sites); both are fixed and have a regression test. The MCP route already reportstotal=Nonefor actions (mcp/archive_support.pyranked_only), andsessions.searchis lexical only. The enrichment digest has a single owner (enrichment_dependency_digest) used by both the live and the retained check. Every seal computes the evidence digest unconditionally, the live enricher included. A search ofpolylogue/storage/derivedfor wall-clock stamps found two others: the marker cursorapplied_at_ms(operational metadata) andprofiles.now_iso(materialized-at). Neither is a semantic column._replayed_parent_prefixwould recurse forever on a declared parent/child cycle (cycle_candidate=True). It now tracks the lineage it walks, and picks the parent revision the wayauthoritative_sessionsdoes.count_search_sessions(actions_only=False)defaults to today's behaviour for every other caller.SELECTper refreshed session. No caps or timeouts were added.with_retained_assembly_evidencereturns at once for providers without assembly evidence (sources/retained_assembly.py:470-479).suppress(OSError, ValueError).verification_evidence_path()now expands~, as the old inline override did.surfaces/outcome.py), and the updated CLI tests assert exit 2 for empty and 1 for degraded.{"artifact": …}namespace, so it can no longer collide with the retired{"source": path}identity. Old cache rows under the path identity are still refused by_old_path_fallback.[param-…]label, and the long-id map now stores both sides in collectible form. The harness deep-copies the parent messages it replays.count_search_sessionsgained an optional keyword; every test double takes**kwargs, and none asserts the exact kwargs (checked attest_query_exec_laws.py:1301,1385,2099andtests/infra/archive_store_double.py:255). The unusednow_isoparameters were removed, andgrepfinds no callers passing them.actions_only. The repo test goes red if the rows are stamped with the wall clock. The evidence-lane pair covers the checkout and the relocated cache.test_rerun_selector_strips_the_xdist_group_suffixcovers the new id shape. The source-inference test goes red without the separate namespace. Stubs follow the current signatures: theresolve_worker_argumentstub takes**sizing, the_resolve_session_graphmutant returnsset(), and the test double implementsget_session_summaries.Generic list: (1) criteria are met on production routes (probes and job 3578). The unmet ones name their blockers (4xyn9, 7yq3f, h9da0, 0e6m3, wple). (2) Siblings: see item 1. (3) No predecessor is kept beside a replacement. (4) No silent fallback was added. (5) Each new test names the change that turns it red. (6) The diff, receipts and text carry no secrets or private data; the paths are worktree scratch paths only.
Residuals
test_supported_routes_validate_selected_schema_and_parser_entry_pointstill fails. The claude-ai v2 coverage witnesses combine mutually exclusive groups, so 529 of 844 keywords are missing. It fails the same way on every commit back to Campaign wave 7: the blob residue is classified, and the SLO unlock lands #5485 at least. Honoring the exclusions in coverage mode alone still leaves 319 missing, so this needs a coverage planner.workflow_journalthrough the lenient retained decode; the ZIP route is strict.🤖 Generated with Claude Code
https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg