Full Stack Microscopy

June 1, 2026 ยท View on GitHub

Gently should be documented as a microscopy system, not only as an agent or a device controller. The useful view for a biologist or instrument developer is the full path from experimental intent to stored evidence.

Stack Map

StackWhat it ownsGently surface
Experimental intentScientific question, hypothesis, controls, success criteriaplan mode, campaigns, plan items
Sample preparationOrganism, strain, treatment, mounting, perturbationsample records, sample-tracking metrics
Hardware integrationMicroscope devices, safety limits, device state, calibrationhardware profiles, device layer, profile templates
AcquisitionSnapshots, volumes, timepoints, illumination, temperatureacquisition tools, Bluesky plans, session metadata
PerceptionDetection, classification, quality control, event recognitionperception traces, predictions, reasoning records
Closed-loop decisionsWhen to continue, stop, adapt, or ask the operatoragent tools, event logs, decision logs
Data and provenanceRaw data, derived data, logs, plans, exportsFileStore/GentlyStore, session directories, debug bundles
Operator experienceSetup, monitoring, intervention, recoveryweb UI, chat, settings, docs/tutorials

Documentation Shape

Generated docs should include three kinds of material:

  • Tutorials: task-focused paths such as "run without hardware", "add a hardware profile", and "start a safe timelapse".
  • Concepts: the full-stack map, sample/hardware domain boundaries, and data provenance expectations.
  • References: API surfaces, command-line flags, storage layouts, hardware profile checklists, and test markers.

Hardware as One Stack

Hardware is a core stack, but it should not dominate the documentation model. The device layer matters because it connects intent to physical state safely: limits, calibration, timing, illumination, and temperature all shape what scientific claims can be made from the data.

Hardware docs should therefore connect each device profile to:

  • the sample state it can observe or change
  • the safety boundaries it enforces
  • the metadata it records
  • the simulator or live-hardware tests that cover it
  • the operator workflow for setup and recovery

Tutorial Roadmap

Priority tutorials:

  • run Gently offline and create a plan
  • connect a local diSPIM device layer
  • add a new hardware profile
  • add a new organism/sample type
  • inspect a stored session and export a debug bundle
  • write a hardware contract test and an opt-in live hardware test