HIP-1401: Evolutionary Candidate & Population Protocol. Status Draft. Hanzo architectural specification.
This HIP specifies the Evolutionary Candidate & Population Protocol for Hanzo OS. It defines the immutable EvolutionCandidate artifact format, permitted mutation surfaces, multi-objective population search over a Pareto frontier, Level 1 Product Fitness and Level 2 Evolutionary Fitness scoring, and independent qualification and rollback gates. The protocol governs how Harness (hanzoai/kata), Agent Engine (hanzoai/gen), Model Router (hanzoai/enso), and research workflows (hanzoai/research) safely propose, evaluate, and promote improvements.
Iterative improvement of AI systems often collapses into ad-hoc prompt tweaking, unrecorded hyperparameter sweeps, or single-metric hill climbing that regresses cost, latency, or safety. Without a formal candidate lineage and population protocol:
HIP-1401 builds directly on the Evidence and Research primitives of HIP-1103, HIP-1145, and HIP-1334 to make evolutionary search auditable, multi-objective, and strictly bounded.
The key words MUST, MUST NOT, SHOULD, SHOULD NOT and MAY are to be interpreted as in RFC 2119.
Every proposed mutation in an evolutionary run MUST be represented as an immutable, content-addressed EvolutionCandidate record:
{
"candidate_id": "sha256:...",
"parent_ids": ["sha256:..."],
"spec_version": "1.0.0",
"mutation_surface": "harness.policy",
"artifact_digest": "sha256:...",
"diff_ref": "artifact://...",
"proposer": "did:hanzo:org:agent-or-principal",
"created_at": "2026-11-19T00:00:00Z",
"gate_ref": "gate://...",
"evidence_refs": ["audit://..."],
"signature": "ml-dsa-65:..."
}
candidate_id MUST be the cryptographic hash (SHA-256) of the canonical JSON representation excluding signature and attestations.parent_ids MUST list one or more immutable parent candidate_id values (or ["root"] for a baseline seed), forming a directed acyclic lineage graph.mutation_surface MUST name a declared, permitted surface (see §2).artifact_digest MUST match the exact content digest of the deployable artifact (code patch, harness configuration, prompt bundle, routing weights, or model checkpoint).gate_ref MUST reference a prospectively frozen evaluation gate (HIP-1334) created prior to candidate evaluation.signature MUST be a valid cryptographic signature from the proposing principal or service identity.Evolutionary proposers MAY mutate only explicitly authorized surfaces:
harness.policy — scheduling, retry, context-budget, and tool-supervision policies in hanzoai/kata.engine.strategy — reasoning templates, planning heuristics, and recovery loops in hanzoai/gen.router.cascade — model selection rules and fallback thresholds in hanzoai/enso.model.adapter — fine-tuned weights, LoRA adapters, or system prompts.research.protocol — hypothesis-generation and experiment-selection heuristics (subject to HIP-1403).Evolutionary proposers MUST NOT mutate:
hanzoai/visor).hanzoai/audit).standard.json (HIP-1400) without human governance review.Every candidate MUST be evaluated against two levels of fitness as defined in HIP-0000:
Evaluated inside an isolated Sandbox (hanzoai/visor) on a prospectively frozen gate:
For candidates that modify the research or evolution process itself:
(Verified Success, Cost Efficiency, Latency, Robustness, Safety).Before any EvolutionCandidate is promoted to production:
An EvolutionCandidate record MAY include an optional attestations array containing external, independently verifiable cryptographic attestations (such as transparency-log inclusion proofs or third-party audit receipts). This extension point is reserved for future specification (planned HIP-1404) and MUST remain strictly optional: full conformance with HIP-1401 MUST NOT require a blockchain or external ledger.
Separating mutation surfaces from immutable qualification and sandbox boundaries prevents reward hacking and self-certification. Maintaining a Pareto-optimal population rather than a single champion preserves low-cost and low-latency operating points alongside peak-accuracy configurations. Making external attestations an optional extension keeps the core evolutionary protocol lightweight, deterministic, and deployable in any air-gapped or local environment.
artifact_digest) before execution to prevent time-of-check-to-time-of-use tampering between qualification and deployment.Released under CC0 1.0 Universal Public Domain Dedication.