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>
5 tasks
…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>
fake0fan
force-pushed
the
p1-s2-indexer-evolver
branch
from
November 30, 2026 15:19
32b902b to
b66bf08
Compare
david6666666
left a comment
Collaborator
There was a problem hiding this comment.
Dot, acting for @david6666666.
Draft feedback on b66bf08c, not a vote. The single-use held-out claim correctly prevents a second evaluation. One restart window still leaves the recorded decision and status disagreeing; details inline.
| "holdout_report": holdout_report, | ||
| "selected_rule": state["selected_rule"], | ||
| } | ||
| durable_write_json(self._holdout_result_path, result_doc, exclusive=True) |
Collaborator
There was a problem hiding this comment.
Dot, acting for @david6666666.
If the process stops after holdout-result.json is durable but before _save_state, a restart still reports holdout_claimed; rerunning the gate refuses the existing claim. Could recovery reconcile a valid durable result to its original claim and plan into terminal state, without calling the evaluator again? Please cover that exact write boundary with a restart test.
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
main, then will be rebased cleanly ontomainbefore requesting independent review.src/inferrsi/benchmark/indexer_evolution.py: pure Benchmark rules for frozen evolution config validation, proposal envelope & delivery-boundary citation verification, development selection, mandatory rerun agreement, single-use held-out gate (accept_h1/retain_h0), and deterministic single-coordinate search control (propose_deterministic_weights).src/inferrsi/harness/manager/search/indexer_evolution.py: durable Harness controller (IndexerEvolutionController) andpack_evolver_context:knowledge_capture.verify_capture, ingests retained development session traces (--dev-session:plan.jsondigest,knowledge/*.jsoncaptures, sanitized per-roundoptimization_tracesteps,finalandexperiment-timing.json, refusing tampered orheldoutsessions), refusesheldoutevidence before serialization, packs strictly withincontext_bytes, and bindsdelivery_receipt(context_sha256,delivered_evidence,omitted_evidence) to the final serialized context._agent_sessions.py(prepare->dispatch->bind->record) with hard per-call budget reservation held across dropped responses and restarts, non-duplicating reconciliation byjob_id, unknown usage recorded asnull(never zero), and definitenot_createdfailure release.H1, exclusive single-use held-out claim (durable_write_json(..., exclusive=True)), and proposer isolation after held-out claim.src/inferrsi/apps/workflows/indexer_evolution.py+src/inferrsi/apps/cli/{arguments.py,__init__.py}+docs/guides/operations.md: Apps assembly (run_indexer_evolution, optional runtime-env-onlymake_openai_compatible_provider) and CLI subcommandinferrsi benchmarks indexer-evolve.tests/benchmark/test_indexer_evolution_rules.py,tests/harness/test_indexer_evolution_controller.py,tests/apps/test_indexer_evolution_workflow.py: full rfc: Harness²-style rule improvement loop — abstract module rules first, start with the Indexer #460 §4.5 and §4.6 positive and negative CPU test suite (including david's delivery-boundary omission fixture, tampered/redacted/held-out leakage refusals, Amy's 10/6/5 interrupted-call budget reservation and restart recovery without resends, out-of-range edits, inconclusive/rerun failure retention ofH0, single-use held-out claim, and real-corpus deterministic & provider CPU workflow tests).benchmarks compareranking-policy arms (S3 of [P1] Indexer rule iteration: CPU comparison evaluator, bounded Evolver loop, and paired real-task comparison #867), any real-model or NPU/GPU pilot execution (separate acceptance issue), any change to repository default ranking weights, or any end-to-end task/servicePASSclaim.Knowledge authorship declaration
(Note:
claude-opus-5-5appears only in the stacked P0 S3/S4 commits while this PR is Draft; P1-S14fc53ff2and P1-S232b902b1are authored withAntigravity / gemini-4-neon [effort=xhigh]. None of the changed files are inprotected_paths.)Changed artifacts and evidence
src/inferrsi/benchmark/indexer_evolution.py,tests/benchmark/test_indexer_evolution_rules.pymainafter #770/#771/#869 mergesrc/inferrsi/harness/manager/search/indexer_evolution.py,tests/harness/test_indexer_evolution_controller.pynot_createdrelease, budget exhaustion, out-of-range/rerun failure, single-use holdout & proposer isolation)benchmarks indexer-evolvesrc/inferrsi/apps/workflows/indexer_evolution.py,src/inferrsi/apps/cli/{arguments.py,__init__.py},docs/guides/operations.md,tests/apps/test_indexer_evolution_workflow.pydevelopment.json+ synthetic tmp holdout; repoheldout.jsonuntouched);ruff check src tests toolscleanChecks and dependencies
ruff check src tests tools— passed (0 errors)pytest tests/benchmark/test_indexer_evolution_rules.py tests/harness/test_indexer_evolution_controller.py tests/apps/test_indexer_evolution_workflow.py— 14 passed, 0 failed (7/7 controller tests including--dev-sessiontrace ingestion & tamper/heldout refusals)pytest 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— all passedpytestsuite 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._agent_sessions.py,knowledge_capture.verify_capture,durable_write_json(..., exclusive=True), P0 S2RankingPolicy/RankingSpace, P0 S4ranking_replay, and P1 S1compare_indexer_policies.Remaining work and Issue closure
mainafter harness: freeze and resume unregistered candidate ranking rules #770, knowledge: replay a retained Find ranking from its frozen rule #771 and benchmark: add CPU Indexer ranking comparison evaluator (P1-S1) #869 merge, then mark ready for independent review; S3 (paired real-taskbenchmarks compareranking-policy arms) and the separate P1 pilot acceptance issue remain open in [P1] Indexer rule iteration: CPU comparison evaluator, bounded Evolver loop, and paired real-task comparison #867.PASS).