Write a governed Vivary record
Use this guide after verified work earns durable context.
Result
Section titled “Result”Vivary creates or updates exactly one typed record. The transaction uses one complete Task Capsule and one approved plan hash.
Agent contract
Section titled “Agent contract”| Field | Value |
|---|---|
| Goal | Preserve one fact earned by real work. |
| Required input | Healthy thin workspace, complete capsule, and typed Markdown source. |
| Planning authority | Validate and propose one record without writing. |
| Apply authority | Write only the exact human-approved plan. |
| Prohibited action | Do not batch records, create packs, or infer approval. |
| Proof | Doctor passes and Tropo reads the record. |
Install prerequisite
Section titled “Install prerequisite”Use the published launchers from the guide library.
The environment must provide vivary-core, vivary-tropo, and create-vivary 0.4.2.
Do not use the pinned 0.3.1 command for this procedure.
1. Confirm that the work earned a record
Section titled “1. Confirm that the work earned a record”Record verified work, decisions, evidence, gates, or module truth. Do not record guesses, plans without evidence, or starter content.
Select one supported record folder:
moduleschangesdecisionsverificationgates
2. Save the complete capsule
Section titled “2. Save the complete capsule”Use the capsule from Get bounded context. The file must contain the complete governed JSON result.
tropo find "record the verified release change" --root C:/path/to/project --governed --json > C:/path/to/task-capsule.jsonMCP can supply the complete public capsule object. MCP does not supply approval.
3. Prepare one typed source file
Section titled “3. Prepare one typed source file”Create the source outside the destination tree. Use UTF-8 Markdown.
Example:
---project: contextstatus: doneslice: release guide verification---# Release guide verification
The local guide checks passed.The proof is in the release receipt.Save this example as C:/path/to/verified-guide.md.
Change the fields when the workspace type policy requires different values.
4. Preview the record plan
Section titled “4. Preview the record plan”Run record without --yes.
Planning is read-only.
create-vivary record C:/path/to/project changes/verified-guide.md \ --from C:/path/to/verified-guide.md \ --capsule C:/path/to/task-capsule.json \ --jsonInspect these plan fields:
- action
- destination
- previous hash
- proposed hash
- capsule identifier
- capsule fingerprint
- workspace fingerprint
plan_hash
Confirm that the plan contains one destination. Stop if the plan names any other path.
5. Get deliberate human approval
Section titled “5. Get deliberate human approval”Show the complete plan to the workspace owner.
Ask for approval of the exact plan_hash.
Do not accept approval for a different hash. Do not infer approval from silence or prior work. Replan when any bound input changes.
6. Apply the approved plan
Section titled “6. Apply the approved plan”Use the exact approved hash.
create-vivary record C:/path/to/project changes/verified-guide.md \ --from C:/path/to/verified-guide.md \ --capsule C:/path/to/task-capsule.json \ --yes --plan sha256:<approved-plan-hash> \ --jsonAdd a local receipt only when required.
create-vivary record C:/path/to/project changes/verified-guide.md \ --from C:/path/to/verified-guide.md \ --capsule C:/path/to/task-capsule.json \ --yes --plan sha256:<approved-plan-hash> \ --receipt C:/path/to/project/.vivary/runtime/receipts.jsonl --jsonThe optional receipt omits target paths, source paths, and capsule values.
7. Verify the record
Section titled “7. Verify the record”Run Doctor. Query the record.
create-vivary doctor C:/path/to/projecttropo query "Release guide verification" --root C:/path/to/project --jsonThe record path is:
.vivary/records/changes/verified-guide.mdNo unrelated file can appear.
Refusal conditions
Section titled “Refusal conditions”Vivary refuses an incomplete or changed capsule. Vivary refuses a capsule from another workspace. Vivary refuses a changed source or destination. Vivary refuses an unapproved or incorrect plan hash. Vivary refuses nested paths and unsupported record folders. Vivary refuses linked or hard-linked destinations. Vivary refuses content that violates the type policy.
Rollback behavior
Section titled “Rollback behavior”Apply writes the record atomically. Apply runs Doctor after the write. Vivary restores the previous bytes when Doctor fails. Vivary removes a new record tree when verification fails.
The command has no batch mode. The command never creates a starter graph.
Use the record reference for input limits and output envelopes.
