AlgoLab is a bounded, reproducible research platform for proposing, implementing, testing, rejecting, refining, and reporting candidate improvements to AI systems.
Its objective is not to "invent AGI on command." Its objective is to maximize the rate of valid, reproducible algorithmic discoveries per unit of compute and human oversight — by encoding the scientific method as an executable pipeline with hard budgets, immutable provenance, and statistical gates no claim may bypass.
- Observe existing evidence.
- Form a falsifiable hypothesis.
- Estimate novelty and prior probability.
- Generate a candidate method.
- Plan a compute-bounded experiment.
- Implement and validate the candidate.
- Train and benchmark against strong baselines.
- Perform statistical analysis and ablation.
- Accept, reject, revise, or archive.
- Update the knowledge base and search policy — the causal loop at the heart of the platform; demonstrated in the toy environment and qualitatively reproduced on a first real workload (protocols 230–235; see "What we learned" below).
- Publish reproducible reports.
Every step in this loop has a versioned contract in this repository; no step is left to an unconstrained agent.
MASTER_SPEC.md canonical master specification (source of truth)
OPENCODE_KICKOFF_PROMPT.md agent kickoff contract — read before implementing
spec/ ontology, architecture, research method, governance
planning/ milestones and roadmaps
schemas/ canonical JSON Schemas for manifests
prompts/ agent role definitions
templates/ hypothesis and artifact templates
workflows/ reference workflow definitions
implementation/algolab/ the executable core (see its README)
- Read
MASTER_SPEC.md— the canonical specification. - Read
OPENCODE_KICKOFF_PROMPT.md— the agent onboarding contract. - Give the kickoff prompt to OpenCode from the repository root.
- OpenCode must produce plans and contracts before implementation.
- The first executable milestone is a deterministic toy rediscovery
pipeline, not unrestricted autonomous operation. See
planning/.
| Milestone | Official scope (planning/MILESTONES.md) | Status |
|---|---|---|
| M0 | Contracts: IDs, models, state machines, append-only event store, budget ledger, manifest validation, CLI | Delivered |
| M1 | Deterministic execution core: expansion, persistent queue, isolated workers, hash-sealed artifacts, recovery, aggregation | Delivered |
| M2 | Reference rediscovery: baseline reproduction, typed candidates across five seeds, statistical report, clean replication | Sliced or deferred — see docs/STATUS.md |
| M3 | LLM-assisted research: provider adapter, structured hypotheses, skeptical review | Not started (adapter default off) |
| M4 | Evolutionary search: typed mutations, Pareto archive, diversity, budget-aware selection | Not started |
| M5 | Controlled meta-improvement: versioned proposals, replay, shadow eval, reversible rollout, governance approval | Not started |
Note: knowledge-loop protocols are not milestones M4/M5. This is the KL line of pre-registered experiments; "What we learned" below is scoped by substrate.
| Protocol | Substrate | Status |
|---|---|---|
| 230–234 | planted-truth toy discovery | Delivered (findings 1–5 below) |
| 235 | real workload — KNN micro-HPO | Delivered at n=32 (finding 6); promotion bar honestly not met |
| 236 | real workload — KNN micro-HPO, higher n | Pre-registered (spec/research/236_HIGHER_N_REAL_WORKLOAD_PROMOTION.md); not run — alpha-margin lever not yet implemented |
| 237 | second substrate (S2) — KNN on a shifted sklearn suite | Pre-registered (spec/research/237_SECOND_SUBSTRATE_TRANSFER.md); not run — CLI-reachable as search-run --workload s2 |
All results come from pre-registered, checksummed experiments; every claim
below is scoped to its substrate. Artifacts:
implementation/algolab/experiments/, specs: spec/research/23{0..7}_*.md.
Findings 1–5 are on the planted-truth toy substrate; finding 6 is on the real KNN micro-HPO workload.
- The knowledge loop is real — but only with the right selector
objective. Plain Thompson-sampling adaptation (C) beat static and
random everywhere, yet failed its pre-registered ≥2-family promotion
bar because it tied frozen knowledge (B) on the beta family
(
experiments/protocol-230-v1/). Post-hoc diagnosis: prior saturation + exploration starvation + a cost-blind selection rule. - One mechanism change — score candidates by success probability per
credit — fixed it. Cost-aware C+ beats A and B decisively on both
training families and transfers to the held-out family: the first
promotion-criterion pass of the loop claim
(
spec/research/231_COST_AWARE_SELECTION.md,experiments/protocol-230-v2/; beta d = 8.6). - Knowledge representation was silently destroying most of history's
value. Pooling per-family history into one aggregate made useful-in-
one-family operators look mediocre. Family-conditioned priors more than
doubled/tripled frozen-policy performance (d = 3.9–11.4) and lifted even
the adaptive arm to ~99.5% of the theoretical oracle
(
spec/research/232_FAMILY_CONDITIONED_KNOWLEDGE.md,experiments/protocol-232-v1/). - The remaining adaptive margin is structural, not informational.
Sweeping prior size 30→240 attempts/family left the frozen-vs-adaptive
gap unchanged (~+0.03 on beta): more history made frozen policies
better informed and worse scheduled, because a top-K cycle cannot
express "concentrate spend on cheap-and-good." Adaptation value does
NOT shrink with history quality
(
spec/research/233_PRIOR_SIZE_DOSE_RESPONSE.md,experiments/protocol-233-p{30,60,120,240}/). - The structural limit was the cycle format — and removing it erases
the loop's measurable edge. A zero-learning frozen policy that simply
commits to the family-conditioned cost-argmax operator hits the
theoretical efficiency ceiling at every history level and matches (at
large priors) or slightly beats (at thin priors) the full adaptive
system. Proportional allocation sits between cycle and commitment and,
unlike the cycle, converts better data smoothly into better behavior.
The adaptive loop's residual value is estimation insurance — recovery
when knowledge mis-ranks — which this environment's realizations never
needed (
spec/research/234_DECISION_RULE_FORMAT.md,experiments/protocol-233-p{30,60,120,240}/).
KNN micro-HPO substrate (protocol 235):
- First contact with a real workload confirms the insurance story —
and honestly withholds the crown. On a genuine KNN hyperparameter
search (breast_cancer/wine; digits held out), the toy-era ordering
reproduced on one training family (static < B < C ≈ C+, q < 0.025);
frozen commitment posted the best in-domain result but collapsed to
exactly zero on the held-out dataset where the best knob inverted
(k21: 29% → 0.0% discovery), while the adaptive loop explored its way
to top held-out performance. The strict ≥2-family promotion bar was
not met at this sample size — reported as measured. Adaptation is now
empirically priced: an in-domain premium that buys survival under
distribution shift (
spec/research/235_REAL_WORKLOAD_BRIDGE.md,experiments/protocol-235-v1/).
Design conclusions carried forward: store family-tagged aggregates; the consumer's decision rule is a first-order lever — never ship a top-K cycle where a cost-weighted commitment or allocation is possible; commitment is optimal in-domain but fragile under shift, so pair it with adaptation whenever transfer is on the line; family-conditioning requires informative slice sizes to pay off.
AlgoLab can record its own research search histories, replay alternative decisions against them, and evaluate versioned search policies with a fail-closed promotion gate. Built from DREAM-RSI ideas but AlgoLab-native; no policy source is self-modified and no paid API is required.
- Audit:
docs/research/DREAM_RSI_INTEGRATION_AUDIT.md - Reports:
docs/research/DREAM_RSI_INTEGRATION_REPORT.mdand the consolidatedimplementation/algolab/experiments/protocol-241-final/RESEARCH_REPORT.md - Preregistrations:
spec/research/241_META_SEARCH_POLICY_IMPROVEMENT.md…244_META_SEARCH_REAL_WORKLOAD_TRANSFER.md - Run:
algolab meta-search-run --dir experiments/protocol-243-v1(oralgolab meta-transfer-run --dir experiments/protocol-244-v1), thenalgolab meta-verify --dir <bundle> - Results: protocol 241 pilot was mis-scaled and uninformative; protocol
242 screen found positive effects that failed BH-FDR; protocol 243
promoted the evolved policy on fresh seeds (toy substrate only):
+0.0187 discoveries/credit (95% CI +0.0103 to +0.0275, p = 0.0005),
held-out +0.0213. Protocol 244 tested that unchanged policy on real
transform/hpoworkloads and did not transfer it: both arms wereREJECTED_PROSPECTIVE(q = 0.5052). Historical replay is not prospective evidence; no deployment or autonomy claim follows from the toy promotion.
- Human oversight by default, autonomy by exception — autonomy is earned experimentally, stage by stage, never asserted by design changes.
- Fixed compute and monetary budgets.
- Reproducible runs and immutable provenance.
- No benchmark result without a baseline.
- No discovery claim without replication and statistical support.
- No self-modification outside versioned, reviewable proposals.
- No uncontrolled external actions or credential use.
- Human approval before scaling compute, publishing, or changing governance.
- Citation - How to cite AlgoLab in your research
- Reproducibility Guide - How to reproduce and verify experiments
- Contributing - How to contribute to the project
- Protocol Template - Template for pre-registering new experiments
- API Documentation - Module and API overview
- Examples - Quickstart scripts and usage examples