Files, storage and batch
CSV orders → nested subprocesses → CSV and Excel
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 13 activities and 12 transitions
Activities
- Start
start - Read inbound orders CSV
file.read - Parse BOM / quoted / multiline CSV
csv.parse - Partition accepted and rejected records
data.mapper - Normalize accepted records with pinned nested calls
foreach - Fp Build Order Report
call_process - Render spreadsheet-safe accepted CSV
csv.render - Write three-sheet XLSX using row streaming
xlsx.write_workbook - Read generated Excel back before publishing
xlsx.read_workbook - Hash immutable workbook bytes
binary.sha256 - Create accepted CSV (no overwrite)
file.write - Create Excel report (no overwrite)
file.write - Return verified result
end
Transitions
- Start → Read inbound orders CSV (on success)
- Read inbound orders CSV → Parse BOM / quoted / multiline CSV (on success)
- Parse BOM / quoted / multiline CSV → Partition accepted and rejected records (on success)
- Partition accepted and rejected records → Normalize accepted records with pinned nested calls (on success)
- Normalize accepted records with pinned nested calls → Fp Build Order Report (on success)
- Fp Build Order Report → Render spreadsheet-safe accepted CSV (on success)
- Render spreadsheet-safe accepted CSV → Write three-sheet XLSX using row streaming (on success)
- Write three-sheet XLSX using row streaming → Read generated Excel back before publishing (on success)
- Read generated Excel back before publishing → Hash immutable workbook bytes (on success)
- Hash immutable workbook bytes → Create accepted CSV (no overwrite) (on success)
- Create accepted CSV (no overwrite) → Create Excel report (no overwrite) (on success)
- Create Excel report (no overwrite) → Return verified result (on success)
Scroll sideways to see the whole flow.
List the 4 activities and 3 transitions
Activities
- Start
start - Fp Decimal Amount
call_process - Normalize fields, preserve literal notes
data.mapper - Return verified result
end
Transitions
- Start → Fp Decimal Amount (on success)
- Fp Decimal Amount → Normalize fields, preserve literal notes (on success)
- Normalize fields, preserve literal notes → Return verified result (on success)
Scroll sideways to see the whole flow.
List the 3 activities and 2 transitions
Activities
- Start
start - Quantity × price, decimal-safe
data.mapper - Return verified result
end
Transitions
- Start → Quantity × price, decimal-safe (on success)
- Quantity × price, decimal-safe → Return verified result (on success)
Scroll sideways to see the whole flow.
List the 3 activities and 2 transitions
Activities
- Start
start - Prepare all three sheets before publishing
data.mapper - Return verified result
end
Transitions
- Start → Prepare all three sheets before publishing (on success)
- Prepare all three sheets before publishing → Return verified result (on success)
Walkthrough
- Parse and partitionCSV quoting, BOM handling and business filters run before writing files.
- Nested callsEach accepted order calls a normalization subprocess, which calls the exact-decimal calculation subprocess.
- Prepare reportsBuild Accepted, Rejected and Summary sheets in a reusable subprocess.
- Write and verifyGenerate XLSX with a sequential writer, read it back, then publish CSV and workbook create-only.
What you will practise
- Inspect native collection filters and nested pinned call frames.
- Use decimal strings for money; do not silently coerce floats.
- CSV formula escaping and XLSX literal cells prevent spreadsheet injection.
- Row-streaming XLSX is bounded and excludes random patches / tables.
- File creation is atomic per file, not a multi-file transaction; no automatic overwrite or retry.
Sample cases
4 cases with 14 assertions, run with python -m server.integration examples --all in simulation.
Two accepted orders, two rejected and exact decimal total
PassedTwo accepted orders, two rejected and exact decimal total — deterministic native engine; external file operations use fixtures in the gallery.
Expected result Two accepted orders, two rejected and exact decimal total. Each expected outcome is asserted.
6/6 assertions
- status
- /accepted
- /rejected
- /total
- /excel_rows/2/7
- step_count
This sample run only; not a production certification.
Invalid amount prevents both file writes
Expected failure verifiedInvalid amount prevents both file writes — deterministic native engine; external file operations use fixtures in the gallery.
Expected result Invalid amount prevents both file writes. Each expected outcome is asserted.
3/3 assertions
- status
- error_code
- step_count
This sample run only; not a production certification.
Header-only input produces a valid empty report
PassedHeader-only input produces a valid empty report — deterministic native engine; external file operations use fixtures in the gallery.
Expected result Header-only input produces a valid empty report. Each expected outcome is asserted.
3/3 assertions
- status
- /accepted
- /total
This sample run only; not a production certification.
Duplicate CSV header fails before transformations
Expected failure verifiedDuplicate CSV header fails before transformations — deterministic native engine; external file operations use fixtures in the gallery.
Expected result Duplicate CSV header fails before transformations. Each expected outcome is asserted.
2/2 assertions
- status
- error_code
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
- openpyxl for Excel workbooks needed in every run, simulation included
- Simulation fixtures
pipeline_filesfile · file.read, file.write
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
bd5fbf6b6b2ab839800e305529dbd3766e3e0fb40d9735373bea45f68a83f436- Closure SHA-256
fcefc77dfd34d8614c4eb9bae9f369c5b101bd20eba608c2bee743cfb56c7984- Runtime
1.27.0- Results
- 4/4 cases, 14/14 assertions, mode simulate, external calls: none.
- Files in the closure
server/integration/example_packs/csv_excel_subprocess_lab.jsonserver/integration/templates/fp_build_order_report.jsonserver/integration/templates/fp_csv_to_excel.jsonserver/integration/templates/fp_decimal_amount.jsonserver/integration/templates/fp_normalize_order.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 csv_excel_subprocess_lab PYTHONPATH=. python scripts/export_public_gallery.py --check