Commands and scenarios¶
Use spawn to start a native task, status to read the outcome, and apply if you want to keep its files. An ordinary Host task writes straight to the workspace. To review edits before they reach it, start the task with --safe or an explicit --stage.
From try to file acceptance¶
pvisor spawn --safe --overlaynet-deny-all --stage ../stage-reference-001 -- /bin/sh -c 'printf proposal > report.txt'
pvisor status --review --json ../stage-reference-001 > ../review-reference-001.json
pvisor inspect ../stage-reference-001 -- /bin/cat report.txt
pvisor apply ../stage-reference-001 --path report.txt
When spawn exits, report.txt exists only in staging. inspect reads that copy; the file reaches the original project when apply succeeds. Use drop for remaining edits you do not want. Check the task and apply exit codes separately: a successful task can produce an unwanted file, and a writeback can encounter a conflict. See Exit codes and errors and the CLI arguments and storage defaults.
Read records and use protocols¶
status --json provides a status overview; status --review --json provides the complete Run Bundle. Automation first checks format versions and required fields, then execution state, installed controls, and net file changes. Missing observations must not become zero or acceptance. See Run Bundle and Machine-readable output for fields and queries.
Shared image cache handles, authentication, and failures follow the cache protocol, separately from Session staging and apply. Saving and restoring full machine state also requires the corresponding capability. A workspace checkpoint saves file proposals without continuing old process memory; check prerequisites against the CLI execution-checkpoint contract before use.
Check executable behavior¶
The scenario appendix retains semantic claims and violation examples and links to the single Scrut check source in tests/spec/<feature>/. The repository entry mise run cases executes these checks. Execution success is not human approval; PASS does not authorize changes to human review ledgers.
Scenario check preparation¶
The scenario appendix and VM checks share external product fixtures. Each check has independent CASE_ROOT and WS and an explicit SUBJECT_BIN. Preparation and assertions still require human review; maintainers have not yet decided the replacement digest-review policy.
Preparation and assertion source: fixtures/doc.bash.