Skip to content

mcp: verify_build and create_metadata do not surface a publish-time refusal (an unsupported autonumber format) before publish #32456

Closed

Description

@objectstack-fleet

domain:server#6 · huangyiirene · session_01J8VVAnTcb4cZVkPdhkPicW

Carries the "Secondary" item of #32396; #32396 keeps its main defect, fixed by PR #32454 (Fixes #32396). The seat splits this item off so it is not lost when that PR closes the card.

Filing gate: ① product defect, reported on a public entry (MCP, ObjectOS Cloud os-test, 2026-11-11, #32396's reporter).
reach: public entry, measured by #32396's reporter over MCP. ⚠ First step: re-measure in-repo on main.

What happened (from #32396, verbatim)

The bad autonumber format was staged through MCP create_metadata(type: object) → status: drafted with no warning, and MCP verify_build then answered errors: 0 ("structurally clean"). The lint-autonumber-formats rule is only enforced at publish. That is the save-vs-publish verdict parity #26707 / #26856 closed, but verify_build (and the create_metadata result) still do not surface it.

Expected

A rule that refuses at publish is reported by verify_build, and on the create_metadata result as a warning, before publish. That is the same verdict parity #26707 / #26856 established for the save door.

Business reason

Who: AI builders and admins authoring over MCP. Without it, they are told the build is clean and only learn of the refusal at publish, after other work depends on it.

Reader

Triage first touch. The fix likely lands in the MCP verify_build / create_metadata paths (packages/mcp, metadata-protocol's verdict).

Duplicate check

gh api search/issues, repo:objectstack-ai/objectstack is:issue, open and closed, 2026-11-11: verify_build autonumber refusal publish 2 hits, #32396 (the parent) and #6015 (a seat post). No card for this.

Activity

  1. added
    bug
    finding
    on Nov 11, 2026
  2. objectstack-fleet commented on Nov 11, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: finding promoted → re-routed to domain:cloud · p2 · 2026-11-11T16:56Z

    ⛔ Not a claim.

    • Producer checked on both mains: MCP verify_build and create_metadata are implemented in cloud: packages/objectos-runtime/src/mcp-build-volume.ts, publish-receipt-recorder.ts and packages/service-ai-studio. objectstack holds only their names (spec platform-tool-names.ts).
    • Lane: domain:cloud + repo:cloud. The platform already has the rule (lint-autonumber-formats). The cloud verify step should run it before publish. If the platform's own build probe (metadata-protocol build-probes.ts) is the right home for the check, that half comes back as its own card.
    • Grade: p2. The publish itself refuses, so the item never goes live. The defect is the late warning.

    Generated by Claude Code

  3. added
    domain:cloud
    pm:queue
    priority:p2
    repo:cloud
    and removed
    finding
    on Nov 11, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

    Claimed 2026-11-16T13:41Z on the owner's question in the cloud seat thread (2026-11-16), verbatim: 「AI 搭建器五张:#32984、#32398、#32397、#32456、#32598(p2) 这些是否应该你认领派发」. This card is domain:cloud and the fix lands in objectstack-ai/cloud, so the cloud seat takes it. Owner priorities 「CI降本,AI 搭建质量 优先」. Kept priority:p2 as triaged.

    Claim: PM loop round 12
    Session: session_01Q4EjjPP1zuWBNq3nBXVei9
    Account: hotlong
    Branch: claude/issue-32456-verify-publish-refusal (in objectstack-ai/cloud)
    Worktree: cloud-issue-32456
    Domain: domain:cloud
    Seat: repo:cloud#5
    File surface: packages/service-ai-studio/src/verify, packages/service-ai-studio/src/tools (create_metadata result), packages/objectos-runtime/src/mcp-build-volume.ts, their tests, one changeset (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: cloud's verify_build and create_metadata (service-ai-studio, objectos-runtime) | cloud#4444 PR #4617 (verify_build now reads each draft's publish verdict off the framework's strict draft read) may already cover it | every author over MCP or the AI builder
    Thread-read: 6801954712
    Premise: inbox-free re-check owed: cloud#4444 (PR #4617, merge 311b4fa20, live in production) made verify_build report every publish refusal under its rule id. The dev measures the autonumber-format case on cloud main first. If verify_build and the create_metadata result already surface it, they return premise_still_valid:false with that reading, plus a regression test if none pins the case
    Serial constraints cleared: #32398 and #32598 (same round): disjoint files

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

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9
    os-dev-report

    {
      "issue": 32456,
      "status": "done",
      "branch": "claude/issue-32456-verify-publish-refusal",
      "pr": "https://github.com/objectstack-ai/cloud/pull/4742",
      "session": "session_01Q4EjjPP1zuWBNq3nBXVei9",
      "premise_still_valid": true,
      "summary": "Measured first on cloud main 1fee288b0 (framework pin 8436f67a), real hosted tenant kernel through the MCP door: create_metadata(type: object) with autonumberFormat 'QJ{YYYYMM}-{0000}' answered drafted with NO issues/verification/warning; verify_build answered failed with autonumber-references-unknown-field (publishVerdict checked 3, refused [object/OBJECT]); the publish refused on the same id. So verify_build's half is already fixed by cloud#4444/PR #4617 and the premise holds only for the create_metadata half (dispatch branch b). Fix: publish-verdict.ts extracts the per-draft read into readDraftPublishVerdict (verify_build unchanged) and exports stagedDraftPublishWarnings, which runs that same strict draft read on the just-staged draft and returns each refusal as a warning under the publish rule id; appendGraphLint in metadata-tools.ts adds them plus a note. appendGraphLint is shared, so create_metadata, update_metadata, create_object, add_field and modify_field all gain it (named in the PR). Warning, not error, because the draft is judged mid-build; verify_build still blocks on it. Card assignee not touched (PM's). PR body opens with 'Refs objectstack-ai/objectstack#32456' as the order says, so merge does not close the card; the seat closes it.",
      "tests": "New gated unit file packages/service-ai-studio/src/__tests__/create-metadata-warns-the-publish-verdict-32456.test.ts: 4/4 pass (create_metadata warns with the rule id, message and path; clean format no warning; update_metadata warns; failed draft read adds nothing). E2E apps/objectos/test/verify-build-publish-parity-4444.e2e.test.ts gains case (d) (file already on periodic.json, no edit there): after building service-ai-studio, 3/3 pass on the real kernel (create_metadata warning, verify_build failed under autonumber-references-unknown-field, publish refused on the same id). Ablation (objectstack scripts/ablation-replace.mjs, src path, the unit suite imports src): anchor 'issues = [...issues, ...refusals];' replaced by 'issues = [...issues]; refusals = [];', anchor 1 to 0, blob 5742b14f to 76d572e4: 2 failed / 2 passed (create and update cases); restored, blob after restore = HEAD blob 5742b14f, git diff HEAD empty. Full suite pnpm --filter @objectstack/service-ai-studio test on 2b2b80aa5: Test Files 223 passed (223), Tests 4417 passed, 19 skipped.",
      "gates": "Local, on head 2b2b80aa5, each exit captured before any pipe: service-ai-studio test exit 0 (lock VERDICT command-exit 0); typecheck of service-ai-studio + objectos (both run check:test-typecheck) exit 0; pnpm check:all exit 0: phase pre 40/40 passed, phase framework 1/1 passed (check:spec-changes-audit, the Changed-spec-surface guard, in check:all since cloud#4736 which is on main), phase post 5/5 passed. Closure build pnpm --filter '@objectstack/objectos^...' build exit 0. dispatch-gates.mjs not run: it is objectstack's tool and its derivation answers for the objectstack tree, not cloud; cloud gates were taken from the dispatch order and cloud's package.json. PR check-runs on 2b2b80aa5: build-and-test skipped, typecheck-and-gates skipped, daily-red-card skipped (draft PR, both required jobs skip by design until ci:tests or pr_ready); NOT MEASURED in CI: the CI reading comes after pr_ready.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no GitHub MCP calls; the huayan production connector was not used",
      "api_writes": "2 — git push (branch, two pushes); relay pr_create (objectstack-ai/objectstack dispatches → objectstack-ai/cloud POST pulls + POST issues/4742/assignees, run 43881074820, read-back identical); plus this os-dev-report comment via post-stamped.mjs on objectstack#32456",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: the write-door warning makes one more strict draft read per write; that read runs the framework's publish gate against the package's drafts. Cost not measured on a big package; verify_build caps its fan-out at 60 reads, the write door reads exactly one."
      ]
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

    Landed: cloud PR #4742 merged as 5f4c31db6, read 2026-11-16T14:17Z. The claim 6918092481 is released in this stroke (assignee removed). The next stroke closes the card and takes pm:dispatched off with it.

  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

    Closing completed 2026-11-16T14:18Z: both halves of this card are on cloud main.

    Hosted production gets it with the next cloud deploy.

  9. removed
    pm:dispatched
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdomain:cloudpriority:p2repo:cloud

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions