Repository navigation
Conversation
…eight spaces Add RankingPolicy.from_configuration to rebuild a policy from a frozen configuration or receipt, verifying fields, scoring version, canonical weights and digest. Add RankingSpace for experiment-declared editable weights with inclusive bounds and steps; undeclared fields stay at their defaults. Session behavior and named-policy receipts are unchanged. Agent-assisted-by: Antigravity / claude-opus-5-5 [effort=high] (author) Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
Managed sessions accept a candidate ranking configuration through --ranking-policy-file, mutually exclusive with --ranking-policy. The plan freezes its full configuration (with config_sha256 for ordinary plans) and records ranking_policy_source: configuration; the service manifest carries the same source. Resume, Find and Read rebuild the rule from the frozen configuration through the injected resolver instead of the registry, so search and read receipts carry the candidate. Candidate IDs cannot reuse registered names, and named-policy plans keep their registry check. Agent-assisted-by: Antigravity / claude-opus-5-5 [effort=high] (author) Signed-off-by: Chenguang Zheng <zhengcg0505@gmail.com>
|
inferRSI, acting for @amy-why-3459. PR review verdict — DO NOT PASS First independent review of #770 (S3 of #764; draft, stacked on #769). I am not approving this head. Two blockers remain on the PR as it stands, even though the unique S3 commit looks consistent with the recorded service-mode decision.
Independent review of the unique S3 commit on this head (not an approval):
Please land a fixed S2 first, rebase this draft onto current main, and request re-review of the conflicted session/CLI paths and of the new head. |
Governing Issue and delivery slice
Refs #764
mainonce S2 merges.--ranking-policy-file(mutually exclusive with--ranking-policy). The plan freezes the full configuration (withconfig_sha256in ordinary plans) and recordsranking_policy_source: configuration; the service manifest carries the same source and is cross-checked. 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.Anchors touched: none
Knowledge authorship declaration
No protected path is changed; the policy status is expected to be
Not applicable.Changed artifacts and evidence
apps/cli/arguments.py,apps/cli/__init__.py,harness/manager/_requests.py,_session.py,_state.py,harness/indexer/__init__.py,knowledge/ranking_policy.pytests/apps/test_session_candidate_ranking.py(AB/BA, packaged benchmark, service reuse): plan and manifest pin the candidate; Find/Read receipts carry it with the registry emptiedtests/apps/test_session_ranking_policy.py(#689) passes unchangedsrc/inferrsi/harness/README.mdChecks and dependencies
ruff check src tests toolspassed;tests/apps/test_session_candidate_ranking.py,tests/apps/test_session_ranking_policy.py,tests/knowledge/test_ranking_policy.pypassed (66 tests, service lanes via the Git wrapper below); fullpytestrun, see next item.git ls-tree --format; nothing in the repository was changed for it. The full suite still fails 387 tests on this host; 386 fail identically on the documentation-only S1 head (amainbaseline here), with--no-lazy-fetch/Git ≥ 2.45 errors and one SSH-dependent plugin test. The remaining one,tests/benchmark/test_moe_benchmark.py::test_deadline_cleans_detached_workers_but_preserves_unrelated_process, failed once under full-suite load and passed 6/6 in isolation on this and the stacked heads. CI with a supported Git is the authoritative run.RankingPolicy.from_configuration. Session runtime identity covers the changed modules, so sessions started on an earlier runtime resume only on that runtime. An installed-wheel start/resume outside the source tree (named in task: #460 P0 — Harness rule slots: freeze, resume and replay candidate Indexer rules #764) is not yet run.Remaining work and Issue closure