Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-ui): relabel discovery fixture tests, not cross-service contracts (R1-M4)
Diego Zacariasaae663115fff
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex 8a82224bf..a640c8a4e 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.658",+ "version": "0.1.659","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.658",+ "version": "0.1.659","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/frontend-components": "file:../packages/frontend-components",diff --git a/control-ui/package.json b/control-ui/package.jsonindex 7194b04e2..f0767b038 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.658",+ "version": "0.1.659","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",diff --git a/control-ui/test/fixtures/__tests__/genericDiscoveryPrefill.contract.test.ts b/control-ui/test/fixtures/__tests__/genericDiscoveryPrefill.projection.test.tssimilarity index 87%rename from control-ui/test/fixtures/__tests__/genericDiscoveryPrefill.contract.test.tsrename to control-ui/test/fixtures/__tests__/genericDiscoveryPrefill.projection.test.tsindex 05f84b168..53bebe113 100644--- a/control-ui/test/fixtures/__tests__/genericDiscoveryPrefill.contract.test.ts+++ b/control-ui/test/fixtures/__tests__/genericDiscoveryPrefill.projection.test.ts@@ -3,10 +3,12 @@ import type { GenericDiscoveryPrefill } from '../../../lib/oauthGeneric.types'import { GENERIC_PREFILL_CASES } from '../genericDiscoveryPrefill'/**- * Reproduces the producer's projection (control-api discovery.ts- * `buildGenericDiscoveryPrefill`, spec 19 §5.2) from the verbatim raw probe bytes and- * asserts each hand-derived `GenericDiscoveryPrefill` fixture equals it. A fixture value- * that drifts from the real server bytes fails here, so the fixtures cannot silently+ * This is NOT a cross-service contract test — control-api is not importable from+ * control-ui, so nothing here fails when the real producer+ * (`buildGenericDiscoveryPrefill` in control-api/src/oauth/discovery.ts) drifts.+ * That producer contract is pinned by control-api's own tests. What this file+ * guarantees is narrower: each hand-derived `GenericDiscoveryPrefill` fixture equals+ * a LOCAL re-projection of the verbatim raw probe bytes, so a fixture cannot silently* encode an invented shape (T1).** DRIFT LIMIT: projectPrefill is a HAND MIRROR of buildGenericDiscoveryPrefilldiff --git a/control-ui/test/fixtures/__tests__/remoteMcpDiscovery.contract.test.ts b/control-ui/test/fixtures/__tests__/remoteMcpDiscovery.projection.test.tssimilarity index 94%rename from control-ui/test/fixtures/__tests__/remoteMcpDiscovery.contract.test.tsrename to control-ui/test/fixtures/__tests__/remoteMcpDiscovery.projection.test.tsindex e108e26bc..bb8f0e5c6 100644--- a/control-ui/test/fixtures/__tests__/remoteMcpDiscovery.contract.test.ts+++ b/control-ui/test/fixtures/__tests__/remoteMcpDiscovery.projection.test.ts@@ -27,10 +27,12 @@ import {} from '../remoteMcpDiscovery'/**- * Reproduces the producer's projection (control-api discovery.ts + remoteMcp.ts- * route) from the verbatim raw probe bytes and asserts each hand-derived- * `detected` fixture equals it. A fixture value that drifts from the real server- * bytes fails here, so the fixtures cannot silently encode an invented shape.+ * This is NOT a cross-service contract test — control-api is not importable from+ * control-ui, so nothing here fails when the real producer drifts. The producer+ * contract for the discover response (`res.body.detected`) is pinned by control-api+ * `test/routes.adminRemoteMcp.test.ts`. What this file guarantees is narrower: each+ * hand-derived `detected` fixture equals a LOCAL re-projection of the verbatim raw+ * probe bytes, so a fixture cannot silently encode an invented shape.** DRIFT LIMIT: projectDetected is a HAND MIRROR of the producer logic* (`discoverRemoteOAuth` + `selectRegistrationMode`/`deriveQuirks` in