22 — Tool Integration Standard

Status: Ratified Version: 1.0.0 Applies to: Every integrated tool; checklist for tools/<tool-id>/


1. Definition

A tool is integrated into HunterX only when the complete integration package described in this document exists, passes all gates, and is merged. A “half-integrated” tool is not an integration — it is a defect.


2. Mandatory Components

Every integrated tool MUST contain all of the following:

# Component Location Specification
1 Knowledge File tools/<id>/knowledge.yaml 07 - Tool Knowledge Base Specification.md
2 Adapter tools/<id>/adapter.py 06 - Tool Adapter SDK.md
3 Parser tools/<id>/parser.py 06 §3; streamed
4 Normalizer tools/<id>/normalizer.py 06 §3; canonical mapping
5 Workflow Rules tools/<id>/workflows.yaml 07 §14
6 Mission Rules tools/<id>/mission_rules.yaml 07 §15
7 Target DB Mapping inside normalizer + knowledge 08 entities
8 AI Rules tools/<id>/ai_rules.yaml 07 §16, 11
9 Tests tools/<id>/tests/ 15
10 Documentation tools/<id>/README.md 16

3. Component Contracts (summary)

3.1 Knowledge File (knowledge.yaml)

3.2 Adapter (adapter.py)

3.3 Parser (parser.py)

3.4 Normalizer (normalizer.py)

3.5 Workflow Rules (workflows.yaml)

3.6 Mission Rules (mission_rules.yaml)

3.7 Target Database Mapping

3.8 AI Rules (ai_rules.yaml)

3.9 Tests

Minimum test set:

3.10 Documentation (README.md)


4. Workflow for Adding a Tool

proposal (tool + justification + capability gap)
  → knowledge.yaml draft
  → adapter/parser/normalizer implementation
  → fixtures + goldens
  → integration on sandboxed target
  → security tests
  → docs
  → PR → CI gates → Architecture + Security review
  → merge → registry index update (tools/index.yaml)

5. Registry Index

tools/index.yaml maintains the shared capability vocabulary and maps:

capabilities:
  - id: vulnerability-scan
    tools: [nuclei, nikto, openvas]
  - id: subdomain-enum
    tools: [subfinder, amass]

6. Quality Gates (fail = no merge)


7. Tool Maintenance


8. References