BoardReadyOps Contract Versioning & Deprecation Policy
Status: Authoritative Policy Date: September 2026 Scope: CLI, GitHub Action, Report Outputs, Schemas, Cloud API, Plugin IPC
1. Scope & Purpose
BoardReadyOps operates across multiple integration boundaries: local developer workstations, GitHub Actions CI pipelines, hosted cloud control planes, and external manufacturing pipelines.
This document defines the strict versioning, compatibility, and deprecation policies governing all public contracts:
- Core Entities: Finding, RunResult, HardwareImpactV1, ReadinessScore.
- Report Formats: JSON findings, SARIF 2.1.0, Markdown summary/detail, HTML dashboard, JUnit XML, CycloneDX HBOM.
- Schemas: schemas/*.schema.json.
- Cloud Protocol & Wire Payloads: GitHub Action OIDC ingestion, runner protocol, REST API endpoints.
- Plugin IPC & Extension API: @boardreadyops/plugin-sdk.
Signed GitHub Actions tool-version observations (v1 additive)
The OIDC-authenticated run result may include optional toolVersions.kicad and
toolVersions.boardReadyOps (bounded strings). The target runner captures the
installed kicad-cli version and obtains BoardReadyOps' version from its valid
generated JSON report; a version is omitted when unobserved. This field is
authenticated as part of the exact run/attempt/source callback and persisted only
after the guarded result transition accepts it, including in the terminal result
digest. It does not attest the installed tool binaries independently or prove
manufacturing source-bound signatures.
Older v1 callbacks remain valid with no tool versions, and their digest input is unchanged. The dashboard must show missing values as unreported rather than infer versions from the workflow template, release tag or other runs.
Deployed v1 callback compatibility during rolling upgrades
The canonical target-repository workflow sends observed toolVersions by default.
A prior production v1 receiver used a strict result schema before that optional
field existed. If that receiver responds with HTTP 400 and the exact
{"error":"invalid runner result"} shape, the workflow may retry once
without toolVersions using the same GitHub OIDC token, audience, run ID,
attempt ID, source SHA, trust mode, safe-mode reasons and readiness decision.
Only that optional field can be removed. Other 400 responses, authentication
failures, changed/malformed error shapes and unknown fields must not trigger
compatibility stripping or weaken validation; all non-accepted results still
fail the workflow. The v1 dashboard then correctly reports missing tool
versions as unreported.
This is a rollout bridge, not a permanent substitute for a synchronized Cloud
deployment. Once the strict Cloud receiver understands toolVersions, the
first signed request is accepted and the version observations are retained.
Before publishing new additive top-level result fields, verify deployed Cloud
receiver compatibility or implement a similarly narrowly scoped transition;
never relax authority-bearing result schema .strict() globally.
2. Semantic Versioning & Schema Lifecycle
BoardReadyOps adheres to Semantic Versioning (SemVer 2.0.0) across all binary and library releases.
Schema Versioning Model
Every machine-readable payload emitted by BoardReadyOps carries an explicit schemaVersion or version integer field (starting at 1).
┌─────────────────────────┐
│ schemaVersion: N │
└────────────┬────────────┘
│
┌────────────────────────┴────────────────────────┐
│ Non-breaking change (Additive) │ Breaking change (Major bump)
▼ ▼
┌───────────────────────────────┐ ┌───────────────────────────────┐
│ • Add optional property │ │ • Remove or rename property │
│ • Add new enum value │ │ • Change property type │
│ • Loosen validation constraint│ │ • Stricter validation rules │
│ ──> Keeps schemaVersion: N │ │ ──> Bumps schemaVersion: N+1 │
└───────────────────────────────┘ └───────────────────────────────┘
Automated Enforcement
tests/snapshot/schemas.snapshot.test.ts snapshots the required-field set, additionalProperties
strictness, enum/const values, and property structure of every schemas/*.schema.json (resolving
$ref/$defs so a shared definition's shape is checked everywhere it is used). A shape change of
any kind fails the snapshot and must be reviewed deliberately: update the snapshot (vitest -u)
only after confirming the change is additive per the table below, or bump schemaVersion first if
it is breaking.
Additive vs Breaking Changes
| Change Type | Classification | Policy |
|---|---|---|
| Add optional field | Non-breaking | Allowed in minor/patch releases. Consumers must ignore unknown fields. |
| Add new rule ID or tag | Non-breaking | Allowed in minor/patch releases. Consumers must treat new rule IDs gracefully. |
| Add new report format | Non-breaking | Allowed in minor releases. |
| Remove/rename field | Breaking | Prohibited in minor releases. Requires major version bump + 180-day deprecation notice. |
| Change field type / semantics | Breaking | Prohibited in minor releases. Requires major version bump. |
| Make optional field required | Breaking | Prohibited in minor releases. Requires major version bump. |
3. Backwards Compatibility Guarantees
- N-1 Schema Read Guarantee: The BoardReadyOps CLI and Cloud control plane guarantee the ability to parse and process
RunResultandFindingstructures generated by the previous major version (or legacy schemaVersion) without crashing or data corruption. - Deterministic Fingerprints Across Releases: Finding fingerprints (
Finding.fingerprint) are calculated from immutable semantic attributes (ruleId,resource.path, component reference, net name) using SHA-256. Code formatting or adjacent line modifications must never alter finding fingerprints. - Report Contract Stability:
boardreadyops.findings.jsonstrictly adheres toschemas/findings.schema.json.boardreadyops.sarif.jsonconforms to OASIS SARIF v2.1.0 standard.build/hbom.jsonconforms to CycloneDX v1.6 Hardware SBOM specification.
4. Deprecation Lifecycle & Transition Timelines
When a field, CLI option, or contract endpoint is scheduled for retirement:
- Phase 1: Mark Deprecated (Minor release
X.Y.0) - Tag with
@deprecatedin TypeScript types. - Emit a structured warning in
boardreadyops doctoror stderr when the deprecated surface is used. - Update documentation with the recommended migration path.
- Phase 2: Deprecation Window (Minimum 6 months / 180 days)
- The capability remains fully operational.
- CI and runtime continue to accept the legacy contract without breaking.
- Phase 3: Removal (Major release
X+1.0.0) - The deprecated capability is removed or rejected with an actionable migration error message.
5. Architectural Isolation Boundary
- Local/CI Standalone Guarantee: The core CLI (
boardreadyops), Action (action.yml), rules engine (src/rules/), and report generators (src/report/) must never import or depend on@boardreadyops/db, PostgreSQL drivers, orapps/webruntime modules. - Verification: Enforced continuously in CI via
task verify:structure,scripts/verify-web-standalone.mjs, andscripts/verify-control-plane-worker-boundary.mjs.