Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(control-api): pin the runtime audience check with Graph beside the server scope (BR1-L11)
Diego Zacariasa091f503a960
diff --git a/control-api/package-lock.json b/control-api/package-lock.jsonindex 1b388b9bd..dc6ca4725 100644--- a/control-api/package-lock.json+++ b/control-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-api",- "version": "0.1.808",+ "version": "0.1.809","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-api",- "version": "0.1.808",+ "version": "0.1.809","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/grok-provider-attempt-contract": "file:../packages/grok-provider-attempt-contract",diff --git a/control-api/package.json b/control-api/package.jsonindex 2791fd276..ae2438d4f 100644--- a/control-api/package.json+++ b/control-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-api",- "version": "0.1.808",+ "version": "0.1.809","description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets","main": "dist/main.js","engines": {diff --git a/control-api/test/oauth.remoteSpecCoherence.test.ts b/control-api/test/oauth.remoteSpecCoherence.test.tsindex aa1333fd8..779e02ba7 100644--- a/control-api/test/oauth.remoteSpecCoherence.test.ts+++ b/control-api/test/oauth.remoteSpecCoherence.test.ts@@ -279,6 +279,16 @@ const INCOHERENT: ReadonlyArray<{reason: 'scope_audience_mismatch',consentOnly: false,},+ {+ // The server's own scope satisfies the resource-scope rule, so only the audience+ // violation catches a Graph scope added next to it.+ label: 'entra-v2 with the Work IQ scope plus a Microsoft Graph GUID scope',+ oauth: () =>+ workIqWithScopes([WORKIQ_GUID_SCOPE, '00000003-0000-0000-c000-000000000000/Mail.Read']),+ remote: workIqRemote,+ reason: 'scope_audience_mismatch',+ consentOnly: false,+ },{label: 'entra-v2 with a Microsoft Graph URL scope',oauth: () => workIqWithScopes(['https://graph.microsoft.com/x']),