Repository navigation
docs: clarify trusted-host generation feedback responsibility - #587
Conversation
Record the accepted first-phase V25 responsibility, distinguish retained-byte identity from feedback authorization, and link the separate Harness enforcement follow-up. Agent-assisted-by: Codex (author) Signed-off-by: zengchuang <zengchuang3@huawei.com>
|
@jiangkuaixue123 @linyueqian @amy-why-3459 @david6666666 请独立检视当前 @Dong1017 请技术复核 owner 边界:当前只写清可信宿主前置责任,#586 的新策略格式和实现并未获本 PR 授权或交付。你的 owner 技术意见不补独立两票;CI 仍待完成。 |
jiangkuaixue123
left a comment
There was a problem hiding this comment.
LGTM
审查意见(jiangkuaixue123)
改了什么
本 PR 只动文档,不动运行时代码:新增「生成反馈边界」说明(Generation feedback:下一轮生成时允许把哪些评测结果喂回去),并在语义文档、操作指南里挂上链接。核心口径对齐 owner 决定 7084973960:首期把「最终验收信息不得进入下一轮」写成可信宿主的前置责任(Trusted host:调用方自己保证上下文干净),现有 H(Harness,封存生成计划的那一层)的 prepare_generation 只证明交付字节身份,不证明反馈策略已过滤;真正由 H 强制执行另见 #586,且明确 V25 长期目标不变。
我对照了当前 main 上的 src/inferrsi/harness/generation.py:该入口确实只接收并封存宿主传入的 candidate_context,没有消费 CampaignPlan / AssessmentSummary,也没有反馈可见性过滤——与文档描述一致。
问题与风险
未发现影响正确性、安全或声明行为的实质问题。文档没有暗示「H 已经过滤反馈」,也没有降低 V25 目标;验收措辞「宿主前置责任,未由 H 证明」与决定原文一致;相对链接与 prepare_generation 入口引用正确;未引入新的 schema / 运行时 / 公开签名变更。
非阻塞小提示:operations.md 新行写的是 harness.generation.prepare_generation,新合同文档写的是带 inferrsi. 前缀的路径——与同表其他行风格大体一致,不影响理解。
结论
Approve。 这是对已接受首期边界的准确文档化,可与 #586 的后续强制执行切片清楚分开;当前头 daf297f 上无阻塞性异议。
(代理代交;审查基于实际 source / decision / diff。)
jiangkuaixue123
left a comment
There was a problem hiding this comment.
LGTM
改了什么
这份 PR 只改文档(3 个文件,+65 行),没有动运行时代码、接口签名或工作流。
核心是把 V25(冻结反馈策略:最终验收信息不能进下一轮候选) 的首期边界写清楚:
- 新增
docs/contracts/generation-feedback.md:说明可信宿主(trusted host,也就是调用方)在调用prepare_generation前,必须自己决定哪些反馈可以给下一轮,并挡住「只该给人看的最终验收结果」。 - 在
schema-and-semantics.md补了一段「首期实现边界」:明确这是宿主前置条件,不是当前 H(Harness,负责封存/校验的那一层)已经证明过的保证;长期 V25 目标不变;真正的 H 侧强制执行另跟 #586。 - 在
operations.md操作表里挂上prepare_generation入口,并链到上述边界说明。
问题与风险
对照 owner 决定 7084973960 和 main 上的 harness/generation.py:
prepare_generation确实只接收宿主传入的candidate_context,封存上下文与生成计划,没有消费 CampaignPlan / AssessmentSummary,也没有按冻结策略过滤反馈——文档表述与源码一致。- 文中字段关系(
CampaignPlan.allowed_feedback/ProtocolV1.feedback_visibility是 ID,CandidateContext.allowed_feedback是具体ArtifactRef)与dto-field-index.md一致;映射责任落在宿主一侧,也写明了 H 目前没有生产口做这件事。 - 没有暗示「H 已经过滤反馈」,也没有把 V25 降级成「没有自动下一轮就算完成」;验收口径「宿主前置责任,未由 H 证明」与决定原文一致。
- #586 单独跟踪后续强制执行,本 PR 未越权声称实现或授权新策略格式。
未发现影响正确性、安全或声明行为的实质缺陷。非阻塞提醒:operations.md 里入口写成 harness.generation.prepare_generation,正文用完整 inferrsi.harness.generation.prepare_generation,与表中其他行的简写风格大体一致,可接受。
结论
批准(APPROVE)。 文档准确落定了 7084973960 的首期责任边界,独立可审,不依赖未合入的代码切片;合入条件仍按仓库规则(独立 LGTM + 必过检查)走即可。
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
PR review verdict — PASS
Reviewed base 0e6b4ea and head daf297f (full diff, 3 docs files). There is no earlier formal review or outstanding CHANGES_REQUESTED on this head.
Verified:
- The text matches #371 decision 7084973960. V25 stays the architectural target. In the first phase, feedback visibility and exclusion of final-only results are a trusted-host precondition, "not proved by H". Enforcement is tracked separately in #586, and the PR adds no policy-reference argument, schema or enforcement claim.
- The code claim is accurate.
src/inferrsi/harness/generation.pyprepare_generation(lines 16-54) takes a host-builtcandidate_context. It drops anydelivered_contextalready in it, seals the context and plan throughstore._seal_delivered_contextand_bind_generation_plan, and runs no feedback-policy check. It has no automatic next round. - The DTO names match
docs/contracts/dto-field-index.md:CampaignPlan.allowed_feedback,ProtocolV1.feedback_visibility,CandidateContext.allowed_feedback,AssessmentRefandAssessmentSummary. - The relative links resolve:
generation-feedback.mdsits besideschema-and-semantics.md, andcontracts/generation-feedback.mdis correct fromdocs/operations.md. The new operations table row follows the existing column format and effect-class wording. - The docs do not widen scope. Function signatures are unchanged, and the Apps and B ownership statements are consistent with the existing contracts.
Optional, non-blocking: the field index does not give the type of CandidateContext.allowed_feedback. The new doc says it holds ArtifactRef values, so confirm that against contract-v1.schema.json.
Not verified: CI status, and rendering of the links on GitHub. The #371 comment URL is cited from the decision record and I did not open it. This is a docs-only change, so I ran no tests.
Eligibility: Dong-bot reviews on behalf of Dong1017, the #371/#586 owner. Consistent with the #585 and #550 decisions, this Approve is an owner-side technical check and does not count toward the two required independent approvals.
jiangkuaixue123
left a comment
There was a problem hiding this comment.
LGTM
改了什么
这是一个只改文档的 PR(3 个文件,+65 行,无运行时代码改动),把 owner 在 #371 决定 7084973960 里定下的首期边界写清楚:
- 新增
docs/contracts/generation-feedback.md:说明当前阶段由可信宿主(trusted host,即调用方自己搭的、被信任的运行环境)负责决定哪些反馈可以进入下一轮生成上下文,并把最终验收信息挡在外面;现有的 Harness(H,负责封存/执行编排的那一层)入口prepare_generation只封存宿主交来的材料,不能证明反馈策略已被强制执行。 - 更新
docs/contracts/schema-and-semantics.md:在语义表旁补上同一边界说明,并指向 #586 作为后续「由 H 真正强制执行」的独立跟踪。 - 更新
docs/operations.md:在操作表里挂上harness.generation.prepare_generation与上述反馈边界文档的链接。
我对照了 main 上的 generation.py、candidate_provider.py、schema 字段类型,以及决定原文与 #586 正文:文档对「计划/协议里是 ID、候选上下文里是 ArtifactRef(制品引用)」的映射责任、Apps 只校验声明闭包、H 不选可见性、V25 长期目标不变等表述与源码/决策一致。
明显问题或风险
未发现影响正确性、安全或已声明行为的实质缺陷。
非阻塞提醒(不挡批准):
- 合入仍依赖仓库要求的独立 Approve 与当前头 CI;本审查只对文档准确性负责,不替 CI 背书。
- #586 仍是「待定合同」状态;本 PR 已明确未交付/未授权该强制执行,边界写清楚即可。
结论
批准(APPROVE)。理由:文档准确反映了 7084973960 的首期责任划分,没有暗示 H 已过滤反馈,也没有降低 V25 目标;相对链接与函数入口与 main 源码对齐;无运行时/DTO/签名变更。
(由授权代理代 @jiangkuaixue123 提交;审查对象 head:daf297f0512dfca56ed80f402ec1c9a5d47c610b。)
jiangkuaixue123
left a comment
There was a problem hiding this comment.
LGTM
改了什么
这是一份纯文档改动(3 个文件,+65 行,无运行时代码/DTO/工作流变更),把 owner 决定 7084973960 里已经拍板的「首期 V25 边界」写清楚:
- 新增
docs/contracts/generation-feedback.md:说明可信宿主(trusted host,即调用方)在调用prepare_generation前,必须自己决定哪些反馈能进下一轮候选上下文,并把最终验收专用信息挡在外面;H(Harness,执行与封存层)目前只封存宿主给的字节,不证明反馈策略已被执行。 - 在
schema-and-semantics.md补上同一边界说明,并链到上述契约与独立跟进项 #586。 - 在
operations.md操作表增加一行,指向harness.generation.prepare_generation与反馈边界文档。
我对照了 main 上的 inferrsi.harness.generation.prepare_generation:确实只接收宿主传入的 candidate_context、封存交付内容并绑定生成计划,没有消费 CampaignPlan/AssessmentSummary,也没有做反馈过滤。文档对 CampaignPlan.allowed_feedback / ProtocolV1.feedback_visibility(ID)与 CandidateContext.allowed_feedback(ArtifactRef)的区分,也与 schema 一致。验收口径「宿主前置责任,未由 H 证明」与决定原文一致;长期 V25 目标未被降级,H 强制执行仍明确留给 #586。
问题与风险
未发现影响正确性、安全或声明行为的实质缺陷。
非阻塞提醒:
结论
批准(APPROVE)。文档准确表达了 7084973960 的首期责任划分,没有暗示「H 已过滤反馈」,也没有削弱 V25 架构目标;diff 可独立审阅,无需等待其他实现 PR。
(由 InferRSI动态推送 按 jiangkuaixue123 的站立授权代交;审查对象 head:daf297f0512dfca56ed80f402ec1c9a5d47c610b。)
jiangkuaixue123
left a comment
There was a problem hiding this comment.
LGTM
改了什么
纯文档 PR(3 个文件,+65 行,无运行时代码)。把「生成时反馈可见性」这件事写清楚:
- 新增
docs/contracts/generation-feedback.md:说明首期由可信宿主(trusted host,即调用方自己)在调用prepare_generation(把候选上下文封存进生成计划的入口)前,决定哪些反馈能进下一轮,并把仅供最终验收的信息挡在外面。 - 在
schema-and-semantics.md的 V25 旁补了首期实现边界:长期架构目标不变,当前 H(Harness,执行与封存层)并不证明反馈策略已生效;后续强制执行跟进在 #586。 - 在
operations.md操作表里挂上同一入口与边界链接。
这与 owner 决定 7084973960 一致,也没有暗示「H 已经过滤反馈」。
核对要点
对照 main 上的 src/inferrsi/harness/generation.py 与 schema:
prepare_generation只接收并封存宿主给的candidate_context,没有消费 CampaignPlan / AssessmentSummary,也没有反馈策略校验——文档说法正确。CampaignPlan.allowed_feedback/ProtocolV1.feedback_visibility是 ID 列表,CandidateContext.allowed_feedback是ArtifactRef(工件引用)——ID→工件映射确属宿主责任;Apps 的CandidateProvider只校验声明的工件闭包,不挑选可见性。- 验收口径「宿主前置责任,未由 H 证明」与决定一致;相对链接可解析;未降低 V25 目标,也未把 #586 的实现偷运进本 PR。
非阻塞小建议
- Ready CI 仍以仓库检查为准;本 PR 为文档-only,内容审查不依赖补跑运行时测试。
- 若后续验收卡引用本边界,建议直接复用文中那句中英并列口径,避免再次写成「已验证」。
结论
批准当前头 daf297f。无正确性 / 安全 / 声明行为方面的实质缺陷;边界写清楚了,且把强制执行留给 #586。
代理代交:由授权助手代表 @jiangkuaixue123 基于实际 source / decision / diff 提交。
|
已核对 owner 技术 review 的非阻塞建议:实际 contract-v1.schema.json L3370–3374 明确 代理授权记录:Jiang 在 #582 review 6013958180 已明确其维护者 standing delegation 覆盖被请求检视的 InferRSI PR,允许读实际 diff 后提交审查、无实质问题时 Approve、有问题时 Request changes。本 PR 当前头 review 6014305179 只计该账号的一份独立票;Dong 在 6014304002 明确为 owner 技术票,不计入独立两票。仍需另一个符合条件的账号及最终绿 CI。 |
|
@hsliuustc0106 请加入这份纯文档切片的独立检视:当前 请按实际 diff、generation.py/schema 与 7084973960 决定给结论,有意见我先处理;通过时当前头正式 Approve 第一非空行单独 |
Refs #371
Refs #586
Document who must keep final-only acceptance information out of the next generation context. Under owner decision 7084973960, the current first phase relies on a trusted host; existing H sealing proves the identity of delivered bytes and does not enforce frozen feedback visibility.
The new generation-feedback contract explains the host's ID-to-artifact mapping responsibility, why a whole assessment is not an authorized feedback projection, handling of uncertain scope, and the required acceptance wording. The operation guide links the existing
harness.generation.prepare_generationentry, and the semantics document records the implementation boundary alongside the unchanged V25 architectural target. Separate H enforcement remains in #586, whose detailed reference contract and implementation claim are still pending.Final head:
daf297f0512dfca56ed80f402ec1c9a5d47c610b, based on actual main0e6b4ea9f42e477787df2c33367396d8b12438da; 3 documentation files, +65 lines. No runtime, public signature/DTO, generation-plan/digest, workflow, threshold or knowledge-library changes.Validation: staged whitespace checks passed; both relative documentation links resolve, and the documented function/parameters were checked against actual main source. No runtime test was rerun for this documentation-only change. Current-head Ready CI 45065621548 is complete and green, including both full-check and installed-package jobs; declaration checks are also green. Advisory hosts passed and remain advisory.
This is a Ready PR to main. It requires two independent eligible write+ current-head formal LGTM Approves and passing required checks before squash. Root/zengchuang-hw is the author; Dong supplies owner-boundary technical review and is not counted toward the independent pair. Actual Codex author attribution and DCO are retained; exact runtime model/effort is unknown and not invented. #371/#586 remain open for their own delivery and acceptance.