Skip to content

Migrate all variants to OKF v0.2#8

Merged
SunsetDrifter merged 2 commits into
mainfrom
feat/okf-v0.2
Jul 26, 2026
Merged

Migrate all variants to OKF v0.2#8
SunsetDrifter merged 2 commits into
mainfrom
feat/okf-v0.2

Conversation

@SunsetDrifter

Copy link
Copy Markdown
Owner

Summary

OKF bumped to v0.2 upstream on 2026-07-24 (GoogleCloudPlatform/knowledge-catalog#227). The core conformance rules are unchanged, so existing bundles stay conformant; this PR tracks everything else:

  • OKF_VERSION 0.1 → 0.2 (version constant, index stamping, README).
  • sources adopts the v0.2 mapping shape (SPEC §5.1): the frontmatter parser now accepts one-level mapping entries in block lists (- resource: /sources/foo.md plus continuation lines), path_list extracts resource values for path/edge fields, and a new check_sources errors on entries missing resource and warns on legacy string entries and non-bundle-absolute paths.
  • Bundle-absolute (leading-slash) values now resolve in frontmatter path fields, matching the link style; external URLs in path fields are skipped as provenance rather than reported as dangling references.
  • CLAUDE.md templates in all four variants show the new shape; hot-core line caps still hold.
  • ADR 0001 addendum: v0.2 §6.1 adopted bundle-absolute as the recommended link form, so the decision is now spec-endorsed.
  • Predictions in the type-vocabulary position doc scored against the v0.2 outcome; migration assessment in docs/research/2026-07-26-okf-v0.2-migration.md.

Notes

  • The v0.2 spec blesses the bundle-root index.md okf_version frontmatter (§12), which resolves the one spec tension the v0.1 conformance work documented.
  • v0.2's two breaking changes (timestampgenerated.at, body # Citationssources) do not affect these templates; the README deviations text was updated to reference generated.at.
  • Engine remains byte-identical across variants (verified per-file).

Spec bumped upstream 2026-07-24 (knowledge-catalog PR #227). Core
conformance rules are unchanged; this migration tracks the rest:

- OKF_VERSION 0.1 -> 0.2 (model.py, index stamping, tests)
- sources adopts the v0.2 mapping shape (SPEC 5.1): the frontmatter
  parser accepts one-level mapping entries in block lists, Page.path_list
  extracts resource values for path/edge fields, and new check_sources
  errors on entries missing resource, warns on legacy string entries and
  on non-bundle-absolute paths
- resolve_link resolves bundle-absolute (leading-slash) path-field
  values; external URLs in path fields are skipped as provenance
- CLAUDE.md templates show the mapping shape in all four variants
- README conformance section updated for v0.2 (generated.at mapping,
  bundle-absolute now the spec-recommended link form)
- ADR 0001 addendum: v0.2 6.1 adopted bundle-absolute as recommended
- type-vocabulary position doc predictions scored against the outcome
- migration assessment doc added (docs/research/2026-07-26)
The per-variant caps (110-145) were set at redesign-time size plus a few
lines of slack, which made routine spec-driven edits into line golf. 200
keeps the cap as a bloat tripwire while leaving real headroom.
@SunsetDrifter
SunsetDrifter merged commit 88ee392 into main Jul 26, 2026
1 check passed
@SunsetDrifter
SunsetDrifter deleted the feat/okf-v0.2 branch July 26, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant