Commit f99e234
authored
docs(skills): adopt create_or_update_*_monitor tools and preview-then-confirm flow (#85)
## Summary
- Renames every `create_*_monitor_mac` reference in skill docs to the
new `create_or_update_{table,metric,validation,sql,comparison}_monitor`
tools introduced in
[ai-agent#998](monte-carlo-data/ai-agent#998).
- Documents the **two-call preview-then-confirm flow** that those tools
enforce: `dry_run=True` (the default) returns rendered MaC YAML in
`result.yaml`; `dry_run=False` actually creates/updates the monitor and
returns `result.monitor_uuid` + a deep link in `result.instructions`
(with `result.yaml=None` by design).
- Documents `monitor_uuid` for **update-in-place**, `is_draft` for draft
mode, and the parity params (`schedule_type`, `interval_minutes`,
`audiences`, `failure_audiences`, `notes`, `priority`, `tags`, plus
per-type extras like
`aggregate_time_sql`/`segment_sql`/`sensitivity`/`collection_lag_hours`
on metric,
`query_result_type`/`custom_sampling_sql`/`variable_definitions` on
SQL).
- Migrates the **tune-monitor** skill off the now-extended-only
direct-GraphQL `create_metric_monitor` / `create_custom_sql_monitor` /
`create_validation_monitor` tools (hidden from the public default
toolset) onto `create_or_update_*_monitor` with `monitor_uuid` for
in-place updates.
- Updates
`plugins/claude-code/evals/{monitoring-advisor,prevent}/live-evals-*.yaml`
and the eval README example to assert the new tool names in `must_call`
/ `must_not_call`.
- Bumps `monitoring-advisor` to **2.1.0** and `tune-monitor` to
**1.1.0**.
Plugin-level CHANGELOGs are left for the next release cut (no Unreleased
section convention in this repo).
## Test plan
- [ ] Spot-check the rendered skill docs to confirm tool names +
preview/confirm flow read coherently end-to-end.
- [ ] Run the `monitoring-advisor` live evals
(`plugins/claude-code/evals/monitoring-advisor/live-evals-{dev,prod}.yaml`)
against the updated dev MCP server — confirms the new tool names match
what the server actually exposes in the default toolset.
- [ ] Run the `prevent` live eval (`live-04-monitor-delegation`) and
confirm the turn-2 trace shows one of the new
`create_or_update_*_monitor` calls.
- [ ] Manually exercise the tune-monitor apply step against a sandbox
monitor: `dry_run=True` returns YAML, `dry_run=False` updates in place
and returns the deep link.
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 0607542 commit f99e234
16 files changed
Lines changed: 219 additions & 82 deletions
File tree
- plugins/claude-code/evals
- monitoring-advisor
- prevent
- skills
- monitoring-advisor
- references
- tune-monitor
- references
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
213 | | - | |
| 215 | + | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
52 | 62 | | |
53 | 63 | | |
54 | 64 | | |
| |||
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
51 | 64 | | |
52 | 65 | | |
53 | 66 | | |
| |||
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
44 | 57 | | |
45 | 58 | | |
46 | 59 | | |
| |||
0 commit comments