1
---
2
name: caveman-manage
3
description: >
4
Inspect Caveman Cloud's experiment lifecycle and block unsafe execution. Use
5
when asked to start, approve, cancel, promote or roll back a Caveman
6
experiment.
7
---
8
9
# Manage eval-gated experiments
10
11
Treat every lifecycle change as a production control action. Read current state
12
and results, then report one supported recommendation or block.
13
Current agent MCP is intentionally read-only: control-api does not yet enforce a
14
complete lifecycle transition table and evidence gate atomically.
15
16
## Non-negotiable gates
17
18
1. A request to review, inspect, explain, or recommend authorizes reads only.
19
2. Never approve an experiment whose results are pending, whose required
20
guardrails are absent, or whose evidence reports a breach.
21
3. Never convert experiment lift into `verified_savings`. Only active real
22
traffic plus provider-causal, provider-complete ledger evidence can do that.
23
4. Never supply an organization id. Project and tenant scope come from the
24
logged-in Caveman identity and server RBAC.
25
5. Never execute a lifecycle mutation, even after user approval. Exact
26
`<action>:<experiment_id>` strings are agent-generatable and are not proof of
27
human intent.
28
6. Unknown states and server errors fail closed. Report exact
29
`cave_snake_code`.
30
31
## Step 1 — Load project and experiment
32
33
Prefer MCP:
34
35
```text
36
caveman_context {}
37
caveman_experiment_get {"action":"get","experiment_id":"<id>"}
38
caveman_experiment_get {"action":"results","experiment_id":"<id>"}
39
```
40
41
Use `{"action":"list"}` when the user has not named an id.
42
43
CLI fallback:
44
45
```bash
46
caveman cloud experiments list
47
caveman cloud experiments show <id>
48
caveman cloud experiments results <id>
49
```
50
51
Stop if login, project, experiment, or results are unavailable.
52
53
## Step 2 — Evaluate evidence
54
55
Report:
56
57
- current lifecycle state and safety class;
58
- control and candidate sample sizes;
59
- quality or eval result;
60
- latency, error, cost, retry, drop, and escalation guardrails when present;
61
- evidence cost;
62
- rollback or hold reason;
63
- whether result is pending, failed, promotable, or active.
64
65
Absence is not a pass. If a required field is absent, state
66
`evidence incomplete` and do not propose approval.
67
68
## Step 3 — Propose one action
69
70
Allowed actions:
71
72
- `start` — only from a startable draft or queued state with configured graders;
73
- `approve` — only with complete passing evidence and a safety class the
74
current role may approve;
75
- `cancel` — stop a non-active experiment the user no longer wants;
76
- `rollback` — revert an active or harmful change through the server's linked
77
policy path. Current deployments may reject this honestly with
78
`cave_not_implemented`; never describe that response as a rollback.
79
80
Show recommendation and id:
81
82
```text
83
Proposed action: approve experiment 7f...
84
Reason: candidate passed quality and every configured guardrail.
85
Execution: blocked until server-authoritative lifecycle and evidence gates ship.
86
```
87
88
Do not treat earlier generic statements such as "manage it" or "do what is best"
89
as mutation approval.
90
91
## Step 4 — Block unsafe execution
92
93
Do not emit or run an executable lifecycle command. Explain that current server
94
does not yet enforce every evidence/state transition atomically. CLI and MCP
95
agent surfaces therefore expose experiment reads only.
96
97
## Step 5 — Re-read after external operator action
98
99
If operator says they executed command, read detail and results again. Report
100
server-observed post-state, audit or result response, and any policy-delivery
101
status returned. Never infer success from operator intent alone.
102
103
Use this close:
104
105
```text
106
Action: <action> <experiment-id>
107
Before: <state>
108
Server response: <status and cave_snake_code if any>
109
After: <re-read state>
110
Basis: experiment evidence only. Verified savings unchanged unless the signed
111
ledger independently records active, provider-causal real-traffic savings.
112
```
113