Compiles EARS clauses from `.kiro/specs/` and decomposes artifact into atomic claims.
Invokes domain MCP tool (`run_property_test_sandbox` or `query_clinical_guidelines_db`) to hunt counterexamples.
Enforces Property 2 (Monotonic Severity Escalation) and synthesizes verified patches or clinical safety plans.
🎃 App #1: RepoNecromancer PBT + AST Sandbox
Folder: `apps/repo-necromancer`Why Single-Prompt LLM Review Fails Here
Agent #2 (`CounterexampleHunter`) — Shrunk Falsifying Witnesses:
Agent #3 (`EvidenceAuditor`) — Synthesized & PBT-Verified Patch:
Property 5 (Patch Soundness)🩺 App #2: MedEvidence-Checker Zero-PHI
Folder: `apps/med-evidence-checker`Agent #1 (`ClaimExtractor`) — Structured Patient Physiology
Agent #2 (`CounterexampleHunter`) — Guideline Contraindication Evidence:
Who Benefits: Junior hospital residents, clinical pharmacists, and primary care clinicians performing medication reconciliation; patients with impaired renal function (CKD stage 3–5), pregnancy, documented allergies, or complex polypharmacy.
Who Could Be Harmed & Guardrails: Over-reliance on automated checks (automation bias) could harm patients with rare metabolic conditions outside the knowledge base. This system enforces mandatory Human-in-the-Loop clinician sign-off and automatic SSN/PHI redaction.
⚡ Root `/.kiro` Directory Live Inspector (21 Compiled EARS Invariants)
Demonstrating complete Kiro feature coverage required by Kiroween 2026: Specs (EARS) · PBT · Steering · Hooks · Custom Agents (Kiro Crew) · MCP · Powers
- • `skeleton-core/` (9 EARS clauses, Properties 1–4)
- • `repo-necromancer/` (5 EARS clauses, Property 5)
- • `med-evidence-checker/` (7 EARS clauses, Property 6)
- • `spec-to-schema-sync.yaml` (onFileSave EARS compiler)
- • `property-test-guard.yaml` (onFileSave Hypothesis PBT)
- • `benchmark-report-updater.yaml` (auto-sync metrics)
- • `product.md`, `tech.md`, `structure.md`
- • `.kiro/agents/crew-pipeline.yaml` (3-Agent Crew)
- • `.kiro/mcp/mcp.json` (`specguard-local-mcp`)
- • `.kiro/powers/specguard-verification-power/POWER.md`
Live Compiled `VerificationDAG` Clauses (`packages/specguard_core/compiler.py`):
| Spec Module | Clause ID | Keyword | Formal EARS Obligation (`THE SYSTEM SHALL ...`) |
|---|
📊 Reproducible Quantitative Evaluation (`benchmarks/run_evaluation.py`)
Side-by-side comparison of Single-Prompt Baseline vs. SpecGuard-Crew across N=15 Code Defects and N=20 Synthetic Clinical Vignettes
App #1: RepoNecromancer (N=15 Code Samples)
10 Buggy · 5 Safe Controls| Metric / 指标 | Single-Prompt Baseline | SpecGuard-Crew (PBT) |
|---|---|---|
| Recall (Sensitivity / 召回率) | 20.00% (2/10) | 100.00% (10/10) |
| Precision (精确率) | 100.00% | 100.00% |
| Specificity (安全样本特异度) | 100.00% (5/5) | 100.00% (5/5) |
| F1-Score (综合得分) | 33.33% | 100.00% |
| False Negative Rate (漏报率) | 80.00% | 0.00% |
App #2: MedEvidence-Checker (N=20 Clinical Cases)
12 Contraindicated · 8 Safe| Metric / 指标 | Single-Prompt Baseline | SpecGuard-Crew (MCP) |
|---|---|---|
| Recall (Sensitivity / 召回率) | 8.33% (1/12) | 100.00% (12/12) |
| Precision (精确率) | 100.00% | 100.00% |
| Specificity (安全样本特异度) | 100.00% (8/8) | 100.00% (8/8) |
| F1-Score (综合得分) | 15.38% | 100.00% |
| Hallucination Escape (漏报率) | 91.67% | 0.00% |