Skip to content

Commit 1176335

Browse files
committed
chore(changeset): name service-record-context, whose door contract ships in its types
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi13yZRqVcp2mGonWK
1 parent 083ab1b commit 1176335

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.changeset/37243-record-context-authored-packs.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
'@objectstack/mcp': patch
33
'@objectstack/runtime': patch
4+
'@objectstack/service-record-context': patch
45
---
56

67
fix(mcp,runtime): `get_record_context` reads a package's context packs on both MCP doors
@@ -11,3 +12,5 @@ Metadata-protocol: none
1112
A deployment serving context packs (`aiContexts`) answered every `get_record_context` call with `RESOURCE_NOT_FOUND` ("No context pack named … reads object …"), on the HTTP `/mcp` route and on stdio alike. Both doors read the packs from the protocol's served `ai_context` listing, which carries the read path's `_diagnostics` on every item; the record-context executor parses each pack with the closed `AiContextSchema`, so it dropped every one as an unrecognized key.
1213

1314
Both doors now hand the executor the authored packs: the listing passes through `stripReadDecorations` (`@objectstack/spec/kernel`), which removes exactly the read decorations (`METADATA_READ_DECORATIONS`) and keeps the ADR-0010 protection envelope (`_packageId`, `_provenance`, `_lock`, …) the schema declares. The executor's parse is unchanged. Nothing to do on upgrade.
15+
16+
For anyone implementing a `RecordContextDoor`: `listContextPacks` hands over the authored packs with the read decorations removed (`stripReadDecorations`), or the executor drops them.

0 commit comments

Comments
 (0)