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.
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
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) againstcomposition-generator 0.9.1candidates (S1-M01,S1-M02, plus rejectedS1-M03) across four impedance conductivity runs and two XRD phase-purity runs. Baseline result0.082 mS/cmwas rejected due to flaking electrode contact,S1-M01verified at1.12 mS/cm(98.7%cubic phase) on sintered pelletPEL-M01 ← PWD-M01with SHA-256 raw-data digests, and a published learning launched Cycle 2. In Cycle 2 (test), active runS2-M01 · EIS-COND(composition-generator 0.9.2) captured a QC-flagged1.31 mS/cmreading during a 40 ppm critical glovebox oxygen deviation — blocking run completion until the deviation is reviewed, whileS2-M02 · EIS-CONDwaits inplanned. - Concluded Polymer Recycling (
POLY-03) & Honest Hardware Failures (PV-06): Recyclable polymer campaignPOLY-03completed two full DBTL cycles (P1,P2) with published learnings showing 3 wt% compatibilizer retains92.5%tensile strength with no further gain at 5 wt% (92.1%), concluding the campaign. Meanwhile, perovskite stability runPV-IL · PV-AGEfailed honestly at 212 of 1,000 hours whenSPEC-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 a6 °Cthermocouple 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:
- Frozen intent beside recorded actuals (
planIsFrozenOnceStarted&criticalDeviationsBlockCompletion): Once a run transitions fromplanned→running,plannedParamsis locked via!fieldChanged('plannedParams'), whileprotocolVersionis copied onto the run at creation. Actual conditions go intoactualParams,event, anddeviationrecords; an opencritical: truedeviation blocksrun.complete(while still permittingrun.failwith a requiredfailureReason), anddeviation.closerequires a writtenexplanation. - 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.parentwalking sintered pellets back to precursor powders), and a SHA-256checksumwheneverdataUriis present. Captured values can never be edited — erroneous measurements are transitioned torejectedand re-measured — whiletakeLapsedInstrumentsOfflinesweeps past-due instruments intomaintenanceevery morning at06:00. - First-class AI design provenance (
modelDesignsCarryProvenance&specIsWrittenOnceApproved): Candidate designs declareorigin(scientistormodel). Anymodeldesign is rejected at validation unless bothmodelNameandmodelVersionare recorded, and once approved its JSONspecis frozen so every downstream measurement traces back to the exact model version or scientist hypothesis that proposed it. - Two server-held DBTL loop gates (
learnNeedsResults&closeNeedsALearning): A cycle’s state machine (design → build → test → learn → closed) is backed by cross-resource AELquery()rules:start_learnis refused if zeroresultrows reference the cycle, andcloseis refused by scientists or reviewers until at least onepublishedlearningexists for that cycle. - 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.
scientist as scientist1 Research Scientist
Approve or reject scientist and model designs, review run deviations, verify or reject captured measurements, advance cycles into Learn, and publish cycle learnings.
Launch scientist1 bench ↗lab_tech as labtech1 Lab Technician
Start and finish runs on calibrated instruments, record actual parameters, log operational events and deviations, manage powder-to-pellet sample lineage, or click Complete on S2-M01 · EIS-COND to trigger the live server refusal.
Launch labtech1 bench ↗ml_engineer as mleng1 ML Engineer
Propose generative candidate designs with mandatory model name and version provenance, draft cycle learnings, and trace predicted scores against verified laboratory measurements.
Launch mleng1 bench ↗reviewer as reviewer1 Scientific Reviewer
Review and close explained deviations (including failed perovskite aging run PV-IL · PV-AGE), verify or reject captured results, publish learnings, and close completed DBTL cycles.
Launch reviewer1 bench ↗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.
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