Inbox: Approve a document an agent attached (spec sign-off without plan review)

未关闭
#3,602 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
html, markdown, typescript

调研方向

Start by reading the gated annotate flow mentioned in the issue and the unreleased Plans library, especially its versioned document approval behavior and agent decisions. Then trace how Inbox attachments are opened for annotation. Done means an agent can receive an approval tied to the reviewed document version, while Request changes sends annotations as feedback; the issue leaves the implementation home open.

由索引模型根据 Issue 内容生成。

描述

Problem

I use Plannotator to sign off on design specs before an agent starts implementing. Until now that meant /plannotator-annotate spec.md --gate --json: a clear Approve button, and a decision the agent can act on (approved, approved with notes, annotated, or dismissed).

Agents now attach specs to Inbox threads, which is a much better place to review them. But an attachment can only be annotated, so the Approve button is gone. I can send comments, but I can't record "this is approved", and the agent can't tell an approval apart from a review with no comments. Today the only workaround is for the agent to also send a :::question with Approve / Request changes options. That works, but it sits apart from the document.

Plan review doesn't cover this. Specs aren't plans going through ExitPlanMode, and sessions in permission modes that skip plan review never reach it anyway.

Proposal

When an agent attaches a Markdown or HTML document, the person can make the same decision gated annotate offers:

  • Approve / Approve with a note…: the agent receives an approved decision (and the note, if one was written) for that attachment and that version.
  • Request changes: the person's annotations go back as feedback, as they do today.

The decision applies to the version the person saw. If the file changes afterwards, the approval no longer applies, the way a Plans approval resets when the agent writes a new version.

Possible home: Plans

The unreleased Plans library already has versioned documents, Approve, and decisions that go back to the agent, and its guide says an agent tool is coming. If that tool lets an agent put any document (a spec, not only a plan from plan review) into a Space, spec sign-off could live there. A thread attachment would then just need a way to open it in Plans. Either route is fine with me. What matters is a recorded Approve on a document an agent sent.

Why it matters

Spec-driven workflows (superpowers, spec-kit, OpenSpec and others) produce several documents per feature, and each one needs a human to sign off before implementation. In #570, gated annotate gave those workflows an Approve. This request asks for the same thing where those documents now show up.

主要语言
TypeScript
星标
8.7k
派生
649
平均合并
16 小时 1 分钟
30 天内合并 PR
756

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

backnotprop/plannotator 的其他 Issue

查看 backnotprop/plannotator 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。