Commit d57611d
docs: mark IMetadataService interface fence as an excerpt, restore getDiagnosed/subscribe (#17407)
* docs(kernel): mark the IMetadataService interface fence as an excerpt and restore getDiagnosed/subscribe
The `## Interface Definition` fence on metadata-service.mdx was introduced as
the interface itself and silently omitted 4 of 38 members declared in
packages/spec/src/contracts/metadata-service.ts. Reframe it explicitly as a
non-exhaustive excerpt pointing at the contract source, and restore
getDiagnosed and subscribe — the two omissions that contradicted a subsection
the page itself devotes to their pattern (diagnosed-twin reads, watch/subscribe).
loadMany and matchEndpoint are left out of the excerpt; neither backs a pattern
the page teaches in prose.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
* docs(kernel): add the MetadataWatchEvent row this PR's own fence now depends on
Restoring subscribe? to the Interface Definition fence brought in
MetadataWatchEvent, the only Metadata* type in that fence without a row in the
page's own Types Reference table. Read the shape from its actual declaration
(packages/spec/src/system/metadata-persistence.zod.ts, MetadataWatchEventSchema)
rather than inferring it from MetadataWatchCallback's differently-shaped event.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 456a0af commit d57611d
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
| |||
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
320 | 328 | | |
321 | 329 | | |
322 | 330 | | |
| 331 | + | |
323 | 332 | | |
324 | 333 | | |
325 | 334 | | |
| |||
0 commit comments