Version-aware OKF v0.2 validator

Historical document. This plan is preserved from source revision 61e75e9; it is not current implementation guidance. Original source.

1. Objective

Add version-aware base/strict policy for OKF v0.1 and v0.2 without expanding hard conformance beyond §11.

Dependencies: task09.md, task10.md.

2. Version policy

Target Base Strict
0.1 existing contract legacy timestamp/# Citations
0.2 §11 v0.2 field families/computation guidance
absent v0.2 + §13 fallbacks validate present field families
future best-effort only the safe, known subset

Version resolution must be a shared domain API, not a validator-local heuristic.

3. Severity contract

ERROR:

WARNING, strict/policy only:

Missing optional families, unknown types/keys/runtimes, and broken resources/paths are not conformance errors.

Each new diagnostic receives a stable Code, a file, and an exact field path such as sources[2].resource.

4. Strict field families

Sources

Generated/verified

Lifecycle

Path-valued fields

Support absolute URLs, bundle-relative paths, and relative paths for:

Do not check the network/target existence as a conformance requirement.

5. Attested Computation

For the exact type:

Missing runtime/computation/executor/attester remain strict warnings, not base errors. Do not validate the deferred ABI.

6. Legacy fallback

7. Fixtures/tests

Add groups v02/positive, v02/strict, v02/compat, v02/adversarial.

Cover:

All tests use AAA; output is deterministic.

8. Acceptance criteria

9. Out of scope

Execution, receipt/verdict ABI, attester runtime/sandbox/cache, runtime-specific binding, network checks, and migration.