Repository navigation
Reproofs run only the concept's detectors; the probe types only the files it asks about - #478
Merged
Merged
Conversation
…iles it asks about A stage's acceptance reads its projected scan only through `target_findings`, the concept's own findings: progress, certification and the next depth's plan. The semantic-mirror detectors a RescannedStages reproof added decide none of that, and the settle's exact scan measures them, so a reproof no longer runs them and `StageProof.reproof_detector_ids` is gone. The probe detector's fresh mypy build read every expression of every built file for its types and then asked about a few receivers: on agent-comms 4.3-4.9 of a 14.4 s build for 8 receivers in 7 files. `TypeCheckerSession.answers` builds once and reads types only in the files holding the asked spans (0.014 s, the same answers). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016gZLduhisRHdamZ5LNK72Z
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.
Numbers first. Measured on the saved 11-file class_family_authority move on agent-comms (853 modules):
What changed.
StageProof.reproof_detector_idsis deleted. A stage's acceptance reads the projected scan only throughtarget_findings, the concept's own findings:stage()progress;plan_from_findings(target_findings)builds.The semantic mirrors
RescannedStagesadded decide none of that, and the settle's exact scan measures them. So a reproof reruns the target detectors plusFindingRecipeSynthesizer.detector_ids_for_concept, and nothing else.TypeCheckerSession.answers(sources, spans)builds once and reads types only in the files holding the asked spans.ProbeOwnerQuery.answereduses it.started()(asked later, so it keeps every file's types) shares the same_built.Not in this PR, measured and dropped:
AssertionErrorinjoin_instances_via_supertype), or is slower than a fresh build (25–28 s).Tests.
test_module_cli_agent_payload_reuses_cached_semantic_graph_for_file_scope,test_module_cli_loop_payload_allows_no_structural_overlap_without_raw_bulk), and both also fail on main. stage-proof, restated-fact, optional-field and context-reuse tests: 138 passed.Generated by Claude Code