You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9ba0c56
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .changeset/31680-presentation-ai-reads-by-package.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,4 +18,8 @@ Metadata-protocol: none
18
18
2. A package caller reads a name that only the environment's own item holds.
19
19
3. A package caller reads a name whose one holder is a package it does not declare as a dependency.
20
20
21
-
The fix is one line. For 1 and 3, declare the holding package in the reading package's `dependencies`, or name the package the read means with `?package=`. For 2, ship the item in the reading package or in a package it depends on. None of the four example apps in this repository hits any of the three.
21
+
The fix is one line, and none of the four example apps in this repository needs it:
22
+
23
+
- FROM a bare read of a name two packages ship TO the read that names the package it means (`?package=<id>`).
24
+
- FROM a package caller reading the environment's own item TO the item shipped in the reading package, or in a package it depends on.
25
+
- FROM a package caller reading a package it does not depend on TO that package declared in the reader's `dependencies`.
Copy file name to clipboardExpand all lines: packages/mcp/src/mcp-server-runtime.agent-prompt-advertised.test.ts
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -409,6 +409,30 @@ describe('agent_prompt — one reader with GET /meta/agent/NAME (the protocol)',
409
409
}
410
410
});
411
411
412
+
it('[#31680, ADR-0150 D3] a by-name read the package-scoped resolver refuses (409 RESOURCE_CONFLICT) travels naming every holder: never "not found", never the outage text',async()=>{
413
+
// The protocol's package-less by-name read refuses a name more than one
414
+
// package holds, naming each (child E8). Read here as a miss it would tell
415
+
// the client the agent does not exist; read as the #6055 outage it would
416
+
// say nothing is known. It is neither: it travels as the refusal it is.
417
+
constrefusal=Object.assign(
418
+
newError('agent "pkg_helper" is held by com.acme.alpha and com.acme.beta: qualify the name with its package'),
0 commit comments