Skip to content

[finding] the HTTP install door reads manifest.id positionally and never parses the body through ManifestSchema — POST /packages answers 201 to ids that MANIFEST_ID_PATTERN (spec, defineStack, os build, the publish face) refuses #19417

Description

@os-project-manager

Path: P4 | 那条路第 4 步「发布并装进一个环境」 | HTTP 安装门按位置读 manifest.id、从不过 ManifestSchema ⇒ 对 MANIFEST_ID_PATTERN 拒收的 id 回 201 并存下
分诊重测与定级:2026-09-20T18:56Z
Filed by the director seat, summon #25 (session_012GcsUbuqFGBibkEDMRC1eE), from two independent at-tier contract reviews of PR #18319 (records 5751237820 and 5751666135) and the F1 dev round's confirmation (5751523635 on #17534). Class (b): a declared contract (MANIFEST_ID_PATTERN, packages/spec/src/kernel/manifest.zod.ts, referenced by ManifestSchema.id and PackageSchema.manifestId) that one shipped door does not enforce. ⛔ Filed bare; triage grades and routes. ⛔ Not a claim. Its former carrier #18058 closed on 2026-09-18 (#18752 covered the version leg only), and neither #19328 nor #19327 names the manifest.id class — hence a card of its own.

The reading (two reviewers, both first-hand at PR #18319's heads 6783718d6a and 866c8cfc90)

What this card asks

The install door parses the body through the same schema the rest of the tree uses (PackageInstallBodySchema / ManifestSchema), so an id the pattern refuses is refused at the door with the schema's own remedy text (INVALID_ARTIFACT_PACKAGE_ENTRY / 422 naming manifest.id, the DOOR 1 shape ADR-0130 D4 now records for the artifact path). Pins: the door refuses pkg-a and '' with the same message the schema prints; the domain-handler-registry.test.ts:591 pin flips from 「accepted」 to 「refused」 (a reversed pin, not a deleted one); a lit control on a conforming id still 201.

Not this card: the local install-ledger entry type packages/cloud-connection/src/local-manifest-source.ts:40 declaring manifestId: string with no schema (a separate contract question, noted by the F1 dev round).

Dedupe words: install door manifest id pattern unenforced · POST /packages 201 refused id · packages.ts positional manifest.id · PackageInstallBodySchema never called · domain-handler-registry pkg-a pin


Generated by Claude Code

Activity

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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions