Skip to content

docs(runtime): move narrative comments into crate docs, trim inline chatter - #1900

Draft
ohdearquant wants to merge 1 commit into
mainfrom
chore/doc-trim-khive-runtime
Draft

docs(runtime): move narrative comments into crate docs, trim inline chatter#1900
ohdearquant wants to merge 1 commit into
mainfrom
chore/doc-trim-khive-runtime

Conversation

@ohdearquant

Copy link
Copy Markdown
Owner

First pass of a comment-to-docs alignment series. Extracts design narratives from khive-runtime's two comment-densest files into structured crate docs and trims the inline comments to constraint one-liners.

  • crates/khive-runtime/docs/operations.md (new): module-split rationale, fault-injection static-state design, and concurrency/correctness notes for atomic_hard_delete_with_edge_purge, merge_traversal_paths_by_root, and update_edge_symmetric_dml.
  • crates/khive-runtime/docs/api/secret_gate.md (extended): bridge-fragment reconstruction rationale and the full per-token detection sequence for check_entropy_heuristic.
  • secret_gate.rs: 1368 → 1129 comment lines. operations.rs: 2040 → 1924 (partial pass; a follow-up will cover the remainder).
  • Comment and doc lines only — no executable code, signatures, attributes, or test logic changed (verified by filtering the diff for non-comment changed lines: none).
  • Gates: cargo fmt -p khive-runtime --check and RUSTDOCFLAGS="-D warnings" cargo doc -p khive-runtime --no-deps both pass.

…hatter

Extract design narratives from operations.rs and secret_gate.rs into
crates/khive-runtime/docs/ (new operations.md; extended api/secret_gate.md)
and trim inline comments to constraint one-liners: -467 comment lines in
code, +222 lines of structured crate docs. Comment and doc lines only; no
executable code, signatures, or test logic changed. cargo fmt --check and
cargo doc -D warnings both pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant