Skip to content

Verify and recover a Vivary workspace

Use this guide after setup, adoption, or an approved record write.

You can identify health errors, privacy failures, and pending recovery work. You can select a bounded recovery action without changing unrelated files.

Field Value
Goal Prove workspace health and recover known transactions.
Required input Intended workspace root.
Default authority Run read-only validation.
Optional authority Apply an approved repair or exact recovery action.
Prohibited action Do not guess fixes, hashes, or missing evidence.
Proof Doctor and Tropo checks pass after the selected action.

Run Doctor first.

Terminal window
uvx create-vivary doctor C:/path/to/project

Plain Doctor is read-only. Doctor exits with code 0 when the error list is empty. Doctor exits with code 1 when an error exists. Warnings do not change the exit code.

Use JSON when an agent must inspect fields.

Terminal window
uvx create-vivary doctor C:/path/to/project --json

Review the contract, privacy, capability, and recovery sections.

Run the strict graph check.

Terminal window
uvx --from vivary-tropo tropo check --root C:/path/to/project

Strict mode is the default. Warnings fail the strict check.

Use lenient mode only for an approved diagnostic reason.

Terminal window
uvx --from vivary-tropo tropo check --root C:/path/to/project --lenient

Do not report a lenient result as strict proof.

Identify the file, finding code, and required owner. Do not repair a symptom before you understand the finding.

Common finding classes:

Finding Meaning Action
Missing contract file The thin workspace is incomplete. Restore the owned contract or recover adoption.
Privacy failure Ignore policy can expose protected data. Stop all public retrieval.
Broken reference A typed relation names a missing target. Restore or correct the target manually.
Invalid type field Content violates the workspace policy. Correct the source with owner approval.
Pending transaction A prior adoption did not finish. Use the reported recovery hash.

The command reference owns exact finding codes.

Use recovery only when Doctor or adoption reports the transaction. Copy the exact reported hash.

Terminal window
uvx create-vivary adopt C:/path/to/project \
--recover sha256:<reported-plan-hash> \
--json

This command writes nothing. It returns recovery_plan_hash and the bounded recovery actions. Review that exact plan.

Apply the separately approved recovery hash.

Terminal window
uvx create-vivary adopt C:/path/to/project \
--recover sha256:<reported-plan-hash> \
--yes \
--plan sha256:<approved-recovery-plan-hash> \
--json

Recovery restores only the authenticated transaction-bound backups. Run Doctor after recovery.

create-vivary record runs Doctor after its write. The command restores previous bytes when Doctor fails. The command removes a new record tree when verification fails.

The record command has no manual recovery flag. Do not invent one.

If the process stops unexpectedly, inspect Doctor and the transaction evidence. Stop when the required action is not explicit.

Use repair mode only for a recognized legacy full workspace. Request the report.

Terminal window
uvx create-vivary doctor C:/path/to/project --repair --json

The report writes nothing. Review each proposed action.

Recognized legacy-full workspaces remain report-only even with --yes. No reported action is applied. Use a reviewed thin adoption plan for an approved legacy change.

Thin adoption uses adopt --recover. Do not use legacy diagnostics as thin recovery.

Plain Doctor does not write runtime state. doctor --trend writes a local trend snapshot.

Terminal window
uvx create-vivary doctor C:/path/to/project --trend --json

Get approval before this write. Keep the runtime snapshot outside version control.

The thin workspace policy comes from .vivary/workspace.toml. A root tropo.toml can only reduce admitted scope.

Doctor and public retrieval refuse invalid overlays. Doctor and public retrieval refuse policy loosening.

Do not remove privacy exclusions to make a query succeed.

Run Doctor again. Then run Tropo validation.

Terminal window
uvx create-vivary doctor C:/path/to/project
uvx --from vivary-tropo tropo check --root C:/path/to/project

Record the exact commands and results. Do not call activity proof. Use test output, artifact hashes, or accepted findings as proof.

Doctor reads recognized 0.3.1 full workspaces. Doctor does not migrate or normalize them.

Pin 0.3.1 when the historical full-layout creator is required.

Terminal window
uvx --from create-vivary==0.3.1 create-vivary init my-workspace
npx @vivary/create@0.3.1 my-workspace

Use the historical proof only for that published layout.