Commit 8d017eb
* fix(metadata-protocol): fold publishMetaItem through canonicalizeMetaRequestType
* test(objectql): pin the #8769 publish fold, and correct two claims the draft carried
The implementation commit (8611170) was written by an agent that was killed
before it could run anything, so its comment stated intent as measurement. This
commit re-derives every claim on the merged tree and corrects the two that did
not survive contact.
Corrected in `protocol.ts`:
* `ensureObjectStorage` was listed among the sites that "keyed the caller's
spelling". It does not: it opens
`if (type !== 'object' && type !== 'objects')` and so answered both
spellings identically before the fold and after it. Its `'objects'` limb is
now unreachable (both call sites stand behind a fold) but it is out of this
card's region, so it is recorded here and filed as #8820 rather than
deleted in passing.
* The bullet now names what the fold does move — the ADR-0010 audit row and
the receipt sentence, which both read `request.type` and so recorded the
caller's spelling for a row written under the canonical one.
The pin lands in `packages/objectql` rather than beside the code because
`metadata-protocol` cannot import `ObjectQL` (objectql depends on
metadata-protocol, not the reverse), and this seam is only observable against a
real engine and repository. It is the same package, and the same reason, as the
existing fold pins for the other six entry points in
`protocol-meta-type-canonicalization.test.ts`.
Reverse verification, direction predicted before running and measured against a
REBUILT dist (the suite resolves the package through `dist`, so a source-only
revert measures nothing): predicted 3 red / 4 green, measured 3 red / 4 green,
each red for its predicted reason — including group C, where the ablated build
published straight through an ADR-0010 `_lock` that the canonical spelling is
refused by.
Filed while measuring, both out of region and neither fixed here:
#8819 — `rollbackMetaItem` is an eighth `/meta` entry point with the same
unfolded lock gate, reachable via POST /api/v1/meta/:type/:name/rollback
#8820 — `ensureObjectStorage`'s now-dormant `'objects'` limb
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XeQRiAa7vYRVX5Fog7Zby8
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 03a8da0 commit 8d017eb
3 files changed
Lines changed: 531 additions & 0 deletions
File tree
- .changeset
- packages
- metadata-protocol/src
- objectql/src
| 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 | + | |
| 78 | + | |
| 79 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12657 | 12657 | | |
12658 | 12658 | | |
12659 | 12659 | | |
| 12660 | + | |
| 12661 | + | |
| 12662 | + | |
| 12663 | + | |
| 12664 | + | |
| 12665 | + | |
| 12666 | + | |
| 12667 | + | |
| 12668 | + | |
| 12669 | + | |
| 12670 | + | |
| 12671 | + | |
| 12672 | + | |
| 12673 | + | |
| 12674 | + | |
| 12675 | + | |
| 12676 | + | |
| 12677 | + | |
| 12678 | + | |
| 12679 | + | |
| 12680 | + | |
| 12681 | + | |
| 12682 | + | |
| 12683 | + | |
| 12684 | + | |
| 12685 | + | |
| 12686 | + | |
| 12687 | + | |
| 12688 | + | |
| 12689 | + | |
| 12690 | + | |
| 12691 | + | |
| 12692 | + | |
| 12693 | + | |
| 12694 | + | |
| 12695 | + | |
| 12696 | + | |
| 12697 | + | |
| 12698 | + | |
| 12699 | + | |
| 12700 | + | |
| 12701 | + | |
| 12702 | + | |
| 12703 | + | |
12660 | 12704 | | |
12661 | 12705 | | |
12662 | 12706 | | |
| |||
0 commit comments