Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,29 @@ what the code happens to do today.**
The authoritative source is:

```
https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md
raw: https://raw.githubusercontent.com/GoogleCloudPlatform/knowledge-catalog/main/okf/SPEC.md
https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md
raw: https://raw.githubusercontent.com/GoogleCloudPlatform/open-knowledge-format/main/SPEC.md
```

**This trap is live and it has already caught us.** The obvious-looking sourceβ€”`openknowledge-sh/openknowledge`, `Wiki/SPEC.md`β€”is a *pinned mirror*, and it is
**stale at v0.1** while upstream is at **v0.2**. Its own frontmatter names the real
upstream in a `resource:` key. Anyone who greps for "the spec," finds that file,
and builds against it will conform to a superseded version and be confident about
it. Always fetch upstream and check the version line before citing a section
**This trap is live and it has already caught us.** Two stale sources look
authoritative and are not. The spec now lives in its own repo,
`GoogleCloudPlatform/open-knowledge-format`; the former home at
`GoogleCloudPlatform/knowledge-catalog/okf/SPEC.md` is a **frozen snapshot** that
no longer tracks upstreamβ€”anyone who cites it will pin to whatever it held at
freeze time. The older `openknowledge-sh/openknowledge`, `Wiki/SPEC.md` is a
*pinned mirror* **stale at v0.1** while upstream is at **v0.2**; its own
frontmatter names the real upstream in a `resource:` key. Anyone who greps for
"the spec," finds either stale copy, and builds against it will conform to a
superseded version and be confident about it. Always fetch upstream
(`open-knowledge-format`) and check the version line before citing a section
numberβ€”Β§-numbering *shifted between v0.1 and v0.2* (v0.1 had 11 sections, v0.2
has 13; index files moved from Β§6 to Β§8, conformance from Β§9 to Β§11, versioning
from Β§11 to Β§12).

Confirm the version before you cite anything:

```sh
curl -sL https://raw.githubusercontent.com/GoogleCloudPlatform/knowledge-catalog/main/okf/SPEC.md \
curl -sL https://raw.githubusercontent.com/GoogleCloudPlatform/open-knowledge-format/main/SPEC.md \
| head -5 # expect: **Version 0.2**
```

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Thanks for your interest in contributing.
## The one rule that governs everything

`okfctl` is a **consumer of a specification it doesn't own**. The
[Open Knowledge Format spec](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md)
[Open Knowledge Format spec](https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md)
is the authority; this tool conforms to it. Where the spec defines behavior, the
spec winsβ€”over convenience, over a maintainer's preference, over what the code
happens to do today.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ from the tree, provenance goes stale, and no one notices until the corpus is
already a maze.

`okfctl` is the tool that keeps it honest. It authors and maintains
[Open Knowledge Format](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md)
[Open Knowledge Format](https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md)
(OKF) bundlesβ€”a curated tree of Markdown "nodes" with a link graph, reserved
`index.md`/`log.md` files, and frontmatter provenanceβ€”and it checks the whole
thing against the spec so drift surfaces as a finding instead of a surprise.
Expand Down Expand Up @@ -82,7 +82,7 @@ building from source all live in the [install guide](docs/install.md).
## The spec is the authority

OKF is a specification `okfctl` consumes; it doesn't author it. The
[Open Knowledge Format spec](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md)
[Open Knowledge Format spec](https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md)
decides behavior, and where it does, it wins. `okfctl` enforces the spec *floor*
for everyone and keeps anything stricter behind an explicit opt-in overlay
(`--templates`, Β§9.4), so an unknown `type` or a future frontmatter key still
Expand Down Expand Up @@ -168,7 +168,7 @@ version is the release tag, reported by `okfctl version`.
- **Per-command help**β€”`okfctl <cmd> --help` is authoritative and always
matches the binary.
- **The spec**β€”the authoritative
[OKF v0.2 specification](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md).
[OKF v0.2 specification](https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md).
- **For contributors**β€”[`docs/PRD.md`](docs/PRD.md), the
[ADRs](docs/adr/README.md), and the dated
[plans](docs/plans/2026-07-22-roadmap.md)/[specs](docs/specs/) that record how
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ Start here:

okfctl consumes the Open Knowledge Format; it doesn't author it. The
authoritative source is the upstream
[OKF v0.2 specification](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md).
[OKF v0.2 specification](https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md).
Confirm the version line (`**Version 0.2**`) before citing a section numberβ€”Β§-numbering shifted between v0.1 and v0.2.
2 changes: 1 addition & 1 deletion site/public/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ reports on its health and link graph.

## Specification

- [Open Knowledge Format spec (SPEC.md)](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md): The authoritative OKF specification, owned by Google (`GoogleCloudPlatform/knowledge-catalog`). Where the spec defines behavior, the spec wins.
- [Open Knowledge Format spec (SPEC.md)](https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md): The authoritative OKF specification, owned by Google (`GoogleCloudPlatform/open-knowledge-format`). Where the spec defines behavior, the spec wins.

## Source

Expand Down
8 changes: 4 additions & 4 deletions site/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ const goInstallCmd = version.tag
<p>
<strong>OKF is a specification okfctl consumes and conforms toβ€”it does not author it.</strong>{" "}
The format is maintained by Google in{" "}
<a href="https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md" rel="noopener">GoogleCloudPlatform/knowledge-catalog</a>.
<a href="https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md" rel="noopener">GoogleCloudPlatform/open-knowledge-format</a>.
Where the spec defines behaviour, the spec wins. okfctl enforces the floor for everyone and keeps anything
stricter behind an explicit opt-in overlay (<code class="mono" style="color:var(--fg)">--templates</code>, Β§9.4), so an
unknown <code class="mono" style="color:var(--fg)">type</code> or a future frontmatter key never fails{" "}
Expand Down Expand Up @@ -576,7 +576,7 @@ const goInstallCmd = version.tag
<ul>
<li><a href="/concepts/">Concepts<span class="arrow">β†’</span></a></li>
<li><a href="/reference/commands/">Command reference<span class="arrow">β†’</span></a></li>
<li><a href="https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md" rel="noopener">The OKF v0.2 spec<span class="arrow">β†’</span></a></li>
<li><a href="https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md" rel="noopener">The OKF v0.2 spec<span class="arrow">β†’</span></a></li>
<li><a href="https://github.com/cwest/okfctl" rel="noopener">Repository<span class="arrow">β†’</span></a></li>
</ul>
</div>
Expand Down Expand Up @@ -680,8 +680,8 @@ const goInstallCmd = version.tag
<div>
<h2 class="ft-h">Spec</h2>
<ul>
<li><a href="https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md" rel="noopener">OKF v0.2 β†—</a></li>
<li><a href="https://github.com/GoogleCloudPlatform/knowledge-catalog" rel="noopener">knowledge-catalog β†—</a></li>
<li><a href="https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md" rel="noopener">OKF v0.2 β†—</a></li>
<li><a href="https://github.com/GoogleCloudPlatform/open-knowledge-format" rel="noopener">open-knowledge-format β†—</a></li>
<li><a href="https://github.com/cwest/okfctl/blob/main/SECURITY.md" rel="noopener">Security policy</a></li>
</ul>
</div>
Expand Down
Loading