Repository navigation
Conversation
Managed sessions accept a candidate ranking configuration through --ranking-policy-file, mutually exclusive with --ranking-policy. Ordinary plans freeze the full receipt (with config_sha256) and ranking_policy_source: configuration; service-reuse plans pin the full configuration by value (no digest key, preserving service_io.no_fingerprints) and ranking_policy_source: configuration in both plan.json and campaign.json, cross-checked on load and delivery projection. Resume, Find and Read rebuild the rule from the frozen configuration through the injected resolver instead of the registry, so every search and read receipt carries the candidate. Candidate IDs cannot reuse registered names, named-policy plans keep their registry check, and tamper/mismatch cases fail with zero session writes. Agent-assisted-by: Antigravity / claude-opus-5-5 [effort=high] (author) Agent-assisted-by: Antigravity / gemini-4-neon [effort=xhigh] (author) Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Add ranking_replay: replay_binding records the query, limit, filters, byte budget, frozen rule, scoring version and corpus digest of one Find and delivery; verify_replay reproduces the returned, delivered and omitted order and reports reproduced only for the identical corpus and scoring version. Archival capture verification stays a separate check. Regression tests replay default and unregistered candidate captures over the frozen ranking corpus, report their delivery difference, show a changed corpus is not reported as reproduced while the old capture still verifies, and reject missing bindings and a changed rule. Agent-assisted-by: Antigravity / claude-opus-5-5 [effort=high] (author) Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Add pure CPU comparison and descriptive scoring rules for two Indexer RankingPolicy arms in benchmark.indexer_comparison (no cross-core imports) and assemble the workflow and CLI subcommand benchmarks indexer-compare in Apps. The workflow reuses frozen RankingPolicy/RankingSpace validation and ranking_replay corpus digests, replay bindings and delivery differences, enforces heldout split isolation and zero-write refusal on invalid or out-of-space inputs, and reports offline CPU retrieval/delivery metrics only. Agent-assisted-by: Antigravity / gemini-4-neon [effort=xhigh] (author) Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
…ry-boundary and recovery checks Add pure Benchmark proposal, selection, rerun, held-out gate and deterministic coordinate-control rules in benchmark.indexer_evolution; add the durable bounded Harness controller in harness.manager.search.indexer_evolution with development-session trace and knowledge-capture ingestion (verifying plan_digest, captures, optimization_trace steps, timing and held-out exclusion), verified delivery-boundary packing, Evolver calls routed through _agent_sessions.py with hard budget reservations on interrupted calls, non-duplicating reconciliation, mandatory rerun and an exclusive single-use held-out claim; and assemble the workflow and CLI subcommand benchmarks indexer-evolve (--dev-session, --mode deterministic|provider) in Apps. Cover delivery-boundary omission refusal, tampered/redacted/held-out leakage refusal, session trace ingestion, interrupted-call restart recovery and budget reservation, out-of-range edits, inconclusive/rerun failure retention of H0, and end-to-end CPU workflow runs. Agent-assisted-by: Antigravity / gemini-4-neon [effort=xhigh] (author) Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Extend benchmark.comparison.summarize and benchmark.summary.comparison with parameterized treatment/reference arm labels (defaulting to on/off for full backward compatibility), update comparison_report rendering for focus=indexer with optional separate Evolver search-overhead accounting, and add --focus indexer to benchmarks compare (--baseline-ranking-policy[-file], --candidate-ranking-policy[-file], --evolution-report). Both arms retain the full knowledge corpus, enforce the frozen knowledge_delivery precondition and frozen ranking policy receipt on child sessions, verify the frozen candidate policy file against tampering, and keep existing knowledge on/off behavior unchanged. Agent-assisted-by: Antigravity / gemini-4-neon [effort=xhigh] (author) Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
5 tasks
david6666666
left a comment
Collaborator
There was a problem hiding this comment.
Dot, acting for @david6666666.
Draft feedback on the S3 increment at 670354f4, not a vote. The comparison correctly keeps Knowledge on in both arms. One evidence-accounting gap is inline. Withholding the total while this PR is stacked on unmerged prerequisites.
| "evolver_mode": evo_doc.get("evolver_mode"), | ||
| "status": evo_doc.get("status"), | ||
| "rounds_attempted": evo_doc.get("rounds_attempted"), | ||
| "selected_rule": evo_doc.get("selected_rule"), |
Collaborator
There was a problem hiding this comment.
This records the Evolver’s selected rule and budget, but never checks that the selected receipt matches cand_meta["receipt"]. A report from another search can then be shown as the overhead for this comparison, even when both child runs correctly use the pinned policies. Could we reject a mismatched receipt before creating the plan and add a test with the wrong Evolver report?
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.
Governing Issue and delivery slice
Refs #867
Refs #460
benchmarks compare --focus indexer) under #867, following the RFC rfc: Harness²-style rule improvement loop — abstract module rules first, start with the Indexer #460 owner decision (7275079865) and S3 claim (7282828908).armsunder A1/A4/A5; Apps composes pairedsession start benchmarkhandoffs reusing P0 S3--ranking-policy-file).main, then will be rebased cleanly ontomainbefore requesting independent review.src/inferrsi/benchmark/comparison.py&src/inferrsi/benchmark/summary.py: parameterizesummarizeandcomparisonwitharms: tuple[str, str] = ("on", "off"), keeping existingknowledgeon/off outputs byte-for-byte identical while enabling("candidate", "baseline")for--focus indexer.src/inferrsi/apps/workflows/benchmark_compare.py&src/inferrsi/apps/cli/arguments.py: add--focus indexerwith--baseline-ranking-policy[-file],--candidate-ranking-policy[-file]and optional--evolution-report:knowledge/data/corpus in BOTH trial runtimes (varying only the frozen Indexer ranking policy);ranking_policy.jsonwith SHA-256 re-checked onstatus/load/retry), passing--ranking-policy-fileinto childsession start benchmarkcommands (reusing P0 S3 harness: freeze and resume unregistered candidate ranking rules #770);#509's frozenknowledge_deliveryprecondition and childranking_policy/ranking_policy_sourcereceipt verification on BOTH arms during collection and report reverification;indexer-evolveseparately inexperiment.jsonandcomparison-result.json/report.md/report.html(rfc: Harness²-style rule improvement loop — abstract module rules first, start with the Indexer #460 §4.4; unavailable token counts staynull).src/inferrsi/apps/views/comparison_report.py&docs/guides/operations.md: renderIndexer ranking comparisontitles,Candidate median/Baseline medianheaders, and separate Evolver search overhead table whenfocus == "indexer".tests/benchmark/test_benchmark_compare_indexer.py: end-to-end paired subprocess comparison test (prepare -> dispatch -> bind -> child sessions -> diagnose -> round -> final -> record -> collect -> report with--evolution-report), wrong child ranking-policy detection, tamperedranking_policy.jsondetection, and negative CLI option tests.PASSclaim.Knowledge authorship declaration
(Note:
claude-opus-5-5appears only in the stacked P0 S3/S4 commits while this PR is Draft; P1-S14fc53ff2, P1-S2b66bf08cand P1-S3670354f4are authored withAntigravity / gemini-4-neon [effort=xhigh]. None of the changed files are inprotected_paths.)Changed artifacts and evidence
src/inferrsi/benchmark/comparison.py,src/inferrsi/benchmark/summary.pytest_comparison_rules.py&test_comparison_report.pygreen + newtest_benchmark_compare_indexer.pygreenmainafter #770/#771/#869/#888 mergebenchmarks compare --focus indexer,#509delivery precondition, child ranking-policy verification & Evolver overheadsrc/inferrsi/apps/workflows/benchmark_compare.py,src/inferrsi/apps/views/comparison_report.py,src/inferrsi/apps/cli/arguments.py,docs/guides/operations.md,tests/benchmark/test_benchmark_compare_indexer.pytest_benchmark_compare.pyregression suite green + repository import-gate & boundary tests green;ruff check src tests toolscleanChecks and dependencies
ruff check src tests tools— passed (0 errors)pytest tests/benchmark/test_comparison_rules.py tests/benchmark/test_comparison_report.py tests/benchmark/test_benchmark_compare_indexer.py— 57 passed, 0 failedpytest tests/repository/test_target_module_import_gate.py tests/repository/test_module_boundaries.py tests/repository/test_first_wave_isolation_policy.py tests/repository/test_package_root_inventory.py tests/repository/test_architecture_anchors.py— 193 passed, 0 failedpytestsuite not run locally (host Git 2.34 lacks Git >= 2.45 flags used by unrelated repo tests); CI will be authoritative once rebased ontomainand marked ready.--ranking-policy-filesession freeze/resume from harness: freeze and resume unregistered candidate ranking rules #770), P1 S1 (_resolve_policyfrom benchmark: add CPU Indexer ranking comparison evaluator (P1-S1) #869), and P1 S2 (indexer_evolution_reportoverhead format from harness: add bounded P1 Indexer Evolver loop, delivery-boundary and recovery checks (P1-S2) #888).Remaining work and Issue closure
mainin order once harness: freeze and resume unregistered candidate ranking rules #770 merges; open the separate P1 pilot acceptance issue freezing dev/held-out tasks, Evolver provider, execution environment and device budget before real-task search.PASS).