11 — AI Standards

Status: Ratified Version: 1.0.0 Applies to: AI Engine, planner, reasoning, agents, AI usage in tools/plugins, report drafting


1. AI Role Charter

HunterX uses AI as an intelligent operator, never an unchecked oracle:


2. AI Capability Catalog

Capability Owner Approval level
Plan generation (template expansion) Planner deterministic; AI only for non-deterministic branches
Replanning / next-action suggestion Planner operator for destructive
Hypothesis generation ThreatModelingAgent auto (read-only)
Triage & prioritization of findings VerificationAgent auto (no execute)
Correlation suggestions Correlation Engine auto (read-only)
Report drafting Reporting Agent auto (draft only)
Evidence summarization Reporting Agent auto
Tool/template selection Planner auto within scope
Payload suggestion PayloadAgent operator review required
Purple-team / detection-gap analysis PurpleTeamAgent auto

3. AI Access Control


4. Prompt Engineering Standards


5. Decision-Making & Reasoning Model

The platform uses a 4-stage investigative reasoning loop (consistent with the v6 architecture):

OBSERVE      → gather passive/active evidence (no AI required)
HYPOTHESIZE  → AI generates candidate hypotheses from evidence
PROBE        → deterministic tools/skills test each hypothesis
VERIFY       → evidence cross-validation + confidence scoring

Each stage is recorded. The loop is iterative: verified hypotheses feed the next observation cycle. Reasoning is:


6. Validation of AI Output

Every AI result passes the pipeline (02 §6.3) before being consumed:

  1. Schema validation — output conforms to prompt’s JSON Schema; else reject.
  2. Type/range validation — enums, score ranges (0..1), ID formats.
  3. Consensus validation — N-sample aggregation (strict unanimous / relaxed majority) configurable per call class.
  4. Grounding check — claims reference available evidence; unsupported claims flagged UNSUPPORTED.
  5. Safety check — no destructive action requested without approval; no scope or credential mutation.

Invalid output → retry (bounded) → fallback strategy (degrade) → failure with reason recorded.


7. Confidence Scoring

Confidence Meaning
0.0–0.3 exploratory, may discard
0.4–0.6 plausible, needs probe
0.7–0.8 well-supported
0.9–1.0 verified by evidence/consensus

8. Risk Scoring

Risk is computed by the deterministic risk model (mission-profile specific), not by the LLM. AI may suggest adjustments, but:


9. Correlation


10. Learning & Memory


11. Optimization


12. Safety & Abuse Prevention


13. Reproducibility


14. Model & Provider Governance


15. Metrics & Telemetry

Metric Type
hx_ai_calls_total (by capability, provider, outcome) counter
hx_ai_latency_seconds histogram
hx_ai_cost_total counter
hx_ai_confidence_calibration_error gauge
hx_ai_cache_hit_ratio gauge
hx_ai_rejected_outputs_total counter
hx_ai_fallback_activations_total counter

All correlated with traces (18 - Logging Standards.md).


16. References