Beta. STARCO Dev works with synthetic data only: do not send real personal or health data. Every feature shows its real status (Available Beta Beta · in development Coming).

STARCO Dev Academy · 17 chapters · about 2 hours

Learn digital twins by building one.

A progressive course. You create a synthetic twin and work with it chapter after chapter: feed it observations, read its layers, change its state without losing anyone's update, follow its series and history, react to its events, export it with a fingerprint and prove who touched it. Each chapter unlocks when the previous one is done.

Simulated in your browser, synthetic data · nothing is sent anywhere

Every chapter shows the real status of what it teaches: Beta works for every account; Beta · in development is being built now and its names can still change. Your progress is kept in this browser only, when the browser allows it.

A faceless glass figure with a glowing cyan wireframe and data points inside, standing within four translucent rings for the twin's layers: wellness, biomarkers, anatomy and genetics.
Chapter 1

What a digital twin is

Goal: know the four ideas every other chapter builds on.

A digital twin is a living data model of something real. It is fed with observations, keeps itself up to date, and lets you ask the model instead of the real thing. In STARCO a twin is organised in layers (the built-in wellness and biomarkers, and custom layers you define), each with typed measures that have a unit and accepted bounds. When observations arrive, the affected layers are recomputed. The twin also keeps a current state (the latest value of each measure, with a version), the history of every change, events other systems can follow, an export with a fingerprint and an audit chain of every access.

Research groups

Model a cohort, ingest with strict validation, export with fingerprints for reproducible analysis.

Developers

Typed state, safe concurrent updates, series and webhooks without building storage and audit yourself.

Care organisations

An audit chain anyone can verify, and descriptive values only: no labels, no scores.

Curious individuals

Learn how twins work with synthetic people, here, with no account.

Your task: answer the three questions.

A twin has no sleep data for Tuesday. What does it say for that night?
Which sentence could STARCO say about a twin?
You send steps in kilometres to a measure whose unit is steps. What happens?
Chapter 2

Your project and key Beta

Goal: create a project (it comes with a synthetic cohort of 8 twins) and a project key with the read and write scopes.

You are signed in to the console of a synthetic developer account. A project holds twins, keys and its own audit chain. A project key (starco_dk_…) is what your code sends; its secret is shown once. Type the commands, or press a suggestion to put it on the line, then press Enter.

Your task: have an active key with both scopes.

Chapter 3

A twin from a template Beta

Goal: look at the catalogue and create your own twin with the wellness and biomarkers layers.

A template chooses which measures come first; the layers choose which measures exist at all. A twin without the biomarkers layer refuses heart-rate data: it only holds what you chose.

Your task: create a twin with both layers.

Chapter 4

Observations and layers Beta

Goal: send a batch with one wrong line on purpose, then read the recomputed wellness layer.

An observation is one measured value at one time: kind, value, unit, observed_at. Each line of a batch is checked on its own. A refused line is never stored, not even in part, and the layers it touched are recomputed before the answer.

Your task: get a batch with at least one accepted and one rejected line, then read the wellness layer.

Chapter 5

The twin's current state Beta

Goal: see the twin's typed measures, set the current value of two of them and read one back with its version.

Observations are the twin's past. Its current state is its present: one value per measure (wellness.mood_level, study.phase…), typed by its layer, with a version that only grows. A measure that was never set has no value: "has_value": false, null, version 0, never a default.

Your task: wellness.mood_level is 4 and wellness.stress_level is 2.

Chapter 6

Safe concurrent updates Beta

Goal: cause a 409 version_conflict on purpose, then fix it by reading again.

Two apps read mood_level at the same version, both change it, and the last one silently overwrites the first. Compare-and-set prevents it: send the version you read, as if_version in the body or as If-Match: "<version>" (the ETag of your read), and the write only happens if nobody changed the measure in between. if_version: 0 means «only if it has no value yet».

  1. Read the measure: note its version.
  2. Press Another app writes: a second client with its own key changes it.
  3. Send your write with the version you read: 409.
  4. Read again and retry with the new version: 200.

Your task: get a version_conflict, then a successful write with if_version or If-Match.

Chapter 7

Counters within bounds Beta

Goal: count glasses of water with an atomic increment, and watch the measure's bounds hold.

POST …/state/{measure}/incr adds to a number or integer measure in one atomic step, so two clients adding at once never lose a glass. It respects the measure's bounds (hydration_glasses accepts 0 to 20). And it never starts from an invented zero: a measure with no value must be set first.

Your task: see measure_has_no_value and value_out_of_accepted_bounds, and end with 19 or 20 glasses.

Chapter 8

Several changes at once Beta

Goal: apply two changes all-or-nothing, guarded by a watch on the version you read.

A transaction (POST …/tx) is an ordered list of operations (set, incr, del, append) applied together or not at all. With watch you name the versions you based it on: if any changed, nothing is applied and you get 409 watch_failed with the conflicts.

Your task: press Another app writes between your read and your transaction to get a watch_failed, then read again and commit.

Chapter 9

Series by day Beta

Goal: append a week of sleep to the series of a measure and read it back in daily buckets, gap included.

Each stored numeric measure has a series: its observations in time order, the same ones its layer is computed from. You append points {"t", "v"}, checked like observations, and read a range raw or in UTC buckets (1m to 7d) with avg, min, max, sum, count, first or last.

Your task: read the week in daily buckets and find the missing night.

Chapter 10

History of a measure Beta

Goal: list every change of a measure: old and new value, version, operation, time, transaction and the key that made it.

The state keeps only the present; the history keeps how it got there (the last 1000 changes of each measure). Each entry names the operation (set, incr, del, or derive for a calculated measure) and the prefix of the key that made it, never its secret.

Your task: read a history with at least two entries.

Chapter 11

Your own layer schema Beta

Goal: define a custom layer with typed measures, create a twin with it next to a built-in layer, and see the types enforced.

A layer schema defines a custom layer (study, rehab…) and its measures: name, type (number, integer, boolean, string, enum, json), a unit and accepted bounds for numbers, the allowed values of an enum, or an expression for a derived measure. A schema is never changed: posting the same layer again creates its next version, and a twin keeps the version it was created with.

Your task: the study twin has study.water_ml set.

Chapter 12

Derived measures Beta

Goal: watch a calculated measure follow its inputs, and see that it never invents a value.

study.ml_per_kg is derived: its expression is round(water_ml / weight_kg, 1). Expressions use numbers, + - * / ( ), min, max, abs, round and the stored number measures of the same layer; they are parsed, never run as code. A derived measure is recomputed in the same transaction as the input that changed, with its own version and history (derive). With an input missing, or a division by zero, it has no value.

Your task: get a value for study.ml_per_kg, and see measure_is_derived when you try to set it.

Chapter 13

Events and signed webhooks Beta

Goal: follow the project's events, subscribe a webhook, verify a delivery's signature and catch a tampered one.

Every change in a project is an event (twin.created, twin.deleted, schema.created, state.changed, series.appended) you read by cursor with GET /v1/events?after=…, kept 30 days. A webhook pushes them to your endpoint, signed: X-Starco-Signature: t=<unix time>,v1=<hex>, the HMAC-SHA256 of "<t>.<raw body>" with the webhook's secret. Only https on port 443 to a public host name: no IP literals, local names or private addresses (the real API also resolves the name before every delivery). Here the receiving end, hooks.example.test, is simulated in the page.

Your task: verify one genuine delivery, then tamper with its body and see the check fail.

Chapter 14

Export with a fingerprint Beta

Goal: export your twin and confirm that the bytes you received are the ones STARCO fingerprinted.

The export is one JSON document (starco-dev-export/v1) with the twin, its layers, its observations, its measures and its current state. The X-Content-SHA256 header is the SHA-256 of exactly those bytes, and the same fingerprint is written to the audit chain.

Your task: recompute the fingerprint of the bytes you received and get a match.

Chapter 15

Verify the audit chain Beta

Goal: verify the chain of everything you did, tamper with one row and watch the verification point at it.

Each row's row_hash is the SHA-256 of "starco-dev-audit/v1\n" + project_id + "\n" + seq + "\n" + prev_hash + "\n" and one field=<byte length>:<value> line per field. Each row includes the previous row's hash, so changing any row breaks every link after it. Rows name measures, versions and counts, never a value.

Your task: get "ok": true, tamper with a row, then get "ok": false with the row's first_broken_seq.

Chapter 16

The SDK and the CLI Beta · in development

Goal: do in one line what you did with HTTP: read state, set it safely and read a series.

In developmentThe Python and TypeScript SDKs and the starco command line are written and run end to end against the API; they are not published yet, so nothing here can be installed.
import os, starco

c = starco.Client(api_key=os.environ["STARCO_KEY"])
mood = c.state.get(TWIN_ID, "wellness.mood_level")           # value, version
c.state.set(TWIN_ID, "wellness.mood_level", 4, if_version=mood["version"])
week = c.series.range(TWIN_ID, "wellness.sleep_hours", bucket="1d", agg="avg")

Try the command line in the console: it maps each command onto one request of the same API.

Your task: run starco twin get and starco series range.

Chapter 17

An AI assistant through MCP Beta

Goal: give an assistant one hour of read-only access to your project, call its tools as it would, and see what it can never do.

Each synthetic project has an MCP server: an assistant holds a starco_dm_… token (read-only, one hour, one project) and calls six tools over JSON-RPC: twins.list, twin.get, layer.get, series.range, history.get and audit.verify. There is no tool that writes. MCP needs Accept: application/json, text/event-stream; the console adds Content-Type: application/json to every body.

PersonHow did the mood level of my twin change?
Assistant · AI (simulated)Issue a token below, then press a question under the console: the answer is built only from what the read-only tools return about your synthetic twin.

Your task: call a read tool through tools/call, and see a write tool refused.

Certificate

Academy complete

STARCO Dev Academy

Digital twins, from first layer to verified audit chain

17 chapters completed: layers and typed measures, observations, the current state with versions, safe concurrent updates, counters within bounds, transactions, series, history, layer schemas, derived measures, events and signed webhooks, fingerprinted export, the audit chain, SDK and CLI, and assistants through MCP.

completed on
not yet
certificate fingerprint
not yet

No name and no personal data: the fingerprint is the SHA-256 of the course version and the completion date. Simulated, synthetic data.