Install And Upgrade
Use this playbook when you want a consumer repository to run wap-flow from an installed binary instead of a vendored Rust workspace.
Installed-binary repo-pack
Section titled “Installed-binary repo-pack”This is the default consumer shape and the shape expected for live acceptance sandboxes such as code4focus/test-salp.
- Install the CLI from the source repository:
cargo install --path flow/wap-flow --force - Bootstrap the repo pack into the consumer repository:
wap-flow repo-pack bootstrap --source <source-root> --target <consumer-repo> --json - Inspect drift without writing when needed:
wap-flow repo-pack diff --source <source-root> --target <consumer-repo> --json
repo-pack bootstrap copies the manifest-controlled files, installs hooks, pins the current binary path, and runs strict doctor.
Installed-binary consumers do not need to vendor flow/playbooks/**, flow/live-sandbox*.yml, or top-level tools/**. For live sandbox validation, the current source repository that supplied the installed binary remains authoritative, and the canonical sandbox repo should keep its default branch free of tracked flow/**.
The repo pack includes flow/support-policy.yml. doctor --json --strict validates that support policy and reports local provenance for repo shape, manifest path count, current repo revision, hook path, and pinned wap-flow binary state.
Vendored-source shape
Section titled “Vendored-source shape”Use vendored source only when the consumer repository intentionally needs the Rust workspace under flow/Cargo.toml and flow/wap-flow/**.
- Keep the same tracked installed-binary repo pack listed in
flow/repo-pack-manifest.txt. - Add
flow/Cargo.tomlandflow/wap-flow/**. - Run the same operator check:
wap-flow install-hookswap-flow doctor --json --strict
Do not treat accidental or stale flow/Cargo.toml and flow/wap-flow/** content in a live sandbox clone as proof that the sandbox is intentionally vendored-source. For live acceptance, the sandbox default branch should be cleaned back to infra-only state before rerunning the proof.
Upgrades
Section titled “Upgrades”- Reinstall the CLI from the source repository:
cargo install --path flow/wap-flow --force - Upgrade the consumer repository from the source repository:
wap-flow repo-pack upgrade --source <source-root> --target <consumer-repo> --json - In the source repository that publishes the pack, re-run the release procedure in
flow/playbooks/release-readiness.mdbefore calling the new pack ready.
For live sandbox work, always upgrade from the source repository first and reinstall the binary from there. Do not use a sandbox-local vendored copy of flow/wap-flow/** as the upgrade authority.