Skip to content

GetMetaTypesResponseSchema 没有声明 schema 和 form:每个 /meta/types 条目都在下发这两个键 #36887

Description

@objectstack-fleet

triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

Filing gate: ① a contract defect, filed by triage at repo:objectstack#3's request (mailbox #36743, comment 7125340250, item 2). Source: L1 7125297029 and L2 7125274794 on PR #36881 (#36860 part a), outside that diff.

What happens

Every /meta/types entry carries schema and form. The wire schema GetMetaTypesResponseSchema in packages/spec/src/api/protocol.zod.ts (~210, main d95d34f) declares neither. PR #36881 declares the new list key, but the two older keys stay undeclared. A typed client, and the generated contract, cannot see two members the server always sends.

reach: read by the L1 and L2. It reaches anyone building a client against the published protocol types.

Expected

The wire schema declares every member the route serves.

Acceptance

  • GetMetaTypesResponseSchema declares schema and form with their real shapes, using the existing form-layout schema rather than z.unknown() where one exists.
  • The generated contract and baselines are refreshed. A Metadata-protocol line is in the changeset, as the repository requires.
  • A test parses a real /meta/types answer with the schema, strictly.

Order

With or after PR #36881, so the three keys are declared together. Before #36860 part (b).

Dedupe: open issues for GetMetaTypesResponseSchema return only #36860, the parent this follows.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:spec
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:spec · priority:p2 · Bug · pm:queue · size XS.
    Rationale: the published protocol schema omits two members that the route always sends. Clients copy the published contract, so this is read like a wrong shipped sentence: "builders, often", p2. The card sits in the #36860 family (ux), and seat 3 takes it, as its request said.

  3. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop · area:ux card thread · 2026-11-24T09:26Z
    Session: session_01WGufzg7mFFG5b13DcQ93kf
    Thread session: session_01WGufzg7mFFG5b13DcQ93kf
    Account: os-support-ai
    Branch: claude/issue-36887-meta-types-schema-form (the #36860 card thread's pinned branch carries #36926, held for the maintainer's review)
    Worktree: objectstack-issue-36860
    Domain: domain:spec
    Seat: repo:objectstack#3
    Area: ux-card-thread
    File surface: packages/spec/src/api/protocol.zod.ts (GetMetaTypesResponseSchema entry members), the spec generated artifacts it moves (authorable-surface api shard, JSON schema, docs reference), a strict parse test of a real getMetaTypes() answer in packages/metadata-protocol; changeset (stop on breach; explain in the report)
    Container & model: S, mode:thread, model: default (dispatch-gates --tier: Clause ② suspect on packages/spec/src/**; the contract review rides CONTRACT_REVIEW_TIER via the seat), effort: high
    Clause-②: yes (widening)
    Metadata-protocol: added (new declared members on a published response schema move the api authorable-surface shard)
    Responsibility: the spec's own wire schema, objectstack (this card carries the fix) | none: no other path declares these members | anyone typing a client against the published protocol types; the console reads schema and form today through its own entry type
    Thread-read: 7125404665
    Premise: holds — measured on main 3f568c1: GetMetaTypesResponseSchema declares list (from #36881) but not schema or form, which getMetaTypes() serves on every entry (MetaTypesListingEntry, packages/metadata-protocol/src/protocol-meta-types-listing.ts). The same row also serves schemaId and actions, which the wire schema does not declare either; the card's Expected line ("declares every member the route serves") and its strict parse test cover them, so they are declared here too.
    Serial constraints cleared: #36926 (#36860 part b) touches the listing translation, not this schema; node scripts/pm/overlap-check.mjs before every push.
    Resume-from: none

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

    @objectstack-fleet
    ContributorAuthor

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

    Report at 2026-11-24T10:44Z for PR #36948 (draft, head ce27cea1).

    {
      "issue": 36887,
      "status": "done",
      "branch": "claude/issue-36887-meta-types-schema-form",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36948",
      "session": "session_01WGufzg7mFFG5b13DcQ93kf",
      "premise_still_valid": true,
      "summary": "GetMetaTypesResponseSchema entries now declare schemaId (string), schema (JSON Schema record, optional), form (FormViewSchema, optional) and actions (ActionSchema[], optional): every member getMetaTypes() serves. schemaId and actions were undeclared too and are covered by the card's Expected line and strict test (stated in claim 7127426588). The response gained a parsed shape, so GetMetaTypesResponseParsed is declared and its Iso pin removed (888 -> 887). 12 dropped-refinement sites declared (FormViewSchema / ActionSchema embedded). Server output unchanged. 183 changed lines, not governed.",
      "tests": "metadata-protocol protocol.meta-types-response-schema-36887.test.ts: 4 passed (strict parse of a real answer through JSON incl. the synthesised webhook arm and a plugin-registered datasource action; controls: undeclared key reported, malformed form refused). Red before: 82 stripped members on the old spec dist. spec src/api + alias pin: 65 files, 2123 passed.",
      "gates": "dispatch-gates --ran: 121 derived, 121 run, 0 NOT-MEASURED, all exit 0 (engine-double-contract after --write; 7 families derived by the ledger commit run green). spec check:generated --fix: 3 stale regenerated and re-checked. check-changeset-no-major with the PR body: exit 0 (widening, added, spec minor). check-governed-merges --branch: NOT governed, 183 lines. overlap-check: clean. tsc clean: metadata-protocol. CI: pending at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "0 REST proxy writes; relay dispatches for this card: 3 (claim 7127426588 with labels + assignee; pr_create #36948; this report). git pushes: 2 to claude/issue-36887-meta-types-schema-form (branch name approved by the maintainer on a decision card).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  6. removed
    pm:dispatched
    on Nov 26, 2026
  7. github-actions commented on Nov 26, 2026

    @github-actions
    Contributor

    os-closed-card-sweep — machine-findable marker for this generated comment.

    Removed the pm-loop state label(s) this closed card no longer claims: pm:dispatched.

    A state label claims work is in flight. This card is closed on a merged delivery, so the claim
    is stale; every other label is left exactly as it was found. Nothing here is a judgement about
    the card, and no verdict-bearing label is ever touched by this sweep.

    posted by half-state-patrol run 45733194792 · trigger workflow_dispatch

    Generated by Claude Code

  8. added 2 commits that reference this issue on Dec 1, 2026
    4f9a3f8
    84b1e0c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:specpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions