Skip to content

Move retained run records and request digests to Harness components - #727

Open
Dong1017 wants to merge 9 commits into
mainfrom
codex/702-p5-records
Open

Dong1017 wants to merge 9 commits into
mainfrom
codex/702-p5-records

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #702

P5 moves retained execution records and the request digest to their owning Harness packages. P1 supplied the frozen ordinary sessions. The branch includes the merged P2 search and P3 paired-runner changes. The scope and acceptance criteria and pre-migration wheel evidence identify the contracts exercised below.

Caller or responsibility Entry after this change
Request identity from inferrsi.harness.executor import request_digest. Both old digest entries are removed.
Fixed-version reads and writes from inferrsi.harness.records import RunStore, RunStoreReader. The old harness.run_store module is removed. A mounted store supplies its own transaction to work control.
Intermediate records Records owns atomic JSON, retained artifact primitives, usage, service observation readers and their restricted-path, JSON and failure helpers. Source callers, tool subprocesses, replay metadata and repository checks use the new owners.
Public errors Apps now imports the public error types from harness.api. Records and Executor share their exact class objects through a standard-library-only contracts module. api.Harness and the storage classes load on first access. P6 owns the local target move.

Import migration and upgrade notes · Installed-package checks · Fixed-version tests

Installed package and historical data

Source 5e4d6f94189f091e45259c7a485fe4839a3a60a9, git archive SHA-256 0de1294e0a3734ead2d55622db8ff903051f71e721697cbf8cdf54cecd7bc567, normal wheel inferrsi-0.3.5.dev17+g5e4d6f94-py3-none-any.whl SHA-256 695fb430eb77236583a196c08be20c5f7f0db9c11212f157289c81594e1bdad6. All 1,026 installed package members matched the wheel. All seven packs registered in D007 matched their frozen bytes. The checks below ran outside the source checkout.

Acceptance Result
Read a historical SQLite store Using the same store recorded before migration, the new reader returned exactly 2,524 bytes for v1 (running) and 3,085 bytes for v2 (finished). SHA-256 values were 28b6308bec9b466d2bceacb77d0de2fc1c254e1c990022bcd93f723ff8869be8 and a1e4d1d1eac6f7d069850f3dd9571251ba14c36434b5fb6390e8473289a64912. The retained 24-byte object matched 3bbabd4334c909984046ed4817e1f97d2433c56ae288ea9b8b825aec2b1b188c. The database, object and lock file matched byte for byte before and after reading.
Repeat or change the claim Repeating the original digest returned the same finished attempt and v2 reference. A changed digest raised RequestConflict. Both fixed versions, the logical database and all mounted files were unchanged.
Digest fixtures Two distinct 2,069-byte inputs were read from Git. The D023 execution-spec fixture produced sha256:be0fb47b3b9b8b064a42758ec5b83a20cab92359b2fd50f9ad68305cf7517980, as pinned by MANIFEST-d023.json. The prepared-binding null-timeout fixture produced sha256:62ce11e6d458b5c581245d0988189e1bd834f2ed1e1880d15242faf70c5b6fe9. Both results equal their own canonical input bytes' SHA-256 before and after migration. Importing the public digest loaded zero SQLite, RunStore or execution-service modules.
Ordinary-session fingerprint P1 captured 38 files. The P2 and merged P3 baselines contain the same 39 paths. Only harness/trials/__init__.py changed digest between P2 and P3. On this head the exact Git archive, the normal wheel and the installed package yield the same 43 pairs. The ordinary session's saved plan contains those same 43 pairs. Runtime discovery · P1 frozen file list
Real child processes and recovery Both installed command routes ran arguments → benchmark → assess. For a matching package, recovery ran the missing assessment once per route. A second recovery launched zero children and preserved the ledger and deadline. For the two frozen P1 ordinary samples, all eight status/recover calls across both routes refused the changed fingerprint, spawned zero children and preserved all 17 or 56 files in each sample.
All 43 source paths with SHA-256 from the normal wheel

Relative to the installed inferrsi package. Each link opens the exact revision used for this wheel.

Source file SHA-256
init.py 60a710d283ff4f5cfa71c6872163aed4d3899145ad736602d35f88ed6ba4b6f2
apps/init.py 0548db2140f95890653cfb2cbad1311d8e8be6626f49373b8d950eb23433f7ef
apps/workflows/init.py ea3be88dc5089c6f5b106bcfdcf6da887406a2515983e2ddd510c43ac7960645
apps/workflows/campaign.py b54ddd6080ddbb75d5e3cf29d4b697fe3be2aee30cf984f4001ddd2f2dfa1245
contracts/init.py 86ffd1ae421db93276f81aadfb0b61505d5152c97ef8ffa9eb3b641376ce59f9
contracts/_harness_errors.py c3dfca35417045c4e1228149f3b6e02589a67153478eb7c84f47bdb2f93400ba
contracts/claim.py 5f24c4fa91b48f0bb4d4554531607763fc8fc108e90f332816f06cfb520b5cc1
contracts/json_v1.py 756fe1b1b65fd144ee1f39a058cc9a5cd43da48c305ee7c9ae838ee56a230664
contracts/runspec.py 2a7608b986d7f0b7962797a5adb3c5c404b35c84f70bf8e8dc18d5215b45b7ac
harness/init.py fdcf16a34e004b7bec987247e4b28bfaf3424d34dfb0ee72c740a5a890b2241b
harness/attempt_recovery.py c0263645c6a5db43cc88c048eda42b01b06ade151665e9727e8eb9c244d30b27
harness/candidates.py 1d9b2317e6b295f89d69888a83386199eb598ab2f4dc611ac669ab4c037c449a
harness/executor/init.py 1a199909627f302483eadf13eea9b66493bd62205e11ab414bb07dd2676ac2ae
harness/launch_records.py 2a23bb5a777064d2b0dc2310ed32ea726c01d391f5e6115dff2366ea43eb0a74
harness/local_process.py 263d7f61867978b7ac3abab0f1abfb591e3ae08893c443d57b1f88d63938e24e
harness/measurement.py 6eee529a46b88e7f2598d0c663624993f96ee1ed30ca257265ed3e3792e07450
harness/optimization.py e8b39ef2d631c647b827299db79fa05d2996625cafc0393f288697a0544b64a1
harness/optimization_session.py 53e5f4cf997c7895a4e5c0e78e5c6d138bf01e53ec6d6f264e2f3d20386daf25
harness/project.py dd5cfa1c455546ccf3c8dbeca4825ea39496c530d0380ebf68900e51ca9f3337
harness/project_service.py 5b6b0611e0d86bcfc48018c58f49466e7252ce340b6636be25879ef10166ff57
harness/protocol_child.py 2cfd5848e711cedeef181981ec6fa2be453ee061f57c32f74954c82625528c95
harness/records/init.py 73531f44532b8bf04b85292962110f559f8719dc9869502ba9dc792085e69d72
harness/records/_run_store.py 4e671c42a39044ff2686d4553e6412a6a876af3aab295529291da2d33c654dea
harness/records/artifact_primitives.py f10fde1f28a7e97853cbb379ea058b9bcf0c4786a7d43ea5ec6983f8569c8c99
harness/records/atomic_json.py 4a061657bb22ec6e24a0e67d735200c894566b4794c458ca8ed60af7b1a19c85
harness/records/campaign_records.py fe17fbf89f77bc19ef2cb36a139a122298fd272b7f4d500377793fe470236d4e
harness/records/evidence.py f053f4fb0ac9e11f679d7868acfed0614103e05f5068eeb3807cd15190ae3d75
harness/records/knowledge_capture.py 6a5501d9fdc6bbdc523dc98e59722eae297069a7ad6c024c9d3c7c8f38a42a22
harness/records/optimization_log.py 0d3a5e0a2348a22975084c2d4676372cf9a3eee76da9e706c673d8e45bcc450f
harness/records/optimization_trace.py 6f920211ca346d32e0f2ee835d84a5e043538419ab7f8972c912880ac69f5923
harness/records/service_io.py cfc94b77cb696f87e3f6dcd44be686bae20831ceb326abb18650fcd1aca1f166
harness/records/service_observations.py 6b67e919436c3f8c94bde1690361d22d19941afd10903c6c93141dfa588c24e5
harness/records/usage.py bcb8a35f83e683c1e3343c2438214ad89f35eeb4dd940eccfd54b3489bb70855
harness/service_backfill.py 9b74cb8cc57de312664fa1b9fbbe7c1154c540101c1f5267f33949441dee2b60
harness/service_evidence.py d5a6013e5a14ebe7139418a3d2c9190f432df30f23e8f9c2373bb5645906b6ef
harness/session_runtime.py edccc00faf1fac5bf01419044a754410a48011e6483144e54039715391958793
harness/task_protocol.py 5304433535ea99813704a1dca93bbee15a517a7166f3601d3cd15f8c82f5f6f2
harness/trials/init.py 7865c957bf07aacc554f5f989d58856c8254b40503cc96d5f5eba58d4feaa74c
harness/trials/external.py 2f56828d84f5d9d6b75ee247a479c3d3266769ae76452a4f4985bf511c38c93d
knowledge/init.py 5afe74ac7574fd575bce561731dffb2aec12c4e2f4b7808507f8914a622f0336
knowledge/context_projection.py ef89a0b2ecddbb0460573edc65a8b5ef704989e03d3d2fa615ca529ef0debe2a
knowledge/knowledge_find.py fa00af8fa1e39bb799a2c7d4c81a960137837fd16cf9317635c3f55996add27e
knowledge/ranking_policy.py 425cf29ccb6584541fe1dfe56b20bbbfa3ec436a27da7fba97647b8a413c9506

Added since P3: contracts/_harness_errors.py, contracts/json_v1.py, harness/records/_run_store.py, harness/records/artifact_primitives.py, harness/records/atomic_json.py, harness/records/service_io.py, harness/records/service_observations.py, harness/records/usage.py.

Removed since P3: harness/artifact_primitives.py, harness/atomic_json.py, harness/service_observations.py, harness/usage.py.

To reproduce in a clean environment, install the normal wheel, change to a directory outside the checkout and run the following with that environment's Python.

from hashlib import sha256
from pathlib import Path
import inferrsi
from inferrsi.harness.session_runtime import source_files

root = Path(inferrsi.__file__).parent
for name in source_files(root):
    print(name, sha256((root / name).read_bytes()).hexdigest())

SHA-256 of the separate fixture and path-list receipts: P1 cb071fc86ffc6bee3e1188575e05fa01cc14ec85f79268434ee528ed8531dab2, P2 7008d1e8c99516386c8a8a4b04c89ebfabd895f0aab57f066215dc024e2c89a2, P3 ebb89c2d47eddab3ecb06806472c81f8575d96b7b93604e45fd8c56fa1f43d2e, this head dd2924146eb376065825ac2d7c00f8c5f780aa905c7259cd894fef1fcc45118d.

Historical read receipt SHA-256 a9e8f7f143681d66bb76040d2cd8850b4be4d1b3fa19712fa9c860df33765c0d, repeat/conflict receipt 4464206187668911baed2de532d67d5e69c4a01291f1251d6ef5f02872d4f05a, ordinary fingerprint and child-process receipt 14834aba11a7492dca62c9e125cbb827dfb10c6f4fd1e85d8e0f76c976118621, same-version recovery receipt 95a5e37b5ae117857a8fb79af51f4de74bdfd9779e3addd140f3c9e0bcc5f609. The repository's isolated installed-import check also passed.

Five architecture, fixture and boundary modules recorded 563 passing checks, including subtests. On earlier P5 revisions storage and execution recorded 267 passes with three Windows skips, and Manager search and Qwen replay recorded 118 passes. The two Linux full-test jobs on revision 7d4748dc found three Apps cold-import cases that blocked the public error package itself. The updated probes permit the lightweight initializer while rejecting all Harness API submodules, the execution service and RunStore. The storage probe also rejects SQLite. The complete Apps migration, contracts package and target import-gate test modules and Ruff passed locally. The pull request checks cover the Linux interpreter matrix. The change shares callers with #699, #709, #724 and #726. They must preserve their respective behavior when their changes meet on main.

The branch includes P3 on main. The Manager runner uses Records' atomic writer. The parallel runner calls Manager and writes through Records. The Harness README keeps its P3 sequence diagram and documents the Records readers. A real CPU pair on this installed wheel exercised the four injected ports and confirmed that the old runner path is gone. The seven local Manager, Apps, contract and architecture test modules finished with 280 passed, 61 skipped, 389 subtests passed.

Knowledge authorship declaration

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

Dong1017 and others added 6 commits November 27, 2026 01:06
Refs #702

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <[email protected]>
Refs #702

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <[email protected]>
Refs #702

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017, requests independent review of P5 at 7e0c31f9dc8889b1f3bddc22ccaeac640bbf230d.

@amy-why-3459 please review the two historical fixed-version reads, the retained object, and the repeat/conflict paths through the mounted store. The old and new wheel receipts in the PR give the exact record hashes and the before/after file check.

@zengchuang-hw please review the dependency direction of the shared error types and the difference between the lightweight digest import and the ordinary session’s 43-file static fingerprint. The installed-package checks cover both ordinary command routes, actual children and the eight historical refusals.

Both formal review requests are on this revision. Dependency and acceptance decisions

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Skill evaluation

PLANNED: not executed; there are no task outcomes yet.
No approval, model efficacy or current-head test result is implied.

  • Next: resolve check applicability at head 5e4d6f94189f091e45259c7a485fe4839a3a60a9.
  • Task selection: no supported automatic comparison; choose a relevant source/content check and disposition uncovered claims.
  • Selected comparisons: 0 · Estimated task calls: 0. Uncovered/unsupported changes: 136; Canonical library paths: 0; Generated projection paths: 0; Other paths: 136. These are paths, not independent claims.
  • Return: command, input/source pin, exit status, outputs/failures and untested claims for independent verified/refuted/unverified disposition.
Author verification steps (nonpaid; not yet run)
  1. Bind the checkout. Run git rev-parse HEAD; it must equal 5e4d6f94189f091e45259c7a485fe4839a3a60a9. If it differs, obtain a current plan; do not reuse old results.
  2. Choose an applicable check. Match each changed behavior to the task below or a source/content check; a path match alone does not establish relevance.
    No supported automatic comparison is selected. Review the canonical changes and explain which claims need evidence, are unaffected, or remain unverified; do not treat generated records as separate behavioral claims.
    Uncovered scope by location: Canonical library paths: 0; Generated projection paths: 0; Other paths: 136. Path counts are not claim counts; no metadata-only conclusion is inferred.
  3. Return evidence for independent review: head, check/task/source pin, command, environment, exit status, outputs/failures and untested claims. Label scripted controls. Request each claim's disposition: verified, refuted or unverified; this plan proves neither model provenance nor benefit.
    Check recipes and evidence limits

Evidence and logs · Retention: 30 days.
Retained artifacts are verifiable only before Unix time 1798312180 while the linked artifact is available. Expired evidence is unverified.

Plan bindings, budget, frozen exam and advisory details

Advisory: obtain missing evidence

Retained evidence availability: planned / unexecuted. No approval or merge authorization is issued.
Applicable only while these revisions and inputs match the current PR.
Paid execution requires trusted label authorization and cumulative PR reservation. Unknown accounting blocks new paid calls; planning is not execution.
Pipeline evidence only; offline fixed outputs do not establish skill efficacy.
Unchanged-correct is valid neutral evidence, not incremental benefit.
Content/source review and authorship admission remain separate.
Trusted regrading checks retained answers, not model/hardware provenance or a hostile executor; this is not an efficacy certification.

  • Retained evidence is planned / unexecuted.
  • No supported comparison cases were selected.
  • Uncovered/unsupported scope needs a case or explicit reviewer disposition.
    Plan SHA-256: ac9dd6d570bc129f2bec29fa77a4bdd44129fc2a20f68fc643505b4a1416d140
    Base: 6ce69236bf5236435cb7670fde216fbaeba54adc · Head: 5e4d6f94189f091e45259c7a485fe4839a3a60a9
    Trusted implementation: 6ce69236bf5236435cb7670fde216fbaeba54adc

Model/settings: {"effort":"not_applicable","name":"claude-opus-5-5"}
Budget: {"comparisons":0,"estimated_calls":0,"limits_per_comparison":{"campaign_seconds":600,"max_task_calls":2,"repeats":1,"timeout_seconds":180,"token_stop_new_trials":200000},"provider_config_sha256":"b28d80f8194fbe0f5a9f01515efb24b218979fd45f702776560da276f4b30d04","reservation":null}

Skill Comparison Cases Estimated calls

Automatic execution / cumulative PR budget:

{"reason":"Trusted configuration or pricing missing, invalid or expired","remaining_usd":"unknown","reserved_or_unresolved_usd":"unknown","spent_or_legacy_usd":"unknown","state":"blocked"}

Provider/settings: {"client":{"api_version":"2023-06-01","endpoint":"https://yibuapi.com/v1/messages","kind":"anthropic-messages-full-context-v1","max_output_tokens":4096,"max_read_bytes":32768,"max_request_bytes":262144,"max_requests":1,"max_tool_calls":12,"provider":"yibuapi"},"limits":{"token_stop_new_trials":200000},"model":{"effort":"not_applicable","name":"claude-opus-5-5"},"pricing":{"currency":"USD","expires_at":1793271228,"group":"default","max_input_tokens":1000000,"model":"claude-opus-5-5","rate_evidence":"https://github.com/InferMatrixLab/InferRSI/issues/215#issuecomment-6467531341","rates":{"cache_read":"0.4","cache_write":"10","input":"8","output":"40"},"request_fee":"0","unit":"per_million_tokens"},"spend_limit":{"amount":"200","currency":"USD"}}

Uncovered / unsupported paths (136)
  • uncovered: "CHANGELOG.md"
  • uncovered: "docs/apps-module-migrations.json"
  • uncovered: "docs/contracts/current-design.md"
  • uncovered: "docs/contracts/function-owners.md"
  • uncovered: "docs/guides/apps-output.md"
  • uncovered: "docs/guides/harness-improvement.md"
  • uncovered: "docs/guides/module-layout.md"
  • uncovered: "evidence/qwen-vats-gvo-910b1-20261124/plan/retained-sha256.json"
  • uncovered: "evidence/qwen-vats-gvo-910b1-20261124/plan/run.py"
  • uncovered: "evidence/qwen-vats-gvo-910b1-20261124/validator/check.py"
  • uncovered: "src/inferrsi/apps/cli/init.py"
  • uncovered: "src/inferrsi/apps/cli/evaluate.py"
  • uncovered: "src/inferrsi/apps/delivery/benchmark_usage.py"
  • uncovered: "src/inferrsi/apps/delivery/projection.py"
  • uncovered: "src/inferrsi/apps/handoff/bridge.py"
  • uncovered: "src/inferrsi/apps/handoff/candidate_provider.py"
  • uncovered: "src/inferrsi/apps/handoff/evidence_capture.py"
  • uncovered: "src/inferrsi/apps/handoff/production_capture.py"
  • uncovered: "src/inferrsi/apps/storage/archive.py"
  • uncovered: "src/inferrsi/apps/storage/artifact_reader.py"
  • uncovered: "src/inferrsi/apps/storage/result.py"
  • uncovered: "src/inferrsi/apps/views/attempt.py"
  • uncovered: "src/inferrsi/apps/workflows/benchmark_compare.py"
  • uncovered: "src/inferrsi/apps/workflows/evaluation.py"
  • uncovered: "src/inferrsi/apps/workflows/improvement.py"
  • uncovered: "src/inferrsi/apps/workflows/search_benchmarks.py"
  • uncovered: "src/inferrsi/apps/workflows/skill_evaluation.py"
  • uncovered: "src/inferrsi/apps/workflows/speculative_search.py"
  • uncovered: "src/inferrsi/contracts/_harness_errors.py"
  • uncovered: "src/inferrsi/harness/README.md"
  • uncovered: "src/inferrsi/harness/agent_sessions.py"
  • uncovered: "src/inferrsi/harness/api.py"
  • uncovered: "src/inferrsi/harness/api/init.py"
  • uncovered: "src/inferrsi/harness/api/_harness.py"
  • uncovered: "src/inferrsi/harness/artifact_primitives.py"
  • uncovered: "src/inferrsi/harness/atomic_json.py"
  • uncovered: "src/inferrsi/harness/attempt_recovery.py"
  • uncovered: "src/inferrsi/harness/candidates.py"
  • uncovered: "src/inferrsi/harness/device_lease.py"
  • uncovered: "src/inferrsi/harness/errors.py"
  • uncovered: "src/inferrsi/harness/evidence_capture.py"
  • uncovered: "src/inferrsi/harness/execution_service.py"
  • uncovered: "src/inferrsi/harness/execution_spec.py"
  • uncovered: "src/inferrsi/harness/executor/init.py"
  • uncovered: "src/inferrsi/harness/generation.py"
  • uncovered: "src/inferrsi/harness/generation_feedback.py"
  • uncovered: "src/inferrsi/harness/generation_lineage.py"
  • uncovered: "src/inferrsi/harness/launch_records.py"
  • uncovered: "src/inferrsi/harness/local_process.py"
  • uncovered: "src/inferrsi/harness/manager/_runner.py"
  • uncovered: "src/inferrsi/harness/manager/search/_engine.py"
  • uncovered: "src/inferrsi/harness/manager/search/gvo.py"
  • uncovered: "src/inferrsi/harness/manager/search/search_adapter.py"
  • uncovered: "src/inferrsi/harness/manager/search/search_campaign.py"
  • uncovered: "src/inferrsi/harness/manager/search/search_continuations.py"
  • uncovered: "src/inferrsi/harness/manager/search/vats.py"
  • uncovered: "src/inferrsi/harness/manager/search/work_control.py"
  • uncovered: "src/inferrsi/harness/optimization.py"
  • uncovered: "src/inferrsi/harness/optimization_session.py"
  • uncovered: "src/inferrsi/harness/parallel_round.py"
  • uncovered: "src/inferrsi/harness/prepared_binding.py"
  • uncovered: "src/inferrsi/harness/project.py"
  • uncovered: "src/inferrsi/harness/project_service.py"
  • uncovered: "src/inferrsi/harness/records/init.py"
  • uncovered: "src/inferrsi/harness/records/_run_store.py"
  • uncovered: "src/inferrsi/harness/records/artifact_primitives.py"
  • uncovered: "src/inferrsi/harness/records/atomic_json.py"
  • uncovered: "src/inferrsi/harness/records/service_io.py"
  • uncovered: "src/inferrsi/harness/records/service_observations.py"
  • uncovered: "src/inferrsi/harness/records/usage.py"
  • uncovered: "src/inferrsi/harness/run_store.py"
  • uncovered: "src/inferrsi/harness/service_backfill.py"
  • uncovered: "src/inferrsi/harness/service_evidence.py"
  • uncovered: "src/inferrsi/harness/service_observations.py"
  • uncovered: "src/inferrsi/harness/skill_evaluation.py"
  • uncovered: "src/inferrsi/harness/task_protocol.py"
  • uncovered: "src/inferrsi/harness/trials/external.py"
  • uncovered: "src/inferrsi/harness/usage.py"
  • uncovered: "tests/apps/test_apps_artifact_reader.py"
  • uncovered: "tests/apps/test_apps_assess.py"
  • uncovered: "tests/apps/test_apps_capture_adapter.py"
  • uncovered: "tests/apps/test_apps_evaluate_cli.py"
  • uncovered: "tests/apps/test_apps_evidence.py"
  • uncovered: "tests/apps/test_apps_evidence_capture.py"
  • uncovered: "tests/apps/test_apps_execution_binding.py"
  • uncovered: "tests/apps/test_apps_fixed_cpu_views.py"
  • uncovered: "tests/apps/test_apps_generation_plan.py"
  • uncovered: "tests/apps/test_apps_generation_views.py"
  • uncovered: "tests/apps/test_apps_module_migrations.py"
  • uncovered: "tests/apps/test_apps_output.py"
  • uncovered: "tests/apps/test_apps_port_validation.py"
  • uncovered: "tests/apps/test_apps_prepare.py"
  • uncovered: "tests/apps/test_apps_production_cli.py"
  • uncovered: "tests/apps/test_apps_replay.py"
  • uncovered: "tests/apps/test_legacy_run_split.py"
  • uncovered: "tests/apps/test_optimization_session.py"
  • uncovered: "tests/apps/test_project_explanation.py"
  • uncovered: "tests/apps/test_project_service_reuse.py"
  • uncovered: "tests/apps/test_search_benchmarks.py"
  • uncovered: "tests/apps/test_session_ranking_policy.py"
    Additional paths omitted; see retained evidence.

@Dong1017 Dong1017 added the area:harness Harness module: profile, A/B loop, quality gates, evidence reports label Nov 26, 2026
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017,请 @amy-why-3459 和 @zengchuang-hw 正式复核 7d4748dc。这次改动只给一条超长测试断言换行。Ruff 和该测试模块已通过。PR 正文已换为这个提交重新构建的正常 wheel 的回执,SHA-256 为 9526ca473af9d05dd6bf8ec2cea73b4b13adc65897e9f1f1980a2ba8341a981c。

请 Amy 核对两个历史固定版本、重投及冲突是否保留原记录。请 zengchuang 核对纯摘要导入、普通会话指纹及两个命令入口的真实子进程回执。

@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.

NO PASS
dot, acting for zengchuang-hw.

回应当前提交复评,#702 P5,main base bf96ee0991729ad3fcb1a6b85cabc671a202b200 → head 7d4748dc519395fa733a23e4325cfd27938d6144。

批准前请修正 D023 对照证据。 从当前 Git 提交读取未经改写的 2,069 B ExecutionSpec,文件 SHA-256 与独立子进程调用公开 request_digest 都得到 sha256:be0fb47b3b9b8b064a42758ec5b83a20cab92359b2fd50f9ad68305cf7517980(文件摘要不含此前缀),与固定清单一致,和 PR 的已安装验证表所报 62ce11e6… 不一致。当前实现的规范摘要通过;请把安装包复验中实际输入及其原始摘要、公开 API 输出绑定到同一条回执,或明确 62ce… 对应另一份非该固定输入。

新进程只导入摘要路径,未加载 SQLite、RunStore 或 execution_service;共享错误类型的依赖指向标准库契约,不反向导入入口。用两个 Git 源码树的实际可达模块运行 source_files,得到 38 → 42 项;这是源码对照,不是已安装 wheel。请附声称的 43 路径及逐项差异定位额外项,历史冻结清单不能作为候选清单。未独立重放旧 SQLite 或实际恢复子进程;并行轮次文件和 #726 同改,联合集成另验。

Copy link
Copy Markdown
Contributor

dot, acting for zengchuang-hw.

回应这条提醒:已检查公共错误类型的依赖方向,并在新进程单独验证了摘要导入。源码树的静态指纹与安装包所报告的数量仍需对账;详情见最新正式检视。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017。当前提交为 dee8d59c。

@zengchuang-hw 你指出的两个样本各为 2,069 字节。规范 D023 样本的摘要是 sha256:be0fb47b3b9b8b064a42758ec5b83a20cab92359b2fd50f9ad68305cf7517980,prepared-binding 空超时样本是 sha256:62ce11e6d458b5c581245d0988189e1bd834f2ed1e1880d15242faf70c5b6fe9。已更正 P5 迁前回执。从 P1、P2 和本提交的正常 wheel 分别取得 38、39、43 份指纹文件。本提交的 Git 归档、wheel 和实际会话 plan 逐项一致。PR 正文展开项列出 43 个路径、每份 SHA-256、相对 P2 的 8 项新增和 4 项移除,以及包外复查命令。请按该清单复核你之前得到 42 项的差异。

@amy-why-3459 请复核旧 SQLite 的两个固定版本、保留对象、重复 claim 和冲突后的只读性,以及 Apps 的冷导入边界。上一提交的两个 Linux 版本均查出了三例冷导入测试阻止公开错误类型加载。此提交允许纯错误所在的包初始化,同时继续拦截所有 API 实现子模块、执行服务和 RunStore。三个相关测试模块在本地通过。

本提交的正常 wheel SHA-256 为 c3dfcc13a34bc66bcbe29862a1a96c72abd507ebbe7661486ef669bf215c63e1。已重跑两条普通入口的真实子进程,两份历史会话共八次跨指纹操作全部拒绝,文件逐字节一致。请在该提交给出正式评审。本 PR 的 CI

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Re-review request for head dee8d59cb63ffdf6c8bb2ba1e4e0eae386809968 on base bf96ee0991729ad3fcb1a6b85cabc671a202b200 (#702 P5). This is a self-review (the PR author is Dong1017), so this COMMENT is not an independent approval and does not count toward the merge ruleset. Dong-bot (authorized delegate) records this verdict.

Blockers (not cleared on this head)

  1. Diff not fully visible. pr/meta.json has diffComplete: false, so the seeded pr/diff.patch does not show the whole change. In this session the diff file could not be opened inline (it was returned as a file outside the workspace), so I did not judge diff-level content. Per policy, a PASS needs the complete diff or a per-file patch set with nothing missing.
  2. D023 reconciliation not re-checked on this head. zengchuang-hw's NO PASS review on 7d4748dc asked that the installed-package D023 input, its raw digest and the public request_digest output be bound to one receipt, or that 62ce11e6… be shown to belong to a different input. The correction on dee8d59c and the PR body now assign be0f… to the D023 fixture and 62ce… to the prepared-binding null-timeout fixture. That is consistent on paper, but no reviewer has confirmed it on dee8d59c.
  3. Ordinary-session fingerprint count not reconciled. The same review reports 38 → 42 entries from the two source trees. The PR body lists 43 paths with per-file SHA-256 values from the normal wheel, plus 8 added and 4 removed against P2. The request for a per-path explanation of the extra entries is still open.
  4. No independent approval on this head. pr/prior-reviews.md has no APPROVED review on dee8d59c. Merge needs two qualifying approvals from independent reviewers (the requested reviewers are amy-why-3459 and zengchuang-hw).

Verified on dee8d59c (from the files at this head)

  • src/inferrsi/harness/run_store.py and src/inferrsi/harness/artifact_primitives.py are not present, matching the body's removed-module list.
  • src/inferrsi/contracts/_harness_errors.py (109 lines) imports only copy, collections.abc and dataclasses. It defines PublicError, PartialExecutionFacts and the 20 public error codes, so the shared error types sit in a leaf module.
  • src/inferrsi/harness/executor/__init__.py defines request_digest(spec) as "sha256:" + sha256(json_v1.encode(spec)) and imports only json_v1 from contracts. The old digest entries are not in this file.
  • src/inferrsi/harness/records/__init__.py exports RunStore and RunStoreReader lazily, matching the body's import table.
  • src/inferrsi/harness/api/__init__.py re-exports the public error types from the contracts leaf and loads Harness and LocalCpuTarget on first access. LocalCpuTarget still comes from inferrsi.harness.execution_service; the body says P6 owns that move.

Not verified here

  • I did not run tests, Ruff, the installed-wheel checks, the historical SQLite reads, the recovery child-process runs or the fixture digests. I checked only the source files listed above.
  • The #702 accepted import table: I read the issue, but its output was too large to read inline in this session, so I did not compare the body's import table against it.
  • The Apps migration files and the rest of the 136-file change set were not reviewed. The skill-evaluation plan on the thread lists 136 uncovered paths, is marked planned and unexecuted, and needs an explicit reviewer disposition for those paths. I have not given that disposition.
  • CI status for dee8d59c is not in the seed. The knowledge-authorship declaration in the body names Codex as a material author at this head. I found no seeded check result for that gate, and this review grants no knowledge-authorship exception.

I will re-read after the author pushes or when zengchuang-hw and amy-why-3459 post formal reviews on this head. The verdict on this head stays DO NOT PASS until items 1–4 and the disposition above are resolved.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017。P3 合入后,已解决 Manager runner、并行运行入口和 Harness README 的合并冲突。当前提交是 5e4d6f94。用这个提交的正常 wheel 在源码树外实跑了 CPU 配对,四个 Apps 回调均生效。普通会话的两个入口也分别跑通 arguments → benchmark → assess,两份旧会话上的八次跨指纹操作均拒绝,零写入、零启动。

@amy-why-3459 请复核 Manager 对 Records 原子写入的调用和历史 SQLite 读取。两个固定版本、保留对象、重复与冲突均已通过同一 wheel 复验。@zengchuang-hw 请复核正文列出的两个 D023 样本和 43 份指纹。P2 和 P3 的正常 wheel 均有 39 个相同路径,其中 harness/trials/__init__.py 的摘要随 P3 改变。当前 Git 归档、wheel、已安装包和会话计划的 43 项逐项一致。

正常 wheel SHA-256 为 695fb430eb77236583a196c08be20c5f7f0db9c11212f157289c81594e1bdad6。请在当前提交留下正式评审。本次构建检查

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Re-review on request from comment 7201319379 (Dong1017, by hand). Reviewed base 6ce69236bf5236435cb7670fde216fbaeba54adc and head 5e4d6f94189f091e45259c7a485fe4839a3a60a9 (#702 P5 on #727). This is a self-review (the PR author is Dong1017), so this COMMENT is not an independent approval and does not count toward the merge ruleset. Dong-bot (authorized delegate) records this verdict. Formal reviews from @amy-why-3459 and @zengchuang-hw on this head are still needed and are not replaced by this review.

Blockers (not cleared on this head)

  1. Diff not fully visible, and not reviewed here. pr/meta.json has diffComplete: false (diffSource: diff), so the seeded diff does not show the whole change. In this session pr/diff.patch (151.9 KB) was returned as a file outside the workspace and its content could not be read, so I did not judge any diff-level code. Per policy, PASS is not possible on an incomplete diff. Needed: a re-seed with diffComplete: true, or a per-file patch set with nothing missing.

  2. D023 reconciliation not confirmed on this head. zengchuang-hw's NO PASS (#727 (review), on 7d4748dc) asked that the installed-package input, its raw digest and the public request_digest output be bound to one receipt, or that 62ce11e6… be shown to belong to a different input. The correction on dee8d59c and the PR body now assign be0f… to the D023 fixture and 62ce… to the prepared-binding null-timeout fixture. For the D023 fixture this is consistent with docs/contracts/fixtures/MANIFEST-d023.json at 5e4d6f94 (2,069 bytes, sha256 be0fb47b…7980). I did not recompute any hash, and the 62ce… fixture is not pinned in the manifest I read. Needed: zengchuang-hw's confirmation on 5e4d6f94, or a receipt on this head that binds the installed input, its raw digest and the public API output together.

  3. Ordinary-session fingerprint count still open. zengchuang-hw measured 38 → 42 paths from source trees. The body now states 43 paths, with a per-file SHA-256 list and the claim that the saved plan contains the same 43 pairs. Which path accounts for the difference is not identified in the seed, and I cannot check the 43-path list without the diff. Needed: zengchuang-hw's reconciliation on 5e4d6f94, or a list that shows which path explains 42 vs 43.

Prior record (weighed)

  • pr/prior-reviews.md: no APPROVED review on 5e4d6f94. The latest outstanding decisions are zengchuang-hw's NO PASS on 7d4748dc and this COMMENT line on dee8d59c. The seeded Dong-bot entry on dee8d59c is cut off after its item 3, so I cannot see whether it listed further items. I have not treated those as cleared.

Verified here (read only, not executed)

  • pr/meta.json, pr/head.sha (5e4d6f94), pr/base.sha (6ce69236), and decisions.md (no recorded decision on #727).
  • docs/contracts/fixtures/MANIFEST-d023.json at 5e4d6f94: D023 fixture 2,069 bytes, sha256 be0fb47b…7980, request_digest form sha256: plus the same hex, which matches the author's correction.

Not verified here

  • The complete diff content, including the Records, Executor, Apps and Manager import migration and the removed harness.run_store and old digest entries.
  • Historical SQLite reads, retained object hash, repeat and conflict paths, and the real child-process and recovery runs described in the body. These are author receipts only.
  • Test counts in the body (563, 280 and 118 passing), and CI status on 5e4d6f94. The seed contains no check results; the body links the checks page.
  • Uncovered scope in the skill-evaluation plan. It lists 136 paths with no selected comparison and states that uncovered scope needs a case or an explicit reviewer disposition. I have not dispositioned it.

Non-blocking follow-ups

  • Shared callers with #699, #709, #724 and #726. zengchuang-hw notes #726 edits the same files. Their combined behavior on main needs a separate integration check before merge.
  • The body declares Codex as material AI author (human_only: false). Dong-bot has recorded no knowledge-authorship exception for this PR. If the knowledge-model policy requires one for this head, that approval belongs to the owner by hand; Dong-bot does not grant it.

Next

The author pushes a head with the complete diff (or a complete per-file patch set) and the receipts above, and reviewers confirm D023 and the 42 vs 43 reconciliation on that head. Dong-bot will re-read after the push. Until then this verdict stands.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

@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.

回应本轮复核。#702 P5,main base 6ce69236bf5236435cb7670fde216fbaeba54adc → head 5e4d6f94189f091e45259c7a485fe4839a3a60a9,增量对照上次检视的 7d4748dc。

独立从当前 Git 读取两份确为 2,069 B 的规范输入,用新进程的公开 request_digest 重算,D023 固定夹具为 be0fb47b…,prepared-binding 空超时为 62ce11e6…;未加载 SQLite、RunStore 或执行服务。对正文 43 个文件逐项重算 Git 原始字节 SHA-256,全部一致;以这些文件运行当前 source_files 也得到 43 项。上轮我重建的源码树漏取了 apps/__init__.py,42 不是实现差异,现已纠正。

本轮通过的是 D023 和精确源码闭包的复验;未独立重装报告中的 wheel、重放真实历史 SQLite 或跑两条恢复子进程链。

Copy link
Copy Markdown
Contributor

dot, acting for zengchuang-hw.

回应上一条复核请求:那版已被当前提交替代。已在当前提交复评独立核对两个 2,069 B 输入和 43 份指纹。上次我的源码重建漏取了 apps/__init__.py;加上该文件后结果吻合。

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

Labels

area:harness Harness module: profile, A/B loop, quality gates, evidence reports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants