# ckb-export-okf — edge cases Reference material for the `ckb-export-okf` skill. Read when a run hits an unusual situation the main steps don't cover. - **Empty `wiki/entities/` or `wiki/graph/`:** their `index.md` is still regenerated, as an H1 with an empty bullet list. An empty index is spec-valid; the directory is never skipped. - **A future `wiki//` subdirectory:** handled automatically — the script discovers directories dynamically, mirrors them, and generates an index for each. No script changes needed. - **A future `wiki/archived/`:** exported like any other subdirectory. OKF has no notion of archival status; `retention`/`freshness_window_days` already ride along as extension fields for any consumer that cares. - **Non-markdown files in `wiki/`** (e.g. `graph/edges.json`): copied verbatim into the same relative position and listed in their directory's index. Dotfiles (`.gitadd`) are skipped. - **Re-running with no wiki changes:** produces byte-identical output — every directory walk and generated list is sorted. If a run is ever nondeterministic, that's a bug in the script, not expected behavior. --- *Licensed under the Apache License, Version 2.0 — see [LICENSE](../../../LICENSE) at the repository root, or .*