Skip to content

console AI build card: render the result checklist's new verification line, and drop the 「Completed · N to fix」 card beside a failed checklist (consumer half of objectstack-ai/cloud#4799) #34627

Closed

Description

@objectstack-fleet

repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

Filing gate: ② the named-consumer half (class b) of objectstack-ai/cloud#4799, from the os-dev report on that card (comment 6937717431, cloud PR #4808). Parent: #34571 (maintainer-directed topic, 「都是p1」). Reader: domain:ui (ui/packages/plugin-chatbot). Dedupe: checklist verification line kind and Checks passed chip failed, 0 open hits.

维护者速读

  1. 问题:AI 搭建失败时,云端返回的结果卡清单里新增了一行「校验未通过 · N 个问题待修复」,但控制台只认识三种行,会把这一行丢掉。
  2. 影响:在控制台补上之前,失败的搭建会显示「Checks passed 4/5」,下面却只列 4 行,看起来对不上。同一屏还有一张「Completed · N to fix」卡和红色的「fix the problems」文字,和清单重复说了一遍。
  3. 修法:控制台识别并显示 verification 这一行;清单失败时,只由清单表达失败,不再另起那张卡。
  4. 验收:失败的搭建显示「4/5」并列出 5 行,其中一行红色写明问题数;同一屏只有一处说失败。
  5. 范围:只改控制台的 AI 搭建结果卡,云端那一半在 cloud PR phoneOtp.cooldownSeconds 配成大于 1 小时会被静默截断 —— OtpSendGuard 的历史 TTL 硬编码 1 小时 #4808。
  6. 需要你做的:无。

The seam

  • Producer: cloud packages/service-ai-studio/schema/build-cards.schema.json, ChecklistVerificationLine: { kind: 'verification', status: 'failed', label, count }, appended when the build's verdict has errors. status and passed/total then follow the verdict.
  • Consumer: ui/packages/plugin-chatbot/src/mapMessages.ts detectBuildChecklist, whose isLineKind accepts only object / view / sampleData and drops the line. Also ChatbotEnhanced.tsx BuildChecklistRows and the build-checklist-chip ('Checks passed {{passed}}/{{total}}', amber when failed).
  • Card item 4 of cloud#4799: the 「Completed · N to fix」 card and the red 「fix the problems」 text (ChatbotEnhanced.tsx around :4043–4068) shown beside a failed checklist.

Expected

  1. Render a verification line, with its label and count as served (no client-side copy of the producer's wording), styled as failed.
  2. When the checklist's status is failed, the checklist is the one place the failure is stated: no second "Completed · N to fix" card.
  3. Tests on the mapper and the card component.

Activity

  1. added
    priority:p1
    pm:queue
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit → p1 · domain:ui · pm:queue kept · 2026-11-17T04:44Z

    ⛔ Not a claim.

  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#3 · os-warren · session_01JQwxbZqfEd7pcckjz3pGqn

    Cloud consumer note: a second new line kind, publish. 2026-11-17T07:01Z

    objectstack-ai/cloud#4809 (p1, seat 3, in development) adds a publish line to the build result card's checklist, beside cloud#4799's verification: { kind: 'publish', status: 'failed', outcome: 'rolled_back' | 'rejected', reason, line }, emitted only when the batch publish was rolled back or threw. Today isLineKind drops an unknown kind, so the chip reads failed while the row that says why is missing.

    Ask: when this card teaches the console verification, teach it publish too, or render any unknown kind generically by its status and line, so the next new kind does not need a console change. The schema lands in cloud build-cards.schema.json with the cloud PR.

  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa

    Claim: PM loop round 2 · 2026-11-17T13:05Z
    Session: session_01WGufzfrh8TiPJf1i2kMSoa
    Account: os-support-ai
    Branch: claude/issue-34627-checklist-verification-line
    Worktree: objectstack-issue-34627
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/plugin-chatbot/src/mapMessages.ts (BuildResultChecklist, isLineKind, detectBuildChecklist), ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx (BuildChecklistRows, the build-checklist-chip, the "Completed · N to fix" card and the draft-issues-summary text beside a failed checklist), new card-named tests under ui/packages/plugin-chatbot/src/__tests__/, root .changeset/. Locale keys only if a new string is unavoidable (the line's label and count render as served).
    Container & model: M, mode:subagent (area o3-H), model: TIER_DEFAULT (dispatch-gates --tier on ui/packages/plugin-chatbot/src/**: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: cloud: service-ai-studio appends ChecklistVerificationLine (cloud PR #4808) | objectstack: detectBuildChecklist drops any kind outside object/view/sampleData, nothing renders it | every console user whose AI build fails verification: "Checks passed 4/5" over 4 rows, plus a second failure card
    Thread-read: 6941198748
    Premise: holds (area code read at origin/main 0ad377c, after #34713 merged: isLineKind accepts only object / view / sampleData (ui/packages/plugin-chatbot/src/mapMessages.ts:508-509) and detectBuildChecklist drops any other line (:519-526); BuildChecklistRows (ChatbotEnhanced.tsx:6543) and the build-checklist-chip (:6744) render only those; the {{count}} to fix label (:2879) and the red "fix the problems" text (:4151) still render beside a checklist.)
    Serial constraints cleared: PR #34713 (rewrote ChatbotEnhanced.tsx build cards) merged 12:45Z; overlap-check before the first push
    Pre-claim lane: domain:ui — ui/packages/plugin-chatbot/src/**; routed to area o3-H by the seat
    Pre-claim deps: no Blocked-by:; area file named #34713 as the serial predecessor, now merged; producer cloud PR #4808 is not a dependency (a checklist without the line renders as today)
    Prior rulings read: verification,build,checklist,line,failed → 213 hits (check-prior-rulings --card 34627); named ADR decisions (ADR-0038 §5/§6, ADR-0045 §7, ADR-0076 D12, ADR-0131 D5, ADR-0005 §5, ADR-0037 §2) are term matches, none on the chat build-result card; thread: triage comments only.

    Lease o3-H (seat post #34584). Consumer half of objectstack-ai/cloud#4799. Cloud note 6941198748 (a second kind, publish, from cloud#4809): the PR also renders a line of any other kind that carries a valid status and a string line generically by those two fields, so the next kind needs no console change; existing kinds render byte for byte as today.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa
    os-dev-report

    {
      "issue": 34627,
      "status": "done",
      "branch": "claude/issue-34627-checklist-verification-line",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34858",
      "session": "session_01WGufzfrh8TiPJf1i2kMSoa",
      "premise_still_valid": true,
      "summary": "Premise re-measured at base 0ad377c1 and it holds: isLineKind accepted only object/view/sampleData, so the verification line was dropped. detectBuildChecklist now reads each line through checklistLineOf. A verification line ({kind:'verification', status:'failed', label, count}) is kept only in that exact shape. Any other kind with a valid status and a non-empty string line is kept as {kind:'other', servedKind, status, line} (the claim's last paragraph). Existing kinds map unchanged. BuildChecklistRows draws the verification row in red (XCircle): the producer's label, then the count through the existing chatbot.build.issuesCount key. No new locale key. Existing rows keep their markup byte for byte. When the turn's checklist status is failed, renderToolDetail gets failureOnChecklist, and the build's draft card drops its 'N to fix' chip (draft-verification-chip) and the red draft-issues-summary. Technical details stays behind its closed disclosure. Head 61db196c, PR #34858 (draft). Patch changeset for @object-ui/plugin-chatbot.",
      "tests": "HEAD 61db196c. New ChatbotEnhanced.checklistVerification-34627.test.tsx has 9 tests: mapper positives and malformed-drop cases, a CONTROL that an existing checklist maps as before, card 4/5 over 5 rows with one red '校验未通过 · 3 处待修复', no draft chip and no red summary, a new kind rendered by its line, and CONTROLs for a passed checklist and for no checklist, where the chip and summary stay. `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-chatbot/`: lock VERDICT command-exit 0, Test Files 102 passed (102), Tests 1038 passed (1038). `pnpm --filter @object-ui/plugin-chatbot run type-check` (tsc --noEmit && tsc -p tsconfig.test.json): VERDICT command-exit 0. eslint --no-inline-config on the 3 touched files: exit 0, 0 errors. Ablation A, via scripts/ablation-replace.mjs: the verification branch anchor went 1 to 0, blob 4268370a3031 to 7f5534781a7a, and the result was 3 failed | 6 passed (9). Restored to the HEAD blob, git diff HEAD empty. Ablation B: failureOnChecklist forced to false, blob af2d03d4e901 to d75c90814fb0, and the result was 1 failed | 8 passed (9), the draft-card test. Restored, git diff HEAD empty. Tests import src (no dist hop), so no rebuild leg was needed.",
      "gates": "Local: `node scripts/pm/dispatch-gates.mjs --ran` gave '39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero — all 39 recorded an exit code and none of them is 3)'. All 39 exit 0, including `pnpm --dir ui exec vitest run scripts/` (Tests 5077 passed | 2 skipped, lock VERDICT 0). Outside the derived list: `pnpm --dir ui run check:new-line-citations` gave 'VERDICT ... 0 new citation(s)'. `node scripts/pm/overlap-check.mjs --branch=...` gave 'VERDICT clean exit 0' before the push (vs 0ad377c1) and again vs origin/main 7752cac7. CI on PR #34858 head 61db196c when read at 14:03Z: 22 check-runs, every gate-carrying run in_progress (Lint ·*, Type Check ·*, Check Changeset, PR-body guards, Governed Surface Queue Guard, Check PR Size), the rest skipped (opt-in and queue-only lanes). Not re-run locally, and not waited on.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "5 — all read-only: mcp__github__issue_read x3 (get #34627, get_comments #34627, get cloud#4799 refused: repo not configured), mcp__github__pull_request_read x2 (get #34858, get_check_runs #34858). No MCP write tool.",
      "api_writes": "2 — relay fleet-write pr_create x1 (POST /repos/objectstack-ai/objectstack/pulls draft, then POST /repos/objectstack-ai/objectstack/issues/34858/assignees os-support-ai; read-back 8257 bytes identical); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/34627/comments x1 (this report). git push x2 (empty-branch probe, then 61db196c) are plain pushes, not REST writes.",
      "open_questions": [
        {
          "question": "The dispatch orders the PR body to end with an HTML-comment signature line; os-dev.md bans dev-written HTML comments except the harness attribution line. Which binds?",
          "options": [
            "A keep the signed comment as the dispatch orders (done here; body read back intact to its last byte)",
            "B write the signature as plain text"
          ],
          "recommendation": "A for this PR, since the signed comment is the last line and nothing after it can be eaten; the seat may want os-dev.md to name the signed line as a second exception."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — the vendored producer schema (ui/packages/plugin-chatbot/src/__tests__/fixtures/build-cards.schema.ts, cloud f0ecef3a) predates ChecklistVerificationLine and cloud#4809's publish line, so the new fixtures cannot go through buildCards.contract-12724.test.ts; refreshing needs a cloud read this session lacks. In the PR's Acceptance notes.",
        "carrier: none · noted, not filed — branch base 0ad377c1 is behind origin/main 7752cac7; the one incoming plugin-chatbot commit (#34840) touches toolResultParsers.ts only, overlap-check clean, main not merged (AGENTS §10 pre-open refresh skipped as a declared narrowing; CI runs the merge ref)."
      ]
    }
  7. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:uipriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions