Skip to content

Add OKF storage and centered/graph views study - #27

Open
Martin-PB wants to merge 1 commit into
mainfrom
mp-okf-storage-study
Open

Martin-PB wants to merge 1 commit into
mainfrom
mp-okf-storage-study

Conversation

@Martin-PB

@Martin-PB Martin-PB commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Intent

Martin-PB asked for a study based on the OKF specification (Open Knowledge Format v0.2, GoogleCloudPlatform/knowledge-catalog): the compatibility of an OKF-conformant storage, the representation of mindmaps centered on a subject or on a note, and general graph views — with the full journey: start centered on a mindmap, let it evolve into a knowledge graph, then recenter on a new node to present in a meeting.

What was done

A single file: docs/okf-storage.md, a study only (status "study only — specified, never executed", like the mobile study in PR #7). Conclusions: compatible and a good match — a sheet becomes a directory tree of files (one concept per topic, children in the directory named after their parent), topicLink and rels become OKF's untyped markdown links, and centering on a subject or a note as well as the general graph view are projections derived from the same bundle, never storage modifications. The study details the field-by-field mapping, what already helps, what is missing (path identity vs UUID, directory vs single-file persistence, a YAML parser, a graph layout), and a four-PR path (OKF reader/writer, derived views, graph view, live bundle).

What the agent did

  • Read the OKF v0.2 specification in full (§1–§13 + appendix) from GoogleCloudPlatform/knowledge-catalog.
  • Verified in the code every point the study cites: model.ts (Rel, topicLink, float, 16 layouts, search over text and note, prune, the branch index driving presentation colors and steps), files.ts (docBytes/parseDocReport dispatch, atomic writeSafely, keepsPath for .json only), package.json (v0.1.2, no parsing dependency).
  • Wrote the study in English following the model of docs/mobile-port.md, and verified the round-trip byte by byte after the push (zero mojibake).

Human checks

  • Re-read the study and validate the direction: OKF import/export first (same flow as the six other formats), live bundle afterwards.
  • Decide whether the OKF format joins the multi-format program (a PR "Open and write OKF bundles") or stays on hold.
  • The operator reviews and merges.

Doc-only from main: no possible conflict with the stacked PRs; no README line added, to avoid any conflict with PR #7, which touches the same "Not yet" section.

Agent: Vibe (Mistral, glm-5-latest-short)
Reviewed-by: Martin-PB

OKF (Open Knowledge Format, GoogleCloudPlatform/knowledge-catalog) is a
directory tree of markdown concepts with YAML frontmatter, untyped
markdown links between them, and a deliberately forgiving conformance.
This study maps it onto Cartocortex: a sheet becomes a directory tree
(one concept file per topic, children in the directory named after
their parent), topicLink and rels become OKF links, and recentring on
any subject or note and a general graph view become projections derived
from the same bundle. It records what already helps (model.ts, the
per-format dispatch in files.ts, presentation mode), what is missing
(path identity, directory persistence, a YAML subset parser, a graph
layout) and a four-PR path. Study only, nothing is built yet.

Agent: Vibe (Mistral, glm-5-latest-short)
Relu-par-humain: Martin-PB
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