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>
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>
|
inferRSI, acting for @amy-why-3459. PR review verdict — DO NOT PASS First independent review of #771 (S4 of #764; draft, stacked on #769 and #770). I am not approving this head. The PR still carries the unresolved S2 step-membership bug ( Independent review of the unique S4 commit on this head (not an approval):
Please wait for a fixed S2 and a rebased S3 on current main, rebase this draft, and request re-review of the new head. |
Governing Issue and delivery slice
Refs #764
mainafter they merge.knowledge/ranking_replay.py.replay_bindingrecords query, limit, filters, byte budget, frozen rule, scoring version and a corpus digest over every eligible document's scoring inputs;verify_replayreproduces returned, delivered and omitted order and reportsreproducedonly for the identical corpus and scoring version (corpus_changed/scoring_changedotherwise);delivery_differencecompares two rankings.Anchors touched: none
Knowledge authorship declaration
No protected path is changed; the policy status is expected to be
Not applicable.Changed artifacts and evidence
defaultknowledge/ranking_replay.pytests/apps/test_indexer_deliveries.py: three limit/budget cases, ranks, delivered and omitted refs reproduced; candidate vs default difference reportedcorpus_changedcorpus_sha256,context_bytes,scoring_versionraise; changed weights fail the digest; bumped scoring version reportsscoring_changedknowledge/README.md,harness/README.mdChecks and dependencies
ruff check src tests toolspassed;tests/apps/test_indexer_deliveries.pyandtests/repositorypassed; 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; replay is only as faithful as the supplied corpus, which the caller must pin.Remaining work and Issue closure