← All live demos
R&D & Biotech · Materials, Energy & Chemistry Discovery adl.ledger · ADL 0.5.1

Experiment Ledger

What was planned. What actually happened. Kept side by side.

Scientific system of record closing the Design-Build-Test-Learn (DBTL) loop for automated and bench R&D labs — holding every run's frozen plan beside actual parameters, operational events, and deviations, while tracing checksummed results back to sample parent lineage, calibrated instruments, protocol versions, and scientist- or AI-model-proposed designs on the Kalos server.

Declarative Domain Pipeline campaign → cycle (design → build → test → learn → closed) → design (scientist | model + version) + sample (parent lineage) + protocol + calibrated instrument → run (plan vs actual) → event + deviation → result (SHA-256) → published learning
Experiment Ledger landing page showing the running S2-M01 EIS-COND conductivity run blocked by an open critical glovebox oxygen deviation alongside live database counts
The Experiment Ledger home page queries the live Kalos PostgreSQL backend on load to display real-time runs on file, open deviations, verified results, and versioned model-proposed designs beside a running conductivity experiment that the server refuses to complete.

Why Experiment Ledger Exists

Every automated or bench R&D laboratory has to answer two questions to make a scientific result reproducible: what did we plan to do, and what actually happened when the sample met the instrument. When electronic notebooks store protocols as free-text prose and spreadsheets overwrite parameters in place, small excursions — a six-minute glovebox oxygen spike during pellet transfer, a 1.12 mm sintered pellet pressed slightly thicker than the 1.00 mm target, or a lamp power supply tripping 212 hours into a 1,000-hour aging run — disappear into silent edits, and the link between a generative ML candidate and the measurement it produced is lost.

Experiment Ledger separates intent from physical reality structurally and closes the Design-Build-Test-Learn (DBTL) loop on the server. Declared in a single ADL 0.5.1 suite (adl.ledger) and executed directly by the Kalos C++ runtime against PostgreSQL, it models 11 resources, 5 RBAC roles, 3 declarative views, cross-resource AEL rules, daily calibration schedules, history timelines, and field-level auditing. Nothing is simulated in client-side JavaScript: every queue, transition button, and rule refusal talks live to /api/v1/ledger/*.

Inside the Materials-Discovery Demonstration Dataset

Opening any desk signs you into a real Kalos JWT session populated with a fictional materials, energy, and chemistry R&D lab running 10 campaigns, 12 DBTL cycles, 14 scientist and AI-proposed designs, 10 versioned protocols, 10 instruments, 13 lineage-linked samples, and 12 runs:

  • Solid Electrolyte Conductivity (SSE-01 — Closed Cycle 1 & Active Cycle 2): Cycle 1 (closed) compares scientist baselines (LLZO-BASE, LLZO-GA20) against composition-generator 0.9.1 candidates (S1-M01, S1-M02, plus rejected S1-M03) across four impedance conductivity runs and two XRD phase-purity runs. Baseline result 0.082 mS/cm was rejected due to flaking electrode contact, S1-M01 verified at 1.12 mS/cm (98.7% cubic phase) on sintered pellet PEL-M01 ← PWD-M01 with SHA-256 raw-data digests, and a published learning launched Cycle 2. In Cycle 2 (test), active run S2-M01 · EIS-COND (composition-generator 0.9.2) captured a QC-flagged 1.31 mS/cm reading during a 40 ppm critical glovebox oxygen deviation — blocking run completion until the deviation is reviewed, while S2-M02 · EIS-COND waits in planned.
  • Concluded Polymer Recycling (POLY-03) & Honest Hardware Failures (PV-06): Recyclable polymer campaign POLY-03 completed two full DBTL cycles (P1, P2) with published learnings showing 3 wt% compatibilizer retains 92.5% tensile strength with no further gain at 5 wt% (92.1%), concluding the campaign. Meanwhile, perovskite stability run PV-IL · PV-AGE failed honestly at 212 of 1,000 hours when SPEC-01’s light-soak lamp power supply tripped, preserving both the critical operational event and reviewed deviation.
  • Calibration Enforcement (FURN-02): Across 10 synthesis, thermal, electrochemistry, and characterization instruments, Tube furnace 2 (FURN-02) carries a lapsed calibration date alongside a 6 °C thermocouple drift warning — ready to demonstrate server-side calibration gating.

How ADL Keeps the DBTL Loop Honest

Five architectural guarantees in backend/domain.yaml ensure reproducibility holds regardless of whether a human scientist, lab technician, automation scheduler, or ML pipeline calls the REST API:

  1. Frozen intent beside recorded actuals (planIsFrozenOnceStarted & criticalDeviationsBlockCompletion): Once a run transitions from planned → running, plannedParams is locked via !fieldChanged('plannedParams'), while protocolVersion is copied onto the run at creation. Actual conditions go into actualParams, event, and deviation records; an open critical: true deviation blocks run.complete (while still permitting run.fail with a required failureReason), and deviation.close requires a written explanation.
  2. End-to-end sample, instrument & raw-data provenance (noRunOnAnOutOfCalibrationInstrument, valueIsWrittenOnce, rawDataIsChecksummed): Every result points to the run that actually started (resultsComeFromRunsThatRan), its sample chain (sample.parent walking sintered pellets back to precursor powders), and a SHA-256 checksum whenever dataUri is present. Captured values can never be edited — erroneous measurements are transitioned to rejected and re-measured — while takeLapsedInstrumentsOffline sweeps past-due instruments into maintenance every morning at 06:00.
  3. First-class AI design provenance (modelDesignsCarryProvenance & specIsWrittenOnceApproved): Candidate designs declare origin (scientist or model). Any model design is rejected at validation unless both modelName and modelVersion are recorded, and once approved its JSON spec is frozen so every downstream measurement traces back to the exact model version or scientist hypothesis that proposed it.
  4. Two server-held DBTL loop gates (learnNeedsResults & closeNeedsALearning): A cycle’s state machine (design → build → test → learn → closed) is backed by cross-resource AEL query() rules: start_learn is refused if zero result rows reference the cycle, and close is refused by scientists or reviewers until at least one published learning exists for that cycle.
  5. Readable history & complete field audit (history + features: { audit: true }): State transitions on cycles and runs emit human-readable timeline events (capturing failure reasons automatically), while Kalos records authenticated actor identity, UTC timestamps, and before/after values on every change across all 11 resources.

Zero Sign-Up · Live Kalos Sessions

Sit at a Bench and Try It Live

Each card below signs directly into a real role-scoped JWT session on the production Kalos backend so you can test role queues, transitions, and server refusals immediately.

Production Interface Walkthrough

Inside Experiment Ledger — Screen by Screen

Captured directly from the live Kalos deployment. Click any screenshot to inspect full resolution or jump straight to that screen in the running application.

01

Plan vs Actual Execution & Live Server Gate Refusal (S2-M01 · EIS-COND)

Clicking Complete on active impedance run S2-M01 · EIS-COND triggers an HTTP 422 criticalDeviationsBlockCompletion refusal because a critical 40 ppm glovebox oxygen excursion remains open. The run preserves its frozen planned parameters alongside recorded actuals, protocol version EIS-COND v3.1, calibrated analyzer EIS-01, and model-proposed design provenance (composition-generator 0.9.2).

Open Lab Technician desk to inspect S2-M01 · EIS-COND ↗
https://experiment-ledger.infinity-sdg.com/app/#as=labtech1 Full size ↗
Experiment Ledger run S2-M01 EIS-COND detail screen as labtech1 showing the live server refusal banner for criticalDeviationsBlockCompletion, model design provenance, protocol v3.1, calibrated instrument EIS-01, and frozen plan-versus-actual table
02

Closed-Loop DBTL Cycle & Scientist-Alongside-Model Designs (SSE-01 · Cycle 1)

Every DBTL iteration is a five-state server lifecycle (Design → Build → Test → Learn → Closed) with hard gates into Learn and Closed. In solid-electrolyte Cycle 1, two scientist baselines (LLZO-BASE, LLZO-GA20) sit alongside three composition-generator 0.9.1 candidates — keeping both built designs and rejected heavy-doping candidate S1-M03 on the permanent record.

Open Reviewer desk to explore SSE-01 · cycle 1 ↗
https://experiment-ledger.infinity-sdg.com/app/#as=reviewer1 Full size ↗
Experiment Ledger closed cycle SSE-01 cycle 1 view showing the five-step DBTL progress bar, five scientist and model-proposed designs with composition-generator 0.9.1 version chips, and completed runs
03

Checksummed Results, Sample Lineage & Published Learning (SSE-01 · Cycle 1)

Each captured measurement links its run, sample parent-child chain (sintered pellet PEL-M01 ← precursor powder PWD-M01), producing instrument, and raw-data URL with a 64-character SHA-256 digest. Baseline contact failure 0.082 mS/cm stays on file as Rejected rather than overwritten, and Dr. Elena Moreau's published 80%-confidence learning unlocks cycle closure.

Inspect verified results & learning as Reviewer ↗
https://experiment-ledger.infinity-sdg.com/app/#as=reviewer1 Full size ↗
Experiment Ledger SSE-01 cycle 1 results, learning, and history sections showing verified and rejected measurements with PEL-M01 from PWD-M01 lineage, SHA-256 checksums, published learning, and cycle closed timeline
04

AI-Proposed Design Provenance & Measured Outcomes (modelProposedDesigns View)

The declarative modelProposedDesigns view ranks every generative candidate from composition-generator 0.9.1 and 0.9.2 by predicted score — connecting each model version and rationale directly to downstream built states and measured room-temperature ionic conductivity and XRD phase-purity results.

Open ML Engineer desk ↗
https://experiment-ledger.infinity-sdg.com/app/#as=mleng1 Full size ↗
Experiment Ledger ML engineer Model designs view listing six composition-generator 0.9.1 and 0.9.2 candidates with predicted scores, rationales, states, and verified or captured measurements
05

Scientist Operational Queues & DBTL Gate Readiness

Signing in as scientist1 assembles seven focused worklists: runs blocked by open critical deviations, plan-vs-actual deviations awaiting review, unverified QC-flagged measurements (1.31 mS/cm on PEL-S2M01 ← PWD-S2M01), proposed designs awaiting approval, and active cycles with live Test-to-Learn and Learn-to-Closed gate checks.

Open Scientist desk ↗
https://experiment-ledger.infinity-sdg.com/app/#as=scientist1 Full size ↗
Experiment Ledger Scientist My work dashboard showing runs in progress, open gloveboxO2Ppm and temperatureC deviations, unverified 1.31 mS/cm result, and proposed designs
06

Lab Technician Instrument Fleet, Calibration Gates & Operational Events

Ten synthesis and characterization instruments track calibration windows across bays. Tube furnace FURN-02 has a lapsed calibration date (flagged alongside a 6 °C thermocouple drift operational event): noRunOnAnOutOfCalibrationInstrument blocks run starts immediately, and daily schedule takeLapsedInstrumentsOffline transitions expired hardware to maintenance at 06:00.

Inspect instruments & samples as Lab Tech ↗
https://experiment-ledger.infinity-sdg.com/app/#as=labtech1 Full size ↗
Experiment Ledger Lab technician Instruments and samples page showing ten lab instruments with FURN-02 flagged for lapsed calibration and operational instrument events below

Declarative Server Enforcement

What the Kalos Server Refuses — Whoever Asks

These invariants live in the ADL domain definition, not in client-side UI JavaScript. Every REST request is checked by Kalos before touching PostgreSQL, and any violation returns a structured error naming the rule.

Attempted Operation Enforced ADL Rule / Guard Regulatory Alignment
Edit planned parameters after a run has left planned state planIsFrozenOnceStarted Plan-vs-actual experimental integrity
Complete a run while any critical deviation remains open criticalDeviationsBlockCompletion Mandatory excursion review before completion
Start a run on an out-of-calibration or out-of-service instrument noRunOnAnOutOfCalibrationInstrument Metrology & daily 06:00 calibration enforcement
Capture a measurement against a planned or cancelled run resultsComeFromRunsThatRan Execution-backed measurement provenance
Edit a captured measurement value or attach raw data without a SHA-256 digest valueIsWrittenOnce · rawDataIsChecksummed Append-only data & raw-file checksum verification
Save a model-proposed design without model name and version, or edit an approved spec modelDesignsCarryProvenance · specIsWrittenOnceApproved AI model provenance & candidate spec lock
Overwrite a protocol version string or reassign a cycle number versionIsWrittenOnce · numberIsWrittenOnce Immutable procedure & cycle identity
Transition a DBTL cycle into Learn before any result exists for that cycle learnNeedsResults Closed-loop Test-to-Learn gate
Close a DBTL cycle before a published learning is on file closeNeedsALearning Closed-loop Learn-to-Closed gate
Close a deviation without an explanation or mark a run failed without a failure reason deviationClosesWithAnExplanation · run.fail requires failureReason Explainable deviations & honest failure records

Domain Footprint

ADL Suite Inventory

Resources (11)

campaigncycledesignprotocolinstrumentsampleruneventdeviationresultlearning

RBAC Roles (5)

scientistlab_techml_engineerrevieweradmin

Declarative Views (3)

planVersusActualopenDeviationsmodelProposedDesigns