Skip to content

meta: an inherited object-property name used as a metadata type is not refused 400 like any other unknown type #35120

Duplicate

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Filing gate: ① a product defect with a measured public reach (below). Filed by area o1-C on seat 1's routing (2026-11-18 05:16Z), from a finding of the contract review of PR #35059; no grade or state label, for triage.

Rule

A /meta type segment (and an MCP type argument) that is the name of an inherited object property is an unknown metadata type, and is refused 400 INVALID_REQUEST exactly as fieldz is. Today the spelling table is consulted in a way that treats such names as recognised spellings, so the refusal is skipped and the request fails later with the wrong status.

Reach (measured, origin/main 0e46840, real kernel on SqlDriver)

  • PUT /api/v1/meta/<inherited-name>/<name> as a user holding manage_metadata: 503, where an unknown type answers 400 INVALID_REQUEST. Nothing is written.
  • GET /api/v1/meta/<inherited-name> and /<inherited-name>/<name>: 503 / 500 (REST) or 404 (dispatcher) instead of 400.
  • No item, name or body is returned on any of these paths, and nothing is written or deleted; the defect is the refusal's status and error code only.
  • Control: fieldz answers 400 INVALID_REQUEST on the same doors.

Where

packages/spec/src/meta-spelling/metadata-url-spelling.ts (canonicalMetaUrlType, unrecognisedMetaTypeRefusal): own-key lookup is the expected fix; pluralToSingular in the same package already guards this way.

Why

AI clients probe types by name; a wrong 503/500 reads as an outage and invites retries, where 400 tells the caller to fix its argument. Every door that folds a type shares the helper, so one fix covers REST, the dispatcher and the MCP door.

Reader

The spec lane (packages/spec meta-spelling), one small PR with a pin per door kind.

Dedup: canonicalMetaUrlType (22 hits), unrecognisedMetaTypeRefusal (9 hits), inherited meta type, constructor meta type: none covers this (closest closed: #27514, #9744, other unknown-type answers).

Activity

  1. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch: p2 · domain:spec · pm:queue. Grading principle of 2026-11-18, item 3: the defect is the refusal's status and code only (503/500/404 instead of 400) for a type segment no ordinary request spells; nothing is read, written or deleted, as the card measures. The fix lives in packages/spec/src/meta-spelling/metadata-url-spelling.ts.

  2. added
    domain:spec
    pm:queue
    priority:p2
    on Nov 18, 2026
  3. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

    Same root, write side (2026-11-18T07:03Z): on the protocol over SqlDriver, saveMetaItem with an inherited object-property name as type (draft mode) throws SERVICE_UNAVAILABLE 503 ("The metadata store could not be read"), and deleteMetaItem with one throws TypeError: type.endsWith is not a function from the second canonicalisation. Nothing is written. Measured through PR #35103's door (unmerged); the fix in metadata-url-spelling.ts covers both. Source: os-dev report 6971531844 on #34766.

  4. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

    Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205

    Grade: p3 (was p2) · area:build · Bug · impeded × rare · an inherited object-property name used as a metadata type is not refused

  5. added and removed
    priority:p2
    on Nov 18, 2026
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:build · domain:spec · Bug · p3 · pm:queue · size XS; rationale: a /meta type segment (or MCP type) that names an inherited object property is not refused 400 INVALID_REQUEST like any other unknown type. It is an API edge reached only by a malformed type name, with no data effect, so p3 stands (audit restatement, tier 3). Graded, not chased (area:build has no seat). Recorded 2026-11-27T18:20Z.

  7. objectstack-fleet commented on Dec 5, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Folded 2026-12-05T02:31Z into this week's area:build sweep card #39767, as row "#35120 — meta: an inherited object-property name used as a metadata type is not refused 400 like any other unknown type", on the maintainer's word in the triage report: 「同意,14 个专题都开,内部卡并清扫卡」. This card is internal engineering work with no direct customer effect, small and unclaimed, which is what the sweep takes. Its body stays the detail of the row; the sweep PR that ships the row names this card. Reopen it if it turns out larger than one file or one mechanism.

  8. removed
    pm:queue
    on Dec 5, 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

    area:builddomain:specpriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions