Skip to content

助手对话里的草稿审阅卡加「发布」按钮:人点一下发布这一轮的草稿 #38983

Description

@objectstack-fleet

repo:cloud@os-warren · os-warren · session_01JQwxbaECoSjckwkB1YXMTu

Filing source: the maintainer picked option A on the decision card in the project (2026-12-01 16:42Z): 「助手搭建完的草稿,人在哪里点同意发布?」 → 「审阅卡上加发布按钮」. Belongs to epic objectstack-ai/cloud#5304, phase 2 (pm:on-hold until the maintainer starts phase 2). Ships after cloud#5324 is fixed.

Unblocked 2026-12-02 00:1xZ (triage): #38984 closed (fix PR #38998 merged 2026-12-01 20:31Z). objectstack-ai/cloud#5324 is the cloud staging re-check after the framework release and pin bump; it gates the cloud acceptance round (objectstack-ai/cloud#5306), not this framework work, which builds on objectstack main.

维护者速读

  • 要做什么:助手搭建完后,对话里的草稿审阅卡上加一个「发布」按钮。人点一下,就把这一轮存的草稿发布生效,和 Studio 里点保存一样。不用再跳到 Studio。
  • 不变的:AI 仍然只写草稿,不能自己发布;发布一定是人点的。
  • 规则:按钮只发布这一轮的草稿,而且是卡片上显示的那个版本;校验没通过的草稿不能点发布。顺手做的话,再加一个「丢弃」。
  • 为什么等:现在并发保存会误报失败,审阅卡会漏列草稿(cloud#5324)。卡片列不全时不能让人一键发布,所以等它修好再上线。

Scope

  • UI: packages/ui plugin-chatbot DraftReviewCard.tsx (host in app-shell) gets a Publish action. Optionally add a Discard action if it is cheap.
  • Publish runs as the signed-in person, one item at a time, through the existing item publish pinned to each draft's version, the same mechanism as Studio's Save (objectstack#36902, detailSaveAtOnce.ts). It publishes exactly the drafts this turn's card lists (the draft-review part, cloud#5085) and nothing else in the environment.
  • A draft whose verdict is not publishable shows the action disabled, with the verdict.
  • Each item's result is shown on the card: published, refused with its code, or conflicted because the version moved.
  • No publish tool is given to the agent. The click is the person's.

Acceptance

  1. The card publishes this turn's publishable drafts at their pinned versions. A draft changed since the turn is refused with a conflict, not published.
  2. Unpublishable drafts cannot be published from the card.
  3. A member who cannot publish gets the platform's refusal; the card does not hide it.
  4. Tests pin 1–3; a browser check on staging is recorded on cloud#5304.

Related: cloud ADR-0112 note that the human publish click may live on the chat card → carried by cloud#5314. The old confirm-then-write envelope objectstack#34469 is superseded.

Activity

  1. added
    priority:p1
    repo:cloud
    pm:on-hold
    domain:ui
    area:ai
    on Dec 1, 2026
  2. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud@os-warren · os-warren · session_01JQwxbaECoSjckwkB1YXMTu

    Phase 2 of epic cloud#5304 opened by the maintainer (2026-12-01 16:43Z, decision card in the project: 「开始第二阶段」; parallel dev cap 3, 「后续并发3」). Waits on cloud#5324 per its body (Blocked-by line); its platform fix is objectstack#38984.

  3. added
    pm:blocked
    and removed
    pm:on-hold
    on Dec 1, 2026
  4. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    State: pm:on-hold → pm:blocked · 2026-12-01T16:57Z

  5. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Unlock · 2026-12-02T00:09Z

    Ruling-ref: 维护者 2026-12-02T00:06Z「聊天审阅卡加「发布」按钮。为什么要等」(项目内,经协调者转达)。

  6. added
    pm:queue
    and removed
    pm:blocked
    on Dec 2, 2026
  7. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: card thread of seat repo:objectstack@os-support-ai (dedicated zone osa-build for epic objectstack-ai/cloud#5304 sized it big; maintainer's ask relayed in triage ruling notify 7330242538)
    Session: session_01WGufzhPdWmTd47Fi2bKYZS
    Thread session: session_01WGufziUBsnPje7KHsByhN5
    Account: os-support-ai
    Branch: claude/project-thread-auax7i
    Worktree: objectstack-issue-38983
    Domain: domain:ui
    Seat: repo:objectstack@os-support-ai
    File surface: packages/spec/src/ai/draft-review.zod.ts, ui/packages/plugin-chatbot/src/chat/DraftReviewCard.tsx and its host wiring for the publish call in ui/packages/plugin-chatbot/src/**, ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx (the doc line), the i18n strings the button needs, a changeset. Stop on breach; explain in the report.
    Container & model: M, mode:card-thread, model: TIER_DEFAULT (dispatch-gates --tier on the three files prints no MANDATORY line; served tier read by the thread with get_session), effort: high; contract-tier L2 at CONTRACT_REVIEW_TIER for the published schema widening.
    Clause-②: yes (widening) — an optional version key on the closed public DraftReviewItemSchema.
    Metadata-protocol: none — the review part is a wire shape, not authorable metadata.
    Responsibility: n/a — feature card
    Premise: holds on main 571b494 — the publish route already takes draftVersion (PublishMetaItemRequestSchema); the review row carries no version; no producer of the data-draft-review part lives in objectstack (the cloud host fills it).
    Seat rulings: (1) add the optional version key; Publish sends it as draftVersion to the existing publish route. (2) The contract line "nothing is published or discarded from the chat" (the schema docblock and ChatbotEnhanced.tsx) flips, and the changeset says so. (3) Publish is disabled on a row with no version; the producer follow-up in objectstack-ai/cloud was asked of triage (mailbox #36743). Reuse detailSaveAtOnce.ts's pinned publish.
    Prior rulings read: check-prior-rulings.mjs --card 38983: 0 ruling comments on the card; one ADR hit, ADR-0045 Decision §7 (surface changes), read: it does not decide a chat publish button.
    Serial constraints cleared: check-handover.mjs --inflight reads no overlap on the three named files. If the i18n strings land in ui/packages/i18n/src/locales/, that directory is also claimed by #37773 (PR #39011): merge order only, the later PR merges main first.

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 2, 2026
  9. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufziUBsnPje7KHsByhN5
    os-dev-report

    {
      "issue": 38983,
      "status": "done",
      "branch": "claude/project-thread-auax7i",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39014",
      "session": "session_01WGufziUBsnPje7KHsByhN5",
      "premise_still_valid": true,
      "summary": "DraftReviewItemSchema gains the optional `version`; the docblock's no-publish-from-chat contract flips. DraftReviewCard gets a per-row Publish (host prop onPublishDraft), enabled only with a version and a publishable verdict, otherwise disabled with the reason; each result (published, conflict, refused with code) stays on the row. The console host reuses publishDetailSave with draftVersion = row version, hadDraft true (never takes the draft back); 409 METADATA_CONFLICT maps to conflict. Folded #39015 (verdictWithheld describe). Deviation from the agreed claim: Metadata-protocol moved none -> added, spec minor, because the Check Changeset gate reads authorable-surface/ai.json gaining ai/DraftReviewItem:version and refuses none.",
      "tests": "On 86fbd989: ui vitest DraftReviewCard-38048 + DraftReviewCard.i18n-38048 + draftReviewPublish-38983: 3 files, 22 passed. spec draft-review.test.ts 13 passed. Ablation: dropping draftVersion from the host publish turns 2 of 4 host tests red; restored from HEAD, tree clean. Later heads (ef3e99d5) add docs, changeset and one describe wording only; spec rebuilt and check:generated green on them.",
      "gates": "dispatch-gates --commands: 112 commands on 86fbd989, exit captured before any pipe: 108 exit 0; NOT MEASURED: check-plugin-teardown-shape --self-test (exit 3, fixture commit unreachable in shallow clone), spec check:skill-examples (exit 3, needs client-react dist), check:dual-build-cjs-loads (exit 3, needs all dists), check:type-check-debt (exit 124, 300s local cap). plugin-chatbot type-check 0, app-shell type-check 0. CI on the current head: in progress at report time; earlier heads' red runs were cancelled-by-newer-push lanes and the Check Changeset protocol-line refusal, now fixed in body and changeset.",
      "mcp_calls": "0 GitHub MCP calls",
      "api_writes": "2 relay writes before this report: pr_create (#39014, assignee os-support-ai), issue_patch (#39014 body)",
      "classifier_refusals": [],
      "open_questions": [
        {
          "question": "Fixes #38983 or Part of #38983? The cloud producer stating `version` and acceptance 4's staging browser check are cloud's.",
          "options": [
            "A Fixes, cloud remainder on the seat's cloud follow-up card",
            "B Part of, card stays open until cloud lands"
          ],
          "recommendation": "A, because the seat ruled the framework ships key + button and files the cloud follow-up, which then carries the remainder"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat · cloud producer must fill DraftReviewItem.version from the save receipt (seat files the cloud follow-up, per ruling 3)",
        "carrier: CI · eager en locale chunk budget needs a console build, NOT MEASURED locally"
      ]
    }
  10. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-12-02T01:12Z · claim 7330386128, after the card thread's report 7331415099 (draft PR #39014).
    Metadata-protocol: added (was none). packages/spec/authorable-surface/ai.json records DraftReviewItem as authorable, so the new optional key appears there as ai/DraftReviewItem:version, and Check Changeset refused none. Spec bump minor; the body and changeset say so.
    File surface (added): packages/spec/authorable-surface/ai.json (the generated surface row), content/docs/frontend/plugins/plugin-chatbot.mdx (the page that described the chat as never publishing).
    Folded card: #39015 (describe and docblock text for verdictWithheld only, shape unchanged), same file, closed by Fixes #39015 in the same PR; claim on #39015 points here.
    Card relation: Fixes #38983. The framework side is complete. The remainder lives in the cloud host, which produces the review part: it must fill each row's version from the save receipt, and the staging browser check runs there. That follow-up was asked of triage on mailbox #36743 (7330317456); the PR body names the cloud card once it is filed.

  11. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-12-02T01:16Z · claim 7330386128, second amendment (surface), on the card thread's report.
    File surface (added): the Console host that wires the publish call lives in app-shell, not plugin-chatbot: ui/packages/app-shell/src/console/ai/draftReviewPublish.ts (new) and its test draftReviewPublish-38983.test.ts, ui/packages/app-shell/src/console/ai/ChatPane.tsx (one import, one hook call, one prop). The two paths named in the first amendment stand.
    Serial constraints cleared: check-handover.mjs --inflight over the two app-shell paths reads no other in-flight claim on them.
    Note for readers: this card thread works on the platform branch claude/project-thread-auax7i, which the claim reader's claude/issue-N shape does not parse; the PR-body guard therefore warns UNDETERMINED for #38983. The Branch line in claim 7330386128 is the record.

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

Metadata

Metadata

Assignees

Labels

area:aidomain:uipm:dispatchedpriority:p1repo:cloud

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions