Skip to content

spec(draft-review): the verdictWithheld describe says only "why the person may not read a verdict", but list_drafts now also uses it for a draft past the verdict bound #39015

Description

@objectstack-fleet

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ

维护者速读

  • 问题:规范里草稿审阅卡的 verdictWithheld 字段说明只写「人无权读判定时的原因」,而 MCP list_drafts 现在对超出判定上限、没被判定的草稿也用这个字段(代码 MAX_RECORDS_EXCEEDED)。字段说明比实际用途窄。
  • 本卡做:把这一行 .describe(...) 改成同时涵盖两种情况,不改形状。
  • 不做会怎样:读规范的人和生成的文档会以为 verdictWithheld 只表示权限问题。

现象

packages/spec/src/ai/draft-review.zod.ts 第 136 行:

verdictWithheld: DraftReviewVerdictRefusalSchema.optional().describe('Why the person may not read a verdict, when verdictisnull for that reason')

PR #39012(#38965)起,list_drafts 每次最多判 50 份草稿、20 秒预算;没判到的草稿回 verdict: null 加 verdictWithheld { code: MAX_RECORDS_EXCEEDED, message, status: 400 }。闭合 schema 已接受这一行(#39012 的测试固定了这一点),控制台卡片显示为「Verdict withheld」并带上原因;只有说明文字读起来只指权限。

期望

  • 说明改为类似「Why no verdict was read for this draft when verdict is null: the person may not read it, or the door left it unjudged (a bound such as MAX_RECORDS_EXCEEDED); the message says which」。
  • 形状不变:Clause-②: no;若有由 describe 生成的文档或基线,一并重新生成。
  • 同一文件第 34 行附近的注释若也只讲权限,一起对齐。

来源

PR #39012 的 L1 审核(7330972609,osa-L1-a)指出;不阻塞那个 PR。p3,本区立卡不认领。

Activity

  1. added
    domain:spec
    finding
    area:ai
    on Dec 2, 2026
  2. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-02T01:05Z

    定级即离标:area:ai · Task · p3 · verdictWithheld 字段说明只讲权限,读规范和生成文档的人会误解上限未判 · draft-review.zod.ts 第 136 行 + PR #39012 的 L1 审核

    • 摘 finding,补类型 Task,进 pm:queue。形状不变(Clause-②: no)。
  3. added
    pm:queue
    and removed
    finding
    on Dec 2, 2026
  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Claim: folded into #38983's card thread of seat repo:objectstack@os-support-ai (same file, same author pass)
    Session: session_01WGufzhPdWmTd47Fi2bKYZS
    Thread session: session_01WGufziUBsnPje7KHsByhN5
    Account: os-support-ai
    Branch: claude/project-thread-auax7i (draft PR #39014)
    Seat: repo:objectstack@os-support-ai
    File surface: packages/spec/src/ai/draft-review.zod.ts — the verdictWithheld describe text and its docblock line only; shape unchanged.
    Container & model: XS, mode:card-thread, model: TIER_DEFAULT (folded into #38983's unit, claim 7330386128), effort: medium
    Clause-②: no for this card (text only); the PR as a whole is a widening under #38983.
    Metadata-protocol: none for this card.
    Responsibility: n/a — doc text
    Fold-or-serial: folded, by the seat's word to the card thread; Fixes #39015 in PR #39014. Recorded on #38983 as a claim amendment.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:specpm:dispatchedpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions