Skip to content

Menu

Example Flow

Continuous science, run once round the loop on one work: every file, command and diff it takes.

An invented work and planned future automation

The work, its authors, its data, and every number, output, version, and DOI below are made up to show the full continuous-science loop. Automated checks, review, and auto-publishing (valency checks, valency review, and valency publish --if-gates-pass) are planned post-GA additions. See Publish from your terminal for the commands available today.

Continuous science · the north star, as a worked example

Overview

With your analysis in a repo, the Valency CLI publishing from it and your agent on the Valency MCP, a work becomes a loop: new data lands, the analysis re-runs, an agent updates the work, Valency reviews it, and readers and their agents see the new version.

Here is that loop run once on a work, with every file, command and diff it takes. The pipeline runs every step, and when a result changes, the new version stays private until you review it.

The example

Imagine this work running as continuous science.

It already runs an automated pipeline, fitting a trend to every lake record with the observation method controlled for. The loop below keeps that pipeline running after acceptance.

limnology · CC BY 4.0

Earlier ice-off on northern lakes: a running analysis of lake ice records

R. Amari, J. Kestrel, T. Novak

your-lab/lake-ice-paper

Its question
Are northern lakes losing their ice earlier in spring, once you control for how each lake is observed?
Its answer
Yes. Across 1,412 lake records, ice-off comes about four days earlier per decade.
  1. Version 14 Mar 20261.0.0publicFirst public version.
  2. Version 29 Jun 20262.0.0publicRevised after peer review at a journal.
  3. Lake 14132 Oct 20262.1.0publicone new lake record, once round the loop
  1. 01

    New data lands

    A new observation is recorded, and the new data lands in your repo the way a commit does.

    In this example

    A field team posts this spring’s ice-off date for one more lake. Your listener tells the repo, and the workflow fetches the record: the sample grows from 1,412 lakes to 1,413.

    Makefile · fetch-data
    .PHONY: fetch-data # a step, not a file: it runs every time
    fetch-data: # 01 · new data lands
    python analysis/fetch.py --since last --out data/raw/
    python analysis/catalogue.py data/raw/ --append data/lakes.csv
    CI · make fetch-data
    # 2 Oct 2026 · 06:12 UTC · continuous.yml, run #57 (new-lake-record)
    make fetch-data
    python analysis/fetch.py --since last --out data/raw/
    1 new record → data/raw/lake-1413.csv
    python analysis/catalogue.py data/raw/ --append data/lakes.csv
    1 new lake · ice-off day 104 · sample N = 1,413
    data/lakes.csv · 1 row added
    --- a/data/lakes.csv
    +++ b/data/lakes.csv
    @@ -1412,0 +1413 @@ lake,year,ice_off_day,method
    +lake-1413,2026,104,shore

    CImake fetch-datacontinuous.yml · L25–26passed

  2. 02

    Analysis runs

    A CI pipeline automatically analyzes the data: the fits re-run and the figures redraw from them.

    In this example

    The same trend fit the work already uses runs on every record. The new lake agrees with the rest: the trend moves from 4.1 to 4.0 days earlier per decade.

    Makefile · analysis
    .PHONY: analysis
    analysis: data/lakes.csv # 02 · the analysis re-runs
    python analysis/fit.py data/lakes.csv --out analysis/fits.json
    python analysis/trend.py analysis/fits.json --out analysis/results.json
    python analysis/figures.py analysis/results.json --out paper/figures/
    CI · make analysis
    make analysis
    python analysis/fit.py data/lakes.csv --out analysis/fits.json
    1,413 records · 1 new · method controlled for
    python analysis/trend.py analysis/fits.json --out analysis/results.json
    trend −4.0 days per decade · claim 1 holds
    python analysis/figures.py analysis/results.json --out paper/figures/
    wrote fig3-trend.pdf, fig4-records.pdf
    analysis/results.json
    --- a/analysis/results.json
    +++ b/analysis/results.json
    @@ -1,6 +1,6 @@
    {
    - "n": 1412,
    - "trend_days_per_decade": -4.1,
    + "n": 1413,
    + "trend_days_per_decade": -4.0,
    "claims": { "earlier_ice_off": "holds" }
    }

    CImake analysiscontinuous.yml · L27–28passed

  3. 03

    The work is rewritten

    …and an automated agent incorporates the result into the work, updating its conclusions. Every line it changes is a diff you can read. Deciding what the work claims stays with you.

    In this example

    Your agent reads the new results and changes three lines: two numbers in the results section and the sample size in Figure 3's caption. No claim moved, so CLAIMS.md stays empty.

    agent/update.md · what your agent is told
    Update the work in paper/ to match analysis/results.json.
    - Change numbers, captions and table cells. Nothing else.
    - Keep the wording of every claim. If a result moves, don't
    rewrite the claim: list it in CLAIMS.md for a person to read.
    - Say what you changed in one line, for the version note.
    Makefile · paper
    .PHONY: paper
    paper: analysis/results.json # 03 · the work is rewritten
    $(AGENT) --instructions agent/update.md paper/
    latexmk -pdf -cd paper/main.tex
    CI · make paper
    make paper
    your-agent --edit --instructions agent/update.md paper/
    read analysis/results.json: n 1412 → 1413, trend −4.1 → −4.0
    edited paper/sections/results.tex (3 lines)
    claims moved: none · CLAIMS.md unchanged
    latexmk -pdf -cd paper/main.tex
    paper/main.pdf (24 pages)
    paper/sections/results.tex · 3 lines, by your agent
    --- a/paper/sections/results.tex
    +++ b/paper/sections/results.tex
    @@ -38,2 +38,2 @@ \subsection{The trend}
    -Across 1,412 lakes, ice-off comes 4.1 days earlier per decade
    -(95\% interval 3.6 to 4.6).
    +Across 1,413 lakes, ice-off comes 4.0 days earlier per decade
    +(95\% interval 3.5 to 4.5).
    @@ -61 +61 @@ \begin{figure}
    - \caption{Ice-off day by year ($N = 1{,}412$).}
    + \caption{Ice-off day by year ($N = 1{,}413$).}

    CImake papercontinuous.yml · L29–43passed

  4. 04

    Pushed to Valency

    One command sends the rebuilt work to Valency as its next version, private until it clears its checks.

    In this example

    valency submit sends paper/ as version 2.1.0, private to you and your co-authors. The five checks run on it and report back to the pull request.

    CI · push to Valency
    valency submit paper/ --yes --version-note "Add one lake record to the sample"
    Packing paper/ (4.2 MB) · article: main.tex
    Uploaded · rendering
    New private version 2.1.0
    Review and publish: https://valency.io/publish/lake-ice/2.1.0
    valency checks --wait
    Content Nothing harmful or out of scope
    Citations 41 of 41 references resolved
    Similarity No overlap beyond your own earlier versions
    Plagiarism No matches
    Quality No signs of low-quality work
    5 of 5 checks passed · status posted to the pull request

    On the pull request

    Valency / checks Successful in 2m — 5 of 5 checks passed · new private version 2.1.0

    Earlier ice-off on northern lakes: a running analysis of lake ice records

    2.1.0privateNew private version from CI · Review and publish

    2 min ago

    CIvalency submit · valency checkscontinuous.yml · L86–96passed

  5. 05

    A review checks it

    Valency reviews the new version against the last one: what changed, and whether the claims still hold.

    Every version is checked and reviewed.

    In this example

    The review reads 2.1.0 against 2.0.0. Three small points, none about the claims: the headline claim holds, and adding data is a minor bump.

    CI · valency review
    valency review --wait
    Review ready for 2.1.0 (against 2.0.0)
    3 points · none about the claims
    claim 1 earlier ice-off once the method is controlled for · holds
    suggested bump minor (adds data, no new result)
    read it: https://valency.io/publish/lake-ice/2.1.0#review

    Valency review ready

    2.1.0 against 2.0.0 · 3 points · none about the claims

    The ice-off trend is still about four days a decade, so the claim holds. Figures 3 and 4 were regenerated with the new lake.

    Claim 1Holds

    Northern lakes lose their ice earlier in spring, once you control for how each lake is observed.

    1. 1Table 2: state the observation methods (shore, satellite, buoy).
    2. 2Say how lake 1413’s ice-off day was determined.
    3. 3The text, Figure 3 and Table 2 now agree on N = 1,413.

    Suggested bump: minor (adds data, no new result)

    All checks passed

    CIvalency reviewpassed

  6. 06

    A new version is published

    Each version can have its own DOI and stays citable.

    In this example

    Every gate passes, the minor bump matching the review, so 2.1.0 goes public and asks for its own DOI.

    CI · valency publish
    valency publish --if-gates-pass
    Details complete
    Checks passed
    Review read or acknowledged
    Attestation on file
    Version bump agreed · minor, as the review suggests
    Published 2.1.0 · DOI requested: doi:10.5555/valency.lake-ice.v2.1.0

    Auto-publish, when every gate passes

    Opt in with publish: auto or --if-gates-pass. Until then, and whenever a gate fails, the version stays private and you publish it on the web, as you can today.

    Versions of this work

    1. v2.1.0public2 Oct 2026· minor

      Adds one lake record (N = 1,413). Figures 3 and 4 and Table 2 updated; no claim changes.

      doi:10.5555/valency.lake-ice.v2.1.0

    2. v2public9 Jun 2026

      Revised after peer review at a journal.

      doi:10.5555/valency.lake-ice.v2.0.0

    3. v1public4 Mar 2026

      First public version.

      doi:10.5555/valency.lake-ice.v1.0.0

    Cite this version

    doi:10.5555/valency.lake-ice.v2.1.0

    A DOI for each version

    • Semver for works
    • patch · a typo
    • minor · adds a citation, or data with no new result
    • major · adds or changes a result

    CIvalency publish --if-gates-passpassed

  7. 07

    Readers see it update, and agents pick it up

    The work’s page and everyone following it move to the new version, with what changed. Through the Valency MCP, an agent asking about this question reads the latest version, not the snapshot it remembers.

    In this example

    The work's page says what changed in 2.1.0, and an agent asking for the work's versions sees 2.1.0 beside 1.0.0 and 2.0.0.

    The work’s page

    Earlier ice-off on northern lakes: a running analysis of lake ice records

    v2.1.0public updated 2 Oct 2026

    What changed in v2.1.0

    Adds one lake record (N = 1,413). Figures 3 and 4 and Table 2 updated; no claim changes.

    Everyone following the work is told

    your agent · Valency MCP
    ● valency · get_paper_versions(paper_id: "W_xxxxxxxx")
    ⎿ 1.0.0 on Valency 4 Mar 2026 First public version.
    2.0.0 on Valency 9 Jun 2026 Revised after peer review at a journal.
    2.1.0 on Valency 2 Oct 2026 adds one lake record
    Connect your agent

    Valencynotify followerspassed

When a result changes

Most new data only firms up what you found, and those versions publish themselves once every gate passes. When the review sees a claim move, the version stays private until you’ve read the review and chosen a major version.

  1. Details complete
  2. Checks passed
  3. Review read
  4. Attestation on file
  5. Version bump agreedreview suggests major · you decide
CI · six weeks later
# 13 Nov 2026 · 40 records from a new monitoring network
make fetch-data analysis paper
trend for shallow lakes: −1.2 days per decade, p = 0.03 (was 0.62)
agent: claim 2 moved · listed in CLAIMS.md, wording kept
valency submit paper/ --yes --version-note "Add 40 records from a new monitoring network"
New private version 2.2.0 · checks 5/5
review: a result changed · suggests major
gate failed: Version bump agreed · the review suggests major
→ kept private. Your works: read the review, then publish.
# 14 Nov · you, in the Preview
You read the review, chose major: published 3.0.0

What you see

Valency / checks Held private — the review asks you to read it

Your works: Held private. The review says a result changed. Read it, and publish as v3.

You read the review, chose major, and published 3.0.0.

Pick where to look, or just type