chore(knowledge): group concepts into domain subfolders#2207
Open
claude[bot] wants to merge 1 commit into
Open
chore(knowledge): group concepts into domain subfolders#2207claude[bot] wants to merge 1 commit into
claude[bot] wants to merge 1 commit into
Conversation
The bundle root held 29 concepts in one flat list. Groups them into foundations/, security/, runtimes/, integrations/ and operations/, mirroring the sections the root index already used, each with its own index.md. The root index now enumerates only its own contents plus subdirectories, which is what OKF §8 progressive disclosure asks for. Frontmatter types are unchanged: directory conveys domain, type conveys kind. Rewrites all 155 references from outside the bundle and the intra-bundle links. crates/bashkit/tests/integration/limitations_doc_tests.rs reads limitations.md at runtime, so that path move is covered by cargo test. check_okf.py now rejects dangling bundle-relative links, ignoring code spans and fenced blocks — a bulk path rewrite silently corrupted a threat-model regex payload and a changelog placeholder before this check existed.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | d4ab2df | Commit Preview URL Branch Preview URL |
Jul 26 2026, 05:23 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
The knowledge bundle root held 29 concepts in one flat list. They are now grouped into domain subdirectories, each with its own
index.md:The groups mirror the sections the root
index.mdalready used, so nothing is regrouped — only relocated. The root index now enumerates its own contents plus subdirectories rather than every document, which is what OKF §8 progressive disclosure asks for.Frontmatter
typevalues are unchanged. Directory conveys domain,typeconveys kind; the two are independent, so aSubsystem Designinsecurity/and one inruntimes/share a type and differ only in placement. Collapsing them to a singleSpectype would have cost consumers the routing signal OKF keys on.scripts/check_okf.pygains a dangling-link check: every bundle-relative link must resolve, with code spans and fenced blocks excluded from link scanning.Why
Thirty flat files is past the point where a reader can see the shape of the bundle from its root. OKF supports hierarchy for exactly this, and the section groupings already existed in the index — they just were not reflected on disk.
The link check exists because this change proved the need for it. The bulk path rewrite treated
](...)inside code spans as markdown links and silently corrupted two documents: a TM-DOS-025 regex-backtracking payload in the threat model (grep "a](*b)*c"→grep "a](../*b)*c") and a changelog format placeholder in the release process. Both are reverted here, and the check now catches that class of damage.Before / After
References were rewritten repo-wide and verified to resolve:
just pre-prgreen: fmt, clippy,cargo test, 17 script tests, both OKF gates, andcargo vet(29 fully audited, 6 partially, 592 exempted).Risk
.rs, 27.md, 8.toml, 5.yml, 4.py,justfile), plus intra-bundle links. All verified to resolve; a dangling one now fails CI.crates/bashkit/tests/integration/limitations_doc_tests.rsreadslimitations.mdat runtime viaCARGO_MANIFEST_DIR, socargo testproves that move rather than assuming it.knowledge/*.mdpath will conflict, so this wants merging promptly.Checklist
Generated by Claude Code