Workflows
A workflow is a sequence of attested actions, approvals, and handoffs linked by parent IDs.
A workflow is any sequence of Treeship artifacts chained together by parent IDs. Each step links to the previous one, forming a verifiable chain.
Workflow structure
Continue the chain
treeship wrap --parent $TREESHIP_LAST -- npm testEach step chains to the previous via --parent or the TREESHIP_PARENT env var. TREESHIP_LAST is set automatically after every operation.
Approve a sensitive step
treeship attest approval \
--approver human://rezo \
--description "approve deploy to production"
# Pass the nonce to the agent
treeship wrap --parent $TREESHIP_LAST -- ./deploy.shBundle the chain
treeship bundle create --artifacts art_a1b2,art_c3d4,art_e5f6 --tag deploy-v1.2
treeship bundle export art_bundle_id --out deploy-v1.2.treeshipThe bundle is a portable, self-verifying package of the entire workflow.
Verifying a workflow
treeship verify art_last_stepThe verifier walks the parent chain recursively, checking every signature, every content-addressed ID, and every approval nonce binding.
Bundles verify offline. Share a .treeship file and the recipient can verify the entire workflow without network access, without an account, and without trusting Treeship's infrastructure.
Pushing to the Hub
treeship dock login
treeship dock push art_last_step
# -> https://treeship.dev/verify/art_xxxAnyone can open that URL and verify the chain.