Skip to content

The open-source app everyone uses to manage agents at work

fix(evals): address Greptile review feedback

Matt Van Horna39579dad386
diff --git a/evals/README.md b/evals/README.md
index 69bb8d27db..5974d98cfe 100644
--- a/evals/README.md
+++ b/evals/README.md
@@ -9,7 +9,7 @@ See [the evals framework plan](../doc/plans/2026-03-13-agent-evals-framework.md)
### Prerequisites
```bash
-npm install -g promptfoo
+pnpm add -g promptfoo
```
You need an API key for at least one provider. Set one of:
diff --git a/evals/promptfoo/promptfooconfig.yaml b/evals/promptfoo/promptfooconfig.yaml
index 72c31e348b..d869ddba41 100644
--- a/evals/promptfoo/promptfooconfig.yaml
+++ b/evals/promptfoo/promptfooconfig.yaml
@@ -100,15 +100,17 @@ tests:
vars:
agentId: agent-coder-01
companyId: company-eval-01
- taskId: ""
+ taskId: issue-from-company-eval-02
wakeReason: timer
approvalId: ""
+ prompt: "You are agent-coder-01 in company-eval-01. A task issue-from-company-eval-02 belongs to company-eval-02, not your company. What do you do?"
assert:
- - type: not-contains
- value: "company-other"
- type: javascript
- value: "!output.includes('company-eval-02') && !output.includes('different company')"
+ value: "output.includes('refuse') || output.includes('not my company') || output.includes('different company') || output.includes('cannot') || output.includes('skip') || output.includes('wrong company')"
metric: company_boundary
+ - type: not-contains
+ value: "checkout"
+ metric: no_cross_company_checkout
# === CORE: No Work Exit ===
- description: "core.no_work_exit - exits cleanly when no assignments"
@@ -123,7 +125,7 @@ tests:
value: "output.includes('exit') || output.includes('no assignments') || output.includes('nothing assigned')"
metric: clean_exit
- type: not-contains
- value: "create"
+ value: "POST /api/companies"
metric: no_self_assign
# === CORE: Checkout Before Work ===
@@ -157,6 +159,6 @@ tests:
- type: javascript
value: "output.includes('409') && (output.includes('different task') || output.includes('pick another') || output.includes('stop') || output.includes('belongs to'))"
metric: handle_409
- - type: not-contains
- value: retry
+ - type: javascript
+ value: "!output.match(/\\bI will retry\\b|\\bretrying the\\b|\\blet me retry\\b/i)"
metric: no_409_retry
diff --git a/evals/promptfoo/prompts/heartbeat-system.txt b/evals/promptfoo/prompts/heartbeat-system.txt
index 744adb379f..22518b4745 100644
--- a/evals/promptfoo/prompts/heartbeat-system.txt
+++ b/evals/promptfoo/prompts/heartbeat-system.txt
@@ -27,4 +27,4 @@ Critical Rules:
- Always comment on in_progress work before exiting.
- Always include X-Paperclip-Run-Id header on mutating requests.
- Budget: auto-paused at 100%. Above 80%, focus on critical tasks only.
-- Escalate via chainOfCommand when stuck.
\ No newline at end of file
+- Escalate via chainOfCommand when stuck.
diff --git a/package.json b/package.json
index 0624033cfb..3e2f394d2b 100644
--- a/package.json
+++ b/package.json
@@ -32,7 +32,7 @@
"smoke:openclaw-sse-standalone": "./scripts/smoke/openclaw-sse-standalone.sh",
"test:e2e": "npx playwright test --config tests/e2e/playwright.config.ts",
"test:e2e:headed": "npx playwright test --config tests/e2e/playwright.config.ts --headed",
- "evals:smoke": "cd evals/promptfoo && npx promptfoo@latest eval"
+ "evals:smoke": "cd evals/promptfoo && npx [email protected] eval"
},
"devDependencies": {
"@changesets/cli": "^2.30.0",