You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(okf): add OKF v0.1 conformance checker; fix index.md to spec
Validated the OKF work against the authoritative spec
(github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md §9).
This surfaced a real bug: index.md is a RESERVED file and must contain no
frontmatter (§6) — except the bundle-root index.md may declare only okf_version
(§11). The emitters were writing concept-style `type: Repository` frontmatter
into index.md, which is non-conformant. Fixed.
- add scripts/tools/okf-check.sh — faithful §9 validator: every non-reserved .md
has parseable frontmatter (§9.1) with non-empty `type` (§9.2); reserved
index.md/log.md follow §6/§7 (no frontmatter except root okf_version; ISO-8601
log date headings). --quiet for summary-only. tests/test-tools-okf-check.sh.
- fix okf-emit.sh + okf-bundle.sh index.md: reserved-file conformant (no
frontmatter / root okf_version only; §6 bullet body). Remove okf-bundle --check
(okf-check.sh is the single source of truth).
- add `type:` to track concept templates (spec/plan/hld/lld/discovery/rca) and
inline tracks.md (TrackIndex) so a freshly-init'd draft/ is fully conformant.
- wire `okf-check.sh --dir draft` (advisory) into /draft:init and /draft:index.
- update affected tests (emit/bundle/snapshot) for the conformant index.md format;
each now asserts the emitted bundle passes okf-check. regenerate integrations.
No browser required — conformance is purely structural; the OKF visualizer is
optional eyeballing only.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments