Commit debe2f6
* refactor(spec)!: `api` is code-only — withdraw a runtime create door the matcher could never read (#5488)
`DEFAULT_METADATA_TYPE_REGISTRY`'s `api` entry declared `allowRuntimeCreate: true`
and the runtime never honoured it: `PUT /api/v1/meta/api/{name}` answered 200
"Saved" and the declared route then 404'd forever, with no `EXCLUDED` log line —
the endpoint was never in the matcher's index at all. `matchEndpoint` reads
`MetadataManager.listForIndex('api')` (the manager's registry plus its
filesystem/memory loaders); a runtime write lands in `sys_metadata`, in neither.
ADR-0049 remove side, per the maintainer ruling of 2026-08-07T16:59Z (Option B).
The flip makes `api` code-only, so the existing #5086 inlet refuses with
`NOT_CREATABLE` / 403 before persistence, in draft mode as well as active.
Deliberate, recorded retirements that come with it:
- `gateApiDraftsForPublish` (PR #5279) and its 9 tests — it gated a promotion
into a state the matcher can never read, and no `api` draft can now exist.
- the `api` create seed — a form whose save can only 403.
- the decision block at metadata-plugin.zod.ts is rewritten as a RECORDED
OVERTURN, keeping its three original bullets verbatim.
The two #5271 tripwire pins are replaced by retirement pins; every rejection
case asserts `code` AND `status`. The artifact route (`**/*.api.ts` →
`publishPackage`) is untouched.
Closes #5311 (subsumed per the 2026-08-09 triage designation).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PiRUoQkTSBBmpyXBY3cVn2
* chore(spec): regenerate spec-changes + upgrade guide for the ADR-0087 entry (#5488)
`check:generated` proved exactly two artifacts stale — the two the new
`api-runtime-create-withdrawn` SemanticMigration feeds. Regenerated with
`check:generated --fix` (only the proven-stale ones, never the whole set).
The four ratchets (api-surface, authorable-surface, json-schema.manifest,
api-surface-signatures) are byte-identical, which is the CORRECT reading for
this shape: the change is a boolean value in a platform constant array, not an
enum narrowing and not a def deletion, so no authorable key and no export moved.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PiRUoQkTSBBmpyXBY3cVn2
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6dd3c25 commit debe2f6
15 files changed
Lines changed: 620 additions & 539 deletions
File tree
- .changeset
- docs
- packages
- metadata-protocol/src
- objectql/src
- spec
- src
- kernel
- migrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
414 | 417 | | |
415 | 418 | | |
416 | 419 | | |
| |||
0 commit comments