Skip to content

Sync main's Manager and Indexer interfaces into the atomic candidate - #748

Merged
Dong1017 merged 11 commits into
codex/500-atomic-candidatefrom
codex/500-sync-main-reader
Nov 27, 2026
Merged

Dong1017 merged 11 commits into
codex/500-atomic-candidatefrom
codex/500-sync-main-reader

Conversation

@Dong1017

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #715

The draft whole-library delivery is #745. This PR adapts the candidate Reader to the Manager and Indexer interfaces already landed on main. It targets the shared candidate. Integration claim · Implementation delegation

What to review

The shared base is 99f5847a802e7961001a6244fa93ccda5f18bc3d, the incorporated main is ba4637e2b81bba036a62be0da35353559b7284d9, and the submission is 82fefac843fbea8d49731276f849228cf40328c1 (tree bea3418017aa433c053dc884aba79f5b85478795). Of the 244 paths with changes from the shared base, 234 match main exactly, including its contract documents. The seven conflict-resolution paths carry the Reader-specific work. Three further paths combine existing changes automatically: the Apps migration ledger, Knowledge capture, and the optimization-session tests.

  1. Apps constructs the typed selection request and supplies a Reader pinned to the chosen source. Manager forwards the reference, revision, layer, budget and permissions context and ties the result to the active round and diagnosis.
  2. Indexer verifies the selection against the frozen session policy and classifies it as a delivery or refusal. Manager commits that result through the diagnosis-bound request and retains the receipt in both cases.
  3. The head includes the NPU workflow already integrated in knowledge: migrate the NPU skill factory and its reference directory #732. Both the candidate and main are its real Git ancestors. The draft integration will be tested against the actual then-current branches after review.

Anchors touched: none. The candidate carries the architecture and contract documentation already published on main. A1 and A2 govern the Apps assembly and cross-core handoff.

Checks and remaining acceptance

  • Repository-wide Ruff passed for src, tests and tools.
  • On Windows the atomic library, optimization session, session ranking, Indexer deliveries, component freeze, and module-boundary tests produced 394 passed and 6 skipped on this exact tree. The skipped tests are listed in the review request.
  • The repository-wide CI run and independent reviews are pending. The acceptance of the production cutover, real host, package parity, interruption and released-receipt rollback remain tracked in task: 验证整库候选、一次切换并完成 Day-3 退役 #715. The earlier Windows integration reproduction records the original branch conflict.

Knowledge authorship declaration

The declaration records the agent that authored the integration adjustment. Upstream work already on main retains its original commit history and review.

{
  "schema_version": 1,
  "head_sha": "82fefac843fbea8d49731276f849228cf40328c1",
  "human_only": false,
  "material_ai_authors": [
    {
      "tool": "Codex",
      "model_id": "gpt-6.2-astra",
      "effort": "max",
      "role": "author"
    }
  ]
}

Dong1017 and others added 11 commits November 27, 2026 00:10
Freeze relocated ordinary and service sessions, their runtime inputs and the cleanup proofs that distinguish attempt identity from service ownership. Record the session handoffs and reproduce the original verdicts and accounting from an installed wheel.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
* Move bounded search orchestration and admission into Harness Manager

Move the search modules under Manager and share the subprocess environment through Executor. Keep Engine CLI binding in Apps, enforce the budget before touching session files, and preserve the existing candidate selection and held-out promotion rules. Migrate the published callers and guard the retired module paths.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

* Refresh the retained Qwen replay bundle checksums

Record the four migrated public replay files in the compact evidence inventory. Preserve the measured RunSpec, archived driver identity and measurement outputs.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

* Reject invalid Engine search budgets before admission

Validate the time and count limits before loading a role checkpoint or creating campaign state. Exercise the negative-training counterexample from both the CLI and the Manager entry point.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

---------

Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Move callers to the Manager package and retire the root runner module. Preserve the Apps bindings and exercise the new import with paired trials from the installed wheel.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)

Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
* Separate bottleneck diagnosis and managed knowledge delivery

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

* Bind prepared service knowledge to its dispatched request

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

* Validate ordinary knowledge before retaining its receipt

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>

---------

Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Co-authored-by: dongxinwen <d00949542@china.huawei.com>
…s components

Keep retained observations, atomic writes and mounted-store transactions with Records. Expose the pure request digest from Executor and preserve historical reads and ordinary session recovery.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
…xecutor (#731)

* Move local execution, candidate preparation and trials into Harness Executor

Move local CPU execution, trials, leases, generation bindings and candidate evidence into Executor. Migrate the public callers and Apps wiring, keep cleanup through the injected supervisor, and verify the retired imports and retained sessions.

Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Agent-assisted-by: Codex (author)
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>

* Assert the current Records runtime import closure

Require the exact Records import graph after the Harness root Verdict alias
was removed. A future eager import of contracts.claim now fails the check.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>

---------

Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Co-authored-by: dongxinwen <d00949542@china.huawei.com>
* Separate ordinary Harness execution and evaluation

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>

* Check the ordinary assessor and lazy executor imports at their new locations

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>

---------

Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Co-authored-by: dongxinwen <d00949542@china.huawei.com>
Move live service stages and cleanup evidence into Executor. Evaluate recorded measurements, quality and frozen conditions through Evaluator. Preserve same-attempt recovery and the released serving contract.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
)

Move ordinary and service-reuse session control, round budgets and checkpoint settlement into Manager. Route campaign and benchmarks session through the same typed operations. Preserve both installed recovery contracts and the existing session lock.

Refs #702

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex (implementation)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (implementation)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
@Dong1017 Dong1017 added area:apps Apps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters area:harness Harness module: profile, A/B loop, quality gates, evidence reports area:knowledge Knowledge line: packs, skill library, knowledge admission labels Nov 27, 2026
@Dong1017

Copy link
Copy Markdown
Collaborator Author

@david6666666 @amy-why-3459 @Bounty-hunter @zengchuang-hw Please independently review the Reader integration at 82fefac843fbea8d49731276f849228cf40328c1 against shared candidate 99f5847a802e7961001a6244fa93ccda5f18bc3d and upstream main ba4637e2b81bba036a62be0da35353559b7284d9. The production-facing draft is #745.

For a short review path, git show --remerge-diff abb82f30ef0f3898800a034df7097b87b3f7bf2a shows the seven manual adaptations. Check the Campaign's typed request, the Manager state and session handoff, Indexer binding validation, and rejected capture receipts. The other three combined paths and the 234 paths matching main are accounted for in the PR body.

The exact tree bea3418017aa433c053dc884aba79f5b85478795 passed Ruff and 394 focused Windows tests (6 skipped). Skips: tests.apps.test_optimization_session.test_killed_controller_does_not_restart_live_assessor, tests.apps.test_optimization_session.test_managed_knowledge_rejects_unverified_capture[symlink], tests.apps.test_optimization_session.test_managed_knowledge_rejects_unverified_capture[ancestor_symlink], tests.apps.test_optimization_session.test_pinned_pre_move_wheel_recovers_its_original_plan, tests.apps.test_session_ranking_policy.test_service_screening_and_formal_gates_across_policies[True-1-PASS], tests.apps.test_session_ranking_policy.test_service_screening_and_formal_gates_across_policies[False-0-FAIL]. Full repository CI and independent approvals are still pending.

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for zengchuang-hw.

回应本轮邀请。固定范围 99f5847 → 82fefac。

独立确认共享候选和 main 都是当前 head 的实际 Git 祖先。与两边固定树逐文件对照:244 个改动路径中,230 个现存 blob 与 main 相同,另 4 个路径两边均删除;余下 10 个为候选适配。追查 Apps 构造 typed request、Manager 的普通会话锁/轮次/诊断绑定,以及 Indexer 对交付与拒绝分别登记。服务路径仍拒绝带指纹的选择;零正文拒绝不能成为新一轮引用。

用当前 head 的实际核对函数和端口替身,验证精确字节通过,错 revision、错摘要、错字节计量和带正文的拒绝均抛错;真实分类代码把拒绝记为 knowledge_refusal,不当作交付。本轮未重建 wheel 或跑完整会话,批准仅覆盖候选集成,不涉及 #745 的生产切换和 #715 真宿主验收。

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
inferRSI, acting for @amy-why-3459.

PR review verdict — PASS
Reviewed base 99f5847 and head 82fefac.
Independently compared the 244 paths against main ba4637e: 234 match main (231 identical blobs and 3 deletions present on both sides). I reviewed the seven conflict-resolution paths and the three combined paths. Campaign now builds a typed SelectSessionKnowledge request with a pinned AtomicReader; Indexer records a refusal as knowledge_refusal, and Manager will not let that receipt be cited in a later round. Service-reuse sessions still reject this fingerprint-bearing select path. Added tests cover exact-byte delivery, receipt forgery, and unciteable refusals. I did not rerun the 394 Windows tests or accept the #745/#715 cutover.

@Dong1017
Dong1017 merged commit 3be5e09 into codex/500-atomic-candidate Nov 27, 2026
5 checks passed
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

Squash-merged into the shared candidate at 3be5e09. Reviewed head 82fefac had independent approvals from @amy-why-3459 and @zengchuang-hw and passed the full CI run.

Verified the resulting tree 415a5c7eec8a9540ba696fd6645592105f7de011 against the merge of that head with the prior candidate 50f368a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:apps Apps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters area:harness Harness module: profile, A/B loop, quality gates, evidence reports area:knowledge Knowledge line: packs, skill library, knowledge admission

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants