An AI agent that load-tests a code change, finds the regression in Splunk, and writes the fix; driver, writer, and auditor all on a local model.
Kassi has 16 tools with schemas and descriptions present, but quality is inconsistent. Tool names lack clear action verbs (select_mode, extract_endpoints, scaffold are vague). Descriptions range from adequate (read_diff: 44 chars) to verbose (select_mode: 180 chars). Most parameters have types and descriptions, but several tools lack output schema documentation. Error handling is absent, no guidance on retryability, user-fixable errors, or recovery paths. The mcp_calls provenance parameter appears in 11 tools but is never described, forcing LLMs to guess its structure. Tool composition is reasonable (each does one thing), but parameter relationships are undocumented (e.g., how does scaffold_script output feed into generate_script input?). No tool declares permissions, secrets, or idempotency guarantees.
The writer phase: Granite 4.1 composes the cited analysis and the remediation diff from the correlation and anomaly detection results.
Query Splunk over the exact test window to correlate access logs with the k6 test results and identify the worst-performing endpoints, error rates, and latency metrics.
Use Splunk's AI Toolkit StateSpaceForecast or core predict + anomalydetection to flag where latency breaches its expected band over the test window.
Consult the k6 MCP documentation for the constructs kassi emits (HTTP requests, thresholds, checks, scenarios) and record version-grounded citations. Non-blocking: degrades to no references when the docs are unavailable.
Pull changed routes from the diff and load the sibling openapi.json.
Repair a k6 script from validation errors using the model, bounded by MAX_FIX_ATTEMPTS.
Tool names lack action verbs. 'select_mode', 'scaffold', 'screen', 'report' are vague. LLMs cannot infer intent from names alone. Rename to 'start_run', 'generate_scaffold', 'audit_analysis', 'generate_report'.
The 'mcp_calls' parameter appears in 11 tools but is never described. LLMs cannot determine what structure to pass or why it's needed. Add description: 'Provenance log of upstream MCP calls for audit and context tracing.'
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract required fields. Document return types for all 16 tools (e.g., read_diff returns {diff_text: string}, scaffold returns {script: string, endpoints: array}).
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 53 | <=2025-11-25 | v2 |
Author the final k6 script on top of the scaffold, using k6's own `generate_script` MCP prompt and best-practices to guide the model.
Score OpenAPI operations against the natural-language intent and pick the top matches.
Read `git diff <ref>..HEAD` from the repo.
Narrate the run as a tarot reading and seal the verdict to the ledger.
Execute the k6 load test via the k6 MCP server's run_script tool and collect results.
Compose a deterministic, self-contained k6 scaffold from the OpenAPI spec (no model): per-endpoint requests with sample bodies, the baked base URL, and load options. This is the runnable baseline the next step builds on.
The auditor phase: a separate Granite Guardian model judges whether the analysis is grounded in its evidence.
Start a run. Pass `intent` for natural-language mode, or just `repo_path`/`ref` for diff mode. `repo_path` is also where openapi.json is read from; `splunk_index` is the index holding the target's server-side telemetry.
Query Splunk for index metadata, field availability, and event count to verify the target's telemetry is being collected.
Run the k6 script through the k6 MCP server's validate_script tool to check for syntax and semantic errors.
No error handling guidance. Tools like 'run_test' (WRITE risk) and 'fix_script' (bounded by MAX_FIX_ATTEMPTS) lack recovery instructions. Add: 'On failure, returns {error: string, retryable: bool, suggestion: string}' and document when to retry vs escalate.
Parameter relationships undocumented. 'scaffold' takes endpoints and openapi_spec; 'generate_script' takes scaffold_script and endpoints. LLMs cannot infer that scaffold output feeds into generate_script input. Add dependency hints in descriptions.