HIP-1403: Autonomous Scientific Research Protocol
Abstract
This HIP specifies the Autonomous Scientific Research Protocol for Hanzo OS. It defines how autonomous research agents formulate falsifiable hypotheses, pre-register experimental protocols against frozen evaluation gates, execute experiments inside isolated Visor sandboxes (HIP-1172), submit claims for independent replication, and govern recursive meta-optimization of the research process itself using Research Yield ($Y_R$) and Successor Research Lift ($L_R$).
Motivation
Autonomous research agents can generate hypotheses and run experiments orders of magnitude faster than manual workflows, but speed without scientific rigor amplifies false discoveries, p-hacking, data leakage, and irreproducible results. Extending the unified research objects of HIP-1334 (Dataset, Artifact, Run, Evaluation, Claim, Gate, Comparison) with strict pre-registration, sandboxed execution, independent replication, and retraction workflows ensures that autonomous discovery produces durable, verifiable knowledge.
Specification
The key words MUST, MUST NOT, SHOULD, SHOULD NOT and MAY are to be interpreted as in RFC 2119.
1. Falsifiable Hypothesis & Pre-Registration
Before executing a confirmatory experiment, a research agent MUST register an immutable HypothesisRecord in the Evidence ledger (HIP-1103) and Research runtime (HIP-1334):
{
"hypothesis_id": "sha256:...",
"statement": "Structured falsifiable claim",
"null_hypothesis": "Explicit falsification condition",
"gate_ref": "gate://...",
"dataset_refs": ["dataset://..."],
"budget": {
"max_compute_seconds": 3600,
"max_cost_usd": 25.00
},
"proposer": "did:hanzo:org:research-agent",
"registered_at": "2026-11-19T00:00:00Z"
}
- Falsifiability: Every
HypothesisRecordMUST specify an explicitnull_hypothesisand quantitative pass/fail criteria bound to a prospectively frozengate_ref(HIP-1334). - Pre-Registration Ordering: The
registered_attimestamp and Evidence ledger sequence number ofHypothesisRecordMUST precede the start of any confirmatoryRunreferencing it. Post-hoc selection of passing metrics from exploratory runs MUST be labeledexploratoryand MUST NOT be promoted as confirmatory claims.
2. Sandboxed Experimental Execution
All autonomous research experiments MUST execute under durable research supervision (§8), with Harness (hanzoai/kata) where agent execution is required, inside isolated Sandbox environments (hanzoai/visor, HIP-1172):
- Determinism & Environment Capture: Container image digest, dependency lockfile digest, random seeds, hardware profile, and input dataset digests MUST be captured in the
Runrecord (HIP-1145, HIP-1334). - Network & Data Isolation: Confirmatory runs MUST NOT have access to private holdout labels, external uncontrolled web endpoints, or production credentials.
- Resource Budgeting: The Harness MUST terminate any run that exceeds its declared
budgetand record the termination reason in Evidence.
3. Independent Replication & Claim Promotion
A Claim produced by an autonomous research run MUST remain in unreplicated state until independent replication succeeds:
- Clean-Room Replay: An independent replication agent or verifier MUST re-execute the experiment from the recorded
ArtifactandDatasetdigests in a fresh Visor sandbox without sharing mutable state with the proposing agent. - Statistical Agreement: Replicated metrics MUST satisfy the pre-registered
gate_refthresholds and replication agreement criterion (see §7); confidence-interval overlap alone is insufficient. - Qualification & XP: Only after independent replication succeeds MAY the claim be promoted to
replicatedstatus and become eligible forsciencedomain XP projection under HIP-1402.
4. Retraction & Correction Protocol
- Any principal or verifier MAY submit a
CounterEvidencerecord demonstrating a failed replication, data contamination, or methodological defect in a previously promoted claim. - Upon verification of
CounterEvidenceagainst the frozen gate, the claim status MUST transition toretracted, referencing theCounterEvidencedigest. - Retraction MUST trigger deterministic reversal of all downstream XP projections (HIP-1402) and flag any
EvolutionCandidate(HIP-1401) that depended on the retracted claim.
5. Recursive Meta-Optimization of Research
When an evolutionary loop modifies research.protocol (hypothesis generation, experimental design, or search scheduling under HIP-1401), the modified research agent MUST be evaluated using Level 2 Evolutionary Fitness (HIP-0000):
- Research Yield ($Y_R$): $\Delta H_{\text{verified}} / C_{\text{total_research}}$, where $\Delta H_{\text{verified}}$ measures the magnitude of independently replicated gains and $C_{\text{total_research}}$ includes all failed, exploratory, and replication runs.
- Successor Research Lift ($L_R$): $Y_R(\text{successor}) / Y_R(\text{predecessor})$.
- Promotion of a successor research protocol to production MUST require sustained $L_R > 1.0$ across independent, prospectively frozen evaluation suites with zero degradation in replication rate.
6. Provider-neutral research integrity
A study of model behavior under different task framing MUST preregister the intervention, task set, hypotheses, baseline, model identifiers, provider settings, tool permissions, budgets, seeds where supported, sample size and analysis. Randomize or counterbalance framing, use blinded scoring where possible, report confidence intervals, exclusions, failures, cost, turns and quality separately, and preserve negative results. Compare authorized local and remote configurations under equivalent task conditions. Behavioral differences do not establish provider intent; causal and intentional claims require distinct evidence. Model-size research MUST separate total/active parameters from memory, retrieval, tool use and compute, and evaluate held-out reasoning and recall independently. Promote only reproducible results through the existing evidence and replication gates.
7. Evaluation custody and contamination
Every campaign MUST freeze an evaluation manifest before search begins: dataset version, sample identity and split assignments, canonical preprocessing, contamination procedure, objective and metric versions, baseline artifact, seed and budget schedule, test statistic, confidence level, multiplicity correction, minimum effect, finalist count and release gates. Use five logically separate purposes:
| Purpose | Access and permitted use |
|---|---|
| Training | Fit weights and teacher supervision; retain lineage |
| Search development | Repeated adaptive fitness only |
| Independent validation | Bounded finalist selection by frozen rule |
| Sealed lockbox | Qualification once per preregistered finalist and gate; no adaptive feedback |
| Fresh OOD challenge | Independent generalization evidence, not a substitute for failed qualification |
The qualification service owns lockbox labels, evaluation code and access logs; candidate workers receive neither labels nor per-example feedback. Seal finalist artifact digests before evaluation; enforce an atomic access ledger keyed by manifest/gate/finalist and idempotently return the same receipt for retries. Qualification outcomes are withheld from adaptive search and its operators until the campaign is closed; aggregate reporting must not become a feedback channel. A new adaptive campaign uses fresh qualification evidence when prior results could affect its design. Repeated inspection or influence on selection means the split is exposed; quarantine affected claims, record exposure scope and replace the lockbox with an untouched version. Never rename exposed data to restore its status.
Audit exact and normalized duplicates, near duplicates, shared source documents, paraphrases, related benchmark splits, teacher data provenance and training/representation cache lineage across all campaign families. Record normalization/version, similarity threshold, matching evidence, removals, residual uncertainty and immutable post-filter manifests. No claim of zero contamination where teacher training data are unknown. Keep original evidence and negative findings; restrict sensitive raw examples and publish only permitted aggregates.
Paired comparative claims require sample-aligned predictions from candidate and baseline under the identical evaluation manifest. Use preregistered paired inference appropriate to the metric (e.g. exact McNemar for binary correctness or paired bootstrap with declared resampling unit), confidence intervals and familywise/multiplicity handling across tasks/finalists. Vendor canonical results without paired predictions are references, never qualified head-to-head wins. Independent replication means a distinct execution, credentials and mutable state; it does not require an external human reviewer. Replication acceptance uses a predeclared effect/replication criterion, not merely overlap of confidence intervals.
8. Persistent research service
The research controller MUST be a supervised service under hanzod, backed by HIP-1062 durable workflow execution (hanzoai/tasks), Cloud resource leases, HIP-1334 research records and content-addressed checkpoints. An interactive agent is an optional hypothesis proposer or UI, never the owner of the campaign lifecycle. Use existing Cloud tenancy, IAM, audit, metering and Visor; no parallel scheduler or database.
Campaign logical lifecycle: registered -> admitted -> running -> paused/recovering -> running -> completed, failed or cancelled. Trial lifecycle: proposed -> reserved -> dispatched -> executing -> recorded -> evaluated; interrupted, rejected and failed are retained terminal attempt outcomes. Promotion is a separate authorized transition. Pause, cancel and budget exhaustion stop new admissions; running jobs drain or checkpoint according to policy. Resume from last committed archive snapshot, reconcile outstanding leases and trial receipts before dispatch, and never treat a missing worker as proof no work occurred.
Persist campaign ID, manifest digest, workflow ID, archive snapshot, strategy/RNG state, outstanding trial IDs, lease owner/epoch/expiry, checkpoint refs, usage reservations and event cursor. Events are tenant-scoped and carry stable event ID, entity ID, sequence, causation and schema version. Delivery MAY be at least once; admission, finalization, archive updates and budget charges MUST be logically idempotent. Lease fencing rejects stale writes; reconcile artifact digests before committing completion, use durable outbox or equivalent atomic record/event mechanism, and replay unacknowledged events. Persist terminal error and partial consumption. Checkpoints bind environment, genome, optimizer state, data position and RNG; verify before restore. If nondeterministic resume is unavoidable, record divergence and require fresh qualification.
Authorize hard campaign/tenant limits for accelerator-seconds, wall time, tokens, currency, storage and concurrent work as applicable. Reserve worst-case bounded cost atomically before dispatch, settle measured use once per attempt, release unused reservations, reconcile interrupted and preempted work and fail closed when metering/admission is unavailable. Successors inherit remaining authorization, not new money. Provider subscription exhaustion, network loss, worker crash, host restart and GPU preemption MUST NOT erase experiment state or require a live coding-agent session. Failover tests MUST demonstrate no duplicate logical trial/charge, no lost lineage, bounded overspend, recovery from partial artifact upload and fencing against stale workers.
9. Recursive scientific optimization (three levels)
Level I evolves models, parameters, architectures and algorithms under HIP-1401. Level II evolves discovery strategies: mutation/operator selection, population size, diversity, crossover, exploration ratio, resource promotion, migration, surrogate and information-gain policy. Level III evolves bounded coordination across competing research campaigns: compute allocation, scheduling, migration topology and portfolio diversity.
Each level uses versioned strategy genomes and independent discovery problems under matched resource budgets. Meta-training and meta-evaluation problems MUST be disjoint; reserve fresh meta-holdouts, freeze baseline strategy, evaluation and budget schedule before comparison. The meta-controller may propose new strategies and allocations only inside explicit grants; it MUST NOT alter evaluator, safety gates, holdout custody, budget enforcement, permissions, ledger, release criteria or its own promotion authority. Level III additionally MUST honor tenant isolation, fairness and hard global budgets. No unlimited recursive spawning: enforce declared maximum depth, concurrency, epoch count and stop policy. Each successor is subject to the same qualification, rollback and audit requirements as Level I.
Full resource accounting includes preprocessing, teacher inference, representations, cache construction/storage/read, training, search-controller overhead, failed and interrupted work, validation, qualification and replication. Report marginal search cost and amortization assumptions separately from end-to-end cost. Record accelerator model/count and active/allocated seconds, CPU, memory, storage, token counts, wall time and price schedule where applicable; report joules where metered, not fabricated. Shared costs use a declared allocation rule and sensitivity analysis. Research Yield uses magnitude of independently replicated capability gain per declared total resource unit, not counts of tiny improvements. Report zero/negative gain honestly and undefined lift when predecessor yield is zero. Use HIP-1401's Pareto, threshold, diversity and reproducibility metrics and preregistered uncertainty. Level II/III promotion requires matched-budget replicated gains without regression in required correctness, safety or replication rate.
10. Phase II reference campaign and conformance
The sentiment pilot's controlled design comprises 432 genomes across six strategies and a 3×3 supervision/adaptation matrix; recover existing state before launching duplicate work. Complete IMDb, SST-2 and Rotten Tomatoes trials, contamination audit and equal-budget comparison. Expand into five populations: sentiment, evidence reasoning, multiple choice, multilingual and rubric judgment. Program registry (identifiers are campaign labels, not HIP numbers):
| Program | Objective |
|---|---|
| EVO-11 | Hierarchical readers |
| EVO-12 | Representation layer selection |
| EVO-13 | Adaptive chunking |
| EVO-14 | Teacher mixture |
| EVO-15 | Distillation objective |
| EVO-16 | Evidence-conditioned readers |
| EVO-17 | Cross-option architecture |
| EVO-18 | Multilingual backbone selection |
| EVO-19 | Rubric-conditioned scoring |
| EVO-20 | Multi-task curriculum |
| EVO-21 | Neural architecture search |
| EVO-22 | Quantization-aware evolution |
| EVO-23 | Difficulty-dependent computation |
| EVO-24 | Population migration |
| EVO-25 | Mutation operator evolution |
| EVO-26 | Search strategy evolution |
| EVO-27 | Typed GPU kernel genetic programming |
| EVO-28 | Inference routing, caching and batching |
Reported pilot results are exploratory until sealed, paired native qualification and independent replay. The reported historical Kai tally is 17/37, not a new verified win; audit the underlying claims and preserve prior evidence rather than assuming all remain qualified. The target 37/37 is a research objective, not a release claim. Apply HIP-1332 native serving gates and HIP-1105 comparative evidence rules. Extend the same engine to ML, Zen, Enso, Engine, quantization, VFS and scheduling. Hanzo Science UI MUST project actual campaign state, population lineage, fitness landscape, Pareto archive, budget consumption, failed trials and claim status from authorized records; no fabricated progress.
Acceptance requires end-to-end replay after supervisor/worker failure, a deliberately exposed lockbox rejected from selection and qualification, cross-dataset overlap fixtures, Python/Rust parity, sealed finalist qualification, independent reproduction, matched-budget comparison of all six strategies and isolated typed program tests. Publish versioned SDKs and conformance receipts; this section defines requirements, not evidence of completion.
Rationale
Separating exploratory runs from pre-registered confirmatory runs prevents silent hypothesis shopping while still allowing agents to explore freely. Requiring full-cost accounting in $C_{\text{total_research}}$ (including failed experiments and replication overhead) prevents meta-optimizers from inflating apparent yield by hiding search costs.
Security Considerations
- Holdout Contamination: Research agents MUST be strictly isolated from private holdout suites and replication verifiers so they cannot overfit or leak answers into proposed artifacts.
- Resource Exhaustion: Unbounded autonomous research loops can consume unbounded compute. Every hypothesis registration MUST carry a hard Harness-enforced budget cap (
max_compute_seconds,max_cost_usd). - Dual-Use & Safety Screening: Research domains involving sensitive code execution, biological, chemical, or security-critical artifacts MUST pass mandatory policy checks in the Harness before Sandbox launch.
References
- HIP-0000 — Hanzo AI Architecture & Framework
- HIP-1103 — Audit Tamper-Evident Trail
- HIP-1145 — Research Experiment Record
- HIP-1172 — Visor: Compute You Rent
- HIP-1334 — Research: The Unified Research Runtime
- HIP-1400 — Hanzo OS Conformance & Specification Manifest
- HIP-1401 — Evolutionary Candidate & Population Protocol
- HIP-1402 — Hanzo XP — Verified Contribution Protocol
Copyright
Released under CC0 1.0 Universal Public Domain Dedication.