Expand description
OKF bundle export (decided.output.okf + the recency join) — decided export --okf, per PORT-CONTRACT.d/17 §4.
A derived tree of Markdown files: one per typed artifact at its path
relative to the exported corpus root, plus generated index.md and
log.md. OKF v0.2 generated.at derives from the last git commit time
with the committer’s stored offset preserved (%cI, ADR-045); when git
cannot answer, generated is omitted and log.md degrades to a placeholder.
Structs§
- Artifact
Recency - One artifact’s git-derived authored times as verbatim-offset ISO strings
(already
fromisoformat().isoformat()round-tripped), orNonewhen git does not know. MirrorsArtifactRecencywithwith_creation=True.
Functions§
- artifact_
recency artifact_recency(directory, with_creation=True), restricted to the export’s artifact set (identical to the oracle’s recognised-walk set). Outside a repository every value isNone— no error crosses the boundary (ADR-045).- render_
okf_ bundle render_okf_bundle(export, recency, root)—{relative path: contents}in a sorted map (the CLI writessorted(bundle.items())).