Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

docs(plugin-sdk): fix closing-audit wording — helper text + stale comments (#348)

Alfredo Lopezefec9e3b31d5
diff --git a/control-api/package-lock.json b/control-api/package-lock.json
index dc1df7cd9..f72bfaab7 100644
--- a/control-api/package-lock.json
+++ b/control-api/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-api",
- "version": "0.1.443",
+ "version": "0.1.444",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-api",
- "version": "0.1.443",
+ "version": "0.1.444",
"dependencies": {
"@clerum/image-policy": "file:../packages/image-policy",
"@clerum/llm-providers": "file:../packages/llm-providers",
diff --git a/control-api/package.json b/control-api/package.json
index df2fba24e..cad177848 100644
--- a/control-api/package.json
+++ b/control-api/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-api",
- "version": "0.1.443",
+ "version": "0.1.444",
"description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets",
"main": "dist/main.js",
"engines": {
diff --git a/control-api/src/services/pluginWorkloadSdkQuotaTracker.ts b/control-api/src/services/pluginWorkloadSdkQuotaTracker.ts
index 4d0f2f685..75ae81e0c 100644
--- a/control-api/src/services/pluginWorkloadSdkQuotaTracker.ts
+++ b/control-api/src/services/pluginWorkloadSdkQuotaTracker.ts
@@ -30,8 +30,10 @@ const exceeded = (message: string): QuotaDecision => ({
})
/**
- * Read-only rate check — call BEFORE recording the invocation so a denied
- * call never consumes the idempotency key or a period quota unit.
+ * Read-only per-minute rate check against the invocation audit trail. The
+ * invocation row is recorded before this runs (record-first), so the trailing
+ * 60s window count includes the current call and the deny threshold is
+ * `recent > limit` (issue #348 removed the per-run/period-quota leg).
*/
export async function checkRateLimit(
recipeNamespace: string,
diff --git a/control-api/test/pluginWorkloadSdkSteplessQuota.realPostgres.integration.test.ts b/control-api/test/pluginWorkloadSdkSteplessQuota.realPostgres.integration.test.ts
index 3d09998e5..2f55bc2c9 100644
--- a/control-api/test/pluginWorkloadSdkSteplessQuota.realPostgres.integration.test.ts
+++ b/control-api/test/pluginWorkloadSdkSteplessQuota.realPostgres.integration.test.ts
@@ -46,11 +46,12 @@ import type { McpHostAccessClaims } from '../src/utils/auth/mcpHostJwtToken.js'
const adminUrl = process.env.CONTROL_API_REAL_PG_ADMIN_URL
// Repo convention (matches the other *.realPostgres.integration.test.ts suites):
-// gate on the DB env so the DB-less unit lane stays green. This suite is EXECUTED
-// for real in the DB-provisioned lane (T2 / minikube: point
-// CONTROL_API_REAL_PG_ADMIN_URL at the cluster Postgres). The T2 gate asserts this
-// suite actually ran (total>0, not skipped) so it can never pass by silent
-// omission (issue #348, plan D4; local run gated per owner decision).
+// gate on the DB env so the DB-less unit lane stays green. This suite RUNS
+// non-skipped in CI via the Postgres-backed lane in
+// .github/workflows/ci-public.yml (which sets CONTROL_API_REAL_PG_ADMIN_URL
+// against a Postgres 16 service and runs the realPostgres suites), and was
+// proven live on minikube (issue #348, plan D4). Local DB-less runs skip per
+// owner decision.
const describeRealPostgres = adminUrl ? describe : describe.skip
const database = `control_api_sdk_stepless_${randomBytes(6).toString('hex')}`
diff --git a/control-ui/app/plugin-workload-sdk/page.tsx b/control-ui/app/plugin-workload-sdk/page.tsx
index c7dae4004..b4fa8e028 100644
--- a/control-ui/app/plugin-workload-sdk/page.tsx
+++ b/control-ui/app/plugin-workload-sdk/page.tsx
@@ -986,7 +986,7 @@ function GrantFormModal({
htmlFor="sdk-callers"
required
error={callersMissing ? 'At least one caller is required.' : undefined}
- description="Workload ids permitted to call. Comma- or newline-separated. Request rate limits are enforced platform-wide (per-minute) and are not configured per grant."
+ description="Workload ids permitted to call. Comma- or newline-separated. Per-minute rate limits use platform defaults and are not set in this form; a grant may still carry a per-minute override via the API."
>
<TextInput
id="sdk-callers"
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 45902cdb2..ce8768032 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.422",
+ "version": "0.1.423",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.422",
+ "version": "0.1.423",
"dependencies": {
"@clerum/llm-providers": "file:../packages/llm-providers",
"@clerum/workflow-recipe-capability-policy": "file:../packages/workflow-recipe-capability-policy",
diff --git a/control-ui/package.json b/control-ui/package.json
index fd327fd2e..653ecf0fd 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.422",
+ "version": "0.1.423",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",