Build and test
Choose verification for the changed surface and the concrete invariant at risk. Work directly on main, preserve owner work, and exercise the real path when practical. Run a full matrix only when a named security/protocol boundary or authoritative release requirement warrants it.
Available verification toolbox
Section titled “Available verification toolbox”cargo fmt --all -- --checkcargo clippy --locked --workspace --all-targets --all-features -- -D warningscargo test --locked --workspace --all-targets --all-features
swift build --package-path apple-identityswift test --package-path apple-identityswift test --package-path fascia/appleswift test --package-path sdk/apple/TohsenoCompanionKitswift test --package-path companion/apple/TohsenoCompanionswift test --package-path macos/Tohseno
forge build --root contractsforge test --root contracts -vvv
node --test studio/tests/static_assets.test.mjs(cd website && bun run typecheck && bun test)
./scripts/test-ontology-lifecycle.sh./scripts/test-local-companion-e2e.sh./scripts/test-macos-service-lifecycle.sh./scripts/test-network-e2e.shThe lifecycle scripts use isolated service, Shot, relay and LaunchAgent fixtures. They must not touch the developer’s actual LaunchAgent or remove unrelated Keychain entries.
npm CLI
Section titled “npm CLI”cd packages/clinpm testnpm run test:packUse focused tests when adequate; an isolated packed installation checks the shipped launcher path.
Protocol-only
Section titled “Protocol-only”cargo fmt --all --checkcargo clippy -p tohseno-protocol --all-targets -- -D warningscargo test -p tohseno-protocol --all-targetscargo run -q -p tohseno-protocol --example generate_vectorsGenerator output must exactly match the committed vector. Do not overwrite a vector merely to make drift pass.
Living-project loop
Section titled “Living-project loop”swift test --package-path macos/Tohsenoswift test --package-path sdk/apple/TohsenoCompanionKitswift test --package-path companion/apple/TohsenoCompanion./scripts/test-local-companion-e2e.shThe E2E uses a real isolated relay/service and deterministic fixture harness; it proves durable encrypted delivery and exact-base behavior without paid model inference or real service state.
Documentation
Section titled “Documentation”cd website/docs-pagesbun installbun run checkbun run buildbun run verifyStarlight validates content/frontmatter and produces static output in dist/, including Pagefind search. The build syncs the shared assets and current AI-readable docs first.