Repository navigation
test: make eight unit tests prove the behaviour they name - #5808
Merged
Merged
Conversation
Recovered from Codex-debt worker 16 (polylogue-1tyq5.122 findings) and re-verified on current master: continuation offset is decoded rather than inferred from disjointness, status rejects session IDs, the antigravity symlink case uses a conversation protobuf, blob publication orders the staged-file fsync before replace, the cold-build preflight pins free space, the unknown-reason declaration check covers only unknown routes, bulk-build protocol arms run inside one caller-owned transaction, and resource and protocol timings are retained as measurement receipts. 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. |
Sinity
enabled auto-merge (squash)
September 29, 2026 08:16
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
Test-only salvage of Codex-debt worker 16 (
polylogue-1tyq5.122). Eight unit tests now fail on the regression each one names, instead of passing on a weaker proxy. No production code changes.Problem
Hosted review findings on earlier PRs showed that these tests could not catch the defects they claim to guard. For example, the antigravity symlink test used a
.mdpath that the conversation walker never considers. The blob-store fsync test also passed with every staged-file fsync removed. The worker's patch arrived truncated. Eight complete test-file diffs were recoverable. The ninth (test_durable_change_train.py) was cut off after its header and is not included.Solution
q2.tokens (server_support.py_budget_envelope), so the worker'sarguments["offset"]read raised KeyErrorrequest.offset == returned_itemsperf_countertiming test had nouses_real_clockmarkeremit_receipt("pilot-provider-build-cost")plus readback.mdsymlink is never a conversation candidate.pbnext to a regular.pb; only the regular one is admitted_free_spacepins 512 MiB, and the receipt must record itbackfill_historical_revision_evidencedirectlycallable_identity; the unexercisedproduction_driverlabels are removedUNKNOWNfsynccould be the directory syncfstat; the file fsync must precedereplacemanage_transaction=False(revision_governance.py:555)BEGIN,COMMITemit_receipt("finished-build-protocol-synthetic")plus readbackRemoved from the worker's patch as tautological: an
any(...)assertion over the same set it iterated, a test asserting its own marker, and a check that a dict it had just built lacked a key.Verification
agentctl job start polylogue verify_quick --workspace /realm/worktrees/salvage-w16 --wait→ job 2591:verify: PASSED exit=0 ... head=d35b8dc637d8agentctl job start polylogue pytest_focused --workspace /realm/worktrees/salvage-w16 --wait -- <all 8 files>→ job 2498 (before the 122.01 rework): 198 passed, 4 failed. After the rework, job 2560 on d35b8dc (the five files whose tests had failed or changed since 2498): 138 passed, 2 failed.test_resource_pilot.py::test_parser_resource_needs_only_provider_bytesand::test_parser_resource_acquisition_opens_no_archive_tier(the ChatGPT parser openssqlite3.connect(":memory:")atchatgpt.py:3017), andtest_bulk_build_lifecycle.py::test_fresh_shard_build_finishes_equivalent_to_retained_indexes._walk_source_pathsfollowing symlinks and the staged fsync removed fromwrite_from_bytes, both the new antigravity test and the new blob-store test fail (2 failed).Self-review
blob_store.pyshare the same event classification, and onlywrite_from_bytesis exercised here, as before._routed_origin_namesandproduction_driverhave no remaining references.rg _routed_origin_names|production_driver testsfinds no remaining uses.Derived-identity closure
No production files are touched, so the closure does not move.
Residuals
.120and.121never reached a branch, because the publication connector returned 502. They remain open..122and.123findings.🤖 Generated with Claude Code
https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg