Repository navigation
fix(devtools): close closure, census, receipt, probe and continuity gaps - #5783
Merged
Merged
Conversation
…robe - campaign closure: readiness reads the global prerequisite index that closure membership already uses; the per-record blocks_prerequisites predecessor, which dropped edges exported under the other endpoint, is deleted. - derived sweep census: a repeated SQL site key keeps the broadest scope and that site's location instead of the first observation. - measurement receipts: empty and quoted keys are escaped, so distinct payload shapes cannot flatten to one unchanged movement path. - pipeline probe: an unpaired RSS component is omitted rather than both supplied and declared unavailable. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
…ties The self-inspection continuity scenario claimed read-view catalog coverage but recorded only the query-capability declaration count, so removing a shipped viewport profile left it green. explain(subject="capability") now returns the facade's read_view_profiles, and the scenario compares every view_id against its fixture oracle. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
An unbudgeted probe passed no aggregate peak, so peak_rss_bytes was declared unavailable while the paired self+children components still produced it, and the typed phase observation rejected every ordinary pipeline-probe run. Unavailability is now decided after the peak is computed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
The full read-view profile catalog exceeded the capability page's response budget, so explain(subject="capability") answered response_budget_exceeded. The page now carries read_view_profile_ids; full metadata keeps its own facade and daemon route. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
The census now records a repeated key at its broadest site, which moves two _materialize_inherited_prefix entries in the rendered declaration. Master added the compact viewport profile, which the self-inspection oracle now lists. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
Sinity
force-pushed
the
fix/codex-debt-w14-devtools
branch
from
September 29, 2026 04:30
fffe356 to
f040f94
Compare
Sinity
marked this pull request as ready for review
September 29, 2026 04:30
Sinity
enabled auto-merge (squash)
September 29, 2026 04:31
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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. |
Sinity
added a commit
that referenced
this pull request
Sep 29, 2026
Resolve by intent: - transcript_window.py: take master (#5728). It already raises the typed SessionNotFoundError, which supersedes this branch's change there. - api/archive.py: keep the removal of the dead ValueError string-match translation and pass master's content_projection through. - compaction.py: take master's integer tool-flag fix (#5793); SURF-03 is now fixed on master and its duplicate test is dropped (master's test_read_view_compact covers it). - server_cutover.py: advertise mcp_read_view_names() beside master's read_view_profile_ids (#5783). - orchestration_evidence.py: #5793 made children a streamed _Section, so the truncation filter now narrows children.rows; the test calls the new build_session_orchestration(session_id, topology) signature. - Test files: keep both sides' added tests. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
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
Worker 14 of the Codex review-debt batch (devtools parts 1–3: beads polylogue-1tyq5.42, .43, .44; 75 findings). Five findings are real on current master and fixed here. A sixth defect, in the same pipeline-probe function as #4366, is fixed as a sibling. 68 findings are already fixed on master, 1 is stale, and 1 was not reached.
Problem
campaign_closure.py:128): closure membership used the global prerequisite index, but readiness usedblocks_prerequisites(record), which kept only edges stored on the record whoseissue_idthey name. An edge exported under the prerequisite's record was dropped, so the dependent task read as unblocked while its prerequisite was open.continuity_scenarios.py:684): the self-inspection scenario claimed to cover the read-view catalog but recorded onlycapability_declaration_count. Removing a shipped viewport profile left the scenario green.derived_sweep_census.py:436):sites.setdefault(key, …)kept the first site under a key. A later archive-wideno_whererewrite of the same table in the same function was therefore hidden behind an earlierstate_predicatesite.measurement_receipts.py:96): empty keys were not escaped, so{"": {"latency": 10}}and{"latency": 10}flattened to the same path and an unexplained shape change was recorded asunchanged.pipeline_probe/result.py:324): with only one RSS component measured, that component was still supplied while both were declared unavailable, andWorkloadPhaseObservationraised.peak_rss_byteswas declared unavailable even though the paired components produced it. Every ordinarydevtools bench pipelinerun raised; the existingtest_main_*tests fail on master.Solution
_prerequisite_indexas closure membership.blocks_prerequisitesis deleted.explain(subject="capability")returnsread_view_profile_ids: every profile'sview_idfromPolylogue.list_read_view_profiles(). The scenario compares that list with its fixture oracle. The worker's draft returned the full profile payloads, which exceeded the MCP response budget (response_budget_exceeded), so the page carries only the identities. Full metadata stays on the facade and on/api/read-view-profiles.docs/atlas/mcp.mddocuments the field.docs/plans/derived-sweep-census.yamlchanges; no classification changes._leavesescapes empty keys and keys containing a quote.peak_rss_bytesis marked unavailable only when no peak was computed.test_codex_debt_w14.py. The MCP test istests/unit/mcp/test_explain_read_view_profiles.py. The self-inspection oracle now includescompact, the profile master added.Verification
agentctl job start polylogue verify_quick --workspace /realm/worktrees/salvage-w14 --wait: job 2336,verify: PASSED exit=0 ... head=f040f940bd5e.agentctl job start polylogue pytest_focused --workspace /realm/worktrees/salvage-w14 --wait -- tests/unit/devtools/test_derived_sweep_census.py tests/unit/mcp/test_explain_read_view_profiles.py tests/unit/devtools/test_pipeline_probe.py tests/unit/devtools/test_campaign_closure.py tests/unit/devtools/test_measurement_receipts.py: job 2322 at f040f94, 91 passed.tests/unit/mcp/test_capability_pointer_routes.py tests/unit/mcp/test_session_projection_table.py tests/integration/test_continuity_replay.py: job 2301 at 31528cf2ff (the same tree before the last rebase onto fix(storage): retain agent work events as their own logical source #5801), 117 passed.test_continuity_replaypassing shows the capability page with profile ids fits the continuity byte budget.test_main_*tests fail on master's code withpeak_rss_bytes cannot be both observed and unavailable(job 2073).Self-review
peak_rss_bytes), fixed here. The readiness predicate had one duplicate owner, which is now deleted. No other caller ofblocks_prerequisitesexists.blocks_prerequisitesis removed rather than kept beside the index.capability_declaration_countis replaced in both the scenario and the oracle.blocks_prerequisites.campaign_closure.main --json. The measurement test runsmeasurement_receipts.main --record. The census test runscensus_package. The probe test runs_build_budget_report, and the existingtest_main_*tests runpipeline_probe.main. The MCP test calls the registeredexplaintool with the real facade method and removeschroniclefromREAD_VIEW_PROFILES.Findings
build_reportuses_prerequisite_indextest_campaign_closure.py::test_readiness_uses_edges_attached_to_the_prerequisite_recordserver_cutover.pyread_view_profile_ids; scenario factread_view_idstest_explain_read_view_profiles.py::test_self_inspection_detects_removed_viewport_profile_on_mcp_routeDerivedSweepCensus.observe.recordkeeps the worst scopetest_derived_sweep_census.py::test_repeated_rewrite_key_keeps_the_broadest_scope_and_its_location_leaveskey escapingtest_measurement_receipts.py::test_distinct_payload_shapes_never_flatten_to_one_unchanged_path_pipeline_workload_receiptpairs components; peak unavailability decided after the peak is computedtest_pipeline_probe.py::test_budget_receipt_omits_an_unpaired_rss_component,test_main_*--commitverify mode no longer existsDerived-identity closure
None of the changed files is in
docs/plans/schema-closure-baseline.json, and theschema-closuregate passes.Residuals
tests/unit/agent_integration/test_manual_contract.py::test_published_examples_use_live_operation_vocabularies_and_preconditionsfails on master's code as well ('messages' in {NoneType, Literal[...]}). It is unrelated to this change and was left out of the selection.quoted-empty-keyandquoted-dotted-keypass on master too. They pin the new escaping's own consistency; onlyempty-parentis the regression.🤖 Generated with Claude Code
https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg