# WIA-data-analytics PHASE 3 — PROTOCOL Specification

**Standard:** WIA-data-analytics
**Phase:** 3 — PROTOCOL
**Version:** 1.0
**Status:** Stable

This document defines the canonical PROTOCOL layer for WIA-data-analytics (Data Analytics).

References (CITATION-POLICY ALLOW only):
- OpenAPI Specification 3.1, JSON Schema 2020-12
- IETF RFC 9700 (OAuth 2.1), RFC 9457 (Problem Details), RFC 8615 (well-known URIs), RFC 8446 (TLS 1.3)
- ISO/IEC 27001:2022, ISO/IEC 17065:2012
- CycloneDX 1.5 / SPDX 2.3
- Sigstore (DSSE envelope, Rekor transparency log)
- in-toto Attestation Framework 1.0

---

## §1 Scope

This PHASE document is one of four that together define the WIA-data-analytics
standard. It addresses the protocol layer of the standard.

## §2 Manifest

Implementations publish a signed manifest containing standardSlug
(constant value: "data-analytics"), version (Semantic Versioning 2.0.0),
implementation (name + build digest + SBOM URL), profile (named +
version), per-requirement support status, and a Sigstore DSSE
signature. The manifest is anchored to a Sigstore Rekor transparency
log entry per the cadence declared in the deployment policy.

## §3 Conformance Tiers

| Tier      | Scope                                                |
|-----------|------------------------------------------------------|
| Surface   | data formats accepted; self-attested                 |
| Verified  | annual third-party audit                             |
| Anchored  | continuous evidence package per Annex G              |

Implementations declare their tier in the OpenAPI document via the
`x-wia-conformance-tier` extension field.

## §4 Discovery

Operation discovery uses RFC 8615 well-known URIs at
`/.well-known/wia/data-analytics`. The discovery document declares the
supported operation groups, the OpenAPI document URL, and the
manifest signing key. Discovery responses are signed using the same
Sigstore key as the manifest.

## §5 Time and Identity

Implementations MUST use synchronized clocks (NTPv4 stratum-2 or
better) so that the protocol's order-of-events guarantees hold across
the network. Time-bound tokens (RFC 9700) are verified against the
TLS session's exporter value (RFC 8446 §7.5) for token-binding.

## §6 Versioning and Deprecation

Versioning follows Semantic Versioning 2.0.0. Major version bumps
require at least a 90-day overlap with the prior major version on
every WIA-published reference implementation. Patch releases are
editorial only. Deprecation enters a 12-month sunset window during
which the registry marks the version as Deprecated with a migration
note pointing to the replacement requirement(s) and an explanation
of why the change was made.

## §7 Privacy and Security

Implementations MUST encrypt data in transit (TLS 1.3, RFC 8446) and
at rest (AES-256-GCM or stronger), apply role-based access controls,
and maintain tamper-evident audit logs (Merkle tree per RFC 9162-style
transparency log pattern). Personal data exchanged via this protocol
is subject to the relevant privacy regulation (GDPR, CCPA, K-PIPA,
LGPD, PIPL, etc.); the deployment policy MUST declare the regulatory
regime.

## §8 Open Governance

Issues, errata, and proposals are tracked at
github.com/WIA-Official/wia-standards/issues with the `data-analytics` label.
The WIA Standards working group reviews open issues at the start of
every minor release cycle and publishes the resulting decision log
alongside the release notes. Errata are issued as patch releases;
new normative requirements trigger minor bumps; backwards-incompatible
changes trigger major bumps with the deprecation procedure above.

弘益人間 (Hongik Ingan) — Benefit All Humanity


## Annex E — Implementation Notes for PHASE-3-PROTOCOL

The following implementation notes document field experience from pilot
deployments and are non-normative. They are republished here so that early
adopters can read them in context with the rest of PHASE-3-PROTOCOL.

- **Operational scope** — implementations SHOULD declare their operational
  scope (single-tenant, multi-tenant, federated) in the OpenAPI document so
  that downstream auditors can score the deployment against the correct
  conformance tier in Annex A.
- **Schema evolution** — additive changes (new optional fields, new error
  codes) are non-breaking; renaming or removing fields, even in error
  payloads, MUST trigger a minor version bump.
- **Audit retention** — a 7-year retention window is sufficient to satisfy
  ISO/IEC 17065:2012 audit expectations in most jurisdictions; some
  regulators require longer retention, in which case the deployment policy
  MUST extend the retention window rather than relying on this PHASE's
  defaults.
- **Time synchronization** — sub-second deadlines depend on synchronized
  clocks. NTPv4 with stratum-2 servers is sufficient for most deadlines
  expressed in this PHASE; PTP is recommended for sites that require
  deterministic interlocks.
- **Error budget reporting** — implementations SHOULD publish a monthly
  error-budget summary (latency p95, error rate, violation hours) in the
  format defined by the WIA reporting profile to facilitate cross-vendor
  comparison without exposing tenant-specific data.

These notes are not requirements; they are a reference for field teams
mapping their existing operations onto WIA conformance.

## Annex F — Adoption Roadmap

The adoption roadmap for this PHASE document is non-normative and is intended to set expectations for early implementers about the relative stability of each section.

- **Stable** (sections marked normative with `MUST` / `MUST NOT`) — semantic versioning applies; breaking changes require a major version bump and at minimum 90 days of overlap with the prior major version on all WIA-published reference implementations.
- **Provisional** (sections in this Annex and Annex D) — items are tracked openly and may be promoted to normative status without a major version bump if community feedback supports promotion.
- **Reference** (test vectors, simulator behaviour, the reference TypeScript SDK) — versioned independently of this document so that mistakes in reference material can be corrected without amending the published PHASE document.

Implementers SHOULD subscribe to the WIA Standards GitHub release notifications to track promotions between these tiers. Comments on the roadmap are accepted via the GitHub issues tracker on the WIA-Official organization.

The roadmap is reviewed at every minor version of this PHASE document, and the review outcomes are recorded in the version-history table at the start of the document.

## Annex G — Test Vectors and Conformance Evidence

This annex describes how implementations capture and publish conformance
evidence for PHASE-3-PROTOCOL. The procedure is non-normative; it standardizes the
shape of evidence so that auditors and downstream integrators can compare
implementations without re-running the full test matrix.

- **Test vectors** — every normative requirement in this PHASE has at least
  one positive vector and one negative vector under
  `tests/phase-vectors/phase-3-protocol/`. Implementations claiming
  conformance MUST run all vectors in CI and publish the resulting
  pass/fail matrix in their compliance package.
- **Evidence package** — the compliance package is a tarball containing
  the SBOM (CycloneDX 1.5 or SPDX 2.3), the OpenAPI document, the test
  vector matrix, and a signed manifest. Signatures use Sigstore (DSSE
  envelope, Rekor transparency log entry) so that downstream consumers
  can verify provenance without trusting a private CA.
- **Quarterly recheck** — implementations re-publish the evidence package
  every quarter even if no source change occurred, so that consumers can
  detect environmental drift (compiler updates, dependency updates, OS
  updates) without polling vendor changelogs.
- **Cross-vendor crosswalk** — the WIA Standards working group maintains a
  crosswalk that maps each vector to the equivalent assertion in adjacent
  industry programs (where one exists), so an implementer that already
  certifies under one program can show conformance to PHASE-3-PROTOCOL with
  reduced incremental effort.
- **Negative-result reporting** — vendors MUST report negative results
  with the same fidelity as positive ones. A test that is skipped without
  recorded justification is treated by auditors as a failure.

These conventions are intended to make conformance evidence portable and
machine-readable so that adoption of PHASE-3-PROTOCOL does not require bespoke
auditor tooling.

## Annex H — Versioning and Deprecation Policy

This annex codifies the versioning and deprecation policy for PHASE-3-PROTOCOL.
It is non-normative; the rules below describe the policy that the WIA
Standards working group commits to when amending this PHASE document.

- **Semantic versioning** — major / minor / patch components follow
  Semantic Versioning 2.0.0 (https://semver.org/spec/v2.0.0.html).
  Major bump indicates a backwards-incompatible change to a normative
  requirement; minor bump indicates new normative requirements that do
  not break existing implementations; patch bump indicates editorial
  changes only (clarifications, typo fixes, formatting).
- **Deprecation window** — when a normative requirement is removed or
  altered in a backwards-incompatible way, the prior major version is
  maintained in parallel for at least 180 days. During the parallel
  window, both major versions are marked Stable in the WIA Standards
  registry and either may be cited as "WIA-conformant".
- **Sunset notification** — deprecated major versions enter a 12-month
  sunset window during which the WIA registry marks the version as
  Deprecated. The deprecation entry includes a migration note pointing
  to the replacement requirement(s) and an explanation of why the
  change was made.
- **Editorial errata** — patch-level errata are issued without a
  deprecation window because they do not change normative behaviour.
  Errata are tracked in a public errata register and each entry is
  signed by the WIA Standards working group chair.
- **Implementation changelog mapping** — implementations SHOULD publish
  a changelog mapping each PHASE version they support to the specific
  build, container digest, or SDK version that satisfies the version.
  This allows downstream auditors to verify version conformance without
  re-running the entire test matrix on every release.

The policy is reviewed at the same cadence as the PHASE document and
any changes to the policy itself are tracked in the version-history
table at the start of the document.

## Annex I — Interoperability Profiles

This annex describes how implementations declare interoperability profiles
for PHASE-3-PROTOCOL. The profile mechanism is non-normative and exists so that
deployments of varying scope (single tenant, regional cluster, federated
network) can advertise the subset of normative requirements they satisfy
without misrepresenting partial conformance as full conformance.

- **Profile manifest** — every implementation publishes a profile manifest
  in JSON. The manifest enumerates the normative requirement IDs from this
  PHASE that are satisfied (`status: "supported"`), partially satisfied
  (`status: "partial"`, with a reason field), or excluded
  (`status: "excluded"`, with a justification). The manifest is signed
  using the same Sigstore key used for the SBOM in Annex G.
- **Federation profile** — federated deployments publish an aggregated
  manifest summarizing the union and intersection of member-implementation
  profiles. The aggregated manifest is consumed by directory services so
  that callers can route a request to the least common denominator profile
  required for an interaction.
- **Backwards-profile compatibility** — when a deployment migrates from one
  profile to a wider profile, the prior profile manifest remains valid and
  signed for the deprecation window defined in Annex H. This preserves
  audit traceability for auditors evaluating long-term interoperability.
- **Profile registry** — the WIA Standards working group maintains a
  public registry of named profiles. Common deployment shapes (e.g.,
  "Edge-only", "Federated-with-replay") are added to the registry by
  consensus. Registry entries are immutable; new shapes are added under
  new names rather than amending existing entries.
- **Profile versioning** — profile names are versioned with the same
  Semantic Versioning rules described in Annex H. A deployment that
  advertises `WIA-P3-PROTOCOL-Edge-only/2` is asserting conformance with
  the second major version of the named profile, not the second deployment
  of an unversioned profile.

The profile mechanism is intentionally lightweight; it is meant to make
real deployment shapes visible without forcing every deployment to
satisfy every normative requirement.
