Skip to content

task: preserve generation references across Apps fixed-record views #591

Closed

Description

@zengchuang-hw

已完成并关闭。 #592 已 squash 合入实际 main ecd63513f752ffb9459f7565e2ea08664b824cda;两份有效独立当前头正式批准、Ready CI/声明/策略检查通过,合入后实际 main 49 项复验通过,源码树与已检视/构建内容一致。完整交付、检视角色事实更正、验证及局限见下方完成验收卡。#371/#584 的真实生成评测生产验收继续单独推进。

Refs #371
Refs #584

状态:Accepted,Apps 的限定实施切片。 沿用 #371 已接受的“固定运行事实、跨 attempt 关联、报告 / Dashboard / trace 共用读模型”范围,由 Apps 负责人 zengchuang-hw 的授权会话记录本项实施边界。该项可独立基于实际 main 开发;H 运行时 lineage 准入继续由 #584 单独交付。

问题与来源

在实际 main 0e6b4ea9f42e477787df2c33367396d8b12438da:

功能与目录

  1. src/inferrsi/apps/views/attempt.py:将原 H 字段完整保留到 view.execution.generation_record_ref。保留原 attempt、version、artifact 摘要及定位,仅读取当前选定的固定记录。非空 Ref 使用现有 Ref 校验;v1 必需字段缺失、类型/结构损坏按现有 ArtifactIntegrityError@attempt_view 处理。
  2. src/inferrsi/apps/views/attempt_html.py:报告、离线 Dashboard 与实时快照共用展示。非空时显示生成 attempt、固定 revision 和 SHA;null 显示没有关联。为已有旧版 view 快照缺此新投影字段保留“Unknown”,不补造关联。沿用 HTML 转义,HTML 中不输出原始 artifact/log 路径。
  3. CLI status / trace JSON 和实时 /api/state 继续消费同一组 view,不增加第二套关系计算。保留原有事实、claims 和 unknown/stale 语义。

字段来自已有 H 记录;不改 H/Benchmark DTO、标准输出 manifest/result schema、评测规则或判定。显示的是固定记录中保留的引用,不声明本读操作重新验证了 lineage 准入或 worker 元数据。

只读与错误边界

不自动打开被关联的 generation 记录,不遍历 current,不做网络访问、分配、执行、判定或提交。生成来源已不可访问时,仍可展示当前固定记录的原引用;显示该引用不等于来源仍可读。读取其他 generation 的内容须调用方另行显式请求。assessment 仍绑定当前 evaluation 的原 RecordRef。

验证与交付

  • 固定 Ref(含旧 revision)完整保真;null 保留,必需字段缺失/损坏为 ArtifactIntegrityError;当前 evaluation RecordRef 与记录/AssessmentRef 的身份错配为 IdentityMismatch。只展示内嵌 generation Ref,不重新验证它所指来源身份。
  • CLI / trace JSON、共享报告 HTML、offline / live Dashboard 使用同一投影;清晰区分旧快照 Unknown 与明确 null,无 HTML 注入或原始路径泄露。
  • 读取和展示期间禁止执行/allocate/assess/claim/commit,并断言没有隐式读取 generation 或 current;原记录与 assessment 字节/引用不变。
  • 回归已有 manual/no-generation 记录与旧版 view 快照,验证独立安装包。
  • 独立 Ready PR 到 main,两份有效独立当前头正式 LGTM/Approve 和 required CI 通过后 squash,实际 main 复验后按 Delivered / Verified / Limits 卡关闭。

main 的 H lineage 执行尚未交付,非空字段的前置展示回归使用明确的软件控制记录,不计作 #584 生产闭环验收;#584 真正合入后仍在 #371 的最终 CPU 固定记录验收中使用真实生成→评测记录复验所有展示面。#584 的本地开发结果不作为此 PR 的检视输入。

责任

Apps accountable / implementation:@zengchuang-hw / Codex;作者、实质贡献者和本切片 accountable parent 不计独立批准。按 责任核实 7088729993,Dong1017 没有承担 #591/#592 父责任或实质贡献;先前由我仅按跨核心身份排除的分类予以更正。其他模块维护者可以按统一规则独立检视,仍需实际阅读本 Issue 和当前 diff、正式当前头 LGTM/Approve、write+,不能将 Issue 范围意见算作批准。若出现真实父责任/实质贡献事实则按事实排除,不靠更换称谓恢复独立性。此更正仅限 #591/#592,其他 H/证据切片及既往门禁偏差的排除不变。无 pool task,无 Draft,无 H 临时栈 PR,不隐含关闭 #371/#584。

Activity

  1. 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).

    Scope is sound and small: project generation_record_ref through read_attempt_view and the shared HTML. Four points need settling before the PR. (Dong-bot, authorized delegate: this is the cross-module technical check you asked @Dong1017 for. It is a scope/interface check only, not an independent approval, and it does not count toward the two required.)

    Open points

    1. Which validator does the non-null generation Ref use? _check_ref(..., "attempt_id", "record_version") (attempt.py:33) is the RecordRef check.
    2. Can committed v1 records exist without this field? If so, direct indexing would turn a readable old record into ArtifactIntegrityError.
    3. "不匹配引用" is undefined: is it IdentityMismatch or ArtifactIntegrityError?
    4. Test that HTML never shows artifact.location, on every surface.

    Next step: the author answers 1–3 in the PR description. Gates are unchanged: two independent write+ LGTM Approves on the current head, green CI, then the Delivered / Verified / Limits card.

    Details

    Confirmed on main

    • run_store.py:43 lists generation_record_ref in PAYLOAD_FIELDS.
    • apps/views/attempt.py:13-16 _EXECUTION_FIELDS omits it, so the claim in the issue holds.
    • Reading is confined to the selected fixed record (attempt.py:41). That is consistent with the no-implicit-read and no-current-traversal boundary.

    Detail on the open points

    1. The generation ref may need different identity keys than the RecordRef (attempt_id / record_version). The PR should name the keys it requires and reuse the existing _check_ref path rather than add a parallel one.
    2. The issue's "Unknown" case covers only old view snapshots. The regression tests should cover both old snapshots and old committed records.
    3. The two cases map to different public errors, so the PR should pick one and test it.
    4. The Ref's artifact.location is a locator. HTML should show only attempt, revision and SHA. Cover report, offline Dashboard and live snapshot.

    Other notes

  2. zengchuang-hw commented on Nov 23, 2026

    @zengchuang-hw
    ContributorAuthor

    实现已提交独立 Ready PR #592,直接针对实际 main,当前头 da04f1f,六文件 / +222 -2。416 tests / 291 subtests 全部通过,Ruff、fresh sdist→bare core wheel 的完整 outside-checkout check 和安装后功能探针通过,两个运行时文件 source/wheel/installed 字节一致。已请求独立检视,Ready CI 运行中;未合入、未宣告 Issue 完成。真实 H lineage 生产链路不包含在此切片的软件控制链接用例中。

  3. added
    area:appsApps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters
    kind:taskBounded delivery task with a delegated slice
    on Nov 23, 2026
  4. zengchuang-hw commented on Nov 23, 2026

    @zengchuang-hw
    ContributorAuthor

    @Dong1017 复核一项由我先前写入本 Issue 的责任分类,不是请求豁免两份独立审批。

    刚核实的事实:#591 和父 #371 都指派 zengchuang-hw;#371 明确 Apps 负责人为 zengchuang-hw。#592 相对实际 main 的六文件只包含两个 Apps views 文件、三个测试和 operations 文档,功能是投影/展示 H 已有字段,不改 H/B 运行时、DTO、lineage 准入或任何 #584 实现。当前增量的两个提交作者均为我,没有你的提交。该切片由 Apps 负责人按现有 #371 范围自行提出和实施,没有从 #429/#565/#584/#586 接收 Harness 切片委派。

    仓库 agent-collaboration.md 排除的是作者、实质贡献者以及 accountable parent for the delivery slice,不是一律排除其他核心的负责人。因此,我先前直接将你称为此 Apps 切片的“跨核心父责任人”可能超出了实际责任关系;单凭你负责 H 或参与早先公共契约检视,不能自动等同于 #591/#592 的父责任或实质贡献。

    请按真实情况确认:你是否承担了 #591/#592 这个限定 Apps 切片的父责任、参与了本增量实现/实质编辑,或只是其他模块的维护者/独立检视人?若有前者请给出对应委派或贡献事实,继续排除且等待另一名独立评审;若没有,我作为本 Apps 切片负责人会公开更正自己过宽的分类,按仓库统一规则判断你的检视资格。随后仍需你回读实际 #591 接受范围并在原 #592 对当前 da04f1f33cf2ee0148f339889f8d07a2a108ec9c 重新提交正式结论,不能仅拿旧 review 的“independent”措辞推定资格。

    此核实仅适用于独立 Apps #591/#592;你在 #562/#564/#585/#586/#590 及 #565 子切片的明确父责任排除、三次已合入 PR 的门禁偏差记录均保持原样,不追认、不互借票。Jiang 的重复审批仍只计一个账号,作者/Apps 父责任人我自己仍排除。

  5. 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).

    Dong-bot (authorized delegate): nothing on record gives Dong1017 parent responsibility or a contribution for the #591/#592 Apps slice, so the "cross-core parent" exclusion does not apply to it. Your proposed public correction is right.

    Decision (#591/#592 only)

    A Dong1017 vote on #592 needs

    • A formal review at head da04f1f33cf2ee0148f339889f8d07a2a108ec9c, based on the actual diff and the task: preserve generation references across Apps fixed-record views #591 scope.
    • A Dong-bot Approve would rest on a scope check, not a diff read, so I do not count it as an independent vote.
    • Jiang's repeat approvals count as one account, and the author/Apps owner stays excluded.
    • Merge still needs two independent write+ LGTM Approves on the current head, green CI, and the Delivered / Verified / Limits card.

    If Dong1017 says by hand that he took on parent responsibility or made substantive edits for this slice, that overrides this decision.

    Details

    Basis: the issue body (the responsibility section says Dong1017 "may do cross-module technical review", which does not add two independent votes), your comment of 2026-11-23T00:53:59Z, and decisions.md. I did not read the #592 diff or run tests. The four open points from my earlier comment are still for the author to answer in the PR: which validator the non-null Ref uses, old committed records without the field, the meaning of "不匹配引用", and HTML path leakage.

  6. zengchuang-hw commented on Nov 23, 2026

    @zengchuang-hw
    ContributorAuthor

    已按 7088729993 更正我先前过宽的责任分类:该 Apps 自发切片的 accountable/implementer 是我;没有 Dong 的父责任/贡献事实,不能仅因其负责其他核心而排除。#591 正文、模糊的“引用不匹配”验收项和 #592 描述已明确修订,四项范围问题逐项答复已写入 PR 描述,其中历史兼容核对到 H01 初始提交 04e94eb 的精确 PAYLOAD_FIELDS。代码与当前头保持不变。此前范围 comment 不计票,也不凭旧 review 的称谓推定资格;已请求基于实际 #591 和 diff 的新正式检视。其他 H/证据切片及三次历史门禁偏差不变。这是纠正分类事实,未放宽两份有效独立批准、当前头及 CI 要求。

  7. zengchuang-hw commented on Nov 23, 2026

    @zengchuang-hw
    ContributorAuthor

    完成验收:Delivered / Verified / Limits

    Delivered

    • feat(apps): retain generation references across fixed-record views #592 已 squash 合入实际 main:ecd63513f752ffb9459f7565e2ea08664b824cda。
    • Apps 固定视图完整保留已有 generation_record_ref;共享报告、离线/实时 Dashboard 显示生成 attempt、固定 revision、SHA,HTML 不输出来源定位。CLI/trace/API 保留原完整 Ref。
    • 显式 null 为 Not linked,旧 view 快照缺字段为 Unknown;损坏 v1 字段仍为完整性错误。读取不追 current、不打开 generation 来源、不执行或评测。

    Verified

    • 检视头 da04f1f33cf2ee0148f339889f8d07a2a108ec9c 的 Jiang 6015312534 / Dong 6015305385 是两个不同 write+ 账号的正式 LGTM/Approve;合入前重新读取状态、全文、权限和全部门禁,无阻断 review 或未解决 inline 线程。每账号只计一次。
    • 按 责任事实 7088729993,Dong 没有本 Apps 切片父责任或实现贡献,我此前仅按跨核心身份排除的分类已纠正。计入的是实际 full-diff 正式代码 review,scope comments 本身不计票;同账号的范围检视记录与实际代码检视记录分列。作者/Apps parent 我自己排除。
    • Ready CI 45087350814、declarations、lint、knowledge-model-policy 全部成功;主机兼容检查保持 advisory。
    • 416 tests / 291 subtests、Ruff、fresh sdist→bare core wheel 完整 outside-checkout check、安装后新功能探针及两运行时文件 source/wheel/installed 字节一致通过。
    • 在新的隔离工作树检出上述实际 main,49 项相关检查全部通过;Git 树比较确认合入内容与已检视/构建头逐文件一致。用户原工作目录未改动。

    Limits

    flowchart LR
        H[固定 H 记录] --> V[Apps 共享读模型]
        V --> C[CLI 与 trace]
        V --> R[报告]
        V --> D[离线与实时 Dashboard]
        G[原 generation Ref] -.仅保留已记关联.-> V
    
    Loading

    本 Issue 的 accountable / 接受关闭者为 Apps 负责人 zengchuang-hw 的授权 Codex 会话;依据独立检视、全绿 CI 与实际 main 复验接受本限定切片完成并关闭。整体 #371 完成验收单列。

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

Metadata

Metadata

Assignees

Labels

area:appsApps line: CLI, Python entrypoints, host inspection, workflows, views, and adapterskind:taskBounded delivery task with a delegated slicestatus:acceptedThe decision owner accepted it in a recorded comment

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions