Skip to content
Ocean6Documentation
DocsBuild
Reference 0.2Updated 19 Sep 2026

Verification and troubleshooting

On this page

Reproduce an integrity failure#

Shell
python3 reference_runtime.py run task-demo.json result-demo.json receipt-demo.json
python3 tamper_result.py
python3 reference_runtime.py verify task-demo.json result-tampered.json receipt-demo.json

The documentation package includes tamper_result.py. It copies result-demo.json, increases the first match score and writes result-tampered.json. The final command is expected to exit with code 1 and REPLAY_MISMATCH. The original result remains unchanged.

Swipe or scroll to view all columns →

Error or symptomCause and corrective action
INVALID_FIELDSSupply exactly the five task fields; remove unknown fields.
INVALID_DOCUMENTCheck scalar Unicode and the UTF-8 byte length.
INVALID_TERM or EMPTY_TERMCheck raw length, line breaks and content after ASCII trimming.
INVALID_TOP_KUse an integer-valued number from 1 through 10.
REPLAY_MISMATCHThe parsed output differs from deterministic replay. Preserve the mismatch for investigation.
TASK_DIGEST_MISMATCHTask bytes changed. Restore the original bytes or create a new run.
RESULT_DIGEST_MISMATCHResult bytes changed even if its parsed meaning did not.
INVALID_RECEIPT_SCOPEThe receipt has an unsupported scope or non-null signature or settlement.
INVALID_TIME_ORDERThe declared finish time precedes the declared start time.

Cross language verification#

Shell
python3 test_cross_runtime.py

This optional command requires Node.js on PATH and compares 80 generated inputs with fixed seed 6. The recorded release environment used Node.js 24.19.0. It checks agreement between implementations; it is not a load test or a proof that the specification is free of defects.

verify and compare limit result files to 150,000 bytes. verify limits receipts to 10,000 bytes. The CLI also requires distinct resolved file paths. Operating-system errors can include environment-specific text and are not a stable network error taxonomy.

Documentation 1.1 · Software reference 0.2
Download PDFDeveloper packageWord editionView Markdown

Search across all 30 chapters.

Use Tab to navigate results and Enter to open a chapter.
Documentation v1.1 · EN
Open task lab ↗Ocean6 website ↗