Files, storage and batch
1,051-row CSV → paged subprocess → summary file
End-to-end native file processing with saved, revision-pinned subprocesses. No AI calls or external services required in gallery simulation. Local qualification additionally exercises approved real temporary files.
Last verified 2026-10-31 at f4ce7d0 — simulation fixtures
Studio activation is a one-time payment of USD 20.
Flow
Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.
Scroll sideways to see the whole flow.
List the 10 activities and 10 transitions
Activities
- Start
start - Open approved CSV into a private spool
stream.open_file - Read next 50 records
stream.read_records - Fp Aggregate Page
call_process - Advance cursor and rolling totals
assign - Another page?
choice - Render a small summary, not all source rows
csv.render - Prepare summary stream
stream.from_binary - Atomically create summary file
stream.to_file - Return verified result
end
Transitions
- Start → Open approved CSV into a private spool (on success)
- Open approved CSV into a private spool → Read next 50 records (on success)
- Read next 50 records → Fp Aggregate Page (on success)
- Fp Aggregate Page → Advance cursor and rolling totals (on success)
- Advance cursor and rolling totals → Another page? (on success)
- Render a small summary, not all source rows → Prepare summary stream (on success)
- Prepare summary stream → Atomically create summary file (on success)
- Atomically create summary file → Return verified result (on success)
- Another page? → Read next 50 records (condition)
- Another page? → Render a small summary, not all source rows (otherwise)
Scroll sideways to see the whole flow.
List the 3 activities and 2 transitions
Activities
- Start
start - Fold decimal amounts within the current page
data.mapper - Return verified result
end
Transitions
- Start → Fold decimal amounts within the current page (on success)
- Fold decimal amounts within the current page → Return verified result (on success)
Walkthrough
- Open private streamThe stream owns a quota-limited private spool and a SHA-256 hash. It is not a public URL.
- Process one pageAt most 50 rows enter each aggregate subprocess. No full-file JSON array is built.
- Advance and publishUpdate the session-owned cursor, repeat until done, then publish a small summary create-only.
What you will practise
- Use native stream cursors to process beyond the small inline CSV activity limit.
- Pin once per run and call once per page instead of once per record.
- Keep counters and totals only; release all private spool files at run end.
- Quotas, maximum record size, process steps and deadlines still apply.
Sample cases
2 cases with 8 assertions, run with python -m server.integration examples --all in simulation.
1,051 records in 22 pages with an exact decimal total
Passed1,051 records in 22 pages with an exact decimal total — deterministic native engine; external file operations use fixtures in the gallery.
Expected result 1,051 records in 22 pages with an exact decimal total. Each expected outcome is asserted.
5/5 assertions
- status
- /records
- /pages
- /total
- step_count
This sample run only; not a production certification.
An empty CSV body after the header completes safely
PassedAn empty CSV body after the header completes safely — deterministic native engine; external file operations use fixtures in the gallery.
Expected result An empty CSV body after the header completes safely. Each expected outcome is asserted.
3/3 assertions
- status
- /records
- /total
This sample run only; not a production certification.
Prerequisites
- Runtime
- Cohuno runtime 1.27.0, the version recorded when these cases last passed.
- Starter
- Manual start; no listener.
- Optional dependencies
- None beyond the base runtime.
- Simulation fixtures
pipeline_filesfile · stream.open_file, stream.to_file
Verification details
Provenance
What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.
Verified content
- Pack SHA-256
f866f817b073b8fa90ec82a7fbd3e763cccc608a4dfcd8d51598f1ffc83485e9- Closure SHA-256
429f85299300179c34e113f1af8c3da8bb5823d64c49b869c0816b4aa00cea4a- Runtime
1.27.0- Results
- 2/2 cases, 8/8 assertions, mode simulate, external calls: none.
- Files in the closure
server/integration/example_packs/stream_csv_subprocess_lab.jsonserver/integration/templates/fp_aggregate_page.jsonserver/integration/templates/fp_stream_csv.json
Verification event
- Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34- Verified at (UTC)
2026-10-31T21:19:21Z
How the Cohuno team reproduces this check
PYTHONPATH=. python -m server.integration examples --example stream_csv_subprocess_lab PYTHONPATH=. python scripts/export_public_gallery.py --check