Skip to content

task: P1 真实执行证据生产与固定记录对接 #565

Done

Description

@zengchuang-hw

最近已核验 actual main 为 9d74935(含 #604/#441/#597/#590/#577/#580/#583)。#566 已按 Amy 6018005577 修复显式 null family 漏执行错误:当前头 cd301d7,基于该 actual main,仍是五文件 B-only 增量。每个 null family 发出 InvalidRequest/report_family_incomplete,保留 not_performed/无 proof/有效 sibling;null 语法仍合法,不改 DTO、worker pins 或判定门槛。77 pure tests、398 regression tests / 43 subtests、零跳过、fresh bare-core 完整安装和 source/wheel/installed 字节/cold-import 检查通过;四项公开 B 本头 + H 4bae1e2 的受控真实提交/离线判定/原 Ref 重放诊断也通过(无 #584,不是 S5 主线验收),源码及历史失败见 #566 7094873702。本头 Ready CI 45134557271 已八项全绿。Jiang 6018167176 已按本头新选择 7094979143 填 David 候补席位(已核对 write+),当前仍缺 Amy 必需席位;a1fff5d5 的 David/Jiang 批准已过期。
#567 仍为实际 main-target 的 4bae1e2,341 tests / 289 subtests、2 POSIX skips、fresh bare-core、installed capture/seal/replay 与 Ready 45097679166 已绿,Jiang 6016192229 为本头 David 替补,仍缺 Amy。#568 只合到临时分支,后续 Apps-only 替代 Ready PR 待 #566/#567 actual main;#575 待替代 Apps main 后 retarget/sync/最终头验证和两票。扩大 committer 请求不改变既定席位、条件替补或真实父责任排除。

Current state: Capture boundary v1 and the real CPU task/worker remain accepted under 7063820381, Apps delegation, and CPU delegation. #560 assessor, #561 prepared binding and #552 finite-step timeout are now on main. Dong1017 retains #429/#434 accountability; zengchuang-hw / Codex authors these bounded slices.

Delivery slice Current review artifact Verification and remaining work
B report codec and pure projection #566, cd301d78 → main Fixed Amy's null-family diagnostic finding; explicit InvalidRequest error per missing family with valid siblings retained; 398 tests / 43 subtests, zero skips, fresh bare-core and runtime bytes passed; four controlled public B/H commit/assess/replay probes passed; Ready CI 45134557271 green; Jiang 6018167176 fills the selected current David substitute seat; Amy required seat pending; older votes stale
H capture and producer sealing #567, 4bae1e2d 341 passed / 289 subtests, 2 POSIX skips; fresh bare-core wheel and installed capture/replay passed; now targets actual main; final-head Ready CI passed, independent approvals remain
Apps read-only role adapter and fixed views #568 merged to temporary codex/apps-565-capture-base as 26b30141; actual main delivery still pending Preserve history. After #566/#567 actually reach main, submit an Apps-only replacement Ready PR from that main, rerun checks and obtain final-head eligible approvals; temp merge and old reviews do not count as main completion
Real CPU worker/profile #575, 9b604e83 Replacement delivery PR after #569 was merged into the temporary Apps branch rather than main. 285 passed / 2 POSIX skips, including all 25 fixed CPU cases; fresh sdist/wheel passed. Worker and input pins unchanged. Dependencies, main retarget, CI and approvals remain

Branch correction: #569's wrong-base squash is retained in history. Commit d6a319ee removed only its worker increment from the Apps review branch; #575 preserves the separate worker/profile delivery and all original failure records. Neither #569's temporary-base merge nor the replacement PR constitutes delivery to main.

Recorded failures: CPU revision 1 produced C passed / samples=null with the coarse default clock and remains insufficient M evidence. Revision 2's initial pipeline run found omitted registration of the accepted task in the result validator (16 passed / 1 failed); the registration fix preserves worker/input pins and all claim/timing rules. These failures remain in #569/#575, not relabeled PASS.

Review seats: Amy plus David remain the default two independent reviewers. Under 7080299417, if David has not reviewed the final head, exactly one accepted substitute may fill his seat. The a1fff5d selections in 7091934421, 7090641791, David 6016890858 and Jiang 6017725904 remain historical; none covers new #566 cd301d7 after the null-family correction. Amy and David were requested again for the new head; no old substitute selection transferred automatically. With David still not reviewing cd301d7, 7094979143 newly selects jiangkuaixue123 (6018167176, one account) for that head's David seat; Amy remains required. The remaining PR-specific David-seat selection is jiangkuaixue123 for #567 4bae1e2d, #568 28af5a83 and #575 9b604e83. The last three replace the earlier hsliuustc0106 selection because no current-head review had arrived, while Jiang is responding; the former substitute requests were withdrawn. Exact heads, reasons and scope are recorded in #567 7086860922, #568 7086862766, and #575 7086863832. #567 now targets actual main with green current-head CI and one eligible Jiang approval (6016192229). #568 is merged only into its temporary base and needs an Apps-only replacement Ready PR after actual-main prerequisites; its old votes do not transfer. #575 remains review-only until that Apps replacement reaches main, followed by final-head sync/review. Under 7081206887, Amy has no automatic or standing backup: only after Amy herself records on that PR that she cannot review that head may jiangkuaixue123 fill her seat for that head, with hsliuustc0106 filling David's seat. Silence is not unavailability, and a temporary-base or older-head decision does not carry forward. Each PR records the two distinct accounts, current permissions, head and substitution reason; author/owner/parent and a bot without write access do not count. Any later Amy/David finding is processed before merge.

Next action: Resolve findings, obtain final-head independent approvals and integrate prerequisites in order. #562 entry verification and #564 replay precede H capture. #567 already targets main. After #566/#567 actually merge to main, publish the Apps-only replacement for #568 against that actual main; only after that replacement merges, retarget/sync #575 to main, rerun checks and request fresh reviews. Do not merge any PR into its temporary review base. Complete this child after #566/#567, the Apps-only replacement for #568, and #575 actually merge to main and its positive/negative retained task cases pass, with the required independent approvals and an acceptance/closure card. Shared D023 / t108-v4 production integration belongs to #371; sibling issue closure is not a prerequisite. Actual code dependencies and PR ordering remain mandatory. Tests establish software behavior only, without service or gain claims.

Goal and acceptance

Make the first frozen P1 task produce real, retained, attributable evidence that the production offline assessor can consume, while Apps reads and presents one committed RecordRef.

Reproduced gap

An isolated combination of #560 head 4887f1e94f39c1d4b675e965cfcc0a6e932d50a2 and #564 head d34a0451f0d4edd76c604632b44d673f4f5d43ae was tested. The local validation-only merge resolves the consumer inventory by set union; it is not a new implementation or a merged main revision.

  • Both configured worker cases actually start once with a real PID; actual source SHA matches the frozen recipe, the grader output is available and retained, and cleanup is confirmed.
  • One candidate yields a worker-produced C proof with status=passed, another with status=failed. Both proof byte payloads satisfy the current B proof parser against the actual candidate digest. This diagnostic worker freezes synthetic attempt/candidate IDs before prepare; it is deliberately not the production runtime-context solution.
  • H commits only entry_code_identity and input_identity CheckObservations. The raw grader output is an ArtifactObservation.
  • B assessment._observations matches only record.checks, requiring format, grader, samples, cleanup. It therefore never selects either real grader output. Both cases return F/C/M INCONCLUSIVE, C missing_evidence=["grader"], and Apps exit 9.
  • Apps prepare/execute/assess all publish standard manifest/result files. The fixed assessment and trace use the same RecordRef. Reentry returns that original Ref with one attempt, one record, and zero additional worker starts.

Evidence: 2 diagnostic tests passed. This establishes the integration gap and safe fallback; it does not establish complete F/C/M, L4, service gains, or whole-Issue acceptance.

Sources: H output retention, B proof selection, frozen P1 recipe/evidence requirements.

Accepted ownership and functional boundary

  1. Benchmark: own the versioned P1 worker-report format, task-specific pure validation/projection, grader implementation and exact resource closure. Specify how real candidate bytes, format results and ordered AB/BA samples become the required proof bytes. No invented measurements or caller-declared success.
  2. Harness: own the capture lifecycle and actual runtime context. Before committing, retain raw reports and any derived proof bytes, associate checks with the actual attempt/input/worker, and seal producer identity/control domain/capture route from observed facts. Format/cleanup receipts must have the frozen producer kind and actual control domain; worker JSON cannot impersonate Harness. No import of Benchmark/Apps and no grader rule interpretation in Harness: configure any task-specific pure observer/projector at the host boundary.
  3. Apps: compose the configured ports and read the resulting immutable wire records. Keep report, Dashboard and trace on the same fixed RecordRef/AssessmentRef. Apps must not add evidence to an already committed record or recalculate grades.

The accepted capture contract specifies the concrete callback/wire, runtime context, validation/refusal behavior, provenance and pre-commit retention. It preserves existing CheckObservation matching. Raw ArtifactObservations are not treated as equivalent checks.

Completion criteria

  • Owner records accepted scope, concrete H↔B host boundary, accountable parent, author and acceptance authority: 7063820381.
  • Publish the first versioned worker-report / pure projection contract; freeze its supported task, schema, producer and rule revisions.
  • Real execution produces the four required evidence families from actual observations, with the actual attempt/input/entry/domain binding and retained raw/derived refs before record commit.
  • Real positive and negative task cases can distinguish the frozen independent claims; missing, malformed, mismatched, tampered or conflicting evidence keeps the existing conservative V21/V22 behavior.
  • Unknown report/rule revisions refuse explicitly; worker-provided identity or cleanup assertions cannot override H facts.
  • No archive reopening executes a worker; completed/running/no-record/conflict reentry retains original attempt, digest, deadline and budget.
  • Apps manifest/result, archived assessment, Dashboard and trace agree on the fixed references; ordinary CLI and plugin compatibility remains covered.
  • Run the shared D023 / t108-v4 CPU matrix (including T35/T36/T37/T39/T40/V23 as applicable) only with the actual integrated dependencies. Report PR readiness and whole-goal acceptance separately.

Scope and constraints

In scope: the first supported P1 production evidence bridge. Out of scope: new generic service platforms, paid-budget providers, service/E2E performance claims, revising frozen historical vectors, weakening evidence requirements, or importing B/Apps business code into H.

Dependencies: #530 prepare, #560 offline assessor, #561 prepared binding and #552 finite-step-timeout fix are merged. #562 → #564 execution/replay are on actual main (their historical 1/2 approval gaps stay separately recorded); #567 capture still requires its own eligible approvals. This task preserves the bounded ownership and separate PR units.

Ownership and authorization

Reproducible diagnostic source (two real worker cases)

Combine the two pinned PR heads in an isolated checkout, retain both canonical-consumer lists, save the following outside tracked source, then run PYTHONPATH=src:. python -m pytest <probe_file> -q. Windows uses its normal semicolon-separated PYTHONPATH. The source has no private identifiers or host configuration. Successful tests assert the current gap; they are not a fix.

"""Integration diagnosis only: real worker bytes, no synthetic CheckObservations."""

import json
import sqlite3
from copy import deepcopy
from hashlib import sha256
from pathlib import Path

import pytest

from inferrsi.apps import api
from inferrsi.apps.storage.archive import read_prepared
from inferrsi.apps.storage.artifact_reader import ArtifactReader
from inferrsi.benchmark import assessment, preparation as benchmark
from inferrsi.contracts.json_v1 import decode
from inferrsi.harness import execution_service, run_store
from inferrsi.harness.api import Harness, LocalCpuTarget
from tests.test_benchmark_preparation import preparation as preparation


@pytest.mark.parametrize("candidate_bytes,worker_status", [
    (b"accept\n", "passed"), (b"reject\n", "failed"),
])
def test_real_retained_worker_output_has_no_matching_check_carrier(
    preparation, tmp_path, monkeypatch, candidate_bytes, worker_status,
):
    _, prepare_request, sources, protocol, _, config, archive = preparation
    vector = decode((Path.cwd() / "tests/fixtures/harness-prepared-binding/"
                     "d023-null-timeout.json").read_bytes())
    worker = b"""import hashlib, json, pathlib, sys
candidate = pathlib.Path(sys.argv[1]).read_bytes()
status = 'passed' if candidate == b'accept\\n' else 'failed'
proof = {'schema_version': 1, 'attempt_id': 'att-1', 'operation': 'evaluate',
         'validation_scope': 'p1', 'candidate_id': 'cand-1',
         'actual_sha256': hashlib.sha256(candidate).hexdigest(),
         'claim_id': 'C', 'checker_revision': '1', 'status': status,
         'reasons': [] if status == 'passed' else ['probe_rejection']}
output = pathlib.Path(sys.argv[2])
output.parent.mkdir(parents=True, exist_ok=True)
output.write_text(json.dumps(proof), encoding='utf-8')
"""
    sources["worker-code"].write_bytes(worker)
    protocol = deepcopy(protocol)
    protocol["worker_recipe"]["code_sha256"] = sha256(worker).hexdigest()
    pin = next(x for x in protocol["resources"] if x["role"] == "worker-code")
    pin["artifact"].update(sha256=sha256(worker).hexdigest(), size_bytes=len(worker))
    for required in protocol["required_evidence"]:
        required["allowed_control_domains"] = [execution_service._CONTROL_DOMAIN]
    service = benchmark.PreparationService(
        protocol, resources=lambda role: sources[role].open("rb"), worker_role="worker-code",
    )
    prepared_output = api.prepare(
        {"schema_version": 1, "request": prepare_request}, workspace=tmp_path,
        storage_config=config, prepare_benchmark=service.prepare,
        encode_prepared=benchmark.encode, validate_prepared=benchmark.validate_prepared,
        output_id="probe-prepare",
    )
    assert prepared_output.result["exit_code"] == 0
    prepared_ref = prepared_output.result["prepared_ref"]
    prepared = read_prepared(config, prepared_ref)
    (archive / "candidate.txt").write_bytes(candidate_bytes)
    candidate_ref = {"location": "archives/local/candidate.txt", "media_type": "text/plain",
                     "sha256": sha256(candidate_bytes).hexdigest(),
                     "size_bytes": len(candidate_bytes)}
    proposal = {k: deepcopy(vector[k]) for k in ("candidate", "inputs", "generation_record_ref")}
    proposal["inputs"][0].update(source=candidate_ref["location"], source_ref=candidate_ref,
                                 expected_sha256=candidate_ref["sha256"])
    request = {
        "schema_version": 1, "prepared_ref": prepared_ref,
        "attempt": {key: vector[key] for key in execution_service.ATTEMPT_FIELDS},
        "proposal": proposal, "output_root": vector["output_root"],
    }
    modules = tmp_path / "modules"
    modules.mkdir()
    (modules / "fixture_worker.py").write_bytes(worker)
    store = run_store.RunStore(tmp_path / "store", "test")
    target = LocalCpuTarget("fixture-cpu", "1", work_root=tmp_path / "work", module_root=modules)
    reader = ArtifactReader(config)
    harness = Harness(store, target, artifact_reader=reader)
    supervise = execution_service.local_process._supervise
    pids = []

    def counted(*args, **kwargs):
        result = supervise(*args, **kwargs)
        pids.append(result["pid"])
        return result

    monkeypatch.setattr(execution_service.local_process, "_supervise", counted)
    executed = api.execute(request, workspace=tmp_path, storage_config=config,
                           execute_harness=harness.execute, output_id="probe-execute")
    assert executed.result["exit_code"] == 0, executed.result
    record = executed.result["execution"]
    record_ref = executed.result["record_ref"]
    assert record["started"] is True and record["process_outcome"] == "exited"
    assert len(pids) == 1 and pids[0] is not None
    assert record["cleanup"]["status"] == "confirmed"
    assert record["target_binding"]["control_domain"] == execution_service._CONTROL_DOMAIN
    assert record["target_binding"]["runtime_bindings_by_step"][0]["code_sha256"] == sha256(worker).hexdigest()
    assert {x["check_id"] for x in record["checks"]} == {"entry_code_identity", "input_identity"}
    output = next(x for x in record["artifacts"] if x["role"] == "grader")
    assert output["status"] == "available"
    with reader.open(output["artifact"]) as stream:
        raw = stream.read()
    proof = json.loads(raw)
    assert proof["status"] == worker_status
    required = next(x for x in prepared["required_evidence"] if x["check_id"] == "grader")
    # Diagnostic only: the bytes themselves satisfy B's existing proof parser.
    assert assessment._proof(raw, required, record, candidate_ref["sha256"]) == proof

    assessed = api.assess(
        {"schema_version": 1, "record_ref": record_ref,
         "primary_scope": "p1", "primary_claim_id": "C"}, workspace=tmp_path,
        storage_config=config, assess_benchmark=assessment.assess,
        validate_assessment=assessment.validate_assessment, encode_assessment=assessment.encode,
        output_id="probe-assess",
    )
    assert assessed.result["exit_code"] == 9, assessed.result
    result = assessed.result["assessment"]
    assert [(x["claim_id"], x["verdict"]) for x in result["claims"]] == [
        ("F", "INCONCLUSIVE"), ("C", "INCONCLUSIVE"), ("M", "INCONCLUSIVE"),
    ]
    assert result["claims"][1]["missing_evidence"] == ["grader"]
    assert result["record_ref"] == record_ref
    view = api.read_attempt_view(record_ref, storage_config=config,
                                 assessment_ref=assessed.result["assessment_ref"], include_trace=True)
    assert view["record_ref"] == record_ref
    assert view["assessment"]["claims"] == [
        {k: x[k] for k in ("claim_id", "validation_scope", "verdict", "reasons", "missing_evidence")}
        for x in result["claims"]
    ]
    assert {x["check_id"] for x in view["trace"]["checks"]} == {"entry_code_identity", "input_identity"}
    assert len(list(tmp_path.rglob("manifest.json"))) == 3
    assert len(list(tmp_path.rglob("result.json"))) == 3

    def forbidden(*args, **kwargs):
        pytest.fail("completed attempt was implicitly executed again")

    class Never:
        open = forbidden

    monkeypatch.setattr(execution_service.local_process, "_supervise", forbidden)
    replay = Harness(store, LocalCpuTarget("retired", "2", work_root=tmp_path / "retired"),
                     artifact_reader=Never())
    replayed = api.execute(request, workspace=tmp_path, storage_config=config,
                           execute_harness=replay.execute, output_id="probe-replay")
    assert replayed.result["record_ref"] == record_ref
    assert replayed.result["execution"]["request_digest"] == record["request_digest"]
    with sqlite3.connect(store.root / run_store.INDEX_NAME) as conn:
        assert conn.execute("SELECT count(*) FROM attempts").fetchone()[0] == 1
        assert conn.execute("SELECT count(*) FROM records").fetchone()[0] == 1

Closure boundary (2026-11-23): Component acceptance is independent of sibling issue closure under the owner's proposal and Apps acceptance/clarifications. Full original functionality, actual code dependencies, accountability/delegation, review seats and validation requirements are preserved; shared integration is owned by #371.

2026-11-23 temporary-base delivery correction: #568 was merged at 03:36:56 UTC into codex/apps-565-capture-base, not main, as 26b301415c1f16d0f8eaef2556a988c9949f1cbd. The API attributes the action to zengchuang-hw; human/agent identity is unverified, and this continuation did not perform it. The Apps unit remains undelivered to main. Its replacement Ready PR will use actual main after #566/#567, contain only the Apps increment, and refresh checks and final-head independent review. Preserve historical votes and source; do not inherit temporary-base approvals. Correction and committer request.

Activity

  1. added
    kind:task
    area:harness
    status:proposed
    area:benchmark
    on Nov 21, 2026
  2. Dong1017 commented on Nov 21, 2026

    @Dong1017
    Collaborator

    Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

    Accepted as a bounded follow-up, keeping CheckObservation matching and relaxing no frozen P1 rule. Dong-bot (authorized delegate) records this; it is not ready to code until the capture contract below is written.

    Accepted

    Open before implementation

    1. The concrete H↔B boundary: callback signature, runtime-context inputs and refusal codes, as a short design comment or doc PR.
    2. Named implementation author(s) and an independent reviewer. A repository member claims a part with @Dong1017 claim <part>; I am not assigning anyone.
    3. The synthetic att-1/cand-1 IDs in the probe must be replaced by runtime binding.

    Next step: post the boundary design, then claim the Benchmark and Harness slices separately.

    Details
    • Not verified: I did not run the probe or read the feat(benchmark): add frozen P1 offline assessment #560/fix(harness): preserve evaluation limits and replay original attempts (PR-3) #564 heads. The gap analysis (B assessment._observations matches only record.checks; H commits only entry_code_identity and input_identity) rests on the issue text.
    • The two-PR set-union merge is validation-only. Re-run the probe on real merged heads before treating it as evidence.
    • Keep PR readiness and whole-goal acceptance (D023/t108-v4 CPU matrix) as separate reports.
    • Suggested negative tests: worker JSON claiming producer=harness, a cleanup assertion that contradicts H facts, an unknown report or rule revision, and an AB/BA sample-order conflict.
  3. zengchuang-hw commented on Nov 21, 2026

    @zengchuang-hw
    ContributorAuthor

    H↔B capture boundary proposal v1

    @Dong1017 依据 接受范围但暂不编码的决定,先提交可实施的接口设计。建议接受以下边界后分别委派 B / H 两个切片;不改现有 ExecutionSpec / CheckObservation / P1 proof 的 v1 字段或匹配规则。

    1. 配置入口与调用时序

    Harness(store, target, *, artifact_reader=None, evidence_capture=None)
    
    # H owns this duck-typed host capability; no B/Apps import.
    evidence_capture.capture(
        phase,                  # "preparing" | "finalizing"
        facts,                  # defensive snapshot of H-owned capture context
        *, artifacts,           # read-only access to this attempt's retained bytes only
    ) -> (draft_wire, proof_blobs)
    
    # B owns pure functions; an Apps host adapter performs reads/field conversion.
    benchmark.proofs.project(
        prepared, protocol_bytes, phase, facts, *, candidate_bytes, report_bytes
    ) -> (draft_wire, proof_blobs)
    • evidence_capture=None preserves current behavior. Ordinary mode never calls it. Configuration is trusted host code, not a callback/class name supplied by the candidate or ExecutionSpec.
    • Reentry retains fix(harness): preserve evaluation limits and replay original attempts (PR-3) #564's ordering: static validation → canonical request snapshot/digest → existing attempt table. Completed/conflict/running/no-record paths never read/call the capture capability.
    • Fresh execution: existing admission → actual source/input capture → preparing capture before the worker starts → existing worker/supervisor → output retention and cleanup/lease observation → finalizing capture before the one record commit.
    • The capture operation is a bounded observer/projector: no subprocess/network, no new deadline/budget/resource admission, no additional worker or retry. H checks original cancellation/deadline at the existing launch boundary. Capture work is part of the original attempt, not a new window.

    2. H-owned context and read capability

    facts is a fresh snapshot of the existing typed record fields needed for correlation: request/run/attempt IDs, request digest, prepared_ref/protocol_digest/operation/scope/candidate, actual BoundInputs, actual TargetBinding/runtime pins, started-step observations, and (finalizing only) outcome/cleanup/resource_leases. Fields unavailable at a phase stay explicit null/empty; no guessed terminal fact.

    artifacts.open(ref) authorizes only the exact Refs actually retained by this attempt at this phase, independently checks size/hash, returns bytes/read-only streams, and never reads an ambient path or arbitrary archive. No writable context/store handle is exposed. H snapshots both incoming and returned wire values; callbacks cannot mutate internal spec, budget, binding or terminal facts.

    The Apps adapter maps these existing H wire fields explicitly, reads the referenced captured candidate/report, then calls B's pure projector. There is no new shared Python business DTO package. B imports neither H nor Apps.

    3. Versioned raw worker report and proof draft

    Freeze the previously nominal output fixture-grader@1 as a closed worker-report format:

    {
      "schema_version": 1,
      "grader": {"status": "passed", "reasons": []},
      "samples": [
        {"sample_id":"A1","role":"baseline","round":1,"value":"<positive Decimal>","unit":"ms"},
        {"sample_id":"B1","role":"candidate","round":1,"value":"<positive Decimal>","unit":"ms"},
        {"sample_id":"B2","role":"candidate","round":2,"value":"<positive Decimal>","unit":"ms"},
        {"sample_id":"A2","role":"baseline","round":2,"value":"<positive Decimal>","unit":"ms"}
      ]
    }

    The two keys are required but may be explicit null when that family was not completed. The raw report carries no producer/domain, cleanup confirmation, attempt/candidate identity or Ref. Unknown keys, duplicate keys, floating/nonfinite numeric tokens and unsupported revisions refuse that report. In particular a worker cannot label itself harness_capture. Actual IDs/hashes come from H facts when B builds the existing proof envelopes; no synthetic IDs, environment injection or change to the frozen worker argv is needed.

    Draft wire v1 is closed:

    {schema_version:1, checks:[{
      check_id, checker_revision, subject, phase, artifact_schema,
      status, reasons, proof_key, source
    }], errors:[{code, check_ids, reason}]}
    

    proof_blobs is a separate in-process map proof_key -> bytes; no paths, precommitted Refs, producer or attempt fields. Valid sources are candidate_capture, worker_report, cleanup_capture. H validates the envelope/keys and source availability, snapshots bytes, retains each proof itself, computes each Ref, and creates the actual CheckObservation. The raw report remains separately retained and linked through the existing ArtifactObservation.

    • Preparing: B validates the captured UTF-8 candidate and creates the existing format-proof@1; H seals source=candidate_capture as harness_capture.
    • Finalizing: B validates the actual frozen worker's raw report, projects existing grader-proof@1 and samples-proof@1 from its completed families, and binds their IDs/hash to H's actual candidate. H seals source=worker_report as task_worker only when the observed entry/code pin and started input-bound step agree.
    • Cleanup: B formats the existing cleanup-proof@1 solely from H's final cleanup/lease facts. H seals source=cleanup_capture as harness_capture. A worker cleanup assertion is rejected; unknown/failed H cleanup never becomes confirmed.

    The CheckObservation producer revision/identity/control_domain/capture_route comes from the configured capture implementation and H's actual capture/runtime facts, never from worker JSON. Domains are frozen into a fresh preparation before execution; historical fixture-domain vectors remain untouched.

    4. Refusal and failure behavior

    • Unsupported configured task/grader/rule or capability schema is rejected during host capability construction with the existing UnsupportedRuleVersion / UnsupportedSchema; no attempt or worker start.
    • Wrong callback wire, attempted identity override or incompatible actual input/entry is explicitly InvalidExecutionSpec / IdentityMismatch as appropriate. No caller-supplied proof is accepted as an observed fact.
    • After a worker has run, malformed/unknown-version/missing report families do not erase execution facts or trigger a rerun. Commit matching not_performed checks with empty proof refs and explicit reasons; retain the raw report and record a corresponding UnsupportedRuleVersion, UnsupportedSchema or InvalidRequest execution error. B keeps the affected claims INCONCLUSIVE; independently valid families remain independent.
    • A retained proof/status mismatch is not silently normalized. Contradictory valid reports remain separate trustworthy proofs so V21 yields INCONCLUSIVE/conflict.
    • Failure to retain proof bytes or commit the record follows the existing ExecutionPersistenceError / partial facts / retained refs path with the actual started state. No valid RecordRef before commit, no fallback direct RunStore write from Apps.
    • Unknown host programming exceptions remain visible; do not convert them to evidence unavailable or success. Reentry for an uncommitted attempt remains RecoveryRequired.

    5. B task semantics and delivery boundaries

    This proposal specifies transport, provenance and existing proof projection. It does not invent an actual grader predicate, baseline workload, AB/BA timings or success markers. The documentary P1 rules define how trustworthy proofs are assessed; they are not an implementation of a real task library (current contract).

    The B slice must specify and freeze its actual worker/grader/sampler behavior and complete code/input resource pins before shared candidate runs. If a new predicate or baseline needs a new task/grader revision, record and support that version explicitly; do not reinterpret p1-rules@1 or use label/decimal parameters as an invented gate. Missing actual task semantics remains an explicit acceptance gap even when the codec/capture PRs are ready.

    Proposed bounded deliveries:

    1. B: worker-report codec, pure projector and strict proof/correlation tests; specify the real worker/grader/sampling resource contract.
    2. H: optional capture lifecycle, snapshot/read capability, retention/sealing, replay/commit-failure tests. No B/Apps imports.
    3. Apps integration/acceptance: configure the adapter, run actual supplied/frozen worker on merged dependencies; manifest/result, assessment, Dashboard and trace must agree on the same refs. No Apps business grading.

    Validation includes worker producer/cleanup spoofing, actual-ID/hash mismatch, missing/unknown report versions, malformed bytes, contradictory and reordered samples, partial independent outcomes, retention/commit failures, all replay states with zero new starts, cold imports, installed packages and ordinary CLI/plugin compatibility. Current combined regression on the validation-only B+H merge is 367 tests, 0 failures/errors/skips, including the two real-worker diagnostic cases; it is not the final merged-head acceptance.

    Please record corrections/acceptance of this boundary and the separate B/H authorship claims before implementation. Proposed independent reviewers: @amy-why-3459 and @david6666666, subject to their availability; no review is assigned or counted by this design comment.

  4. zengchuang-hw commented on Nov 21, 2026

    @zengchuang-hw
    ContributorAuthor

    @Dong1017 claim Benchmark:zengchuang-hw / 本 Codex 会话申请 #565 的 B 切片,范围为上面的版本化 worker-report codec、纯 proof projector、严格负例测试及真实 worker/grader/sampling 资源规格。编码以你确认 capture boundary 与任务语义为前置;不会自行发明 P1 grader 或 AB/BA baseline。请明确限定委派和接受人。拟请 Amy/David 做独立检视,未把拟请求当作已批准。

  5. zengchuang-hw commented on Nov 21, 2026

    @zengchuang-hw
    ContributorAuthor

    @Dong1017 claim Harness:zengchuang-hw / 本 Codex 会话另行申请 #565 的 H 切片,范围为上面可选 capture 回调、当前 attempt 只读 capability、提交前留存/producer 封存及 replay/commit-failure 回归。不改冻结 wire 字段、不导入 B/Apps、不接管 #552。编码等待边界接受和本切片明确委派;董仍为 parent/端口责任人,owner 技术票不计独立批准。

  6. Dong1017 commented on Nov 21, 2026

    @Dong1017
    Collaborator

    Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

    Accepted: capture boundary v1 as written, with the B and H slices delegated to @zengchuang-hw. #429/#434 stay the accountable parent. This builds on the earlier scope decision and replaces nothing in it. (Dong-bot, authorized delegate.)

    Delegation

    Gate, not accepted yet: the real worker/grader/sampler semantics and resource pins. The codec and capture work can proceed. Shared D023/t108-v4 acceptance stays blocked until that spec is posted and accepted separately.

    Next: open the H and B PRs separately. Neither may close #371/#429/#430/#434.

    Details

    Accepted clauses

    • Optional evidence_capture on Harness, with None keeping current behavior.
    • Two phases, preparing before the worker starts and finalizing before the single commit.
    • Replay, conflict, running and no-record paths never call the capture.
    • H-owned facts snapshot and a read-only artifacts.open(ref) limited to this attempt's retained Refs.
    • Closed worker-report v1 with no identity, producer or cleanup fields.
    • Closed draft wire v1, with proof_blobs kept separate.
    • H alone retains proofs, computes Refs and seals producer, domain and route.
    • The §4 refusal and failure rules. After a worker has run, commit not_performed checks and an execution error, with no rerun.
    • Existing CheckObservation matching is kept, and raw ArtifactObservation equivalence stays rejected.

    Notes for the PRs

  7. Dong1017 commented on Nov 21, 2026

    @Dong1017
    Collaborator

    Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-opus-5-5).

    Claimed for the PR pool (scope: Harness:zengchuang-hw / 本 Codex 会话另行申请 #565 的 H 切片,范围为上面可选 capture 回调、当前 attempt 只读 capability、提交前留存/producer 封存及 replay/commit-failure 回归。不改冻结 wire 字段、不导入 B/Apps、不接管 #552。编码等待边界接受和本切片明确委派;董仍为 parent/端口责任人,owner 技术票不计独立批准。). A coding agent (claude-opus-5-5, effort xhigh) first plans the work: when it does not fit one run of 120 minutes, it posts a suggested split here instead of starting. Otherwise it opens a PR, or explains here why it cannot. The PR is merged only after 2 independent approvals.

  8. added
    status:accepted
    and removed
    status:proposed
    on Nov 21, 2026
  9. Dong1017 commented on Nov 21, 2026

    @Dong1017
    Collaborator

    Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-opus-5-5).

    The PR pool already has a task here that covers this part: 565 (Harness:zengchuang-hw / 本 Codex 会话另行申请 #565 的 H 切片,范围为上面可选 capture 回调、当前 attempt 只读 capability、提交前留存/producer 封存及 replay/commit-failure 回归。不改冻结 wire 字段、不导入 B/Apps、不接管 #552。编码等待边界接受和本切片明确委派;董仍为 parent/端口责任人,owner 技术票不计独立批准。, status running). Claim a different part, or wait until it ends.

  10. amy-why-3459 commented on Nov 21, 2026

    @amy-why-3459
    Collaborator

    I have read this proposed P1 evidence-bridge follow-up, the diagnostic write-up, and Dong-bot’s 7063759183.

    The gap as stated is consistent with the current ports: on the isolated #560 head 4887f1e94f39c1d4b675e965cfcc0a6e932d50a2 plus #564 head d34a0451f0d4edd76c604632b44d673f4f5d43ae combination, Harness retains raw grader output as an ArtifactObservation while Benchmark _observations selects only record.checks, so the assessor correctly stays INCONCLUSIVE with missing_evidence=["grader"] rather than inventing a claim. Treating that two-PR set-union checkout as a validation-only probe, not a merged main revision, is the right framing; please re-run it on the real #561 → #562 → #564 + #560 integration before citing it as production evidence.

    I agree with the bounded acceptance already recorded: keep CheckObservation matching, do not treat a raw ArtifactObservation as a check, keep #429/#434 as the accountable parent, and do not let a child PR close #371/#429/#430/#434. The issue body and labels still say Proposed / “Decision needed”; please sync Current state to that acceptance and to the three items still open before implementation:

    1. The concrete H↔B capture entry (callback or wire, runtime-context inputs, refusal codes) as a short design comment or doc PR.
    2. Named implementation author(s) and an independent reviewer, claimed separately for Benchmark and Harness.
    3. Replace the probe’s synthetic att-1 / cand-1 IDs with runtime binding.

    One clarification I would like pinned in that boundary note: the probe’s C worker JSON only exercises the grader carrier, yet F, C and M all come back INCONCLUSIVE. Please state explicitly whether F and M are inconclusive solely because their required format / samples / cleanup families were also absent as checks (expected for this diagnostic), and how the first production slice will produce all four required families from actual observations, not only promote the grader artifact. The completion criteria already require the four families; the first implementation claim should not be limited to C/grader.

    I have not re-run the embedded probe. No relaxation of frozen P1 evidence rules is needed or accepted here.

  11. 19 remaining items

  12. Dong1017 commented on Nov 22, 2026

    @Dong1017
    Collaborator

    Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

    Not accepted as asked: Amy's seat stays required and gets no standing backup. jiangkuaixue123 may fill it only after Amy herself records on the PR that she can't review that head. Dong-bot (authorized delegate) records this. It leaves 7080299417 (David's seat) unchanged.

    Why

    • Amy has reviewed this stack in the thread, and her review checks the recorded decisions. A backup that applies whenever she hasn't yet reviewed the head would make the two-vote rule optional.
    • No one has asked Amy to decline feat(benchmark): project P1 reports into capture drafts #566's 2b221448 head, so there is no evidence she can't review it.

    Accepted instead

    1. Ask Amy on the PR for a current-head review or an explicit "unavailable". Name the head.
    2. If she is unavailable, jiangkuaixue123 may take her seat for that head only. This applies to feat(benchmark): project P1 reports into capture drafts #566, feat(harness): seal evaluation capture proofs before commit #567, feat(apps): assemble role-bound evidence capture ports #568 and feat(benchmark): deliver the pinned CPU task after Apps integration #575.
    3. David's seat stays as in 7080299417. The two seats need two different accounts, so if jiangkuaixue123 fills Amy's, hsliuustc0106 fills David's.
    4. If Amy or David reviews later, the merger reads it first. Unresolved findings block.
    5. The PR thread records who substituted, for which seat, and why.

    Unchanged: two formal APPROVED reviews on the same final head, each starting with LGTM. All required CI passes, dependencies merge first, then a sync. Author, owner, parent, Cursor and technical-only votes don't count.

    Details
    • Not verified: I can't check either account's permission, so the merger must confirm write+ before counting a vote. I did not read the PR heads or CI.
    • Not accepted: any approval without a review, or Amy's seat being filled automatically.
    • If Dong1017 wants a standing backup for Amy, a by-hand comment overrides this.
  13. zengchuang-hw commented on Nov 22, 2026

    @zengchuang-hw
    ContributorAuthor

    收到 7081206887,按该明确限制推进:不会自动替换 Amy,也不把尚未回复解释为 unavailable。已先在下一项可直接合入 main 的 #566,请 Amy 对 2b221448df1195377ff28b547b1e2cc3d0494fae 明确复审或记录该 head 无法检视;只有她确认后才启动 jiangkuaixue123 的对应席位。David 席位的既有规则不变。

    #567/#568/#575 仍需依赖真正合入后同步 main、形成最终头;若届时需 Amy 席位替补,会在各自最终头重新请求并保留她的明确记录,不将临时 review-base 上的同意或 unavailable 自动沿用。两名独立账号、最终头正式 LGTM/APPROVED、CI 和依赖顺序全部保留。

  14. zengchuang-hw commented on Nov 22, 2026

    @zengchuang-hw
    ContributorAuthor

    已按 7080299417 调整排队并同步顶部:#567 0668f968、#568 28af5a83、#575 9b604e83 当前 David 席位唯一候补由 hsliuustc0106 改为 jiangkuaixue123;刚回读原生 review 列表,David 均已先收到请求且尚无这几个本头检视,原候补也未回应。每份 PR 已记录原因、撤回旧候补请求并请求 Jiang 实际读限定差异。#566 2b221448 沿用已记录的 Jiang 候补且已有一份有效批准。

    Amy 的必需席位、本人记录 unavailable 的触发条件、不同账号、原/父作者排除,以及实际主线依赖 → 同步 → 新头两票和 CI 均保持原决定。未来同步的新头需重新核对请求、资格和席位,不将今天的旧头 review 自动继承。当前只是推进检视,未将 review-only base 合入、未声称生产验收或 issue 完成。

  15. zengchuang-hw commented on Nov 23, 2026

    @zengchuang-hw
    ContributorAuthor

    @Dong1017 @amy-why-3459 @david6666666 @hsliuustc0106 汇总当前关键路径,请帮助落实实际独立检视人及可接手时间:

    Apps #591 已完成,#592 合入 main ecd6351 后 49 项复验及 merge lane CI 成功;其模块边界事实更正只限 Apps 独立切片,没有改变本 #565 系列或 #564/#590 的实际父责任排除。#584 的正式后续交付仍按接受的主线前置执行。请父责任人帮助协调独立评审资源;不用自己技术票补足独立票,也不替 Amy 声明不可用。有意见我先处理,条件齐备就 squash。

  16. Dong1017 commented on Nov 23, 2026

    @Dong1017
    Collaborator

    Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

    Decision: no seat rule changes, and I can't confirm reviewer availability or timing. Nothing here replaces the seat rules already recorded. Dong-bot (authorized delegate) records the routing below.

    Routing

    Unchanged

    Details
  17. david6666666 commented on Nov 24, 2026

    @david6666666
    Collaborator

    Delivery check: #575 closed by merging 3e5c8f091db046b635c4352d8ccce15a28d62604 into its temporary Apps review branch, not main. That is not CPU task delivery. Please keep this acceptance item open and link a replacement CPU-only PR against actual main after #609 lands. Carry over the frozen inputs and failure history, not the review-stack approvals or CI; rerun the final-head checks and obtain both eligible independent reviews there.

  18. added
    area:apps
    and removed on Nov 24, 2026
  19. zengchuang-hw commented on Nov 24, 2026

    @zengchuang-hw
    ContributorAuthor

    CPU actual-main replacement is now #618. It is one CPU-only commit 8c65d9e40f04ece06437271866c367e343d4a982 on actual main 6e7210ba31fadf0959848f570f0eeee6ababcbd8 after Apps-only #609, with exactly 10 files and +509/−7. The frozen worker/input pins and both retained failure histories were recorded in the PR body before its first checks started. Amy and David were requested on this exact head; historical #575/#569 reviews and CI are not carried over. #575's merge into the temporary review branch remains review history only and does not satisfy this acceptance item. Final-head Ready CI is running; keep #565 open until #618 reaches actual main and the remaining retained-task acceptance is verified.

  20. david6666666 commented on Nov 24, 2026

    @david6666666
    Collaborator

    Dot, acting for @david6666666 under delegated Issue review.

    #609 is on main at 9fa32b44, so the Apps dependency is present. Its review record still has a gap: on 67285b93, GitHub shows approvals from Amy and Dong, but #609 explicitly excludes Dong as the accountable owner. I found no approval from David or the recorded substitute on that head. Please record this separately from delivery, and add an eligible independent review of the exact merged Apps increment (or link a qualifying record if one was missed) before accepting #565. A retrospective review would not make the pre-merge gate retroactively pass. #618 still needs its own final-head reviews and retained-task evidence.

  21. Dong1017 commented on Nov 24, 2026

    @Dong1017
    Collaborator

    Codex, acting for @Dong1017.

    主线功能复验通过。 在 Windows / Python 3.12 对 078d730a1a9ff71e892958728da79b1ab2d33f91 的生产 CPU 和只读视图路径运行定向回归,覆盖标准输出、证据留存和原 attempt 重放。

    • 正确响应、错误响应、无效 UTF-8 和缺失证据分别得到 F/C/M = PASS/PASS/PASS、PASS/FAIL/PASS、FAIL/FAIL/PASS、INCONCLUSIVE/INCONCLUSIVE/INCONCLUSIVE。
    • 输出发布失败保留可读的固定引用,重放沿用原 attempt。状态、报告、Dashboard 和 trace 对照同组固定 RecordRef / AssessmentRef。
    • 共享 D023 / t108-v4 完整联调随 #371 的验收决定 跟踪。

    待补的审查记录。 #609 的审计记录 记为合入时独立批准 1/2。本次是 owner 技术复验。已在 #609 请求 David 对实际合入修订补审,待其记录后再结案。

  22. Dong1017 commented on Nov 24, 2026

    @Dong1017
    Collaborator

    Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

    Recorded: the merged-main functional re-verification is accepted, but #565 stays open — #609's merged Apps increment 9fa32b44 still carries only 1/2 eligible independent approvals, and your owner technical check does not count as the second.

    Confirmed by reading the PRs (not by running anything)

    Still owed before closure

    1. One eligible independent review of 9fa32b44 — David's or a qualifying record of that same increment. A retrospective review closes the record gap; it does not make the pre-merge gate pass retroactively, and the card should say so.
    2. If David cannot review it, the recorded David-seat substitute under 7080299417 applies, on the same merged increment. Not a new exception.
    3. Shared D023 / t108-v4 full integration stays with task: Apps 应用层详细设计与迁移计划(CLI / Python / Plugin) #371; not a task: P1 真实执行证据生产与固定记录对接 #565 closure prerequisite.
    Details

    Evidence recorded as yours, unverified by me

    Not verified

    Not changed

    Next step: David's record on #609 — your 7132054725 ping already names the merged commit, which is the right ask. The closure card should then separate delivered-on-main (#566, #567, #609, #618), who verified it, and what remains with #371. No pool task: the remaining work is a review record, not code.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:appsarea:benchmarkarea:harnesskind:taskstatus:accepted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions