Skip to content

Whole-codebase and corpus model routing policy v0.1 #8

Description

@hummbl-dev

Parent benchmark: hummbl-dev/hummbl-dev#155
Harness: https://github.com/hummbl-dev/autoresearch-pipeline/issues/30
Corpus pack: hummbl-dev/hummbl-bibliography#78
Master index: hummbl-dev/hummbl-dev#153

Status

CANDIDATE ROUTING POLICY — EVIDENCE REQUIRED — NO DEFAULT ROUTE CHANGE AUTHORIZED

Objective

Define a machine-readable routing policy for whole-repository understanding and massive-source intelligence workloads, grounded in HUMMBL benchmark evidence rather than advertised context length, vendor reputation, or one aggregate leaderboard.

Governing doctrine

Cheapest correct model wins only after correctness, safety, privacy, authority, latency, reliability, reproducibility, and governance gates pass.

A larger context window does not itself justify routing.

Workload classes

At minimum:

REPO_INVENTORY
REPO_ARCHITECTURE_RECONSTRUCTION
CROSS_FILE_TRACE
CLAIM_AND_REFERENCE_AUDIT
ISSUE_ROOT_CAUSE
BOUNDED_PATCH_IMPLEMENTATION
INDEPENDENT_CODE_REVIEW
BULK_SOURCE_INGESTION
MULTI_DOCUMENT_SYNTHESIS
CONTRADICTION_AND_VERSION_ANALYSIS
OCR_HISTORICAL_CORPUS
MULTIMODAL_SOURCE_PACKET
FINAL_SCHOLARLY_CLAIM_REVIEW

Candidate route dimensions

Each route must consider:

source size and estimated tokens
source type and modality
private/public classification
required tool surface
single-context feasibility
retrieval/memory requirement
reasoning depth
citation precision requirement
implementation authority
latency target
cost ceiling
reliability target
independent-review requirement
provider and regional constraints
model availability / preview status
benchmark evidence date

Route dispositions

Models/scaffolds may receive one or more scoped dispositions:

REJECTED
DISCOVERY_ONLY
BULK_EXTRACTOR
BOUNDED_READER
PRIMARY_READER_WITH_REVIEW
IMPLEMENTER_WITH_GATES
INDEPENDENT_REVIEWER
FINAL_SYNTHESIS_WITH_HUMAN_REVIEW
PROMOTED_WITH_SCOPE

No model should be labeled universally best.

Initial candidate lanes

Subject to exact model/version verification at run time:

  • GPT-5.6 Sol / Codex-compatible lane;
  • Claude Fable 5;
  • Claude Opus 4.8;
  • Claude Sonnet 5;
  • Gemini 3.1 Pro Preview custom-tools lane;
  • Gemini 3.5 Flash;
  • Grok 4.5;
  • admitted open/local models with declared serving and quantization configuration.

Preview models must carry stability and deprecation risk. Aliases must carry resolution risk unless pinned or receipted.

Required policy behavior

  1. Select the lowest-cost route meeting all hard gates.
  2. Prefer tool navigation or structured memory when source size exceeds effective context or globally distributed reasoning is required.
  3. Require a different-provider reviewer for high-stakes architecture, scientific, legal, health, security, or publication claims where feasible.
  4. Keep private repositories and sensitive corpora within approved provider/environment boundaries.
  5. Escalate when benchmark coverage is missing, stale, or materially mismatched to the workload.
  6. Fail closed on missing model version, budget, privacy, or authority metadata.
  7. Record why a cheaper route was rejected.
  8. Include reevaluation and expiry dates for every promoted route.

Required artifacts

  1. routing-policy specification;
  2. machine-readable workload schema;
  3. model/scaffold capability registry;
  4. benchmark-result import schema;
  5. route decision schema and receipt;
  6. hard-gate and soft-ranking logic;
  7. valid, invalid, stale-evidence, and privacy-conflict fixtures;
  8. deterministic evaluator or validator;
  9. example route cards for each workload class;
  10. migration path into Founder Mode / HUMMBL runtime routing only after approval.

Example route structure

workload: REPO_ARCHITECTURE_RECONSTRUCTION
source_classification: private
source_estimated_tokens: 640000
required_capabilities:
  - file_search
  - cross_file_reasoning
  - exact_citations
hard_gates:
  privacy: pass
  authority: pass
  benchmark_freshness: pass
  minimum_accuracy: pass
candidates:
  - model: claude-fable-5
    scaffold: TOOL_NAVIGATED
  - model: gpt-5.6-sol
    scaffold: MEMORY_AUGMENTED
selected_route: null
review_route: null
expires_at: null

Acceptance criteria

  • Policy imports benchmark evidence rather than duplicating scores manually.
  • Effective context and scaffold condition are separate fields from advertised context.
  • Privacy, authority, and cost are hard gates where appropriate.
  • Every route has evidence date, scope, expiry, and fallback.
  • Missing evidence yields escalation, not fabricated ranking.
  • A cheaper model can win when it meets the same correctness gates.
  • High-stakes final claims require human and independent review.
  • No production/default model route changes occur without Reuben approval and transition receipt.

Immediate next action

Return the schema design, benchmark-ingestion contract, and five example route decisions using placeholder outcomes. Do not encode unverified model rankings.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions