read_bundle() on a path that is not a directory
returned an empty bundle, so okf validate <mistyped path> printed
"conformant: True" and exited 0. It now raises NotADirectoryError, and the
CLI exits 2. The R binding always stopped here. An old defect, not a 0.14
regression. No change to R, Rust, C++ or MATLAB beyond the version number.okf_search(current_only = TRUE) dropped every concept that has no
status. The SQL predicate for "not current" compared status = 'deprecated' directly, which is NULL rather than FALSE when status is
missing, so NOT of it was NULL and the row was left out. Absent means
stable (SPEC 5.4), so those concepts are current. okf_context(current_only = TRUE) was not affected: it does not go through SQL. 0.14.0 was on PyPI for
under an hour with this; the conformance fixture now asserts which concepts
the filter keeps, not only which it leaves out. Found by exercising the
published packages from a clean install.OKF v0.3. The specification moved to
https://github.com/open-knowledge-format/open-knowledge-format (the
GoogleCloudPlatform repository is deprecated and stays at v0.2) and changed
how an existing bundle reads in two places. Both are the specification's own
breaking changes.
at is at or after generated.at. A human review of an
earlier text no longer makes a concept human-reviewed. The tier can only go
down. okf_trust() gains n_current; n_verified now counts valid events
(both by and a parseable at)./ resolves from its own file (SPEC 6).
The old root reading is kept as a fallback only for a bundle that declares
okf_version 0.2 or earlier, or no version (rd$root_fallback), and is
still reported as path_root_relative. In a bundle that declares 0.3 such a
path is a broken_reference. okf_resolve_path() gains fallback and
dirs..md file with no frontmatter or no type is not a concept (SPEC
3.2). It is skipped, stays in the file set, and is reported as the warning
not_a_concept; it is listed in rd$not_concepts and counted by
okf validate. The error missing_type no longer exists, and a file with no
frontmatter is no longer frontmatter_unparseable.frontmatter_unparseable (a block that is present and is not a YAML
mapping), duplicate_key (new: a repeated key at any level), and the
reserved-file rules index_frontmatter, log_frontmatter and
log_heading_not_date (new). A bundle whose log.md or sub-directory
index.md carries frontmatter was conformant before and is not now.status means not current (SPEC 5.4). okf_trust() gains
is_current, superseded_by and stale_after_malformed. A stale_after
that does not parse now counts as stale, never as fresh (SPEC 5.5).superseded_by (a new path field) and reference-style markdown
links. Link targets are percent-decoded. A link to a directory is
target = "dir", not a broken link; a bare #fragment and a target that
leaves the bundle root produce no row.okf_context(current_only = TRUE) and okf_search(current_only = TRUE): the
SPEC 5.4 filter to current knowledge. A deprecated concept that names a
replacement with superseded_by is swapped for it; the result lists what was
replaced and excluded. Off by default.okf_read(untyped = "keep"), also on okf_ingest(), okf_diff() and the
CLI as --untyped keep: reads a file with no type as a concept anyway
(untyped_concept). An extension, for a notes vault or any directory of
markdown that was never written as OKF.title, description and license from the
root index.md, on the bundle and in three new okf_bundle columns. An
older catalog gains the columns on the next ingest.okf_computations() gains attestable, and finds the inline computation by
the SPEC 10.3 rule: the first fenced block of the Computation section, at
any heading level.okf_doctor() rules: verified_event_incomplete, verification_not_current
(info), actor_not_spec_form, superseded_by_not_deprecated,
stale_after_malformed. timestamp_not_instant no longer names a date-only
value, which v0.3 makes a valid timestamp..okfstatus (from the unreleased 0.13.2): a file at the bundle root that
maps a producer's own status words onto draft / stable / deprecated.--- no longer hides the
frontmatter.content_hash matches theirs.frontmatter_unparseable
instead of a hard error from $ on an atomic vector.[[, not $. $ partial-matches list names,
so a key such as type_hint with no type read as a type.okf_diff(): "broken" now means the target names nothing. A reference to a
real file, a directory or a scope descriptor was counted as broken.okf_doctor_fix() no longer considers a link to a real file or directory
for repair.The expected values of the new v03 fixture and the extended negative
fixture were compared with the specification repository's own validate.py
and scan.py before they were locked, and the R and Python checkers were
mutation-tested against fifteen corrupted expectations. All five bindings
(R, Python, Rust, C++, MATLAB) implement the core changes.
stale_after now goes stale. Upstream PR #6 (2026-08-21)
made every timestamp-valued key an ISO-8601 datetime with an explicit
offset. Before that, stale_after: 2027-01-01, sources[].last_modified
and usage_window.{from,to} were written as bare dates, and v0.2 bundles
from that period still carry them. The strict instant parser returned NA
for such a value, so the concept was silently never stale: the
conformance fixture's stale_after: 2027-01-01 still read as fresh at
2099, and okf_doctor() said nothing. A bare YYYY-MM-DD now reads as
midnight UTC that day. That is the earliest reading of the date, so a
concept goes stale no later than its writer meant. A local datetime with
no offset still has no instant and is still ignored.okf_doctor() rule timestamp_not_instant (warn). It names every
timestamp-valued key that is not an offset datetime: stale_after,
verified[].at, sources[].last_modified, usage_window.from/to
(top-level and per source), and generated.at when a legacy timestamp
sits beside it. A lone generated.at is already reported by
okf_validate() as timestamp_not_iso8601.conformance/expected/v02_trust.json.
Both conformance scripts now cover trust and doctor, which no fixture
exercised before; a mutation removing the date reading fails both..okfignore — a bundle can now say which .md files were never concepts.
SPEC 3.1 reserves exactly two filenames and then says "All other .md files
are concept documents", which leaves a bundle no way to declare that its
README, its schema.md, or a vendored deployment doc is scaffolding. Every
one of them fails the hard type: rule, so a conformant bundle is
unreachable for any repository that is also a repository — 46 such files
across a 26-bundle estate. The alternative "fix" is to put type: Doc on a
README, which is a lie told to a validator.
An ignored file leaves the CONCEPT set and stays in the FILE set, so it is
exactly what it always was: an ordinary file in the tree. A reference to it
resolves as non_concept_target (info, SPEC 6.2/6.3) rather than as a broken
link, and the catalog schema is unchanged — an ignored file is simply not
a row in okf_concept.
The grammar is a deliberately small, completely specified subset of
gitignore, because five bindings have to agree on it exactly and gitignore's
per-directory cascade and negation corners are where independent
implementations drift: one .okfignore, at the bundle root, no cascade.
Bare names match the basename at any depth, a trailing / makes a directory
pattern, a / anywhere anchors at the root, * stops at a /, ** does
not, /**/ spans zero or more directories, ! re-includes and the last
matching line wins. index.md and log.md are never ignorable — a bundle
able to hide its own index would lose its okf_version.
New: okf_ignored(root) (R), okf.ignored(root) (Python), rd$ignored /
Bundle.ignored in all five bindings, and an ignored: line in okf validate. That reporting is load-bearing rather than cosmetic: an ignored
file produces no findings at all, which is indistinguishable from a clean
one, so an over-broad pattern would otherwise read as a bundle that got
healthier instead of one that got smaller.
bundles/okfignore + expected/okfignore.json lock the grammar across all
five bindings. Each of its seven ignored files carries no frontmatter at all,
so errors: 0 is reachable only if every rule actually matched; three
surviving concepts are negative controls for anchoring, re-inclusion and
pattern scope.
An integer too large for R no longer becomes NA. R's yaml parses a
bare integer as a 32-bit R integer, so a frontmatter value of
sha1: 835118974644 -- a real one, in a harbinger_wiki note -- came back
as NA with a warning while Python and Rust returned the number. Outright
data loss, and the fourth cross-binding scalar disagreement in this series
after the YAML 1.1 booleans of 0.12.1.
R now widens to a double when the value does not fit. That, rather than the
source text, is the right landing place: the catalog's frontmatter JSON is
the cross-binding contract, and a double serializes as 835118974644 and
matches the other bindings, whereas a verbatim string would serialize quoted
and break the parity it was meant to restore. Doubles are exact to 2^53
(~9.0e15), far beyond any plausible frontmatter value.
bundles/yaml_scalars gains big_int / small_int / negative_big,
asserted in the three typed bindings -- for the same reason the booleans are,
since the C++ and MATLAB parsers keep every scalar as raw text by design.
Found by sweeping the estate for YAML that R cannot hold, after the same
32-bit coercion silently turned a market cap of 5,725,181,640,000 into
"NA" in a generated bundle that still validated at zero errors. The sweep
found exactly two affected files in ~19,300 concepts and 30-odd R YAML
readers, which is the useful part: the exposure is real but narrow, and now
it is closed at the parser rather than at each reader.
References inside fenced code blocks are no longer extracted. Markdown
does not linkify fenced content, so neither do we. This only became
consequential with SPEC 10, which makes code in the body the NORMAL case for
an Attested Computation: R's [[ ]] indexing syntax is literally the
wikilink syntax, so a real runtime: r bundle emitted three phantom
wikilinks out of a single function.
Phantom broken references are only noise. The hazard is the other case, and the fixture demonstrates it: a reference in code that happens to match a real concept becomes a silently false edge in the graph -- the same class of wrong-provenance error the 0.12.0 frontmatter-edge work existed to fix.
Fenced blocks only, by measurement rather than taste. Indented (4-space) blocks are NOT masked: that indentation is also ordinary nested-list continuation, where links are real. Inline code spans are NOT masked either -- authors put backticks around a reference for emphasis and mean it, and masking spans would have dropped 8 resolving edges in a 219-concept wiki.
Impact measured before shipping, across all 12 conformance fixtures, the four
reference bundles, and three real wikis: zero change everywhere except the
two places it should change. One edge disappears from a hand-authored wiki
-- an illustrative [Page](path.md) inside a fenced example block in
schema.md, which was a false edge -- and three disappear from the
Attested Computation bundle that prompted the fix. The LOLO retrieval bench
is unmoved.
New fixture bundles/code_fences, locked in all five bindings. It carries a
concept whose name a phantom reference collides with, so the test is that a
resolving false edge does not appear, not merely that a warning does not.
Found by building a package on top of this one and pointing it at the estate's own trusted calculations -- the third defect found that way, after the 0.12.0 frontmatter edges and the 0.12.1 YAML booleans.
Cross-binding parity fix: YAML 1.1 booleans. y, Y, yes, n, N,
no, on and off are booleans in YAML 1.1 and plain strings in YAML 1.2.
R's yaml and Python's PyYAML implement 1.1; yaml-rust2, rapidyaml and the
MATLAB subset parser do not. The three disagreed with each other on the same
frontmatter -- name: n read as FALSE in R, "n" in Rust, and PyYAML split
the difference -- which broke the promise that one bundle yields one catalog.
In R the consequence was functional, not cosmetic: a parameter named n had a
logical for a name and could never be bound by okf_bind(), and a parameter
named n is entirely ordinary. Both 1.1 parsers now follow the YAML 1.2 core
schema, so only true/false (and case variants) become logical and every
other word stays the text the author wrote.
Found by building a package on top of okf_bind() whose first test fixture
happened to name a parameter n. The conformance corpus had no bool-ish
scalar in it, so nothing caught it.
Measured before shipping: across the 220 concepts of a live wiki and all four of the format's reference bundles, zero concepts' parsed frontmatter changes. The fix is inert on existing data and prevents the divergence.
New fixture bundles/yaml_scalars, locked in all five bindings. It also
records a pre-existing difference it would be dishonest to hide: R, Python and
Rust are typed parsers and resolve true to a boolean, while the C++ and
MATLAB parsers keep every scalar as raw text by design -- which is what makes
timestamps verbatim for free there. The fixture asserts the 1.1-only words as
strings in every binding, and asserts true/false per binding family.
Measured against the four reference bundles in
GoogleCloudPlatform/open-knowledge-format, which moved to its own repository
on 2026-08-14 (the copy under knowledge-catalog/okf/ is retired). The spec is
still v0.2; what changed is that upstream now ships bundles exercising the v0.2
families, and running our own validator over them found two real defects.
timestamp_not_iso8601 no longer false-fires. SPEC 5 requires an ISO 8601
datetime with an explicit UTC offset; upstream made that literal on 2026-08-21
and the bundles now emit +00:00. The pattern demanded a trailing Z, so it
flagged 44 of 44 concepts across ga4, stackoverflow and
crypto_bitcoin. It now accepts Z, +/-HH:MM and +/-HHMM with optional
fractional seconds, and still rejects a bare local datetime. All four upstream
bundles now validate with zero findings.resource, sources[].resource, computation, executor.resource and
attester.resource carry the derivation and execution edges and appear
nowhere in the body. On acme_retail that is 12 edges against 30 body edges;
before this, okf_impact("policies/revenue-recognition.md") returned a single
inbound edge — the policy's own directory index — while both Attested
Computations and both Metrics deriving from it were invisible. It now returns
all six. okf_rank, okf_context, okf_backlinks and the orphan lint all
inherit the fix.okf_link gains kind and target. kind is
body/wikilink/resource/source/computation/executor/attester;
target is concept (the only case that forms a graph edge), file (a real
non-concept file in the bundle), scope (a SPEC 5.1 scope descriptor, not a
path) or missing. A reference to a real non-concept file — an attester
.py, a computation .sql, exactly what SPEC 6.2/6.3 describe — was reported
as a broken link; it is now an info-level non_concept_target, and
links_broken counts only genuinely missing targets. An unresolved
frontmatter path is broken_reference rather than broken_link.info severity. It is neither an error nor a warning and never enters
the warning count. (Two bindings had to be corrected for this: the C++ and
MATLAB summaries counted everything non-error as a warning.)/, but upstream's own bundles write them
without it: 12 of 12 frontmatter paths in acme_retail resolve against
the bundle root and 0 of 12 resolve the spec-literal way, so a
spec-literal consumer finds none of these edges. Resolution tries the spec
reading first, falls back to the root, and emits path_root_relative (info)
when the fallback is what worked — permissive per SPEC 11, and legible to a
producer. The bundles and the spec disagree here; worth an upstream issue.bundles/v02_attested (ours, not vendored, so we do
not track upstream churn), locked in all five bindings. It covers both
computation forms (inline # Computation fence and computation: by path),
every frontmatter edge kind, a non-concept target, a scope descriptor, a
genuinely missing reference, verified as a bare mapping and as a list,
status draft/stable/deprecated, stale_after, and offset timestamps in
Z / +00:00 / -07:00 form.- { name: day, type: string, required: true }). This is not
an edge case: it is the shape SPEC 10.2 uses for parameters: and the one
upstream's acme_retail writes, so the binding previously could not read a
real Attested Computation's parameters.okf_ollama_embedder() resolves its endpoint from the environment
(url= / LLM_EMBED_URL / LLM_LOCAL_BACKEND=llamaswap / OLLAMA_URL) and
speaks whichever of the Ollama or OpenAI embedding shapes the resolved path
implies, mirroring okf.rag._embed_endpoint. A host that names OLLAMA_URL
is unaffected; options(okf.embed_texts=) overrides with a custom backend.bin/okf.R refuses to run when an installed okf differs in version from
the source tree the script lives in, instead of silently preferring the
installed package. Set OKF_ALLOW_VERSION_MISMATCH=1 to override.okf_trust() derives SPEC 5.3
trust tiers and SPEC 5.5 staleness from the absolute stale_after instant,
superseding the home-grown stale_days age heuristic. okf_sources() reads
SPEC 5.1 provenance one row per entry, including the footnote-label join into
sources[].id; it records the spec's signals and, like the spec, refuses to
compute a credibility score. okf_computations() reads SPEC 10 Attested
Computation contracts, and okf_bind() performs the deterministic parameter
binding plus a canonical sha1 -- SPEC 10.3 makes the attester's job "re-derive
the same binding and compare", so the binder belongs in the deterministic
layer. R and Python produce identical binding hashes. Nothing here executes or
attests anything.okf_doctor() rules over those families, each negative-tested before
being believed. The catalog gains trust/lifecycle columns on okf_concept
plus okf_source and okf_computation tables; the catalog-free bindings are
unaffected.status is a closed vocabulary in
SPEC 5.4 and a producer extension everywhere else. Values outside the spec
vocabulary are treated as ABSENT, never mapped, and reported as info
(status_not_spec_vocabulary), as is a family key carrying the wrong shape
entirely (family_not_spec_shape). Measured on a 220-concept wiki that writes
status: active and sources: 3: zero concepts relabelled, zero new
warn/error findings. That wiki also proved the need for shape checks before
indexing -- $ on an atomic vector is a hard error in R, and one such concept
aborted the ingest of the whole bundle.okf_context() annotates each included concept with its lifecycle state
(deprecated / draft / stale / unverified) when now is supplied. Annotated,
never demoted or dropped: SPEC 11 says surface rather than silently drop, and
a deprecated concept is still a legitimate link target, so demoting it would
trade measurable retrieval recall for a warning the reader can be handed for
free. Selection is unchanged, verified.okf trust and okf computations, identical in R and Python.wiki and interpretable_ml_wiki bit-identical (neither uses v0.2 path
fields, so the graphs are unchanged at 713 and 278 edges), and on upstream's
acme_retail they take the graph 29 -> 39 edges with every method improving
(query-ppr R@5 .689 -> .835, MRR .653 -> .854; the eval set also grows 6 -> 8
pages, so read the direction rather than the decimal).timestamp
(and catalog column) now falls back to v0.2's generated: {by, at} when
the legacy field is absent (spec section 13), so pure-v0.2 bundles no longer
draw spurious missing_timestamp warnings; the new sources / verified /
usage_window / status / stale_after families parse and are preserved
verbatim in frontmatter. New conformance fixture bundles/v02 locks the
fallback and the parsed shapes cross-binding.generated: { by, at }), one-level block maps, and block
sequences of maps (sources:) — previously these raised
yaml_parse_error, making v0.2 bundles read non-conformant under the
MATLAB binding only. Deeper nesting still errors (spec-sanctioned).# Citations parsing, trust-tier surfaces).
v0.1 bundles remain fully supported; hard conformance rules are unchanged.rust/okf-ingest, crates.io okf-ingest): the
fixture-locked core — parse + content_hash, links/wikilinks, validate,
ingest summary, exact PPR + lexical seeds + query cascade, diff (incl. drift
mode), fetch (dir/tar/zip/git) — as a pure-Rust crate, conformance-gated in
CI alongside R and Python (conformance/check_rust.sh). Catalog-free by
design: every conformance-asserted value is computed in memory, which also
documents that DuckDB is an access mechanism of the R/Python checkers, not
part of the behavioral contract. No html/doctor/RAG/CLI in Rust.cpp/, C++17 static library, CMake + FetchContent:
rapidyaml + nlohmann/json + vendored SHA-1): the same fixture-locked core,
conformance-gated in CI (conformance/check_cpp.sh, ctest on ubuntu +
windows/MSVC). Fetch is descoped to dir / local tar (system tar) / git;
zip and remote archives stay R/Python-only. Float parity pinned by
-ffp-contract=off / /fp:precise.matlab/+okf, pure MATLAB, Octave-compatible, zero
toolboxes): the same fixture-locked core, conformance-gated in CI on real
MATLAB (conformance/check_matlab.sh, matlab-actions). Ships a verbatim
YAML-subset parser and a pure-M SHA-1; PPR rounding uses sprintf-based
half-even (MATLAB round() is half-away-from-zero). Fetch covers
dir / tar / zip / git with a post-extraction containment check.okf_seeds() (deterministic lexical seed
selection — +3 title / +2 description·tags / +1 body per query token, fixed
stopword list) and multi-seed okf_rank() (start may be a vector, with
weights). okf_context(query = "...") chains them: lexical seeds ->
multi-seed Personalized PageRank -> relevance-filled context. Deterministic
hybrid retrieval with no embeddings; CLI context --query.okf_doctor() gains duplicate_identity (the same normalized id/alias
claimed by more than one concept — breaks by-name resolution) and
hub_concentration (info severity: pages whose outbound links mostly point
at high in-degree hubs). New info severity never affects the health score
(n_info added).reviewed: true in frontmatter are never
modified by okf_doctor_fix() — human-validated content stays put.okf_rank(): Personalized PageRank relevance scores over the concept
graph, seeded on a start concept — exact power iteration (deterministic, no
sampling, no embeddings), undirected resolved-link graph, teleport and
dangling mass returning to the seed. New CLI verb rank.okf_context(rank = "ppr"): budget-fill the context blob by PPR relevance
instead of BFS discovery order, so hub-heavy bundles surface the pages that
matter to the topic first. Default behavior unchanged (rank = "bfs").okf_diff(): deterministic concept-level changelog between two states
of a bundle. Each side can be a bundle directory, an okf_read() bundle, a
DuckDB catalog path, or an open connection — so it covers both "what drifted
since the last ingest" (catalog vs directory) and snapshot-vs-snapshot
comparison. Reports concepts added/removed/changed (by content_hash),
frontmatter type/title changes, and link-graph deltas (edges
added/removed, links newly broken or fixed).diff verb (okf diff <a> <b> [--json]), exit 0 when identical /
1 when different, for use as a CI change gate.[[wikilink]] support: [[target]] / [[target|display]] references are
resolved by name — id, then aliases, then title, then filename stem —
making Obsidian/Logseq/Foam-style vaults ingestible. Ambiguous names resolve
to nothing (deterministic) rather than guessing. Markdown ](path) links
are unchanged.okf_extract_wikilinks(); okf_links() now returns both link kinds.okf_links(), okf_backlinks(),
okf_impact(), okf_clusters()); HTML rendering (okf_html(),
okf_graph_html(), Mermaid export); index-first context assembly
(okf_context()); health checks (okf_doctor(), okf_doctor_fix());
incremental re-ingest/re-embed; optional local-embedder semantic search
(okf_embed(), okf_rag()).