@bendyline/gilde 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/authoring/tactical/wave.json +18 -18
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/craftbook.json +418 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/test.json +196 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/craftbook.json +432 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/test.json +192 -0
- package/data/craftbook-templates/al/alert-rules/versions/1.0.5/craftbook.json +384 -0
- package/data/craftbook-templates/al/alert-rules/versions/1.0.5/test.json +145 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.6/craftbook.json +736 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.6/test.json +221 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/craftbook.json +799 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/test.json +221 -0
- package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/craftbook.json +119 -0
- package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/test.json +128 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.5/craftbook.json +607 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.5/test.json +252 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/craftbook.json +661 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/test.json +252 -0
- package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/craftbook.json +416 -0
- package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/test.json +238 -0
- package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/craftbook.json +494 -0
- package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/test.json +167 -0
- package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/craftbook.json +419 -0
- package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/test.json +172 -0
- package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/craftbook.json +285 -0
- package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/test.json +102 -0
- package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/craftbook.json +431 -0
- package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/test.json +348 -0
- package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/craftbook.json +452 -0
- package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/test.json +184 -0
- package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.6/craftbook.json +625 -0
- package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.6/test.json +235 -0
- package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/craftbook.json +312 -0
- package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/test.json +87 -0
- package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/craftbook.json +702 -0
- package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/test.json +191 -0
- package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.5/craftbook.json +720 -0
- package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.5/test.json +239 -0
- package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/craftbook.json +480 -0
- package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/test.json +176 -0
- package/data/craftbook-templates/in/investigate/versions/1.1.1/craftbook.json +85 -0
- package/data/craftbook-templates/in/investigate/versions/1.1.1/test.json +118 -0
- package/data/craftbook-templates/in/invoice-run/versions/1.1.9/craftbook.json +515 -0
- package/data/craftbook-templates/in/invoice-run/versions/1.1.9/test.json +140 -0
- package/data/craftbook-templates/index.json +1 -1
- package/data/craftbook-templates/ma/market-scan/versions/1.0.5/craftbook.json +480 -0
- package/data/craftbook-templates/ma/market-scan/versions/1.0.5/test.json +223 -0
- package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/craftbook.json +255 -0
- package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/test.json +140 -0
- package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/craftbook.json +270 -0
- package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/test.json +105 -0
- package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/craftbook.json +320 -0
- package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/test.json +94 -0
- package/data/craftbook-templates/pe/perf-optimization/versions/2.0.5/craftbook.json +699 -0
- package/data/craftbook-templates/pe/perf-optimization/versions/2.0.5/test.json +235 -0
- package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/craftbook.json +603 -0
- package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/test.json +266 -0
- package/data/craftbook-templates/pr/press-release/versions/1.0.6/craftbook.json +450 -0
- package/data/craftbook-templates/pr/press-release/versions/1.0.6/test.json +356 -0
- package/data/craftbook-templates/raw-index.json +1 -1
- package/data/craftbook-templates/re/refactor-module/versions/2.0.6/craftbook.json +699 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.6/test.json +241 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.7/craftbook.json +753 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.7/test.json +241 -0
- package/data/craftbook-templates/re/release-notes/versions/1.0.6/craftbook.json +339 -0
- package/data/craftbook-templates/re/release-notes/versions/1.0.6/test.json +107 -0
- package/data/craftbook-templates/re/research-report/versions/1.0.6/craftbook.json +417 -0
- package/data/craftbook-templates/re/research-report/versions/1.0.6/test.json +183 -0
- package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/craftbook.json +319 -0
- package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/test.json +87 -0
- package/data/craftbook-templates/ru/runbook/versions/1.0.5/craftbook.json +491 -0
- package/data/craftbook-templates/ru/runbook/versions/1.0.5/test.json +118 -0
- package/data/craftbook-templates/sc/schema-migration/versions/2.0.5/craftbook.json +626 -0
- package/data/craftbook-templates/sc/schema-migration/versions/2.0.5/test.json +225 -0
- package/data/craftbook-templates/sh/ship/versions/1.1.4/craftbook.json +353 -0
- package/data/craftbook-templates/sh/ship/versions/1.1.4/test.json +235 -0
- package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/craftbook.json +596 -0
- package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/test.json +195 -0
- package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/craftbook.json +596 -0
- package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/test.json +221 -0
- package/data/craftbook-templates/we/week-plan/versions/1.0.5/craftbook.json +313 -0
- package/data/craftbook-templates/we/week-plan/versions/1.0.5/test.json +175 -0
- package/data/gezel-templates/im/image-editor/manifest.json +21 -0
- package/data/gezel-templates/im/image-editor/versions/1.0.0/about.md +17 -0
- package/data/gezel-templates/im/image-editor/versions/1.0.0/manifest.json +14 -0
- package/data/gezel-templates/index.json +1 -1
- package/data/gezel-templates/raw-index.json +1 -1
- package/data/image-models/fl/flux-2-klein-4b-q4/manifest.json +3 -0
- package/data/image-models/index.json +1 -1
- package/data/image-models/qw/qwen-image-edit-2511-q4/manifest.json +44 -0
- package/data/image-models/qw/qwen-image-edit-2511-q4/versions/1.0.0/manifest.json +36 -0
- package/data/image-models/raw-index.json +1 -1
- package/package.json +1 -1
- package/schemas/image-model-identity.schema.json +16 -0
- package/schemas/image-model-version.schema.json +1 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"title": "Decision-ready A/B test readout",
|
|
4
|
+
"objective": "Measure whether the ab-test-readout craftbook computes the experiment figures CORRECTLY (checked against a harness-owned arithmetic oracle, not prose keyword matching), and whether it applies a decision rule whose guardrail clause overrides a positive, statistically significant primary metric.",
|
|
5
|
+
"tags": [
|
|
6
|
+
"corpus"
|
|
7
|
+
],
|
|
8
|
+
"prompt": "In the `A/B Test Readout Eval` project, read `source/experiment-brief.md` and `data/checkout-test.csv`, then produce two files.\n\n1. `data/stats.json` — the computed figures, using EXACTLY this schema and these units:\n```json\n{\n \"control\": { \"exposures\": 0, \"conversions\": 0, \"rate\": 0.0, \"refund_requests\": 0, \"refund_rate\": 0.0 },\n \"variant\": { \"exposures\": 0, \"conversions\": 0, \"rate\": 0.0, \"refund_requests\": 0, \"refund_rate\": 0.0 },\n \"absolute_lift_pp\": 0.0,\n \"relative_lift_pct\": 0.0,\n \"lift_ci95_pp\": [0.0, 0.0],\n \"p_value\": 0.0,\n \"significant_at_95\": false,\n \"guardrail_delta_pp\": 0.0,\n \"guardrail_breached\": false,\n \"decision\": \"ship\" | \"do_not_ship\" | \"inconclusive\"\n}\n```\n`rate` and `refund_rate` are FRACTIONS (0.12, not 12). `absolute_lift_pp` and `guardrail_delta_pp` are PERCENTAGE POINTS (1.25, not 0.0125). `relative_lift_pct` is a percentage (10.4). `lift_ci95_pp` is the 95% confidence interval on the absolute lift, in percentage points. Use a two-proportion z-test for `p_value`. Round the `_pp` fields and `relative_lift_pct` to 2 decimal places and the rate fields to 4, so a computed float does not serialize as 1.2500000000000009.\n\n2. `tasks/eval/readout.md` — a decision-ready experiment readout built from those figures and no new numbers. Lead with Ship / Do not ship / Inconclusive, report the conversion lift with confidence/significance language, check the refund-request guardrail, and tie the recommendation to the pre-registered decision rule. Apply the decision rule as written: every clause must hold to ship.",
|
|
9
|
+
"setup": {
|
|
10
|
+
"projectName": "A/B Test Readout Eval",
|
|
11
|
+
"about": "Self-contained eval project for the ab-test-readout craftbook. Experiment brief and aggregate data are seeded in workspace/source and workspace/data.",
|
|
12
|
+
"missionObjectives": "Compute the experiment figures into data/stats.json under the locked schema, then produce an A/B test readout with hypothesis, primary metric, lift, significance/confidence language, guardrail check, recommendation, and next action. The readout must restate the computed figures, not new ones.",
|
|
13
|
+
"files": [
|
|
14
|
+
{
|
|
15
|
+
"path": "source/experiment-brief.md",
|
|
16
|
+
"content": "# Checkout Trust Badge Experiment\n\nHypothesis: adding the trust badge near the payment button increases checkout conversion.\nPrimary metric: purchase conversions / checkout exposures.\nDecision rule: ship only if conversion lift is positive and statistically persuasive at roughly 95% confidence AND refund-request rate does not regress by more than 0.20 percentage points.\nGuardrail: refund requests / exposures.\nRuntime: 14 full days. Traffic split was 50/50. No peeking; use this as the final readout.\n"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"path": "data/checkout-test.csv",
|
|
20
|
+
"content": "variant,exposures,conversions,refund_requests\ncontrol,10000,1200,80\ntrust_badge,10000,1325,103\n"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"worker": {
|
|
24
|
+
"name": "Noor",
|
|
25
|
+
"role": "Data Analyst"
|
|
26
|
+
},
|
|
27
|
+
"craftbookParams": {
|
|
28
|
+
"workPath": "tasks/eval"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"mocks": [],
|
|
32
|
+
"success": {
|
|
33
|
+
"summary": "data/stats.json carries the correct computed figures under the locked schema, and tasks/eval/readout.md in the artifacts drawer restates them with a do-not-ship recommendation that follows the pre-registered decision rule despite a significant positive primary metric.",
|
|
34
|
+
"deliverables": [
|
|
35
|
+
{
|
|
36
|
+
"path": "data/stats.json",
|
|
37
|
+
"kind": "json",
|
|
38
|
+
"minBytes": 120,
|
|
39
|
+
"checks": [
|
|
40
|
+
{
|
|
41
|
+
"kind": "jsonPathEquals",
|
|
42
|
+
"file": "data/stats.json",
|
|
43
|
+
"path": "control.rate",
|
|
44
|
+
"value": 0.12,
|
|
45
|
+
"label": "control conversion rate is 1200/10000"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"kind": "jsonPathEquals",
|
|
49
|
+
"file": "data/stats.json",
|
|
50
|
+
"path": "variant.rate",
|
|
51
|
+
"value": 0.1325,
|
|
52
|
+
"label": "variant conversion rate is 1325/10000"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"kind": "jsonPathEquals",
|
|
56
|
+
"file": "data/stats.json",
|
|
57
|
+
"path": "control.refund_rate",
|
|
58
|
+
"value": 0.008,
|
|
59
|
+
"label": "control refund rate is 80/10000"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"kind": "jsonPathEquals",
|
|
63
|
+
"file": "data/stats.json",
|
|
64
|
+
"path": "variant.refund_rate",
|
|
65
|
+
"value": 0.0103,
|
|
66
|
+
"label": "variant refund rate is 103/10000"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"kind": "jsonPathEquals",
|
|
70
|
+
"file": "data/stats.json",
|
|
71
|
+
"path": "absolute_lift_pp",
|
|
72
|
+
"value": 1.25,
|
|
73
|
+
"label": "absolute lift is 13.25% - 12.00% = 1.25 percentage points"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"kind": "jsonPathEquals",
|
|
77
|
+
"file": "data/stats.json",
|
|
78
|
+
"path": "significant_at_95",
|
|
79
|
+
"value": true,
|
|
80
|
+
"label": "the two-proportion z-test gives z~2.66, p~0.008 — significant at 95%"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"kind": "jsonPathEquals",
|
|
84
|
+
"file": "data/stats.json",
|
|
85
|
+
"path": "guardrail_delta_pp",
|
|
86
|
+
"value": 0.23,
|
|
87
|
+
"label": "refund rate moved 1.03% - 0.80% = 0.23 percentage points"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"kind": "jsonPathEquals",
|
|
91
|
+
"file": "data/stats.json",
|
|
92
|
+
"path": "guardrail_breached",
|
|
93
|
+
"value": true,
|
|
94
|
+
"label": "0.23pp exceeds the 0.20pp guardrail limit"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"kind": "jsonPathEquals",
|
|
98
|
+
"file": "data/stats.json",
|
|
99
|
+
"path": "decision",
|
|
100
|
+
"value": "do_not_ship",
|
|
101
|
+
"label": "the decision rule requires BOTH a persuasive lift AND no guardrail regression; the guardrail clause fails"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"path": "tasks/eval/readout.md",
|
|
107
|
+
"kind": "markdown-report",
|
|
108
|
+
"minBytes": 2000,
|
|
109
|
+
"checks": [
|
|
110
|
+
{
|
|
111
|
+
"kind": "contains",
|
|
112
|
+
"file": "tasks/eval/readout.md",
|
|
113
|
+
"pattern": "Hypothesis|Decision rule|Recommendation|Guardrail|Next action",
|
|
114
|
+
"flags": "i",
|
|
115
|
+
"artifact": true
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"kind": "contains",
|
|
119
|
+
"file": "tasks/eval/readout.md",
|
|
120
|
+
"pattern": "10,?000|1,?200|1,?325|80|103",
|
|
121
|
+
"flags": "i",
|
|
122
|
+
"artifact": true
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"kind": "contains",
|
|
126
|
+
"file": "tasks/eval/readout.md",
|
|
127
|
+
"pattern": "12\\.0?%|13\\.25%|1\\.25|10\\.4",
|
|
128
|
+
"flags": "i",
|
|
129
|
+
"artifact": true
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"kind": "contains",
|
|
133
|
+
"file": "tasks/eval/readout.md",
|
|
134
|
+
"pattern": "confidence|significant|p[- ]?value|95%",
|
|
135
|
+
"flags": "i",
|
|
136
|
+
"artifact": true
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"kind": "contains",
|
|
140
|
+
"file": "tasks/eval/readout.md",
|
|
141
|
+
"pattern": "refund request|guardrail|0\\.23|23 basis|basis points",
|
|
142
|
+
"flags": "i",
|
|
143
|
+
"artifact": true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"kind": "contains",
|
|
147
|
+
"file": "tasks/eval/readout.md",
|
|
148
|
+
"pattern": "do not ship|no-go|hold|do not launch|inconclusive",
|
|
149
|
+
"flags": "i",
|
|
150
|
+
"artifact": true
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"artifact": true
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"rubric": {
|
|
158
|
+
"artifact": {
|
|
159
|
+
"path": "tasks/eval/readout.md",
|
|
160
|
+
"kind": "markdown"
|
|
161
|
+
},
|
|
162
|
+
"axes": [
|
|
163
|
+
{
|
|
164
|
+
"name": "decision rule",
|
|
165
|
+
"description": "The recommendation follows every clause of the pre-registered decision rule, so a breached guardrail overrides a significant positive lift."
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "statistical reporting",
|
|
169
|
+
"description": "Each arm's rate, the absolute and relative lift, its 95% confidence interval and the p-value are stated with the right units (percentage points vs percent) and match data/stats.json."
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "honest caveats",
|
|
173
|
+
"description": "Caveats on power, runtime and novelty are specific rather than boilerplate, and the readout ends with a concrete next action."
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"qualityFocus": [
|
|
178
|
+
"pre-registered decision rule",
|
|
179
|
+
"computed lift",
|
|
180
|
+
"guardrail-aware verdict"
|
|
181
|
+
],
|
|
182
|
+
"extensions": {
|
|
183
|
+
"legacySimulators": [
|
|
184
|
+
{
|
|
185
|
+
"id": "seeded-experiment-aggregate",
|
|
186
|
+
"kind": "data-source",
|
|
187
|
+
"status": "implemented",
|
|
188
|
+
"description": "Local aggregate experiment CSV replacing any live analytics warehouse or experimentation API."
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "alert-rules",
|
|
3
|
+
"name": "Monitoring Alert Rules",
|
|
4
|
+
"description": "Author a set of monitoring/alerting rules as a deployable config (Prometheus alerting rules, Grafana/Alertmanager YAML, or a CloudWatch-style spec): the right signals, thresholds, severities, for-durations, and routing labels. Scopes the SLOs and alert philosophy FIRST (what to alert on, symptom-vs-cause, thresholds and burn windows, severity ladder, noise budget), then a developer writes the rules config to that spec, then a reviewer validates for completeness, dedupe, and anti-flapping. Scoping thresholds and severities before writing YAML is what produces actionable, low-noise alerts instead of a wall of CPU-over-80% pages. Use for alerting rules, Prometheus alerts, SLO monitoring, on-call paging rules, and reducing alert fatigue.\n\nA gallery craftbook generated from an archetype spec. It runs\n`phase → (per-phase gate) → … → evaluate → (loop) → finish`. Each build\nphase that produces a checkable artifact is followed by a **runtime\ngate-checkpoint** — the runtime verifies the artifact and routes with no\nmodel turn, looping back to redo the phase on a miss. The final `evaluate`\nstep holds a static deliverable gate plus a reviewer QA pass. What it adds\nover the generic `build-loop`: a specialist role per phase, a\ndomain-correct ordering, and a concrete per-phase quality bar.\n\nDeliverables marked \"artifact\" land in the project's artifacts drawer (`write_artifact` / `read_artifact`), not the shipped workspace — review output is not product source.\n\nPhases:\n\n1. Scope the alerts (planner) — lock signals, thresholds, severities, and routing → gated on artifact `{{workPath}}/scope.md` (markdown-notes)\n2. Build the rules (developer) — write the alerting-rules config to the locked spec → gated on `alerts.yaml` (yaml-spec)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n",
|
|
5
|
+
"entryStepId": "scope",
|
|
6
|
+
"triggers": [
|
|
7
|
+
"write alert rules",
|
|
8
|
+
"prometheus alerts",
|
|
9
|
+
"monitoring rules",
|
|
10
|
+
"set up alerting",
|
|
11
|
+
"SLO alerts"
|
|
12
|
+
],
|
|
13
|
+
"paramSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"workPath": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"title": "Working folder",
|
|
19
|
+
"description": "Per-task working folder in the artifacts drawer. Defaults to this task's own folder so runs never collide; override with a stable name when you deliberately want runs to share files.",
|
|
20
|
+
"default": "{{task.dir}}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"contract": {
|
|
25
|
+
"goal": "A deployable alerting-rules config in alerts.yaml (Prometheus rule format unless the person asks for another): symptom-level alerts, each with an expression, a non-zero for: duration, severity and routing labels, a summary and description, and a runbook link on page-level alerts, kept within the noise budget.",
|
|
26
|
+
"deliverables": [
|
|
27
|
+
{
|
|
28
|
+
"id": "rules",
|
|
29
|
+
"path": "alerts.yaml",
|
|
30
|
+
"kind": "yaml-spec",
|
|
31
|
+
"description": "The alerting-rules config, ready to deploy"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"criteria": [
|
|
35
|
+
{
|
|
36
|
+
"id": "rules-file",
|
|
37
|
+
"kind": "acceptance",
|
|
38
|
+
"text": "alerts.yaml exists and holds real rule definitions, not a stub",
|
|
39
|
+
"checks": [
|
|
40
|
+
{
|
|
41
|
+
"kind": "minBytes",
|
|
42
|
+
"file": "alerts.yaml",
|
|
43
|
+
"bytes": 200
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"kind": "sniff",
|
|
47
|
+
"file": "alerts.yaml",
|
|
48
|
+
"sniff": "nonempty"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "expr-and-for",
|
|
54
|
+
"kind": "acceptance",
|
|
55
|
+
"text": "Each alert has a metric expression (expr) and a for: duration",
|
|
56
|
+
"checks": [
|
|
57
|
+
{
|
|
58
|
+
"kind": "contains",
|
|
59
|
+
"file": "alerts.yaml",
|
|
60
|
+
"pattern": "(?:^|\\n)[ \\t]*(?:-[ \\t]*)?expr:[ \\t]*\\S",
|
|
61
|
+
"label": "an expr: field"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"kind": "contains",
|
|
65
|
+
"file": "alerts.yaml",
|
|
66
|
+
"pattern": "(?:^|\\n)[ \\t]*(?:-[ \\t]*)?for:[ \\t]*['\"]?\\d",
|
|
67
|
+
"label": "a for: duration"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "severity-and-routing",
|
|
73
|
+
"kind": "acceptance",
|
|
74
|
+
"text": "Alerts carry a severity label and a routing label such as team or service",
|
|
75
|
+
"checks": [
|
|
76
|
+
{
|
|
77
|
+
"kind": "contains",
|
|
78
|
+
"file": "alerts.yaml",
|
|
79
|
+
"pattern": "(?:^|\\n)[ \\t]*severity:[ \\t]*\\S",
|
|
80
|
+
"label": "a severity label"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"kind": "contains",
|
|
84
|
+
"file": "alerts.yaml",
|
|
85
|
+
"pattern": "(?:^|\\n)[ \\t]*(?:team|service|owner|squad|component|routing|routing_key|receiver):[ \\t]*\\S",
|
|
86
|
+
"flags": "i",
|
|
87
|
+
"label": "a routing label (team, service, owner, …)"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "annotations",
|
|
93
|
+
"kind": "acceptance",
|
|
94
|
+
"text": "Alerts are annotated with a summary and a description",
|
|
95
|
+
"checks": [
|
|
96
|
+
{
|
|
97
|
+
"kind": "contains",
|
|
98
|
+
"file": "alerts.yaml",
|
|
99
|
+
"pattern": "(?:^|\\n)[ \\t]*summary:[ \\t]*\\S",
|
|
100
|
+
"label": "a summary annotation"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"kind": "contains",
|
|
104
|
+
"file": "alerts.yaml",
|
|
105
|
+
"pattern": "(?:^|\\n)[ \\t]*description:[ \\t]*\\S",
|
|
106
|
+
"label": "a description annotation"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "runbook-links",
|
|
112
|
+
"kind": "quality",
|
|
113
|
+
"text": "Page-level alerts link to a runbook (runbook_url annotation)",
|
|
114
|
+
"checks": [
|
|
115
|
+
{
|
|
116
|
+
"kind": "contains",
|
|
117
|
+
"file": "alerts.yaml",
|
|
118
|
+
"pattern": "(?:^|\\n)[ \\t]*runbook(?:_url|_link|url)?:[ \\t]*\\S",
|
|
119
|
+
"flags": "i",
|
|
120
|
+
"label": "a runbook_url annotation"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "no-zero-for",
|
|
126
|
+
"kind": "quality",
|
|
127
|
+
"text": "No alert fires on a zero for: duration, so a passing spike never pages",
|
|
128
|
+
"checks": [
|
|
129
|
+
{
|
|
130
|
+
"kind": "notContains",
|
|
131
|
+
"file": "alerts.yaml",
|
|
132
|
+
"pattern": "(?:^|\\n)[ \\t]*(?:-[ \\t]*)?for:[ \\t]*['\"]?0+(?:\\.0+)?[smhdw]?['\"]?[ \\t]*(?:#[^\\n]*)?(?=\\n|$)",
|
|
133
|
+
"label": "a zero for: duration"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "valid-config",
|
|
139
|
+
"kind": "quality",
|
|
140
|
+
"enforce": "advisory",
|
|
141
|
+
"text": "The file parses as YAML and matches the target system's rule schema (groups[].rules[] for Prometheus)",
|
|
142
|
+
"judge": {
|
|
143
|
+
"rubric": "Does alerts.yaml parse as YAML and follow the target system's rule schema, with every alert complete (name, expr, for, labels, annotations)?"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "symptom-coverage",
|
|
148
|
+
"kind": "quality",
|
|
149
|
+
"enforce": "advisory",
|
|
150
|
+
"text": "Every service or SLO the person named has at least one symptom-level alert (latency, errors, saturation, availability), with no unrequested, duplicate or overlapping rules",
|
|
151
|
+
"judge": {
|
|
152
|
+
"rubric": "Does every service or SLO the person named get at least one user-facing symptom alert, with no alerts nobody asked for and no two rules firing on the same condition?"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"id": "thresholds-and-noise",
|
|
157
|
+
"kind": "quality",
|
|
158
|
+
"enforce": "advisory",
|
|
159
|
+
"text": "Thresholds and for-durations match what was asked, and page-level alerts stay within the noise budget",
|
|
160
|
+
"judge": {
|
|
161
|
+
"rubric": "Do the thresholds and for-durations match the person’s targets, and does the number of page-severity alerts stay within the stated noise budget?"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"steps": [
|
|
167
|
+
{
|
|
168
|
+
"id": "scope",
|
|
169
|
+
"name": "Scope the alerts",
|
|
170
|
+
"description": "lock signals, thresholds, severities, and routing",
|
|
171
|
+
"prompt": "Define the alerting philosophy before writing config. (1) List the services/SLOs to cover and, for each, the symptom-level signals that matter (latency p99, error rate, saturation, availability) — prefer alerting on user-facing symptoms over raw causes. (2) For every signal lock a threshold, an evaluation/for-duration (to suppress transient spikes), and a severity from a fixed ladder (page = wake someone, ticket = next business day, info = dashboard-only). (3) Define routing labels (team/service/severity) and which severities page. (4) State a noise budget (e.g. no more than N page-level rules) and require a runbook link annotation on every page-level alert. (5) Pick the output format (Prometheus alerting-rules YAML by default). Write an acceptance-criteria checklist ('every SLO has at least one symptom alert', 'every alert has expr + for + severity + summary + runbook annotation', 'no duplicate/overlapping alerts', 'page-level alerts within the noise budget', 'config is valid YAML for the target system') plus the table of signals/thresholds to {{workPath}}/scope.md via write_task_note AND the produces path. No YAML yet.\n\nThe deliverable `{{workPath}}/scope.md` lands in the project's artifacts drawer — write it with `write_artifact` and read it back with `read_artifact`; the shipped workspace stays untouched.",
|
|
172
|
+
"suggestedRole": "planner",
|
|
173
|
+
"advanceWhen": {
|
|
174
|
+
"file": "{{workPath}}/scope.md",
|
|
175
|
+
"minBytes": 1,
|
|
176
|
+
"sniff": "nonempty",
|
|
177
|
+
"artifact": true
|
|
178
|
+
},
|
|
179
|
+
"gate": {
|
|
180
|
+
"at": "completion",
|
|
181
|
+
"checks": [
|
|
182
|
+
{
|
|
183
|
+
"kind": "minBytes",
|
|
184
|
+
"file": "{{workPath}}/scope.md",
|
|
185
|
+
"bytes": 120,
|
|
186
|
+
"artifact": true
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"kind": "sniff",
|
|
190
|
+
"file": "{{workPath}}/scope.md",
|
|
191
|
+
"sniff": "nonempty",
|
|
192
|
+
"artifact": true
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"onReject": "scope",
|
|
196
|
+
"maxAttempts": 3
|
|
197
|
+
},
|
|
198
|
+
"next": "build",
|
|
199
|
+
"toolPolicy": {
|
|
200
|
+
"disallowBuiltinToolsets": [
|
|
201
|
+
"ai-apps",
|
|
202
|
+
"archives",
|
|
203
|
+
"audio",
|
|
204
|
+
"browser-automation",
|
|
205
|
+
"code-execution",
|
|
206
|
+
"craftbooks",
|
|
207
|
+
"data-tables",
|
|
208
|
+
"entity-intel",
|
|
209
|
+
"git",
|
|
210
|
+
"image-intel",
|
|
211
|
+
"images",
|
|
212
|
+
"role-delegation",
|
|
213
|
+
"role-delegation-escalation",
|
|
214
|
+
"security-intel",
|
|
215
|
+
"team-management",
|
|
216
|
+
"videos",
|
|
217
|
+
"web",
|
|
218
|
+
"workspace-fs-write"
|
|
219
|
+
],
|
|
220
|
+
"outputMedium": "artifact",
|
|
221
|
+
"additionalOutputMedia": [
|
|
222
|
+
"task-note"
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"id": "build",
|
|
228
|
+
"name": "Build the rules",
|
|
229
|
+
"description": "write the alerting-rules config to the locked spec",
|
|
230
|
+
"prompt": "Write alerts.yaml as a valid alerting-rules config for the target system using the locked signals. For EACH alert author: a clear alert name, the metric expression (expr) implementing the threshold, a for: duration (non-zero, to suppress flapping), labels (severity + routing), and annotations (a one-line summary with templated context, a description, and a runbook_url for page-level alerts). Group related alerts. Keep thresholds and for-durations exactly as scoped. Ensure the file parses as YAML and matches the target's schema (e.g. groups[].rules[].alert/expr/for/labels/annotations for Prometheus). Cover every scoped SLO with at least one symptom-level alert, add no alerts that weren't scoped, avoid duplicate/overlapping rules, and do not exceed the page-level noise budget. On a loop-back fix only the flagged rules. Write the path and an alert count (by severity) to notes via write_task_note.",
|
|
231
|
+
"suggestedRole": "developer",
|
|
232
|
+
"advanceWhen": {
|
|
233
|
+
"file": "alerts.yaml",
|
|
234
|
+
"minBytes": 1,
|
|
235
|
+
"sniff": "nonempty"
|
|
236
|
+
},
|
|
237
|
+
"gate": {
|
|
238
|
+
"at": "completion",
|
|
239
|
+
"checks": [
|
|
240
|
+
{
|
|
241
|
+
"kind": "minBytes",
|
|
242
|
+
"file": "alerts.yaml",
|
|
243
|
+
"bytes": 200
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"kind": "sniff",
|
|
247
|
+
"file": "alerts.yaml",
|
|
248
|
+
"sniff": "nonempty"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"onReject": "build",
|
|
252
|
+
"maxAttempts": 4
|
|
253
|
+
},
|
|
254
|
+
"next": "evaluate",
|
|
255
|
+
"toolPolicy": {
|
|
256
|
+
"disallowBuiltinToolsets": [
|
|
257
|
+
"ai-apps",
|
|
258
|
+
"archives",
|
|
259
|
+
"artifacts",
|
|
260
|
+
"audio",
|
|
261
|
+
"browser-automation",
|
|
262
|
+
"code-execution",
|
|
263
|
+
"craftbooks",
|
|
264
|
+
"data-tables",
|
|
265
|
+
"entity-intel",
|
|
266
|
+
"git",
|
|
267
|
+
"image-intel",
|
|
268
|
+
"images",
|
|
269
|
+
"role-delegation",
|
|
270
|
+
"role-delegation-escalation",
|
|
271
|
+
"security-intel",
|
|
272
|
+
"team-management",
|
|
273
|
+
"videos",
|
|
274
|
+
"web"
|
|
275
|
+
],
|
|
276
|
+
"outputMedium": "workspace",
|
|
277
|
+
"additionalOutputMedia": [
|
|
278
|
+
"task-note"
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "evaluate",
|
|
284
|
+
"name": "Evaluate",
|
|
285
|
+
"description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
|
|
286
|
+
"prompt": "Validate alerts.yaml against every locked criterion. (1) Parse the YAML — invalid YAML or non-conformance to the target system's rule schema (e.g. groups[].rules[]) is an immediate FAIL. (2) Confirm every scoped SLO is covered by at least one symptom-level alert; FAIL on any missing SLO. (3) Check each alert carries expr, a non-zero for: duration, a severity from the ladder, routing labels, a summary, and — for page-level alerts — a runbook_url annotation. (4) Scan for duplicate or overlapping rules (two firing on the same condition) and flag them. (5) Confirm page-level alerts stay within the noise budget, and sanity-check 2-3 thresholds and for-durations against the scope. Write PASS/FAIL per criterion with the specific offending rule names.\n\nThen record your verdict — this is the whole point of the loop:\n\n1. If any criterion fails, first write the specific gaps to the task notes with `write_task_note`: which file, which part, and what is missing. The \"Build the rules\" step reads them when it fixes the work.\n2. When you have graded every criterion, write `{{workPath}}/verdict.md` with `write_artifact`. One line per criterion and no preamble: the criterion, its one-line reason, then PASS or FAIL as the last word on the line. Writing verdict.md completes this step.\n\nThe runtime routes on the verdict: every line PASS moves the task to \"Finish\"; any FAIL sends it back to \"Build the rules\" to fix those gaps, and a review that keeps failing pauses the task for the user. Mark a criterion PASS only when it is met. The build phase's completion gate already blocked a grossly-incomplete deliverable; your job is the judgment an automated check cannot make (does it actually work, read well, look right).",
|
|
287
|
+
"suggestedRole": "reviewer",
|
|
288
|
+
"consumes": [
|
|
289
|
+
{
|
|
290
|
+
"file": "alerts.yaml"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"advanceWhen": {
|
|
294
|
+
"file": "{{workPath}}/verdict.md",
|
|
295
|
+
"minBytes": 40,
|
|
296
|
+
"sniff": "nonempty",
|
|
297
|
+
"artifact": true
|
|
298
|
+
},
|
|
299
|
+
"gate": {
|
|
300
|
+
"at": "completion",
|
|
301
|
+
"checks": [
|
|
302
|
+
{
|
|
303
|
+
"kind": "contains",
|
|
304
|
+
"file": "{{workPath}}/verdict.md",
|
|
305
|
+
"pattern": "(?<!/\\s*)\\bPASS\\b(?!\\s*/)",
|
|
306
|
+
"label": "the verdict marks its criteria PASS",
|
|
307
|
+
"artifact": true
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"kind": "notContains",
|
|
311
|
+
"file": "{{workPath}}/verdict.md",
|
|
312
|
+
"pattern": "(?<!/\\s*)\\bFAIL\\b(?!\\s*/)",
|
|
313
|
+
"label": "no criterion is marked FAIL",
|
|
314
|
+
"artifact": true
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"onReject": "build",
|
|
318
|
+
"maxAttempts": 3
|
|
319
|
+
},
|
|
320
|
+
"next": "finish",
|
|
321
|
+
"toolPolicy": {
|
|
322
|
+
"disallowBuiltinToolsets": [
|
|
323
|
+
"ai-apps",
|
|
324
|
+
"archives",
|
|
325
|
+
"audio",
|
|
326
|
+
"browser-automation",
|
|
327
|
+
"code-execution",
|
|
328
|
+
"craftbooks",
|
|
329
|
+
"data-tables",
|
|
330
|
+
"entity-intel",
|
|
331
|
+
"git",
|
|
332
|
+
"image-intel",
|
|
333
|
+
"images",
|
|
334
|
+
"role-delegation",
|
|
335
|
+
"role-delegation-escalation",
|
|
336
|
+
"security-intel",
|
|
337
|
+
"team-management",
|
|
338
|
+
"videos",
|
|
339
|
+
"web",
|
|
340
|
+
"workspace-fs-write"
|
|
341
|
+
],
|
|
342
|
+
"outputMedium": "artifact",
|
|
343
|
+
"additionalOutputMedia": [
|
|
344
|
+
"task-note"
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"id": "finish",
|
|
350
|
+
"name": "Finish",
|
|
351
|
+
"description": "All acceptance criteria met. Stamp a short summary and report DONE.",
|
|
352
|
+
"prompt": "Every acceptance criterion passed. Write a one-paragraph DONE summary to task notes via `write_task_note`: what was built, the deliverable path(s), and a one-line confirmation that each criterion is met. Then report DONE.",
|
|
353
|
+
"suggestedRole": "developer",
|
|
354
|
+
"terminal": true,
|
|
355
|
+
"toolPolicy": {
|
|
356
|
+
"disallowBuiltinToolsets": [
|
|
357
|
+
"ai-apps",
|
|
358
|
+
"archives",
|
|
359
|
+
"artifacts",
|
|
360
|
+
"audio",
|
|
361
|
+
"browser-automation",
|
|
362
|
+
"code-execution",
|
|
363
|
+
"craftbooks",
|
|
364
|
+
"data-tables",
|
|
365
|
+
"entity-intel",
|
|
366
|
+
"git",
|
|
367
|
+
"image-intel",
|
|
368
|
+
"images",
|
|
369
|
+
"role-delegation",
|
|
370
|
+
"role-delegation-escalation",
|
|
371
|
+
"security-intel",
|
|
372
|
+
"team-management",
|
|
373
|
+
"videos",
|
|
374
|
+
"web",
|
|
375
|
+
"workspace-fs-write"
|
|
376
|
+
],
|
|
377
|
+
"outputMedium": "task-note"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
"version": "1.0.5",
|
|
382
|
+
"releasedAt": "2026-10-23T00:00:00Z",
|
|
383
|
+
"minGezelVersion": "1.26295"
|
|
384
|
+
}
|