Skip to content

docs: add missing pub API doc comments for zeph-common, zeph-db, zeph-context#4541

Merged
bug-ops merged 1 commit into
mainfrom
4509-4510-4512-doc-comments
May 28, 2026
Merged

docs: add missing pub API doc comments for zeph-common, zeph-db, zeph-context#4541
bug-ops merged 1 commit into
mainfrom
4509-4510-4512-doc-comments

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented May 28, 2026

Summary

  • Add /// doc comments and #[must_use] to Secret::new and Secret::expose in zeph-common with security notes and runnable examples
  • Add /// doc comment and #[must_use] to the PostgreSQL variant of sanitize_fts_query in zeph-db to match the SQLite variant
  • Add /// doc comments to three undocumented public functions in zeph-context: allocate_with_opts, compaction_tier, and remove_tool_responses_middle_out

Test plan

  • cargo +nightly fmt --check — pass
  • cargo clippy --workspace -- -D warnings — pass
  • cargo nextest run --workspace --lib --bins — 10113 passed
  • cargo test --doc -p zeph-common -p zeph-db -p zeph-context — all doc-tests pass
  • RUSTDOCFLAGS="--deny rustdoc::broken_intra_doc_links" cargo doc --no-deps -p zeph-common -p zeph-db -p zeph-context — zero broken links
  • RUSTFLAGS="-D warnings" cargo check --workspace --all-targets --features desktop,ide,server,chat,pdf,scheduler --locked — pass

Closes #4509
Closes #4510
Closes #4512

@github-actions github-actions Bot added documentation Improvements or additions to documentation rust Rust code changes size/M Medium PR (51-200 lines) labels May 28, 2026
@bug-ops bug-ops enabled auto-merge (squash) May 28, 2026 17:34
…text methods

- Secret::new: add /// doc comment with security note on zeroization + example
- Secret::expose: add /// doc comment explaining bounded lifetime and zeroization semantics
- sanitize_fts_query (PostgreSQL variant): add /// doc comment (mirrors SQLite variant)
- ContextBudget::allocate_with_opts: expand doc with parameters, return value, and example
- ContextManager::compaction_tier: add comprehensive doc with behavior explanation and example
- remove_tool_responses_middle_out: expand doc with parameters, behavior, and text example

Addresses #4509 (zeph-db), #4510 (zeph-common), #4512 (zeph-context).
@bug-ops bug-ops force-pushed the 4509-4510-4512-doc-comments branch from 549fe1f to c33ad04 Compare May 28, 2026 17:36
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels May 28, 2026
@bug-ops bug-ops merged commit 85ade7f into main May 28, 2026
32 checks passed
@bug-ops bug-ops deleted the 4509-4510-4512-doc-comments branch May 28, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

1 participant