Skip to content

[no-dispatch] Identity pin absent from restart-reconcile comment backfill prompts (residual facet of #38) #39

Open

Description

@ranxianglei

🤖 Powered by ework

来源: #38 (#38) 分析 dual-ledger identity-pin 覆盖时发现
查重: 与 #38 相关但不同——#38(已关闭,squash c7072dc 在 master tip)覆盖了全部 live 提示词路径;本项追踪唯一未覆盖的 restart-reconcile backfill 路径。open/closed issue 与 PR 中无其他条目追踪此缺口。

现象

重启对账回填(opencode.ts reconcileComments,约 :4804)构造转发提示词时传的是 this.identityNote(undefined)——恒返回 null。因此 daemon 重启后回填的评论消息不带 Identity pin;而全部 live 路径(initial/forward/guard/review + ci-fail/merge-conflict/ci-master/ci-coord/boost 五泳道)都带。

影响(与 #38 同一失败模式)

回填提示词里 instructions.issueRef 仍是裸镜像本地号 #N。若镜像号与 GitHub 号已漂移(讨论区消耗过序列槽位),处理这条回填评论的 worker 把裸 #N 拿去查 GitHub 就会追错线程——正是 #38 要修的跨线程回复事故(billion-context 讨论 #5312)的同款失败。触发条件窄:daemon 重启 + 故障窗口内漏掉的人类评论 + 编号已漂移,三者同时成立。

为何 #38 未覆盖(意图核查)

c7072dc 在该处显式传 undefined,疑似有意:reconcile 跑在启动期,按 issue 拉取 kind/upstream_issue_number 会给恢复路径加 REST 调用;且 daemon 存储行(op.ts)目前不持久化 kind/upstreamIssueNumber,没有零成本数据源。

建议修法(owner 拍板)

  • A. IssueTracker 接口加一个可选的身份查询方法(如 getIssueIdentity(ref)),reconcile 每个被回填 issue 调一次——pin 补齐,每回填 issue 多一次 REST 调用;
  • B. ingest 时把 kind + upstream_issue_number 持久化到 daemon issue 行(存储 schema 增加)——恢复期零额外调用,但动存储;
  • C. 接受现状(rare-path 护栏缺口),won't-fix 关闭。
    推荐:A(面最小,与 live 路径行为完全对齐)。

严重程度:p3(边缘场景;live 路径已全部带 pin)。


Mirrored from ework issue #39

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions