Context at the Edge Layer
An instrument states what it just collected in the opening bytes of every file it writes, and almost nobody reads those bytes until analysis, days later and on other hardware. Scigantic's approach treats the useful unsolved problem at the edge layer as metadata rather than compute, and applies the rules we already use for cloud archives to the instrument without modification.
An instrument writes files into a directory. The opening bytes of each file state what it is: dimensions, sampling, instrument settings, the run it belongs to. The instrument writes those bytes at acquisition time whether or not anyone reads them.
The rules we already use in the cloud
Replicate the index and leave the bytes lazy: the catalog is small, the data is large, and a pre-built catalog answers what is in an archive with no live reads at all. Read the smallest thing that answers the question, which in practice means a windowed read of a tiled raster, a byte range against an object store, or a central strip of a volume for a thumbnail. Hand the agent its context rather than making it search, which is why our in-notebook assistant gets a short description of the archive when the notebook starts and is told not to walk the filesystem to work out what it is looking at; the MCP server works the same way. And put everything at the same kind of path, so nothing downstream has to branch on which cloud the data came from or how it was mounted.
Each of those is a response to two conditions: the link is slow, and the dataset is too large to move. A facility with an instrument and a modest uplink has both conditions, which is the entire argument for why the rules transfer.
Instrument output is the hardest case for a schema card
We describe each archive with a schema card: a short structured account of what the data is, how it is laid out, and what to watch out for. How much to write is a judgment call, and our rule is the delta from pretraining. A well-known public dataset needs a few hundred bytes, because a capable model already knows it. An obscure one needs more, because the model has nothing to work from.
It does not need a human author. A public dataset gets described by people after the fact. An instrument states its own parameters in the files it writes, in fixed positions, according to specifications that are already published.
Every row is the same operation: read a bounded slice of bytes, return a typed record. Supporting a new instrument means writing one more decoder. The output has the same shape for every format.
The header is only the first tier
Reading headers is the cheap case, and on its own it is not enough. Two things get in the way.
The first is that a header records what the instrument declared, which is not always what is true. Raw cryo-EM movies are the standard example: the pixel size in an MRC header is routinely a placeholder, and the real value sits in the RELION STAR or CryoSPARC file written alongside it. So decoding a file has to be followed by a join against its siblings in the same directory. That join is still cheap, and skipping it produces a record that is confidently wrong rather than incomplete.
The second is that a header cannot tell you whether the data is any good. A session with perfect metadata and blank frames looks exactly like a good session if headers are all you read.
Hence a second tier: read a bounded sample of the data itself. A few frames out of a movie, the first several thousand records of a FASTQ, one plane out of a stack. That is still a bounded read, with a larger bound, and it produces measured values rather than declared ones: the intensity range that is actually present, the quality distribution that actually came off the machine, whether there is signal there at all. Across a large session you would sample files rather than sampling inside every file, which keeps the cost flat as the session grows.
This is the rule I have had to loosen. Read the header and not the file is the right default, and it is not the whole story. The version I would now defend is: read the smallest amount that answers the question you are actually asking, and record which tier each field came from, because a measured pixel size and a declared one should not be stored as though they were the same kind of fact.
A new dataset still comes with priors
The delta-from-pretraining argument says instrument output is the obscure case. That is true of the specific run and false of nearly everything around it. Three kinds of prior are available before anything reads a byte of the data.
The format and the consumables. A POD5 file names its flow cell and sequencing kit, and those imply an expected sample rate and a rough read-length behavior that belong to the kit rather than to this run. The same holds for a DICOM modality, or an Illumina run XML that describes the read structure.
The instrument class. Accelerating voltage, detector, and magnification bound what the numbers are allowed to be. A defocus value outside the range the microscope can physically produce is a decoding bug, not a finding. Those bounds cost nothing to write down and they catch a category of error that statistics over the run will never catch, because a consistently wrong decoder produces consistent numbers.
Earlier sessions on the same instrument. This is the most useful of the three and the one I would be most careful with. A session judged only against itself has nothing to judge against for its first several files, so a real problem in the first few acquisitions goes unflagged. That is not the design missing the case. There is simply no history yet. Seeding the baseline from an earlier known-good session on the same instrument closes that window.
What I think holds at the edge layer
Read as little as the question allows. The identifying bytes are kilobytes and the file is gigabytes, so describing a full session costs a small fraction of one acquisition, even once you add the sampled tier above. Any design that has to read whole files is unworkable at instrument data rates.
Assume no network, and make the exceptions explicit. A system that makes a network call to describe a file stops working when the link goes down, and a regulated facility is unlikely to approve it in the first place. The case I would watch is narration. It is tempting to have a model write the summary of what happened during a run. That one decision adds a network round trip to the path that most needs to work offline. Templated sentences are less flexible and always available. Where a network call is worth making, it should be a named flag that is off by default, and it should degrade rather than block: a failed lookup leaves one field empty instead of failing the scan.
Send metadata and bulk data on separate schedules. Metadata is cheap and should go promptly. Bytes are expensive and can go slowly, or not at all, since most raw output has no reason to leave the facility.
Record provenance as identifiers you can join on. A DICOM SeriesInstanceUID, the source stack filename in a particle set, a run identifier. A context record should say what a file is and what it was derived from. That produces an edge list on disk, which is useful without a graph database.
Use files as the interface. Whether the question is what a file is or how a run is going, the answer should be a file in a directory. Anything that can read a file can then consume it.
Poll rather than subscribe. inotify does not reliably see writes made by another NFS client to a shared export, and an instrument writing to a share that the analysis machine also mounts is the common setup. Polling is the correct choice for that topology.
What I am not arguing for
I am not arguing for on-the-fly processing at the instrument. That layer exists and it works. cryoSPARC Live watches the directory a microscope writes into and runs motion correction, CTF estimation, and particle picking during the session. Warp and M do related work. SmartScope automates screening. Real-time processing at the microscope is not an open problem.
What sits underneath it is: what was collected, under what conditions, derived from what, and where it went. Processing pipelines use that information and usually do not persist it in a form anything else can read. A tool that says a run is going badly is a different thing from a record that says, a year later, what a good run looked like.
What the record is worth
A facility with a slow uplink cannot send its raw acquisitions, and in most cases should not want to. A typed record per file is measured in kilobytes and can be sent. Keeping the bytes and sending the context also means the catalog outlasts the data, which matters because many facilities delete raw acquisitions after a retention window of a few weeks. Storage costs have not fallen as fast as detector output has grown.
That changes the usual objection about data leaving a building. Nothing sensitive has to move for a facility to end up with a searchable record of its own work, joinable across instruments and across years, in the same form as every public archive in our catalog.
Where I would put the effort
Scigantic exists because the data is in one place and the person is in another. An instrument is the same problem with a shorter wire and stricter rules about what is allowed to leave. The work worth doing at the edge layer is context extraction rather than compute, and it belongs at acquisition time, because that is when the information is available at no cost.
Writing the decoders is the understood part. What I expect to be hard is the second and third tiers: how much of the data to sample before the sampling costs more than it returns, and which earlier session a new one should be measured against. Both are judgment calls, and I have not seen a convincing argument that either can be made automatically.