-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
275 lines (187 loc) · 19.4 KB
/
Copy pathMakefile
File metadata and controls
275 lines (187 loc) · 19.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
.PHONY: test test-verbose test-security test-security-llm test-integration-llm state-up state-down llm-up llm-pull llm-down check-policy-pack check-policy-pack-llm verify-env run-heartbeat-example run-classifier-example run-triage-example run-reply-drafter-example run-summary-example run-handoff-example run-planner-example run-executor-example run-retrieval-example run-synthesis-example run-test-case-generator-example run-regression-triage-example run-benchmark-curator-example run-regression-score-example run-quality-drift-reporter-example run-hypothesis-registration-example run-experiment-plan-example run-result-adjudication-example demo-experiment-ops run-router-example run-checkpoint-example run-lineage-recorder-example run-scope-validator-example run-blast-radius-assessor-example run-kill-path-auditor-example run-schema-drift-detector-example run-data-validator-example run-code-reviewer-example run-pr-summary-example run-log-analyzer-example run-slo-reporter-example run-security-scan-example run-support-pipeline-example run-planner-executor-pipeline-example run-workflow-pipeline-example run-governance-pipeline-example run-resilience-pipeline-example run-agent-incident-drill-example compare-agent-incident-drill-scorecards-example run-heartbeat-llm run-classifier-llm run-triage-llm run-reply-drafter-llm run-summary-llm run-handoff-llm run-planner-llm run-executor-llm run-retrieval-llm run-synthesis-llm run-test-case-generator-llm run-regression-triage-llm run-benchmark-curator-llm run-regression-score-llm run-quality-drift-reporter-llm run-hypothesis-registration-llm run-experiment-plan-llm run-result-adjudication-llm demo-experiment-ops-llm run-router-llm run-checkpoint-llm run-lineage-recorder-llm run-scope-validator-llm run-blast-radius-assessor-llm run-kill-path-auditor-llm run-schema-drift-detector-llm run-data-validator-llm run-code-reviewer-llm run-pr-summary-llm run-log-analyzer-llm run-slo-reporter-llm run-support-pipeline-llm run-planner-executor-pipeline-llm run-workflow-pipeline-llm run-governance-pipeline-llm run-resilience-pipeline-llm
test:
python3 -m unittest discover -s tests
test-verbose:
python3 -m unittest discover -s tests -v
test-security:
python3 -m unittest tests.test_asi01_goal_hijack tests.test_asi02_tool_misuse tests.test_asi03_identity_privilege_abuse tests.test_asi04_supply_chain tests.test_asi05_unexpected_code_execution tests.test_asi06_memory_context_poisoning tests.test_asi07_inter_agent_comm tests.test_asi08_cascading_failures tests.test_asi09_human_agent_trust_exploitation tests.test_asi10_rogue_agents tests.test_security_scanner -v
test-security-llm: check-policy-pack-llm
AGENT_MODE=llm python3 -m unittest tests.test_asi01_goal_hijack_llm tests.test_asi02_tool_misuse_llm tests.test_asi03_identity_privilege_abuse_llm tests.test_asi04_supply_chain_llm tests.test_asi05_unexpected_code_execution_llm tests.test_asi06_memory_context_poisoning_llm tests.test_asi07_inter_agent_comm_llm tests.test_asi08_cascading_failures_llm tests.test_asi09_human_agent_trust_exploitation_llm tests.test_asi10_rogue_agents_llm -v
test-integration-llm: check-policy-pack-llm
AGENT_MODE=llm python3 -m unittest tests.test_integration_llm -v
state-up:
docker compose up -d redis
state-down:
docker compose stop redis
llm-up:
docker compose up -d ollama
llm-pull:
./scripts/pull_fast_model.sh
llm-down:
docker compose down
check-policy-pack:
python3 scripts/check_policy_pack.py --env $${POLICY_ENV:-dev} --mode $${AGENT_MODE:-deterministic}
check-policy-pack-llm:
python3 scripts/check_policy_pack.py --env $${POLICY_ENV:-dev} --mode llm
verify-env:
@echo "verify-env: POLICY_ENV=$${POLICY_ENV:-dev}, AGENT_MODE=$${AGENT_MODE:-deterministic}"
$(MAKE) check-policy-pack POLICY_ENV=$${POLICY_ENV:-dev} AGENT_MODE=$${AGENT_MODE:-deterministic}
$(MAKE) test
@if [ "$${POLICY_ENV:-dev}" != "dev" ]; then \
echo "Running deterministic security suite for $${POLICY_ENV:-dev}"; \
$(MAKE) test-security; \
else \
echo "Skipping deterministic security suite in dev (run make test-security manually if needed)"; \
fi
run-heartbeat-example:
python3 scripts/run_agent.py --agent starter-kit.heartbeat-agent --input catalog/projects/starter-kit/agents/heartbeat-agent/examples/example-input.json --pretty
run-classifier-example:
python3 scripts/run_agent.py --agent starter-kit.classifier-agent --input catalog/projects/starter-kit/agents/classifier-agent/examples/example-input.json --pretty
run-triage-example:
python3 scripts/run_agent.py --agent support-ops.triage-agent --input catalog/projects/support-ops/agents/triage-agent/examples/example-input.json --pretty
run-reply-drafter-example:
python3 scripts/run_agent.py --agent support-ops.reply-drafter-agent --input catalog/projects/support-ops/agents/reply-drafter-agent/examples/example-input.json --pretty
run-summary-example:
python3 scripts/run_agent.py --agent support-ops.summary-agent --input catalog/projects/support-ops/agents/summary-agent/examples/example-input.json --pretty
run-handoff-example:
python3 scripts/run_agent.py --agent support-ops.handoff-agent --input catalog/projects/support-ops/agents/handoff-agent/examples/example-input.json --pretty
run-planner-example:
python3 scripts/run_agent.py --agent planner-executor.planner-agent --input catalog/projects/planner-executor/agents/planner-agent/examples/example-input.json --pretty
run-executor-example:
python3 scripts/run_agent.py --agent planner-executor.executor-agent --input catalog/projects/planner-executor/agents/executor-agent/examples/example-input.json --pretty
run-retrieval-example:
python3 scripts/run_agent.py --agent research-ops.retrieval-agent --input catalog/projects/research-ops/agents/retrieval-agent/examples/example-input.json --pretty
run-synthesis-example:
python3 scripts/run_agent.py --agent research-ops.synthesis-agent --input catalog/projects/research-ops/agents/synthesis-agent/examples/example-input.json --pretty
run-test-case-generator-example:
python3 scripts/run_agent.py --agent qa-ops.test-case-generator-agent --input catalog/projects/qa-ops/agents/test-case-generator-agent/examples/example-input.json --pretty
run-regression-triage-example:
python3 scripts/run_agent.py --agent qa-ops.regression-triage-agent --input catalog/projects/qa-ops/agents/regression-triage-agent/examples/example-input.json --pretty
run-benchmark-curator-example:
python3 scripts/run_agent.py --agent eval-ops.benchmark-curator-agent --input catalog/projects/eval-ops/agents/benchmark-curator-agent/examples/example-input.json --pretty
run-regression-score-example:
python3 scripts/run_agent.py --agent eval-ops.regression-score-agent --input catalog/projects/eval-ops/agents/regression-score-agent/examples/example-input.json --pretty
run-quality-drift-reporter-example:
python3 scripts/run_agent.py --agent eval-ops.quality-drift-reporter-agent --input catalog/projects/eval-ops/agents/quality-drift-reporter-agent/examples/example-input.json --pretty
run-hypothesis-registration-example:
python3 scripts/run_agent.py --agent experiment-ops.hypothesis-registration-agent --input catalog/projects/experiment-ops/agents/hypothesis-registration-agent/examples/example-input.json --pretty
run-experiment-plan-example:
python3 scripts/run_agent.py --agent experiment-ops.experiment-plan-agent --input catalog/projects/experiment-ops/agents/experiment-plan-agent/examples/example-input.json --pretty
run-result-adjudication-example:
python3 scripts/run_agent.py --agent experiment-ops.result-adjudication-agent --input catalog/projects/experiment-ops/agents/result-adjudication-agent/examples/example-input.json --pretty
demo-experiment-ops: run-hypothesis-registration-example run-experiment-plan-example run-result-adjudication-example
run-router-example:
python3 scripts/run_agent.py --agent workflow-ops.router-agent --input catalog/projects/workflow-ops/agents/router-agent/examples/example-input.json --pretty
run-checkpoint-example:
python3 scripts/run_agent.py --agent workflow-ops.checkpoint-agent --input catalog/projects/workflow-ops/agents/checkpoint-agent/examples/example-input.json --pretty
run-lineage-recorder-example:
python3 scripts/run_agent.py --agent control-ops.lineage-recorder-agent --input catalog/projects/control-ops/agents/lineage-recorder-agent/examples/example-input.json --pretty
run-scope-validator-example:
python3 scripts/run_agent.py --agent control-ops.scope-validator-agent --input catalog/projects/control-ops/agents/scope-validator-agent/examples/example-input.json --pretty
run-blast-radius-assessor-example:
python3 scripts/run_agent.py --agent control-ops.blast-radius-assessor-agent --input catalog/projects/control-ops/agents/blast-radius-assessor-agent/examples/example-input.json --pretty
run-kill-path-auditor-example:
python3 scripts/run_agent.py --agent control-ops.kill-path-auditor-agent --input catalog/projects/control-ops/agents/kill-path-auditor-agent/examples/example-input.json --pretty
run-schema-drift-detector-example:
python3 scripts/run_agent.py --agent data-ops.schema-drift-detector-agent --input catalog/projects/data-ops/agents/schema-drift-detector-agent/examples/example-input.json --pretty
run-data-validator-example:
python3 scripts/run_agent.py --agent data-ops.data-validator-agent --input catalog/projects/data-ops/agents/data-validator-agent/examples/example-input.json --pretty
run-code-reviewer-example:
python3 scripts/run_agent.py --agent code-ops.code-reviewer-agent --input catalog/projects/code-ops/agents/code-reviewer-agent/examples/example-input.json --pretty
run-pr-summary-example:
python3 scripts/run_agent.py --agent code-ops.pr-summary-agent --input catalog/projects/code-ops/agents/pr-summary-agent/examples/example-input.json --pretty
run-log-analyzer-example:
python3 scripts/run_agent.py --agent observability-ops.log-analyzer-agent --input catalog/projects/observability-ops/agents/log-analyzer-agent/examples/example-input.json --pretty
run-slo-reporter-example:
python3 scripts/run_agent.py --agent observability-ops.slo-reporter-agent --input catalog/projects/observability-ops/agents/slo-reporter-agent/examples/example-input.json --pretty
run-security-scan-example:
python3 scripts/run_security_scan.py --target-path . --pretty
run-support-pipeline-example:
python3 scripts/run_support_pipeline.py --input catalog/projects/support-ops/examples/pipeline-input.json --pretty
run-planner-executor-pipeline-example:
python3 scripts/run_planner_executor_pipeline.py --input catalog/projects/planner-executor/examples/pipeline-input.json --pretty
run-workflow-pipeline-example:
python3 scripts/run_workflow_pipeline.py --input catalog/projects/workflow-ops/examples/pipeline-input.json --pretty
run-governance-pipeline-example:
python3 scripts/run_governance_pipeline.py --input catalog/projects/control-ops/examples/governance-pipeline-input.json --pretty
run-resilience-pipeline-example:
python3 scripts/run_resilience_pipeline.py --input catalog/projects/control-ops/examples/resilience-pipeline-input.json --pretty
run-agent-incident-drill-example:
python3 scripts/run_agent_incident_drill.py --input catalog/projects/agent-incident-drill/examples/drill-input.json --pretty
compare-agent-incident-drill-scorecards-example:
@{ a=$$(mktemp) && b=$$(mktemp) && \
python3 scripts/run_agent_incident_drill.py --input catalog/projects/agent-incident-drill/examples/drill-input.json > $$a && \
python3 scripts/run_agent_incident_drill.py --input catalog/projects/agent-incident-drill/examples/drill-input-supply-chain-compromise.json > $$b && \
python3 scripts/compare_agent_incident_drill_scorecards.py --baseline $$a --current $$b --pretty; \
s=$$?; rm -f $$a $$b; exit $$s; }
run-heartbeat-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent starter-kit.heartbeat-agent --input catalog/projects/starter-kit/agents/heartbeat-agent/examples/example-input.json --pretty
run-classifier-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent starter-kit.classifier-agent --input catalog/projects/starter-kit/agents/classifier-agent/examples/example-input.json --pretty
run-triage-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent support-ops.triage-agent --input catalog/projects/support-ops/agents/triage-agent/examples/example-input.json --pretty
run-reply-drafter-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent support-ops.reply-drafter-agent --input catalog/projects/support-ops/agents/reply-drafter-agent/examples/example-input.json --pretty
run-summary-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent support-ops.summary-agent --input catalog/projects/support-ops/agents/summary-agent/examples/example-input.json --pretty
run-handoff-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent support-ops.handoff-agent --input catalog/projects/support-ops/agents/handoff-agent/examples/example-input.json --pretty
run-planner-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent planner-executor.planner-agent --input catalog/projects/planner-executor/agents/planner-agent/examples/example-input.json --pretty
run-executor-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent planner-executor.executor-agent --input catalog/projects/planner-executor/agents/executor-agent/examples/example-input.json --pretty
run-retrieval-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent research-ops.retrieval-agent --input catalog/projects/research-ops/agents/retrieval-agent/examples/example-input.json --pretty
run-synthesis-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent research-ops.synthesis-agent --input catalog/projects/research-ops/agents/synthesis-agent/examples/example-input.json --pretty
run-test-case-generator-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent qa-ops.test-case-generator-agent --input catalog/projects/qa-ops/agents/test-case-generator-agent/examples/example-input.json --pretty
run-regression-triage-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent qa-ops.regression-triage-agent --input catalog/projects/qa-ops/agents/regression-triage-agent/examples/example-input.json --pretty
run-benchmark-curator-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent eval-ops.benchmark-curator-agent --input catalog/projects/eval-ops/agents/benchmark-curator-agent/examples/example-input.json --pretty
run-regression-score-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent eval-ops.regression-score-agent --input catalog/projects/eval-ops/agents/regression-score-agent/examples/example-input.json --pretty
run-quality-drift-reporter-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent eval-ops.quality-drift-reporter-agent --input catalog/projects/eval-ops/agents/quality-drift-reporter-agent/examples/example-input.json --pretty
run-hypothesis-registration-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent experiment-ops.hypothesis-registration-agent --input catalog/projects/experiment-ops/agents/hypothesis-registration-agent/examples/example-input.json --pretty
run-experiment-plan-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent experiment-ops.experiment-plan-agent --input catalog/projects/experiment-ops/agents/experiment-plan-agent/examples/example-input.json --pretty
run-result-adjudication-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent experiment-ops.result-adjudication-agent --input catalog/projects/experiment-ops/agents/result-adjudication-agent/examples/example-input.json --pretty
demo-experiment-ops-llm: check-policy-pack-llm run-hypothesis-registration-llm run-experiment-plan-llm run-result-adjudication-llm
run-router-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent workflow-ops.router-agent --input catalog/projects/workflow-ops/agents/router-agent/examples/example-input.json --pretty
run-checkpoint-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent workflow-ops.checkpoint-agent --input catalog/projects/workflow-ops/agents/checkpoint-agent/examples/example-input.json --pretty
run-lineage-recorder-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent control-ops.lineage-recorder-agent --input catalog/projects/control-ops/agents/lineage-recorder-agent/examples/example-input.json --pretty
run-scope-validator-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent control-ops.scope-validator-agent --input catalog/projects/control-ops/agents/scope-validator-agent/examples/example-input.json --pretty
run-blast-radius-assessor-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent control-ops.blast-radius-assessor-agent --input catalog/projects/control-ops/agents/blast-radius-assessor-agent/examples/example-input.json --pretty
run-kill-path-auditor-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent control-ops.kill-path-auditor-agent --input catalog/projects/control-ops/agents/kill-path-auditor-agent/examples/example-input.json --pretty
run-schema-drift-detector-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent data-ops.schema-drift-detector-agent --input catalog/projects/data-ops/agents/schema-drift-detector-agent/examples/example-input.json --pretty
run-data-validator-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent data-ops.data-validator-agent --input catalog/projects/data-ops/agents/data-validator-agent/examples/example-input.json --pretty
run-code-reviewer-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent code-ops.code-reviewer-agent --input catalog/projects/code-ops/agents/code-reviewer-agent/examples/example-input.json --pretty
run-pr-summary-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent code-ops.pr-summary-agent --input catalog/projects/code-ops/agents/pr-summary-agent/examples/example-input.json --pretty
run-log-analyzer-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent observability-ops.log-analyzer-agent --input catalog/projects/observability-ops/agents/log-analyzer-agent/examples/example-input.json --pretty
run-slo-reporter-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_agent.py --agent observability-ops.slo-reporter-agent --input catalog/projects/observability-ops/agents/slo-reporter-agent/examples/example-input.json --pretty
run-support-pipeline-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_support_pipeline.py --input catalog/projects/support-ops/examples/pipeline-input.json --pretty
run-planner-executor-pipeline-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_planner_executor_pipeline.py --input catalog/projects/planner-executor/examples/pipeline-input.json --pretty
run-workflow-pipeline-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_workflow_pipeline.py --input catalog/projects/workflow-ops/examples/pipeline-input.json --pretty
run-governance-pipeline-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_governance_pipeline.py --input catalog/projects/control-ops/examples/governance-pipeline-input.json --pretty
run-resilience-pipeline-llm: check-policy-pack-llm
AGENT_MODE=llm python3 scripts/run_resilience_pipeline.py --input catalog/projects/control-ops/examples/resilience-pipeline-input.json --pretty