Commit b45c3f6
docs(metadata-protocol): the getMetaItems gate enumerates six rest-server call sites, not five, and names the transitive diagnostics door (#16117)
The `[#14683]` gate docblock above `getMetaItems`' `organizationIdForMetaRead`
call called the `GET /meta/:type` list door "the only door that both gates and
reaches this method", then accounted for "the four remaining"
`organizationIdForMetaRead` call sites in `rest-server.ts`. One named plus four
remaining is five; that file has SIX, and the missing one is
`GET /meta/diagnostics?type=`, which both gates and reaches this method.
It was missed because it does not call `getMetaItems`. It calls
`getMetaDiagnostics`, whose `?type=` arm sets `targetTypes = [request.type]`
and loops `getMetaItems({ type: t, organizationId, ... })` over it, so a grep
for doors invoking `getMetaItems` cannot see it. That hop is also undeclared:
`getMetaDiagnostics` is not a member of `MetadataProtocol`, neither required
nor optional, so the door reaches it through a runtime cast behind a 501
feature-detect - real at runtime, invisible to the type system.
The enumeration is what #14683 offers as evidence that its change is a no-op
for every already-gating caller. That conclusion is measured and holds; only
the enumeration backing it was short a caller.
Comment only: no behaviour change, no schema change.
Claude-Session: https://claude.ai/code/session_01ARYe3yQTQCUFm5qPYNgKaJ
Co-authored-by: Claude <noreply@anthropic.com>1 parent 658262e commit b45c3f6
1 file changed
Lines changed: 34 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6797 | 6797 | | |
6798 | 6798 | | |
6799 | 6799 | | |
6800 | | - | |
6801 | | - | |
| 6800 | + | |
| 6801 | + | |
6802 | 6802 | | |
6803 | 6803 | | |
6804 | 6804 | | |
6805 | 6805 | | |
6806 | 6806 | | |
6807 | 6807 | | |
6808 | 6808 | | |
| 6809 | + | |
| 6810 | + | |
| 6811 | + | |
| 6812 | + | |
| 6813 | + | |
| 6814 | + | |
| 6815 | + | |
| 6816 | + | |
| 6817 | + | |
| 6818 | + | |
| 6819 | + | |
| 6820 | + | |
| 6821 | + | |
| 6822 | + | |
| 6823 | + | |
| 6824 | + | |
6809 | 6825 | | |
6810 | 6826 | | |
6811 | 6827 | | |
6812 | 6828 | | |
6813 | 6829 | | |
6814 | 6830 | | |
6815 | | - | |
6816 | | - | |
| 6831 | + | |
| 6832 | + | |
| 6833 | + | |
| 6834 | + | |
| 6835 | + | |
| 6836 | + | |
| 6837 | + | |
| 6838 | + | |
| 6839 | + | |
| 6840 | + | |
| 6841 | + | |
| 6842 | + | |
| 6843 | + | |
| 6844 | + | |
| 6845 | + | |
| 6846 | + | |
6817 | 6847 | | |
6818 | 6848 | | |
6819 | 6849 | | |
| |||
0 commit comments