Skip to content

feat(console): the chat's draft review card publishes a draft, pinned to the version the turn saved - #39014

Merged
objectstack-fleet[bot] merged 12 commits into
mainfrom
claude/project-thread-auax7i
Dec 2, 2026
Merged

objectstack-fleet[bot] merged 12 commits into
mainfrom
claude/project-thread-auax7i

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #38983
Fixes #39015

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: none — the row is a stream part a host writes for the chat, which no skill teaches; the docs page content/docs/frontend/plugins/plugin-chatbot.mdx is updated here

维护者速读

  • 用户能看到什么变化:助手搭建完后,对话里的草稿审阅卡上每个草稿多了「发布」按钮,人点一下就发布这一个草稿,结果(已发布、被拒及原因、本轮之后有改动未发布)留在卡上。
  • 为什么做:云端专题「助手搭建应用」第二阶段,人不用再跳到应用搭建里去发布。
  • 出错会怎样:只有带版本号、判定可发布的草稿能点;草稿在本轮之后被改过会被拒、什么都不发布;AI 仍然不能自己发布。版本号要云端写进审阅卡,云端补上之前按钮是灰的。
  • 要你做什么:无。

What changes

  • Spec (packages/spec/src/ai/draft-review.zod.ts): DraftReviewItemSchema gains the optional version (non-empty string), the draft's version token as the turn's last save of it wrote it. The docblock's "What the card does not do / Nothing is published or discarded from the chat" flips to "What the card publishes": one draft per click, as the person, pinned through draftVersion; nothing discarded. Reference page regenerated.
  • Card (ui/packages/plugin-chatbot/src/chat/DraftReviewCard.tsx): with a host onPublishDraft, each row carries a Publish button. Enabled only on a row with a version and a publishable verdict; otherwise disabled with the reason in its title and accessible name (noVersion, withheld, refusals). The row keeps the click's result: published (button gone), conflict (draft changed since the turn, button gone), refused with the platform's code and sentence (button stays for another try). A host that throws is shown as a refusal. With no host prop the card is unchanged (no buttons). ChatbotEnhanced passes the prop through; its comment line saying nothing is published here flips.
  • Host (ui/packages/app-shell/src/console/ai/draftReviewPublish.ts, new): publishReviewedDraft reuses publishDetailSave (the item page's pinned item publish) with packageId = the row's package, draftVersion = the row's version and hadDraft = true, so a refusal never takes the assistant's draft back. 409 METADATA_CONFLICT maps to conflict; anything else to refused with the error's code and message. A row with no version is never sent. ChatPane wires it in (one import, one hook call, one prop; the file stays at 1,000 lines).
  • i18n: 12 chatbot.draftReview.* keys in all 11 locale packs (zh-Hant regenerated).
  • 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, folded in (same file, describe-only): verdictWithheld's .describe() and the docblock line now also cover a draft the door left unjudged under a bound such as MAX_RECORDS_EXCEEDED; shape unchanged.
  • Docs: content/docs/frontend/plugins/plugin-chatbot.mdx § Draft review card teaches onPublishDraft and drops "no publish control".
  • Changeset: minor on spec (the Check Changeset gate reads packages/spec/authorable-surface/ai.json gaining ai/DraftReviewItem:version, an authorable key added), patch on plugin-chatbot, app-shell, i18n; says the "nothing is published from the chat" contract changes.

Seat rulings carried (card thread order): optional version key, Clause-② yes (widening); the protocol line moved from the agreed none to added because the authorable-surface ratchet records DraftReviewItem, and the gate refuses none on a moved shard; the docblock and the ChatbotEnhanced line flip, the changeset says so; no producer of the part lives in this repo (the cloud host fills it), so this ships the key plus the button and Publish is disabled on a row with no version. The cloud producer follow-up is the seat's to file. Discard (optional on the card) is not built.

Risk-ranked first reads: DraftReviewCard.tsx publishBlock and publishControl (what is clickable, what each result shows); draftReviewPublish.ts (pin and conflict mapping); the spec docblock flip.

Tests

Run on 86fbd98 (objectstack-ai/objectstack, main 571b494 base); the head now adds docs, the changeset and the #39015 wording only:

  • pnpm --dir ui exec vitest run packages/plugin-chatbot/src/__tests__/DraftReviewCard-38048.test.tsx packages/plugin-chatbot/src/__tests__/DraftReviewCard.i18n-38048.test.tsx packages/app-shell/src/console/ai/draftReviewPublish-38983.test.ts: 3 files, 22 tests passed.
    • Card (new top-level describe in the card's harness file): publishes the publishable versioned row through onPublishDraft and shows it published; refused, withheld and unversioned rows are disabled with the reason and never call the host; conflict shown, no second Publish; PERMISSION_DENIED shown with code and sentence, Publish kept; a throwing host shown as a refusal.
    • Host (against the draftPublishDoor fake that enforces the draft pin): the turn's draft goes live with { packageId, draftVersion }; a draft another writer changed is conflict, not live, kept, no reset; a 403 refusal carries code and message, no reset; no version, no publish call.
    • Ablation: dropping draftVersion from the host's publish turns 2 of 4 host tests red (the pin assertion and the conflict PIN); restored from HEAD, tree clean.
  • pnpm --filter @objectstack/spec exec vitest run src/ai/draft-review.test.ts: 13 passed (new: version kept, optional, empty and non-string refused with path).
  • pnpm --filter @object-ui/plugin-chatbot type-check exit 0; pnpm --filter @object-ui/app-shell type-check exit 0 (both incl. tsconfig.test.json).
  • pnpm --filter @objectstack/spec check:generated: content/docs/references/** was stale, regenerated with --fix, re-check green.

Acceptance notes

  • Acceptance 1–3 are pinned in this PR at the framework layer; they hold end to end once the cloud host states each row's version in the data-draft-review part. Until then every row's Publish is disabled ("Publish this draft in App Studio.").
  • Acceptance 4's staging browser check is cloud's, recorded on objectstack-ai/cloud#5304.
  • The cloud remainder (the host fills each row's version from the save receipt, plus the staging browser check) is asked of triage for a cloud card: pm:mailbox — triage#1 · os-warren #36743 comment 7330317456. This PR completes the framework side.
  • The eager en locale chunk budget (check-eager-locale-catalogues / check-eager-closure-budget) needs a console build: NOT MEASURED locally, read from CI.

Verification

Two minutes: run the vitest line under Tests; the five objectstack#38983 cases in the card harness and four in draftReviewPublish-38983.test.ts pass.

Derived gate families (local subset)

node scripts/pm/dispatch-gates.mjs --commands derived 112 commands on 86fbd98; run one by one, exit code captured before any pipe. Later heads add only docs, the changeset and one .describe() wording (spec rebuilt and check:generated re-run green on them).

  • 108 of 112 exit 0.
  • NOT MEASURED, exit 3 (prerequisite, not a finding): check-plugin-teardown-shape.mjs --self-test (its fixture is pinned to a commit this shallow clone cannot reach), check:skill-examples (needs a @objectstack/client-react dist), check:dual-build-cjs-loads (needs every package's dist).
  • NOT MEASURED, exit 124: check:type-check-debt (its re-measure passed the 300 s local cap).
  • CI runs all four. Report: 助手对话里的草稿审阅卡加「发布」按钮:人点一下发布这一轮的草稿 #38983 comment 7331415099.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufziUBsnPje7KHsByhN5


Generated by Claude Code

…he card's Publish pins

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziUBsnPje7KHsByhN5
…o the version the turn saved

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziUBsnPje7KHsByhN5
…results and the host's pinned publish

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziUBsnPje7KHsByhN5
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation protocol:ai tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 4 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/spec/authorable-surface/ai.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

6 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/api/client-sdk.mdx (via meta.publishItem (sdk, the route ledger binds it to POST /api/v1/meta/:type/:name/publish, selected by route anchor /meta/:type/:name/publish), publishItem (sdk, the bare tail of client method meta.publishItem, bound to POST /api/v1/meta/:type/:name/publish))
  • content/docs/api/metadata-api.mdx (via /meta/:type/:name/publish (route, a path literal in a comment on a changed line))
  • content/docs/concepts/metadata-lifecycle.mdx (via /meta/:type/:name/publish (route, a path literal in a comment on a changed line))
  • content/docs/data-modeling/currency.mdx (via /meta/:type/:name/publish (route, a path literal in a comment on a changed line))
  • content/docs/deployment/cli.mdx (via /meta/:type/:name/publish (route, a path literal in a comment on a changed line))
  • content/docs/kernel/contracts/metadata-service.mdx (via /meta/:type/:name/publish (route, a path literal in a comment on a changed line))

⛔ 2 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-1.mdx (via /meta/:type/:name/publish (route, a path literal in a comment on a changed line))
  • content/docs/releases/v17/17-2.mdx (via /meta/:type/:name/publish (route, a path literal in a comment on a changed line))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/authorable-surface/ai.json) — pages documenting those are invisible to this run
  • the SDK route bridge reached 71 of 254 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 183 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 4203db7e4aeb52b1f1660f558430440a70d1e462 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 036876a3cf93cd6f360e10f81a996126e02542e8 — the merge of head 2bef835b10b9ca84706ed7b798a8a0418b366800 into base 4203db7e4aeb52b1f1660f558430440a70d1e462, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 036876a3cf93cd6f360e10f81a996126e02542e8 && git checkout 036876a3cf93cd6f360e10f81a996126e02542e8
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 4203db7e4aeb52b1f1660f558430440a70d1e462 2bef835b10b9ca84706ed7b798a8a0418b366800 && git checkout -B drift-repro 4203db7e4aeb52b1f1660f558430440a70d1e462 && git merge --no-ff 2bef835b10b9ca84706ed7b798a8a0418b366800

node scripts/docs-audit/affected-docs.mjs --json 4203db7e4aeb52b1f1660f558430440a70d1e462

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 4203db7e4aeb52b1f1660f558430440a70d1e462 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…geset notes the verdictWithheld wording

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziUBsnPje7KHsByhN5
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head ef3e99d · 2026-12-02T01:44Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ef3e99d54ee5d6f5fc3e466148fb04dad66d1b30
Local-runs: none
Scope: packages/spec/src/ai/draft-review.zod.ts + ui/packages/plugin-chatbot/src/chat/DraftReviewCard.tsx, ui/packages/app-shell/src/console/ai/draftReviewPublish.ts, ui/packages/app-shell/src/console/ai/ChatPane.tsx, ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx, ui/packages/plugin-chatbot/src/chat/types.ts, ui/packages/plugin-chatbot/src/index.tsx

PR #39014 for card #38983, with #39015 folded in. Reviewed 2026-12-02T01:50Z on the net diff against main (merge base 571b4947), 25 files. Read, not reviewed: detailSaveAtOnce.ts, draftVersionGuard.ts, mapMessages.ts (extractDraftReview), metadata-client.ts, packages/client/src/index.ts (publishItem), protocol-history-and-publish.ts (the publish door's draft pin), protocol.zod.ts (PublishMetaItemRequestSchema), mcp-authoring.ts (the draft door's save answer and list_drafts verdicts). The remainder of the diff (two test files, eleven locale packs, the changeset prose, the two docs pages, authorable-surface/ai.json) is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept set, DraftReviewItemSchema: gains optional version, z.string().min(1). Right. A row without it parses as before; a row with it was refused by the closed schema and is now accepted, so this is a widening and nothing a released version accepts is refused. The empty string is refused at ['version'], which matters: publishItem and MetadataClient.publish drop an empty draftVersion and would send the publish unpinned, so the schema, the card's publishBlock and the host's if (!draft.version) each close that door.
  • Key name version, optional. Right against seat ruling (1) in claim 7330386128.
  • verdictWithheld describe and docblock line (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). Right, text only, shape unchanged. Checked against mcp-authoring.ts on main: list_drafts answers verdict: null with verdictWithheld { code: MAX_RECORDS_EXCEEDED, status: 400 } for a draft past the cap or the time budget, and with the type or item read refusal otherwise. The new sentence covers both; the absent-draft case (RESOURCE_NOT_FOUND, "is readable here") reads as the first arm.
  • Contract flip, docblock "What the card does not do" becomes "What the card publishes". Right against ruling (2); the changeset states the flip in its own paragraph, and the ChatbotEnhanced.tsx comment and the card docblock flip with it. No other statement of the old contract survives in the implementing files (AnswerSaveActions.tsx says "Nothing is published from the chat" about a different control, the answer save, which still publishes nothing).
  • Generated surface. packages/spec/authorable-surface/ai.json gains ai/DraftReviewItem:version and content/docs/references/ai/draft-review.mdx is regenerated; both follow from the schema line and Spec property liveness, Build Docs and Lint · docs & code guards are green on the head.
  • Public surface, @object-ui/plugin-chatbot. DraftReviewCardProps.onPublishDraft and ChatbotEnhancedProps.onPublishDraft (both optional) and the exported type DraftReviewPublishResult. Additive: with no prop the card renders no button and keeps its former hint. Right.
  • Public surface, @object-ui/app-shell. New module draftReviewPublish.ts (publishReviewedDraft, useDraftReviewPublish), wired in ChatPane.tsx by one import, one hook call and one prop. Right.
  • Producer. No producer of the data-draft-review part lives in this repo, so no in-repo writer needed to change. The premise for the cloud producer holds on main: the draft door's save answer carries saved.version when the store returns one (mcp-authoring.ts, the identity block), which is the token the publish door compares.
  • Gate verdicts. Every check-run on the head is success or skipped in its newest run. Check Changeset and PR-body guards each show earlier red or cancelled runs on this sha (before the protocol line moved to added and before the claim amendments); their newest runs, 2026-12-02T01:21Z and 2026-12-02T01:18Z, are success. Governed Surface Queue Guard is success; Queue verdict is skipped outside the merge group.

② Semver level

Clause-②: yes (widening)

The PR body and the changeset both read Clause-②: yes (widening) and Metadata-protocol: added. added is right by the gate's own reading: the authorable-surface ratchet records DraftReviewItem, a key enters it, and seat amendment 7331458902 moved the claim's none to added for that reason. A protocol kind takes at least minor on the package the diff moves: @objectstack/spec is minor. The three UI packages ship patch for additive optional props and strings, a non-protocol change. Check Changeset is success on the head. The changeset's prose matches what the diff publishes, including the sentence that the "nothing is published from the chat" contract changes and that a part without version draws the card with Publish disabled.

③ Boundary flags

  • Dev flag, protocol line deviates from the agreed claim (none to added). Answered by the seat in amendment 7331458902; the gate agrees.
  • Dev flag, file surface wider than the claim (app-shell host, the docs page, the surface shard). Answered by amendments 7331458902 and 7331521737; the diff stays inside the amended surface.
  • open_questions: Fixes or Part of 助手对话里的草稿审阅卡加「发布」按钮:人点一下发布这一轮的草稿 #38983. Answered by the seat in amendment 7331458902: Fixes, the framework side is complete, the cloud remainder (the producer fills version; acceptance 4's staging browser check) goes to a cloud card asked of triage on mailbox pm:mailbox — triage#1 · os-warren #36743 (7330317456). Consistent with ruling (3). Open item for the seat, not for this head: that cloud card is not yet named on the PR body.
  • Out-of-scope finding, eager locale chunk budget not measured locally. Carried by CI: Build & E2E UI, Lint UI and Lint · repo & tooling gates are success on the head.
  • Discard. Optional on the card, not built, and the docblock, card and changeset each say nothing is discarded from the chat. No flag.
  • SQL push-down. Not applicable: the diff adds no query, no id materialisation and no in-app join. The host issues one item publish per click.

④ Design judgment

No must-fix, no should-fix.

packages/spec/src/ai/draft-review.zod.ts, against rulings (1) to (3) and its first consumer. Holds. I tried to break the sentence "the pin is what makes the click mean publish what the card shows" at the door it cites. publishMetaItem reads the draft at the address, then, when draftVersion is present, matches the token against that row's hash through storedParentForToken before any rule judges it; a mismatch, or no pending draft, is refused 409 METADATA_CONFLICT and nothing is promoted, and expectedDraftHash holds the same row through the write. PublishMetaItemRequestSchema.draftVersion names "a draft save's receipt version" as the token that serves it, which is what the new describe tells the producer to state. So a later turn's save, a person's edit, a discard or a publish in Studio after the turn each end in a refusal, never in a publish of something the card did not show. The row's address fields (package, type, name, each non-empty) are exactly what the publish needs; the row carries no bundle member, and a member draft published with no member would meet the canonical draft's hash and be refused, so the missing member cannot publish the wrong row. The verdict on the row may be stale (verdictRead: 'save'), but the publish door judges the draft again, so the card's gate on publishable is a courtesy and the door is the authority. The docblock's "The agent is given no publish" holds: the diff adds no tool.

ui/packages/app-shell/src/console/ai/draftReviewPublish.ts, sentence by sentence. Agrees. It sends { type, name, packageId: draft.package, draftVersion: draft.version } through publishDetailSave with hadDraft true and no pinned guard: in that helper takeBack runs only when hadDraft is false, so a refusal never resets the assistant's draft, as the docblock says. A row with no version returns refused before any call. isDraftVersionConflict reads status 409 plus the top-level code, which is where errorCodeIs and the client's error put it, so the conflict mapping and refusalOf read the same field; a 403 keeps its PERMISSION_DENIED code and sentence (acceptance 3). emitMetadataRefresh fires on both outcomes inside the helper.

ui/packages/plugin-chatbot/src/chat/DraftReviewCard.tsx. Agrees. publishBlock orders no-version, no-verdict, not-publishable; publish re-checks the block before calling the host, so a disabled row cannot reach it; published and conflict remove the button, refused keeps it; a throwing host is drawn as a refusal. The publishing state is set synchronously inside the click handler before the first await, so a second click finds the button disabled. Without the prop nothing changes. ChatPane.tsx, ChatbotEnhanced.tsx, types.ts and index.tsx only pass the prop and export the type; their comments match the code.

Accepted deviations and follow-ups, none of which changes correctness or the contract:

  • N1 (nit) — the card's hint. With a host prop the hint reads "Nothing is published yet. Publish a draft here, or review the drafts in App Studio." It does not follow row state: until the cloud producer states version every Publish under it is disabled, and after a row shows "Published" it still says nothing is published yet. Copy only; best closed with the cloud follow-up, when the first enabled button ships.
  • N2 (nit) — one sentence for every 409. The door also answers 409 METADATA_CONFLICT when the draft is no longer pending (already published or discarded in Studio, perhaps through the card's own review link) and when the store loses a promotion race. The card shows all three as "Changed since this turn, not published. Review it in App Studio." and removes the button. Safe in each case (nothing is published by the click); the sentence is loose only for the already-published draft.
  • N3 (nit) — reader and producer order, for the cloud follow-up card. extractDraftReview parses the part through the closed schema, so a Console built on a spec without this key refuses a part whose rows state version and draws no card at all. The producer must start stating version only on a pin that carries this release. Not a defect of this head; it belongs in the cloud card's acceptance.
  • N4 (nit) — "the card sends" in the schema docblock and the version describe. The card calls the host's onPublishDraft; it is the Console host that sends the publish with draftVersion (the docs page says "the host sends"). Another host of DraftReviewCard owns that pin itself. Wording only.

Observation, not a finding: the chat's publish pins the draft and not the live row (no parentVersion), so it replaces whatever is live at the address, as the Changes drawer's publish does. The card's scope asks for the draft pin only, and a live row can advance past a pending draft only through a direct publish-mode save, which leaves this unchanged from Studio's behaviour today.

Implemented-by: claude/project-thread-auax7i
Reviewed-by: session_01WGufzhGA3zoCFquQgku4pm

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 review · PR #39014 (#38983, #39015) · head ef3e99d5 · 2026-12-02T01:52Z

VERDICT: ACCEPT. No must-fix and no should-fix. The contract-tier record 7332178109 is PASS on this head, with four accepted nits.

  • Face. l1-face at ef3e99d shows 65 success, 17 expected skip and 0 pending, and mergeable_state is clean. Its all-checks flag is runs that this same sha superseded:

    Its keywords-other-cards flag (Fixes #39015) is intended. 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 is the one-line verdictWithheld describe, claimed for this branch, and the diff makes exactly that change.

  • Declarations.

    • Clause-②: yes (widening): DraftReviewItemSchema gains the optional non-empty version, and nothing a released version accepts is refused.
    • Metadata-protocol: added: forced, because DraftReviewItem is on the authorable-surface ratchet (packages/spec/authorable-surface/ai.json moved).
    • Spec minor and the three UI packages patch.
    • Skills-docs: none with its reason (a host-written stream part no skill teaches). The docs page plugin-chatbot.mdx and the generated reference move here.
    • These match the seat's amendments.
  • Against the seat rulings.

    • The key is optional.
    • The docblock's "What the card does not do" flips to "What the card publishes", and the ChatbotEnhanced line flips with it. The changeset says so in its second paragraph.
    • Publish is enabled only on a row with a version and a publishable verdict. A row with no version is never sent: publishReviewedDraft returns before any call, and the card draws the button disabled.
    • The cloud producer that states version is out of this repo and is a follow-up.
  • Host. publishReviewedDraft goes through publishDetailSave, Studio's own pinned item publish. It passes packageId = the row's package, draftVersion = the row's version, and hadDraft true, so a refusal never resets the assistant's draft. 409 METADATA_CONFLICT maps to conflict. Any other refusal keeps the platform's code and sentence. The click is always the signed-in person's, and the agent gains no publish.

  • Sentence read (changeset). It is true of this head. It names the widening, the flipped contract, the pin and its 409, the disabled rows, and what a host must state. It explains the protocol line.

  • For the seat.

    • The cloud producer follow-up card is not yet named in the PR body. Please file it, and add one line to the body once it has a number. That is paper only, and the head does not move.
    • Record nit N3 belongs on that card. The Console parses the part through the closed schema, so a producer must state version only toward a Console on a spec that carries this key. Otherwise the part is refused and no card draws.
  • Nits, accepted (record N1–N4).

    • The card's hint does not follow row state.
    • Every 409 reads "changed since this turn", including a draft already published in Studio. Nothing publishes in any of those cases.
    • The N3 version-skew note above.
    • "the card sends" where the Console host sends.

Next: zone landing, after the seat names the follow-up. The merge closes #38983 and #39015.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 delta · PR #39014 (#38983, #39015) · head 2bef835 · 2026-12-02T02:30Z

ACCEPT, on the landing head 2bef835b10b9ca84706ed7b798a8a0418b366800.

Next: zone landing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对

ACCEPT — PR #39014 @ 2bef835b10 (cards #38983 and #39015; card thread of seat os-support-ai; epic objectstack-ai/cloud#5304, the maintainer's ask).

  • Reviews adopted: contract-tier L2 PASS 7332178109 (no must-fix, no should-fix, four nits accepted); L1 ACCEPT 7332221938, and the L1 delta 7332919110 on this head. The landing head is the reviewed ef3e99d5 plus one clean merge of main (4203db7e, its tree equals the merge-tree), with the session trailer.
  • Seat rulings hold on the tree: an optional version key on DraftReviewItemSchema (Clause-② widening, Metadata-protocol added, spec minor); the "nothing is published from the chat" contract flips in the docblock, ChatbotEnhanced.tsx, the docs page and the changeset; Publish is disabled on a row with no version; the publish reuses the pinned item publish.
  • Fixes #39015 (l1-face flag, judged): the card is claimed for this branch (7331501887) and folded by the seat's word; its describe and docblock text are in this diff.
  • Fixes #38983: the framework side is complete. The remainder is the cloud host's: it fills each row's version, gated on a Console whose spec carries the key (L2 nit N3), plus the staging browser check. Asked of triage on pm:mailbox — triage#1 · os-warren #36743 (7330317456, nudged with N3); the seat names the cloud card on 助手对话里的草稿审阅卡加「发布」按钮:人点一下发布这一轮的草稿 #38983 once filed.

落地

reading value
check-governed-merges.mjs --pr 39014 NOT governed; 688 changed lines ≤ 3000
pr-state.mjs on 2bef835b 63 success · 11 expected skip · 0 failed · 0 pending; mergeable_state clean
landing-k.mjs --pr 39014 K = 1 < 15
l1-face.mjs --pr 39014 one flag (keywords-other-cards), judged above; every other leg ok

State change: ready for review + auto-merge, by the owning seat; on merge it closes #38983 and #39015.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 2, 2026 02:33
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge December 2, 2026 02:33
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 84d209d Dec 2, 2026
75 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-auax7i branch December 2, 2026 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:ai size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants