Skip to content

Add read-only Steward shortcut cards to private Lark chat - #8695

Merged
loopx-agent merged 14 commits into
mainfrom
codex/steward-fastpath-triage-card-20261113
Nov 14, 2026
Merged

loopx-agent merged 14 commits into
mainfrom
codex/steward-fastpath-triage-card-20261113

Conversation

@loopx-agent

@loopx-agent loopx-agent commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Typing /triage in a bound Steward private chat now opens LoopX 快捷操作 without reading the portfolio first. Choose 待我处理, 任务速览, or 总览. Results return to the same chat, with refresh, project selection, and a way back to the menu. The explicit /gates and /todos shortcuts use the same canonical query; regular chat keeps its existing route.

  • Fixes both issues from the initial review: the shortcuts now enter before ordinary Turn admission, and a failed or incomplete Goal read cannot show “全部正常”.
  • Actions are read only and bound to the original message, Bot, sender, conversation, Session, and current Goal grant. Replayed provider events reuse their original delivery receipt; a new click reads fresh state. Decisions and approvals stay on their existing paths.
  • If the private callback subscription disconnects, the existing App worker reconnects it while messages keep flowing. New replies offer text commands during the gap. Buttons return after the provider reports readiness. This addresses the callback disconnect review.
  • Overview uses the authorized Goal's declared source for both Todos and recent progress. A malformed history row keeps the readable rows and displays incomplete coverage. If the declared source is unavailable, the card reports the gap.
  • The Bot needs Feishu's card interaction callback subscription. The menu and project picker avoid per-Goal state reads.

Original portfolio query: Antigravity (Claude Opus). Private Lark integration and coverage fix: Codex.

Validation

  • Exact head d1b3fc47e6d554c3f534af58f6bf62940f9f931a against bd2718a485c86fe4f0ad4d1356fe9aeeccfed1ba. The File and SQLite fixtures keep authoritative Goals in roots distinct from Chat storage. Both the text command and the callback return the original authorized Todo and run summary. A missing source, a Goal without canonical authority, and a verified empty Goal produce distinct results.
  • On a shared App, callback startup and reconnect failures leave the original text pipe running. The private card offers working commands and group diagnostics retain the callback error. Restart re-enables buttons and readback. Permission-denied and partial UTF-8 history still return the Todo and any decodable history.
  • The local scenario uses the native message/callback handlers, real isolated File and SQLite state, and a synthetic Lark wire. Live Feishu render, actual provider delivery, and production portfolio latency remain unverified.

First-screen evidence

The latest captures locally render the actual card JSON emitted by the shared-App SQLite fixture. The transport and CSS are synthetic. At 390 px the coverage warning, pending decision, valid history, and text fallback are visible without horizontal overflow.

Desktop: retained progress, text fallback, and restored buttons

390 px: incomplete history and working text commands

Prior captures, including the original failure and project picker

Local browser renders of source card JSON with synthetic data.

Before the recovery fix — the disconnected menu still has buttons
Prior menu during callback outage

During an outage — text commands and the available results (desktop and 390 px)
Desktop text commands and partial result

390 px text commands and partial result

With callbacks ready — menu and populated results (desktop)
Desktop: shortcut menu and populated results

390 px — partial coverage and project picker
Narrow: partial Goal coverage and project picker

Answer explicit triage intents (/triage, /gates, /todos, 收件箱) from canonical
Todo readback without leases, Turns, model calls or quota. Binding authority is
re-verified before any read and out-of-scope Goals fail closed. A bounded Lark
card presents open User Gates with exact inspection commands, P0/P1 and blocked
work, and recent progress; it carries no state-mutating callback values.

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
@loopx-agent

Copy link
Copy Markdown
Collaborator Author

Local regression run on this head: existing native Steward + Lark Steward suites 566 passed, 2 failed (27 min). Both failures reproduce identically on untouched origin/main (1bfb377654) and are pre-existing, unrelated to this change:

  • tests/test_native_steward_turn_host.py::test_managed_work_never_commits_without_current_independent_postcondition[stopped_after_model]
  • tests/test_native_steward_private.py::test_steward_reads_every_registration_across_pages_and_future_goals (ProjectRegistryProtocolError: Goal activation metadata requires upgrade)

New tests: 30/30 passed.

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

评审提交 db53562af760b70b5036b19a6572cd3117e87276,目标基线 e72fc2433dcb7577971d2cea521826a4b8999987。实际 merge base 为 1bfb3776549b2493dac842b165eb7d8807bfe403。按 GitHub 三点 diff 全量评审,并在当前目标基线跑匹配入口。

[P2] 飞书的显式查询仍走普通 Steward Turn。 在已核验的私聊 Steward 绑定发送 /triage。同一绑定下另发一条普通任务作为对照。 当前提交同样创建常规 Turn、发出一次 turn/start,并走普通回复。新 native_fast_path_triage 和 card builder 没有进入该生产调用链。用户发送显式查询时仍需经过原有排队及模型路径。 对应代码

[P2] 所有 Goal 读取失败时仍显示绿色一切正常。 绑定范围只有一个已注册但尚未迁移到 canonical Todo authority 的 Goal。用新增 triage 路由读取,再按该返回值渲染卡片。 权威 Todo 读取给出 canonical_authority_required,摘要有一条 unavailable 记录,但 quiet=true。卡片仍用绿色标头并显示 All clear,不可用提示留在页脚。Markdown 同样输出 All clear,调用者可能把待核验的门禁当作没有门禁。 对应代码

动机 / Motivation

已绑定本人飞书私聊的用户,需要立刻知道有哪些决定或高优待办要处理。 一次轻量询问应直接返回当前可处理事项。范围不完整时,用户也需要看到哪些 Goal 仍无法确认。 内部 helper 可以读取真实隔离 SQLite 的一个 P0,文件快照无变化,拒绝范围外 Goal 和另一位发送者。普通私聊消息与普通原生 Todo 读取在两版均走原路径。 本轮通过隔离 SQLite、脚本化模型和合成 provider 核验私聊接收及 Core 路径。

改动思路 / Approach

Core 继续决定原私聊绑定与 Goal 范围,canonical Todo owner 提供只读状态,飞书适配器负责原会话送达。 最小可用变更是在现有原私聊入口接入确定性分流并读回回复。待未来按钮使用的 fingerprint 还没有生产消费者。 只读 helper 已能复用 canonical Todo,新增聚合与 card builder 需要由真实入口调用后才能完成产品路径。

具体改动 / Changes

关键代码讲解

新增模块解析明确的命令 token,复用 Core 绑定和 list_goal_todos,再聚合门禁、重点待办和近期进展。卡片使用独立序列化器。原接收代码只识别现有控制命令,随后走 core.admit。新聚合的 quiet 只看已读到的门禁和待办,直接被 Markdown 与卡片当成全清。 原私聊入口 quiet 判定 卡片样式

验收条款 ordinary-entry-journey、typed-owner-scope、failure-readback。当前交付合同要求调用方能发现并完成操作,在普通入口看到成功或失败并读回结果。 docs/development/frontend-delivery.md

对主干的风险 / Risks

同一私聊夹具在目标基线和候选各发送 /triage 和普通消息。两版每条消息都创建一个 Turn、发出一次脚本化 turn/start 并各回复一次。单独调用候选 helper 可以只读查询,但没有入口把该结果送回原私聊。另一个夹具只读取未迁移 Goal,捕获权威拒绝后实际渲染出绿色卡片,复现覆盖状态误报。

在原私聊来源与权限核验完成后、常规 Core Turn 准入前接入显式查询,沿原私聊送达返回摘要。把卡片的覆盖状态显式传到展示层,只有全部读取成功且确实无关注项时才显示绿色。 沿现有 Lark ingress 夹具对照显式查询、普通任务、越权请求及全部或部分 Goal 不可用。读回原私聊中的卡片,并同时检查接收记录、Turn、模型启动、quota 和状态副作用。

语义与 CI 对齐

定向测试 174 项通过。另一个原有测试在两版的 registry activation 校验处以相同签名失败,与新分流调用无关。本地 Standard premerge 的 6 项直接检查和 10 项选中检查通过。 托管 CI 未查询。

我的整体评价 / Verdict

内部只读查询和权限边界已能运行。当前提交需要补齐原私聊中的查询与读回,并纠正缺失覆盖时的全清结果。复评应以原会话收到结果和实际未创建 Turn 为准。 实测卡片 JSON 在零个 Goal 完成读取时仍使用绿色标头和 All clear,当前代码的原飞书入口也没有调用该卡片。 可见证据仅来自卡片 JSON。飞书客户端渲染、生产安装和实际用量待验证。

English verdict: REQUEST_CHANGES. The explicit Lark request still starts a normal Turn, and an unreadable Goal can produce a green all-clear card.

…eward-triage-cards-20261114

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
@loopx-agent loopx-agent changed the title feat(steward): read-only portfolio triage fast path and Lark card Add read-only Steward shortcut cards to private Lark chat Nov 13, 2026

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

评审提交 038ef3f,目标基线 e72fc24。相对上轮 db53562,两项原问题均修复;本轮对目标基线评审整份改动,并核对当前主干未改动这些生产文件。

[P2] 卡片回调断线后,私聊仍展示无法使用的快捷菜单。 仅配置本人 Steward 私聊,没有同 App 的群聊评审路由。让 card.action.trigger 消费者先就绪,再模拟它异常退出,同时保持普通消息消费者健康。 新分支把仅私聊的 callback 标成 required=false,现有 watcher 因而忽略退出。实际流测试中消息仍报 listening、/triage 仍发出三个按钮,多个 watcher 周期内未重启回调,也没有给出不可用状态。此时按钮无法送达,正常私聊消息仍能接收。 对应代码

动机 / Motivation

已绑定本人飞书私聊的用户,希望直接查看待自己处理的决定、重点任务或项目总览。 旧版输入显式查询也要等常规模型回复。新版先显示快捷菜单,点击后才读选中的授权范围;按钮依赖独立监听,所以该监听中断时也需要可用的恢复路径。 这个提交修复了上轮两项:显式指令先走私聊卡片分流,不再建普通 Turn;所有项目读不到时给出橙色状态,部分覆盖也不报一切正常。普通文字仍走原 Turn,定向测试用真实隔离 SQLite 读到已授权待办。 使用源码私聊监听、实际本地 Core 和 SQLite、合成飞书传输及模型。卡片布局来自候选 JSON 的本地预览。已安装 runtime、真实飞书客户端和真实回调恢复均未验证。

改动思路 / Approach

Core 继续验证原绑定与 Goal 范围,canonical Todo owner 提供查询;飞书适配器负责送达和监听恢复。 已有 worker 和 App 租约足以承接两个消费者,按回调的可用性独立恢复即可,无需另建状态或重启整个私聊。 私聊文本先匹配显式命令,菜单和选择器不读取每个项目。按钮使用来源和回执进行认证后才查询;普通文本仍走原模型会话。

具体改动 / Changes

关键代码讲解

入口在普通 Turn 之前把显式命令写入原私聊工作队列。查询共用既有 canonical Todo reader,卡片用 coverage 选择可读与不可用状态。伴随回调进程与消息流由同一 App worker 启动,只有存在群聊 ID 才被视为 required。 原私聊分流 回调来源与回执检查 回调状态

验收条款 private-exact-ingress、truthful-coverage、recoverable-interaction、first-screen-controls。原会话 RFC 已建立精确来源、授权和恢复的边界;本 PR 的用户旅程还明确承诺在原私聊点击菜单、刷新和选择项目。 docs/architecture/rfcs/app-conversation-and-async-inbox-v0.md

对主干的风险 / Risks

合成传输的正常、拒绝、重复和部分失败路径均有验证。仅私聊的伴随监听在健康运行后退出,却不进入原来监督进程的故障分支。 进程退出判断 watcher 恢复入口

为私聊回调单独记录可用性并在现有 App 租约内恢复该消费者,保持普通消息流在线。暂不可用时给出可工作的文字查询或明确说明,不把无监听的按钮当作可用入口。 在现有流夹具先确认回调就绪、再让它异常退出并恢复。断言私聊消息不中断,故障时有可见降级,恢复后同一对话的按钮点击重新到达并读回结果,保留重复、拒绝和撤权对照。

语义与 CI 对齐

36 项定向测试通过。扩展套件 600 通过、1 失败;相同 registry activation metadata 测试也在当前目标基线报同一错误。Standard premerge 6 项直接和 10 项选中检查通过;独立回调断线测试复现上述缺口。 托管 CI 未查询。

我的整体评价 / Verdict

保留现在的确定性入口、Goal 覆盖状态和同私聊授权。请把回调故障恢复与普通消息可用性拆开,再对真实客户端补回调闭环验证。PR 附件直连未能读回。独立用候选卡片 JSON 和合成数据检查 1200 × 900 桌面及 390 × 900 窄屏:菜单与已填充结果均可扫描;部分失败置顶,长中英文行可换行,选择项目和返回控件在首屏。 使用源码私聊监听、实际本地 Core 和 SQLite、合成飞书传输及模型。卡片布局来自候选 JSON 的本地预览。已安装 runtime、真实飞书客户端和真实回调恢复均未验证。

English verdict: REQUEST_CHANGES. The two earlier findings are fixed. A private-only Steward callback can die after readiness while the chat still delivers menus whose buttons no longer reach a handler.

…eward-triage-cards-20261114

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

评审提交 7742f56,目标基线与 merge base 均为 78e936f。对照上次评审提交 038ef3f,复查了后续 7 个改动文件和整份 10 文件 diff。

[P2] 一份不可读的运行历史会让总览不回消息。 一个已授权项目的 SQLite 待办中有一条待决事项;运行历史末行断在 UTF‑8 字符中间,或索引文件无读取权限。点击「总览」,再用「/triage all」走同一查询。 两条请求都已接收,但各重试两次仍没有回复,连已读出的待决事项也没有显示。同一数据下「/gates」会返回该事项;只恢复运行历史的读取,两条原请求才各送达一次。 总览读取运行历史

[P2] 共用群聊的 App 在卡片回调退出时仍会停止私聊消息。 同一个已验证的 Bot App 同时绑定私聊 Steward 和群聊评审。让两个监听都就绪,再只结束卡片回调进程。 仅绑定私聊时,回调在原消息进程内重连;加上同 App 群聊绑定后,原消息进程被终止,入口返回 source_disconnected,文字消息也要等父监听器重启。 共享回调的 required 分支

动机 / Motivation

已经绑定飞书私聊的 Steward 用户,需要快速知道有哪些事等自己决定、哪些任务卡住了。 原来在私聊询问待决事项,要等常规会话调用模型。候选允许直接输入 /gates 查询,也可以打开菜单,点击选择不同范围。 隔离 SQLite 的待决事项可以通过 /gates 或恢复后的新按钮返回原私聊。打开菜单不先读取各项目,普通文字仍走一个原会话 Turn。 两条故障分别中断了总览读回和共享 App 的私聊接收。本次验证使用源码监听器、真实本地 Core 和 SQLite、合成飞书传输。已安装 App、飞书桌面及手机原生渲染、线上回调和长期成本未验证。

改动思路 / Approach

Core 核验原私聊和授权范围,现有 Todo 权威读取器提供状态,飞书适配器负责原 App 内的回执、送达和呈现。 把近期进展的读取失败留在该区块,并在同一个 App 租约内独立恢复回调。这样可保留待决事项、文字查询和已有群聊授权。 保持原流程时,简单查询也要等模型;文字捷径已能满足明确的问题,菜单适合还没决定看哪类信息的用户。两条路径沿用已有授权,不需要额外确认。点击保存实际选择,回执保留已尝试发送的内容。进程就绪只是本地观察。

具体改动 / Changes

关键代码讲解

  • 原私聊入口先核验来源,再把三个明确的快捷命令分流到只读回执。普通文字照常进入 Core;菜单和选项目都不扫描各项目的待办。私聊分流
  • 查询从现有 Todo 权威读取待决事项和重点任务。Todo 覆盖判断能区分部分与全部不可读;总览附带的历史异常在卡片生成前中断整个结果。Todo 覆盖
  • 卡片回调核验原消息、操作者、Bot、聊天、Session 和点击值,再按事件去重。送达前重验授权,按同一 UUID 发送并读回;撤权后仍拒绝。回调核验 送达与读回
  • 原服务在 App 租约内共享伴随回调,按群聊与私聊动作分发。注册状态用于新卡片的文字降级;仅私聊能独立重连,共享 App 仍依赖父监听。服务接线 回调生命周期 文字降级

验收条款:original-private-entry、todo-coverage、optional-history-coverage、shared-app-recovery、first-screen-controls。依据原聊天 RFC 的 App/来源/独立恢复边界,以及前端交付和证据覆盖要求。原私聊与共享 App 交付验收 来源不可用的证据要求

两个新增测试模块覆盖输入、输出和来源。实际飞书分支调用 project_steward_triage;额外的 native_fast_path_triage、native_command 的 triage 分支和门禁指纹当前没有生产消费者。建议留到有调用方时再加入,当前可保留现有 Core 读取、私聊 worker 和使用中的卡片路径。额外原生入口 门禁指纹

对主干的风险 / Risks

基线用同一总览文字走一个普通 Turn 并回复,未提供确定性摘要。候选的损坏尾行和索引无权限都能让两种总览滞留;SQLite 待办读取没有坏。独立对照只换上 #8681 的解析改动,坏尾行恢复,索引无权限仍失败。把运行历史当作可降级的补充来源。坏行沿现有索引读取器处理;索引整体不可读时仍返回已读待办,并在总览标明近期进展缺失。 在隔离 SQLite 中分别重跑尾行损坏和索引 EACCES。按钮和文字总览都应返回同一待决项与覆盖提示,不创建 Turn 或重复回复。

仅私聊的旧问题已复验:回调启动失败或断开时文字仍返回,重新注册后按钮返回同一 SQLite 待办。反例仅增加同 App 群聊绑定,回调退出就终止消息进程。基线群聊专用重连通过,问题在新增共享旅程。在原 App 租约内恢复独立回调,分别报告消息和卡片是否可用;保留群聊错误与重试,同时保持健康的消息进程。 对照仅私聊、仅群聊和共享 App。让回调退出、重启失败再恢复,验证原消息进程仍接收文字、按钮无重复执行并在原聊天读回结果。 父监听退出

语义与 CI 对齐

307 项定向用例通过。另做了真实 SQLite 故障、共享监听和基线普通消息对照。Standard premerge 的 6 项直接检查和 10 项选中检查通过,改动文件 Ruff 通过。这次未重跑全量套件,也未查询托管 CI。

我的整体评价 / Verdict

请求修改。文字捷径、原私聊授权和仅私聊回调恢复都有实际结果。总览应保留已读待办,共享 App 应在回调退出时保持原消息接收。

本地预览的桌面和窄屏都先显示覆盖不足提示,再列出待办;长中英文行可以换行。长总览需要滚动才能看到刷新、选择项目和返回。独立项目选择卡的当前项目、翻页和返回在首屏。 预览来自候选卡片 JSON 和合成数据,未验证真实飞书客户端的布局、键盘和回调往返。 lark-cli 回调订阅说明 说明,未配置回调的 consumer 也可能启动成功;按钮可用性需独立验证。

English verdict: REQUEST_CHANGES at 7742f56. Optional history failures suppress both Overview replies despite readable SQLite decisions, and a callback-only exit stops the ordinary message consumer on a shared App.

@mergify

mergify Bot commented Nov 14, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @loopx-agent.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Nov 14, 2026
… failures

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
…lark-triage-8695

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
@mergify mergify Bot removed the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Nov 14, 2026
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
…lark-triage-8695

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max

Request changes conclusion (author-owned PR; GitHub blocks formal self-review)

评审提交 d2fb7b7ce29f77385d937e4c7c7b75c57b0fe951;对照目标基线 5b4c47ae1a4e298cd92a290213283f0953eb9dbf。

[P2] 总览读共享 runtime 后会把源 Goal 的待决事项显示为「全部正常」。 从全局 registry 授权一个带 source_registry 的 Goal。源 runtime 有一条待决事项和运行记录,共享 runtime 有可读的空 Todo。在同一个原私聊输入 /triage all,再点击「总览」。 两条路径都向原私聊送达绿色的「全部正常」,而无 runtime 覆盖的 todo list 读到源 Goal 的待决事项。真实隔离 File 和 SQLite 都复现。 触发分支

动机 / Motivation

已绑定飞书 Steward 私聊,需要查看待决事项、重点任务和总览的用户。 已绑定飞书 Steward 的使用者要知道哪些项目等自己决定。打开快捷菜单只需看到三个入口,接着可以用按钮或文字查看项目状态。 基线对同样的 /triage all 启动一个普通 Turn,并完成原私聊回复;原 todo list 已按全局 registry 的 source_registry 读取源待办。 用户看到「全部正常」时可能漏掉待自己解决的事项。完成的飞书卡片和可读的共享副本都无法证明已覆盖实际工作。 本轮确认了上次的两处修复。不可读运行历史会显示覆盖提示并保留已读待办;共享 App 的回调重新连接时,私聊消息流保持接收,恢复后按钮送回同一个私聊。 验证覆盖源码私聊监听、Core、真实隔离 File/SQLite、合成飞书传输,以及候选卡片 JSON 的本地浏览器预览。已安装 App、真实飞书渲染与往返、长程成本及托管 CI 未核验。

改动思路 / Approach

Core 验证原私聊、App、Session 和 Goal 授权,现有源路由与 Todo provider 提供当前工作,飞书适配器只负责查询后的呈现和回执。 当前卡片调用和待办、运行历史都沿用 Chat runtime,会把已读错误来源当作覆盖成功。一个逐 Goal 的既有路由足以解决,无需新状态或新请求。 Existing worker captures and reads current Goal state, publishes an original card, then verifies provider readback.

具体改动 / Changes

关键代码讲解

快捷命令在普通 Turn 前调用现有私聊分流;按钮继续验证原回执和消息身份。 私聊入口 卡片回调

总览把 Chat runtime 当作查询覆盖传给 canonical Todo reader,近期运行也按这个 root 读取。源选择时应沿已存在的全局 registry 规则。 覆盖参数 Todo读取 源路由

此次修复让不可读历史单独显示覆盖提示。共享 App 的回调断线进入既有 worker 重试,消息流继续接收。 可选近期进展 共享回调恢复

按 docs/architecture/rfcs/app-conversation-and-async-inbox-v0.md 在 5b4c47ae1a4e298cd92a290213283f0953eb9dbf 的验收,原私聊与只读入口、回调与可选历史恢复、首屏与恢复操作已验证;授权源覆盖未满足。 原私聊与共享 App 约束 缺失来源的判断

按 docs/architecture/rfcs/app-conversation-and-async-inbox-v0.md 的当前基线约束,原私聊与只读入口 已验证;回调与可选历史恢复 已验证;首屏与恢复操作 已验证;授权源覆盖 未满足。基线验收依据

对主干的风险 / Risks

对照上次 7742f56fc62cae22717e5ea2c8b85ec1e9d5edf0 的两项发现,当前 head 的部分历史和共享 App 故障已恢复。对照目标基线和候选全 diff,同一用户、同一 source registry 和同一真实 provider。候选用文字及按钮各读一次都错误报绿。只在单 Goal 夹具中换用已有源路由,真实待决事项和近期进展同时可见,仍没有普通 Turn。当前卡片的生产路径只用 project_steward_triage,额外 native wrapper 和门禁指纹暂无消费者,可随同收敛。

语义与 CI 对齐

精确 head 的快捷入口用例和本地 standard premerge 的 10 项选中检查通过。额外从同一全局 registry 在真实 File/SQLite 读回原待办,复现了卡片的来源误报。 验证覆盖源码私聊监听、Core、真实隔离 File/SQLite、合成飞书传输,以及候选卡片 JSON 的本地浏览器预览。已安装 App、真实飞书渲染与往返、长程成本及托管 CI 未核验。

我的整体评价 / Verdict

请求修改。按授权的 Goal 复用已有 source route,待办和可选运行历史使用同一来源。共享 Chat runtime 只用于原对话与回执。源不可读时保留部分覆盖提示。 python -m pytest -q -s probe_8695_source_runtime.py on exact head and source-route-only control; paired original ingress at exact base 1200 和 390 px 本地预览无横向溢出。菜单、项目选择和断线后的文字指引可在各自卡片开头找到;长总览的刷新和返回仍在结果之后。两个来源的真实卡片 JSON 分别呈现绿色全部正常和待决事项。 验证覆盖源码私聊监听、Core、真实隔离 File/SQLite、合成飞书传输,以及候选卡片 JSON 的本地浏览器预览。已安装 App、真实飞书渲染与往返、长程成本及托管 CI 未核验。

English verdict: REQUEST_CHANGES at d2fb7b7. On d2fb7b7, text and callback triage read the shared runtime and falsely report all clear while the canonical Goal source has a pending decision.

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
…lark-triage-8695

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · max

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

动机 / Motivation

飞书本人管家需要在原私聊直接查待决事项。共享根里的空快照会盖住源 Goal 的真实待办,而一次 callback 掉线或历史索引尾部损坏就可能让用户等不到结果。

适用于在已核验的本人飞书 Steward 聊天中查待决事项、重点任务和项目进展的操作者,包括与旧群话题共享一个已核验 App 的场景。 让共享根保留一个可读的空快照、真实项目保留待决项。候选旧提交省略真实项目内容,且把 source 路由恢复为共享根后,File 和 SQLite 都重现同类遗漏。回调退出或写回授权撤销时也有独立对照。 同一个授权私聊的 /triage all 与原卡片总览均返回源项目的 Todo 和有效运行记录。未升级、无法读取与已验证为空的项目有不同的界面状态。卡片回调恢复期间文字查询继续送达。 已显式配置的飞书本人 Steward 私聊及内部只读 Markdown 投影。保留普通 Chat Turn、群审批来源核对和现有群回调恢复。

改动思路 / Approach

复用现有私聊来源准入和原回复回执,把显式只读查询放在普通模型准入之前。每个已授权项目沿已有 source route 查询 canonical Todo 与历史。回调子进程按同一 App 租约独立重连。

Core 的当前私聊 Steward 绑定和项目授权控制读取范围。相应 registry 的项目 route、canonical Todo provider 与该 runtime 的运行索引各自提供读证。飞书原消息与 provider 回执控制送达。 已显式配置的飞书本人 Steward 私聊及内部只读 Markdown 投影。保留普通 Chat Turn、群审批来源核对和现有群回调恢复。

具体改动 / Changes

按 docs/architecture/rfcs/app-conversation-and-async-inbox-v0.md 在 bd2718a485c86fe4f0ad4d1356fe9aeeccfed1ba 的版本复核 original-conversation-and-canonical-source 和 shared-lark-callback-recovery。

  • 私聊只接受已核验的明确查询。按钮绑定原消息、操作者、Bot、Session、当前授权,重放复用原回执,撤权或跨群点击 fail closed。菜单与选择项目无需遍历 Todo。
  • 总览由权威读取结果和运行索引共同决定覆盖状态。整份索引打不开时保留已读 Todo,拆开的 UTF-8 尾行跳过且保留完整行。通用索引保持严格。
  • 故障期间原文字进程在线,新的卡片展示文字命令。群路由仍可读回 callback 故障,独立群监听沿原方式重连。复用 producer 的 probe,不增加新的状态写入。
  • 核查两个独立的真实 File/SQLite 根、原文字与回调、恢复与重复送达。同步修正 5 个绕开监听器注册的旧夹具和 1 处旧版 Goal 激活字段,旧用例的原行为仍有覆盖。

对主干的风险 / Risks

主要风险是配置别名或共享根将结果路由到错误的项目,或者 callback 退出时仍给用户一个看似可用的按钮。用真实的两个本地存储验证 Todo 和历史同源、不可读时不会退到共享副本、全部不可用不会变绿。复验原私聊收件、撤权、过期与重复回调,以及原群聊单独配置的错误和恢复。真实飞书账号、系统端卡片渲染、线上回调和访问成本没有做实网验收,发布描述也保留这些边界。

我的整体评价 / Verdict

当前提交通过。两种本地权威存储均能在原私聊返回源项目的待决事项和可读进展,断线期间文字查询可用,回调恢复后按钮再次可用。六处审查发现均用生产源码入口和回归核验。

隔离 SQLite 发出的实际卡片 JSON 经过本地浏览器渲染。桌面和 390 px 首屏都能看到覆盖提示、保留的待决事项、有效历史和文字备用入口。桌面还可读到重新启用的回调按钮。

只覆盖合成传输与本地卡片预览。未核验真实飞书客户端的样式和平台回调往返。

English verdict: APPROVE d1b3fc4. Verified both real local stores, text and original-card action delivery, fail-closed missing authority, retained decodable history, and shared-App callback recovery.

@loopx-agent
loopx-agent merged commit 1cdd9bb into main Nov 14, 2026
10 of 13 checks passed
@loopx-agent
loopx-agent deleted the codex/steward-fastpath-triage-card-20261113 branch November 14, 2026 08:47
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