@kybernesis/dispatch 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -55,6 +55,23 @@ Your own project's deployments and `eve dev` keep working (current-project
55
55
  OIDC bypass + `localDev()`); production browser traffic stays rejected unless
56
56
  you pass your app's real auth via `extraAuth`.
57
57
 
58
+ ## Asserted asker on governed calls
59
+
60
+ A dynamic `governedPeers()` call carries the authenticated identity of the
61
+ calling agent, plus that agent's optional claim about the human who prompted
62
+ it. The human's authenticated authority does not travel with this call. On the
63
+ receiver, `assertedAsker(session)` from `@kybernesis/enterprise` reads the
64
+ caller's asserted asker.
65
+
66
+ The value is asserted rather than authenticated: the control plane signs the
67
+ token containing the claim, but does not verify the named human. Use it only for
68
+ non-escalating purposes such as greeting or addressing someone, attribution or
69
+ logging, tailoring a non-sensitive response, or refusing work. Never use it to
70
+ authorize access, widen permissions, impersonate a user, select user-scoped
71
+ credentials, or permit access to personal data. A tool that reaches personal
72
+ data must use the authenticated session principal, which on this agent-to-agent
73
+ call is the calling agent.
74
+
58
75
  ## Bidirectional edges
59
76
 
60
77
  Answering is built into one edge — the caller parks until the peer's terminal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kybernesis/dispatch",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Agent-to-agent dispatch for eve agents: declared remote-peer edges with principal forwarding on by default, and a receiver channel that makes trusting the wrong caller hard to express.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -26,17 +26,18 @@
26
26
  },
27
27
  "scripts": {
28
28
  "build": "tsc -p tsconfig.build.json",
29
- "prepare": "tsc -p tsconfig.build.json",
29
+ "prepack": "tsc -p tsconfig.build.json",
30
30
  "typecheck": "tsc --noEmit",
31
31
  "prepublishOnly": "node ../../scripts/prepublish.mjs"
32
32
  },
33
33
  "devDependencies": {
34
+ "@kybernesis/enterprise": "^0.8.0",
34
35
  "@types/node": "24.x",
35
- "eve": "0.38.3",
36
+ "eve": "0.49.0",
36
37
  "typescript": "7.0.2"
37
38
  },
38
39
  "peerDependencies": {
39
- "eve": ">=0.38.0 <0.39.0",
40
+ "eve": ">=0.49.0 <0.50.0",
40
41
  "@kybernesis/enterprise": ">=0.2.0"
41
42
  },
42
43
  "engines": {