Skip to content
NullLabTestsPublic

About

Autonomous AI Algorithm Discovery Laboratory: a bounded, reproducible research platform that proposes, implements, tests, rejects, refines, and reports candidate improvements to AI systems under a fixed compute budget.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

AlgoLab v1 — Autonomous AI Algorithm Discovery Laboratory

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.

The canonical research loop

  1. Observe existing evidence.
  2. Form a falsifiable hypothesis.
  3. Estimate novelty and prior probability.
  4. Generate a candidate method.
  5. Plan a compute-bounded experiment.
  6. Implement and validate the candidate.
  7. Train and benchmark against strong baselines.
  8. Perform statistical analysis and ablation.
  9. Accept, reject, revise, or archive.
  10. 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).
  11. Publish reproducible reports.

Every step in this loop has a versioned contract in this repository; no step is left to an unconstrained agent.

Repository layout

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)

Start here

  1. Read MASTER_SPEC.md — the canonical specification.
  2. Read OPENCODE_KICKOFF_PROMPT.md — the agent onboarding contract.
  3. Give the kickoff prompt to OpenCode from the repository root.
  4. OpenCode must produce plans and contracts before implementation.
  5. The first executable milestone is a deterministic toy rediscovery pipeline, not unrestricted autonomous operation. See planning/.

Milestone status

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

Knowledge-loop research line (protocols 230–237)

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

What we learned (knowledge-loop protocols 230–235; scoped by substrate)

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.

  1. 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.
  2. 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).
  3. 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/).
  4. 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}/).
  5. 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):

  1. 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.

Meta-Search (protocols 241–244, toy confirmation and real-workload transfer test)

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.md and the consolidated implementation/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 (or algolab meta-transfer-run --dir experiments/protocol-244-v1), then algolab 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/hpo workloads and did not transfer it: both arms were REJECTED_PROSPECTIVE (q = 0.5052). Historical replay is not prospective evidence; no deployment or autonomy claim follows from the toy promotion.

Non-negotiable constraints

  • 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.

For Researchers

About

Autonomous AI Algorithm Discovery Laboratory: a bounded, reproducible research platform that proposes, implements, tests, rejects, refines, and reports candidate improvements to AI systems under a fixed compute budget.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages