Does @microsoft/agent-governance-sdk support Cloudflare Workers / workerd? #3806
Replies: 2 comments
|
I did some more digging on this and now have actual runtime evidence rather than just package inspection. |
|
Update after live edge-runtime testing I took this beyond the earlier bundle/import compatibility question and exercised AGT 5.0.0 in a live Cloudflare Worker execution path. What is now demonstrated:
So the compatibility question is substantially answered: AGT's TypeScript policy evaluation can participate in a real pre-capability governance path in an edge/workerd environment. This was not only an import or packaging test. One narrow enforcement case remains before I would call the full allow/deny execution path proven: register an otherwise executable test capability, allow it to reach the AGT interceptor, have AGT deny it, and independently verify that its handler produced zero external side effect. The current unregistered-capability test is intentionally stopped one layer earlier, so it does not establish that particular property. A second, separate observation came out of the exercise: authorization evidence and outcome evidence should remain distinct. AGT established whether the action was permitted. Independent external observation established whether the permitted action actually occurred. I would not attribute the latter to AGT itself. At this point I think the useful follow-on is less “can this run in a Worker?” and more “should the TypeScript policy surface have an explicit edge-runtime support/conformance contract so this does not remain downstream knowledge?” |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have a concrete edge-runtime use case and wanted to clarify the intended support boundary before treating accidental compatibility as supported behavior.
The execution runner is a Cloudflare Worker using the workerd runtime. We want deterministic pre-execution governance around consequential agent/tool actions, ideally by evaluating policy in-process before allowing the action to execute.
@microsoft/agent-governance-sdk currently declares Node.js >=18 as its runtime requirement, and I could not find workerd or Cloudflare Workers mentioned in the package documentation.
A few questions:
The distinction matters because successful bundling/import is not sufficient evidence that the governance path actually works. I would want a compatibility claim to cover at least one real pre-execution policy evaluation and deterministic allow/deny result under the Worker runtime.
This came up while reviewing several “false green” production incidents in an autonomous deployment workflow, where configuration or status surfaces appeared healthy while the intended operational consequence never occurred. For the action-shaped case, pre-execution policy is exactly the control we want. The runner simply happens to live at the Cloudflare edge.
Happy to test against a small Worker fixture or contribute documentation/tests if this is a runtime the project wants to support.
All reactions