Repository navigation
Commit fef09c1
committed
feat(rest): mount the compound-name per-item promotion door
A compound-named metadata draft could be STAGED through
`PUT /meta/:type/:section/:name?mode=draft` (#11712 / PR #11933) and READ BACK
through `GET /meta/:type/:section/:name/published` (#7526), and had no per-item
REST door to PROMOTE it: `POST /meta/:type/:name/publish` was mounted in one
arity only. Writable, readable, not publishable — same caller, same transport.
The capability was never missing. Measured against the real
`ObjectStackProtocolImplementation` on a seeded `crm/task` draft before the
route existed, `publishMetaItem` promoted it normally: it keys the draft on
type/name/organization/package and reads the name's spelling nowhere. It was
the route that was missing.
Both arities now come out of one two-entry registration loop, the same shape
the `/published` read twin has carried since #7526, so the compound door
inherits the `manage_metadata` gate, the `?package` binding and its
repeated-parameter refusal, the write-actor resolution, the organization
scoping, the `404 [no_draft]` answer and the `501` envelope unchanged.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019siH5jDmk5hrayvfyojUqRPOST /meta/:type/:section/:name/publish (#11932)1 parent 1e79aa4 commit fef09c1
10 files changed
Lines changed: 962 additions & 190 deletions
File tree
- .changeset
- content/docs/kernel/contracts
- packages/rest/src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
424 | 428 | | |
425 | 429 | | |
426 | 430 | | |
| |||
429 | 433 | | |
430 | 434 | | |
431 | 435 | | |
| 436 | + | |
432 | 437 | | |
0 commit comments