Skip to content

Seal Harness generation inputs before execution registration - #475

Draft
zengchuang-hw wants to merge 1 commit into
InferMatrixLab:mainfrom
zengchuang-hw:codex/harness-447-delivery-seal
Draft

zengchuang-hw wants to merge 1 commit into
InferMatrixLab:mainfrom
zengchuang-hw:codex/harness-447-delivery-seal

Conversation

@zengchuang-hw

@zengchuang-hw zengchuang-hw commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Governing issue and proposal

Refs #447
Refs #371

This draft implements the proposed pre-registration retention transaction from the storage handoff for Harness owner review. The current Claim.commit requires the final request digest to register the attempt. V24 computes that digest after binding the retained generation manifest.

  • inferrsi.harness.generation.prepare_generation calls the injected Apps ContextProvider, verifies the actual bytes and commits them with the delivery metadata in RunStore. It hands the committed delivery to CandidateProvider, commits the resulting GenerationManifest and returns the final ExecutionSpec with its generation_plan input.
  • Pre-registration slots are keyed by attempt and role. A read opens only the committed stored bytes and verifies their identity. A retry with the same data reuses the slot. Conflicting data for the same attempt is refused. Normal execute registers the original attempt with the final spec digest.
  • The production evaluation leg remains dependent on task: Harness evaluation-mode CPU execute for Apps #429, task: Benchmark production prepare and frozen resource closure #430 and task: Benchmark production offline assess for Apps #434. The CPU test in this draft runs the generation leg from actual packaged Knowledge through Apps, the SQLite RunStore, the ordinary CPU executor and Apps candidate collection.

Verification

Five focused tests passed. They cover failure before staging and after staging but before commit, no visible delivery/manifest on those failures, cross-process reread of the delivered bytes and pins, successful CPU execution, replay of the original attempt, immutable delivery and retry after a manifest commit failure. The broader Windows regression on cc9b2206 passed with 127 tests and 43 subtests, with two POSIX-only skips. Repository Ruff and the staged diff check passed.

Signed-off-by: zengchuang <zengchuang3@huawei.com>
Agent-assisted-by: Codex (author)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant