Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Contract coverage

The maintenance audit found substantial existing coverage. The following suites are the starting point for changes to each contract; add focused cases there when changing behavior. To see which code they run, use just coverage.

ContractExisting coverage
Manifest formats, defaults, rejection, canonical hashingpiqueld-core/tests/manifests.rs and manifest fixtures
Manifest variables: reference syntax, declarations, rendering per environmentpiqueld-core/src/manifest/template_tests/
Read-only service files and repository file capturepiqueld-core/tests/service_files.rs
Git source validation and immutable resolutionpiqueld-core/tests/git_sources.rs
Ownership, drift fields, cleanup gating, volume retentionpiqueld-core/tests/resource_planning.rs
Links: validation, resolution, network projection, revocationpiqueld-core/src/links.rs unit tests, tests/manifests.rs, tests/resource_planning.rs, piqueld/tests/fake_docker/environments.rs, and docker_integration.rs
Operation transitions and failure classificationCore lifecycle tests and piqueld/tests/fake_docker/, by area: controller.rs, rollouts.rs, jobs.rs and others
HTTP lifecycle, preconditions, force, receipts, paginationpiqueld/tests/api_contract/, mainly acceptance.rs, applications.rs and transport.rs
Persistence, restart recovery, transaction rollbackpiqueld/tests/persistence.rs and sqlx_stack.rs
Transport errors, cancellation, redirects, decodingpiqueld-client/tests/transports.rs, generated_contract.rs, and browser transport tests
Data and runtime directory privacy, daemon exclusivitypiqueld/tests/data_dir.rs, runtime_dir.rs, and daemon_exclusivity.rs
CLI commands, output, exit codes, connection profilespiquelctl/tests/cli.rs and profiles.rs
Docker policy and complete observationsDocker adapter unit tests
Real Swarm health, drift repair, deletion, buildspiqueld/tests/docker_integration.rs through just docker-test
The fake Docker engine behaving like the real onepiqueld/tests/support/docker_contract.rs, run by fake_docker/main.rs and docker_integration.rs
Dashboard and passkey flows in a real browsertests/playwright through just test-playwright

The additional audit cases check complete cleanup plans against reordered Engine listings, including foreign resources, and compare real route response statuses and media types against OpenAPI. Existing typed-client lifecycle tests cover successful response decoding. The OpenAPI snapshot test also checks references. These are focused conformance checks, not a general JSON Schema validator.