Verification
Run verification from the repository root unless a command states otherwise.
Go runtime checks
Section titled “Go runtime checks”# Format, lint, vet, and testmake check
# Run with race detectionmake test-race
# Enforce coverage floor (40%)make check-coverage
# Enforce strict coverage (85%)make check-coverage-strict
# Short tests for quick feedbackmake test-shortIntegration tests
Section titled “Integration tests”# Full integration tests (may need API keys)make test-integration
# CLI command integration tests (needs skills-build first)make skills-buildmake test-integration-cmdDocs site
Section titled “Docs site”# Build the Starlight sitebun run --cwd packages/docs-site build
# Run Astro checksbun run --cwd packages/docs-site checkRepository docs
Section titled “Repository docs”# Check markdown links in repo docsmake check-doc-links
# Check for whitespace errorsgit diff --checkSupply-chain gate
Section titled “Supply-chain gate”For dependency changes, verify that no new advisories are introduced:
# Install with auditbun install --ignore-scriptsbun auditWhen adding new packages, verify they are clean before merging:
# Audit at moderate levelbun auditA docs-site change should not leave any workspace:@foxctl/docs-site audit entry behind.
Protocol conformance
Section titled “Protocol conformance”# Validate envelope against schema and invariantsfoxctl proto validate --input envelope.json
# Validate command output conformancefoxctl run fs/ls --path . | foxctl proto validate
# Strict validation modefoxctl proto validate --input envelope.json --strictStorage and CAS integrity
Section titled “Storage and CAS integrity”# Verify CAS artifacts are accessible and validfoxctl cas gc --older-than=0h --dry-run
# Create and verify backupfoxctl backup create --name pre-deployfoxctl backup listPreflight checklist
Section titled “Preflight checklist”Before finalizing any change, confirm:
- Mutating operations are protected by feature flags, idempotency, or equivalent rollback-safe controls.
- Protocol/envelope invariants were not broken by changes —
foxctl proto validatepasses. - WASI/network and path policy constraints still hold for modified skills — manifests still declare
network: "none". - Doc links are valid when markdown changed —
make check-doc-linkspasses. - Summaries and references point to canonical docs under
docs/architecture/*anddocs/general/*.
Golden test verification
Section titled “Golden test verification”Golden fixtures in testdata/*.json and test/golden/ must remain reproducible:
- Sort keys and arrays in output before comparison
- Inject timestamps via clock interface (no
time.Now()in core) - Use stable IDs or inject UUID generator
- Run
make checkto verify no golden test drift