alexgreensh/repo-forensics / skills/repo-forensics
repo-forensics
FlaggedSecurity forensics for git repos, AI skills, and MCP servers. Audits dependencies, detects prompt injection, credential theft, runtime dynamism, manifest drift, known CVEs, CISA KEV (actively exploited) vulns, and 2026 attack patterns. Not for fixing vulnerabilities or pentesting.
tests/test_adjudication_bridge.py
View on GitHubimport json
from scripts import adjudication_bridge
def test_missing_lane_fails_closed_to_unavailable(monkeypatch):
monkeypatch.delenv("REPO_FORENSICS_CONFIRM_COMMAND", raising=False)
try:
adjudication_bridge.command_runner("confirm", "evidence")
except RuntimeError as exc:
assert "unavailable" in str(exc)
else:
raise AssertionError("missing command must not produce an annotation")
def test_lane_receives_prompt_on_standard_input(monkeypatch):
monkeypatch.setenv(
"REPO_FORENSICS_CONFIRM_COMMAND",
"python3 -c 'import json,sys; print(json.dumps({\"evidence_id\": \"x\", \"decision\": \"real\", \"reason\": sys.stdin.read()}))'",
)
result = adjudication_bridge.command_runner("confirm", "bounded evidence")
assert result["reason"] == "bounded evidence"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |