Proposal: bundle authoring metadata for OKF #113
filipdanisko
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’d like to propose a small optional metadata layer for OKF bundles that helps tools and agents understand how a bundle should be discovered, presented, and loaded.
This is related to #96 Metadata orientation hints, but focused specifically on bundle authoring: metadata declared by the bundle itself, so consumers can process the bundle without requiring separate external configuration.
Problem
An OKF bundle can be valid and portable, but a generic consumer still has to infer several things:
For human readers, prose documentation may be enough. For tools, it would be useful to have a small, predictable, machine-readable authoring convention.
Proposal
Allow OKF bundles to optionally declare bundle-level metadata in the root
index.mdfrontmatter.Example:
The metadata would be optional. A bundle with only
okf_version: "0.1"would remain valid and consumable.Entrypoints
The bundle-level metadata can define named entrypoints, for example:
If
okf_bundle_entry_defaultis missing, consumers should fall back toindex.mdat the bundle root.Entry-specific usage hints
For entry-specific hints, there is already a related proposal: [#96 Metadata orientation hints](#96).
This proposal focuses on bundle-level metadata in the root
index.md. Together, bundle-level entrypoint metadata and document-level orientation hints would let consumers first discover the right bundle and entrypoint, then use document-level metadata to understand when and how that specific entrypoint should be loaded.Why bundle-authored metadata?
Consumers may use this metadata for:
Consumers that do not understand these fields should ignore them.
Consumers should not reject a bundle just because the metadata is missing or partially understood.
Relationship to OKF v0.1
This proposal is not meant to make OKF heavier or stricter. All metadata described here is optional.
Closing thoughts
This proposal is meant to open the discussion. If the idea resonates, I’d be happy to help specify it further to the level needed for a concrete spec contribution.
Beta Was this translation helpful? Give feedback.
All reactions