Repository navigation
Description
Summary
Run a bounded spike to test whether the product-development skill should support a local profile compatible with Google Cloud's Open Knowledge Format (OKF) for documentation under docs/product/.
The spike should test OKF as a thin discovery and interchange layer over the skill's existing product-documentation model. It must not replace the lifecycle, human gates, artifact taxonomy, traceability rules, evolution strategies, Gherkin specifications, or platform/app/code placement boundaries.
Background
OKF v0.1 Draft represents knowledge as Markdown concept files with YAML frontmatter, ordinary Markdown links, and optional index.md files for progressive disclosure. Its minimal contract fits the skill's Git-native Markdown artifacts, but deliberately does not define product-document semantics, approval workflows, typed relationships, lifecycle status, or cross-bundle behavior.
Initial research suggests a compatibility profile could improve agent navigation and metadata validation while preserving the current hierarchy. Important uncertainties remain:
docs/product/is not the complete lifecycle graph: design and implementation plans, ADRs, surface-specific scenarios, and test automation live elsewhere..featurefiles are first-class executable specifications but are not OKF Markdown concepts.- OKF links are untyped, while the skill requires explicit FR/NFR, story, and scenario traceability.
- Every non-reserved Markdown file in a conformant bundle needs frontmatter, which affects existing
README.md,AGENTS.md, foundation documents, PRDs, TRDs, and stories. index.mdadds value only when it supplies meaningful selection context or is generated reliably; directory-only listings duplicate the filesystem.- The upstream specification is new and its reference tooling has unresolved interoperability defects.
Research note: plugins/product-development/skills/product-development/research/2026-07-16-google-okf-product-documentation.md
Spike hypothesis
A small, skill-owned OKF compatibility profile can make product artifacts easier for humans and agents to discover without changing their canonical locations, body schemas, lifecycle authority, or executable-specification boundaries.
The spike should reject this hypothesis if the profile creates duplicate sources of truth, requires broad path migration, weakens traceability, or needs substantial custom tooling merely to preserve current behavior.
Scope
Use one representative feature fixture or isolated example subtree containing:
- a PRD;
- a TRD;
- multiple user stories;
- platform-level Gherkin scenarios; and
- links to foundation documents and at least one artifact outside the candidate bundle boundary.
Explore:
- A local profile version and closed artifact-type vocabulary.
- Minimal canonical frontmatter fields, including a stable ID independent of file path.
- Explicit relationship and traceability conventions layered above OKF's untyped links.
- Generated versus omitted indexes at:
- the feature directory;
features/as a portfolio view;- research, ADR, and version-archive directories where applicable.
- Treatment of
README.mdandAGENTS.mdwithout breaking their existing human and harness roles. - References to
.featurefiles without Markdown wrappers or duplicated scenario content. - Links from platform documentation to app-local scenarios, ADRs, research, and
docs/plans/artifacts. - Validation behavior for metadata, stable IDs, internal links, trace targets, index freshness, and metadata drift.
- Compatibility with at least two consumers: direct agent file navigation and one independent OKF validator or viewer.
- Migration and rollback cost if upstream OKF changes.
Candidate profile boundaries
The spike should compare at least these options:
Feature-subtree profile
Treat one docs/product/features/{feature}/ subtree as the experimental scope. Preserve .feature files as executable assets and avoid claiming full-bundle conformance.
docs/product/ bundle
Treat docs/product/ as the bundle root. Document required exceptions or external references for docs/plans/, docs/adr/, app-local scenarios, and test code.
No OKF profile
Retain the current hierarchy and adopt only selected ideas, such as generated semantic indexes or stable metadata, without claiming OKF compatibility.
Repository-root bundling is out of scope unless evidence shows it is necessary; it would impose frontmatter requirements on unrelated Markdown files.
Deliverables
- A small experimental fixture or isolated example demonstrating the candidate profile.
- A documented profile draft covering types, fields, stable IDs, links, exemptions, and canonical metadata ownership.
- Generated or hand-sketched indexes sufficient to test navigation value without committing to production generators.
- Validation results from direct agent navigation and an independent OKF consumer.
- A findings note covering usability, context-loading behavior, metadata drift risk, broken-link behavior, traceability preservation, and maintenance cost.
- A recommendation: adopt, revise and re-spike, adopt selected ideas without OKF compatibility, or reject.
- Follow-up issue proposals for any production implementation. The spike itself must not silently become that implementation.
Evaluation criteria
The experiment is promising only if it demonstrates that:
- existing product-development lifecycle gates and artifact locations remain intact;
- PRD, TRD, story, and scenario semantics remain owned by the skill;
.featurefiles remain the single source of truth for executable behavior;- agents can discover relevant artifacts with less broad file loading;
- metadata has one canonical representation and does not drift between frontmatter and body;
- stable product identities survive file moves and archival;
- indexes add semantic navigation value and can be generated or reliably validated;
- cross-boundary references remain understandable without proprietary infrastructure;
- rollback consists primarily of removing optional metadata or generated navigation files; and
- the maintenance burden is proportionate to the navigation and interoperability benefit.
Non-goals
- Do not reorganize all existing product documentation.
- Do not modify initialization templates or
scripts/init.shglobally. - Do not replace the product-development methodology with OKF.
- Do not move ADRs, plans, surface scenarios, or tests solely to fit a bundle.
- Do not duplicate Gherkin scenarios in Markdown.
- Do not make Google or third-party OKF tooling a correctness dependency.
- Do not define production migration policy before spike evidence exists.
- Do not claim broad ecosystem interoperability from a v0.1 Draft experiment.
Acceptance criteria
- The spike evaluates all three candidate boundaries and records why one is preferred or why none should proceed.
- One representative feature subtree is exercised end to end without changing canonical product semantics.
- Profile-specific metadata and relationship meanings are documented separately from upstream OKF rules.
- Index decisions distinguish semantic navigation from filesystem duplication.
- Gherkin and cross-surface boundary handling are demonstrated without a second source of truth.
- At least two consumption paths are tested and their failures recorded.
- Risks from upstream draft status and known tooling gaps are included in the final recommendation.
- Production skill, template, initialization, and migration work remains outside this issue.
- Final output supports an explicit human go, revise, or no-go decision.
Key research references
- Google Cloud: Introducing the Open Knowledge Format
- Open Knowledge Format v0.1 Draft specification
- Google reference implementation and sample bundles
- Issue #182: early producer extensions for provenance, trust, validity, and supersession
- Issue #175: proposal for cross-bundle references
- Issue #199: citation syntax ambiguity
- Issue #201: reference visualizer failure with recommended bundle-absolute links
- GitBook practitioner overview of OKF and explicit knowledge relationships
Activity
prometheas commentedon Nov 29, 2026
Concluded for 0.2.0: adopt as the skill's OKF profile
This spike is now part of the 0.2.0 release (#35). It did not run as a separate experiment. Its questions were answered while designing #23 (the feature-evolution pathway), with surveys of three real product-documentation trees as evidence. The recommendation is to adopt, and the production work happens under #35 rather than here, as this issue's non-goals require.
Upstream moved to v0.3
OKF is now at v0.3, maintained at open-knowledge-format/open-knowledge-format. The GoogleCloudPlatform copy linked above is deprecated. v0.3 settles several of the uncertainties listed in this issue:
.mdfile without atypeis not a concept, soREADME.mdandAGENTS.mdkeep their roles with no front matter..mdis an asset, so.featurefiles stay as they are and can still be link targets.index.mdandlog.mdare reserved at any level. Only the bundle-rootindex.mdhas front matter.x-prefix.Boundary
The
docs/product/bundle option wins.docs/product/index.mdis the bundle root and declaresokf_version: "0.3". The skill generates anindex.mdin every directory; below the root these are plain listings without front matter. Each feature directory is a self-contained subtree with its ownlog.md, and a feature's own metadata lives in the front matter of its feature spec overview,<feature-id>-spec.md. ADRs, engineering references and test code stay outsidedocs/product/, and links to them are external. Plans leave the repository.Answers to the questions in Scope
typelist:constitution,vision,research-note,idea,shaping,feature-spec-overview,feature-spec-facet,prd,trd,delta,story,delivery-plan,open-questions. Values are lowercase kebab-case. What a facet spec covers goes in opentags, with a starter set: workflow, contract, policy, data, integration, permissions, entitlement, notification, screen, quality, user-type.type,title,descriptionandstatus. Spec units carry stable IDs in the body, for exampleFR-12, so a unit keeps its identity when files move. Splits, merges and drops of whole features go in a lineage log,features/log.md.x-amends: <feature-id>on a change still in shaping. Deltas name the spec-unit IDs they add, modify or remove. Typed relationships wait for upstream.README.mdandAGENTS.md. Notype, so they are not concepts and keep their current roles..featurefiles. Assets. A delta can name a whole scenario file as one spec unit, and no Markdown wrapper duplicates it.typeis in the closed list, thatstatusmatches the document's path, and that indexes are fresh.skills/okf-generate/scripts/validate.py, pinned to that commit. This repository'sokf-bundleskill targets v0.2, so it becomes a third consumer once its upgrade, okf-bundle: upgrade from OKF v0.2 to v0.3 #43 (okf-bundle v0.3 upgrade), lands. This issue's own pull request delivers the profile: the reference, the index generator, the profile checks, and a fixture that tests both consumers.Status
OKF
statusfollows from the path:draftinideas/andshaping/,stablefor ratified changes and feature specs, anddeprecatedfor archived changes.This issue closes with the final 0.2.0 pull request. The profile ships as a reference file in the skill, recorded in an ADR on product documents as one OKF bundle rooted at
docs/product/, with a closedtypelist and opentags.The profile's fixture covers:
index.mdkeeping its front matter through regeneration;log.mdwithout front matter;typeandstatusfor the foundation documents, research notes, the delivery plan, the open-questions register and vision companions (typevision, tagcompanion).The profile's own checks stay separate from generic OKF conformance. A bundle can pass the upstream validator and still fail the profile.
feat(product-development): add the OKF profile index generator and ch…
docs(product-development): add the OKF profile reference
prometheas commentedon Nov 29, 2026
Open decisions for the maintainer
Recorded during the 0.2.0 implementation (PR #51, the OKF v0.3 profile). The PR ships the interim behavior below and leaves these open:
log.mdlists the newest date first; the upstream validator only warns when it doesn't. The profile keeps product-development: add feature-evolution pathway with rationale provenance #23's oldest-first order for feature and lineage logs. Keep oldest-first, or switch to newest-first?deprecated; the current constitution and vision, vision companions,roadmap.md,open-questions.mdand research notes arestable. Confirm, or set a different rule (for exampledraftfor research notes).Neither blocks the 0.2.0 work.
fix(product-development): vendor the OKF licence byte for byte
test(product-development): check every log template date heading exactly
fix(product-development): write the OKF fixture deltas to the delta c…
fix(product-development): read OKF front matter as YAML
fix(product-development): never treat README.md or AGENTS.md as concepts
fix(product-development): escape generated index link labels
fix(product-development): give every visible directory an index
fix(product-development): keep root index front matter as bytes
28 remaining items
fix(product-development): write log entries as an OKF list under date…
test(product-development): reject reserved index.md and log.md as del…
chore(product-development): exempt only the vendored OKF files from w…
fix(product-development): write board-mapping and open-questions logs…
fix(product-development): quote front matter example descriptions
fix(product-development): refuse deltas that target index.md or log.md
docs(product-development): qualify the bundle-path symbolic link rule
test(product-development): read fixture log paths NUL-separated
feat(product-development): add the OKF v0.3 profile, index generator …
fix(product-development): permit indexes and split entry in promotion…
fix(product-development): run scripts from the installed skill path
fix(product-development): generate OKF indexes during Project Setup
fix(product-development): reserve archive as a change name
fix(product-development): treat a missing bundle root as unfinished s…
fix(product-development): resolve release review findings (#61)