Skip to content

docs: complete public API docstrings with examples (RM-337) - #52

Draft
rmems wants to merge 3 commits into
mainfrom
cursor/public-api-docstrings-84fb
Draft

docs: complete public API docstrings with examples (RM-337)#52
rmems wants to merge 3 commits into
mainfrom
cursor/public-api-docstrings-84fb

Conversation

@rmems

@rmems rmems commented Sep 5, 2026

Copy link
Copy Markdown
Owner

REPL help and generated docs now include Arguments, Returns, and a usage example for every exported SparseBrain / EnsembleBrain entry point, plus the reference LSM helpers.

Ensemble aggregation weights [0.4, 0.3, 0.2, 0.1] (Fast → Integrator) are documented on the type and constructor. _init_ref_lsm! states when to call it manually versus relying on lazy first-step init. Examples assume a CUDA device.

Closes #20
RM-337: https://linear.app/rpd-34/issue/RM-337

Validation

julia --project -e 'using Pkg; Pkg.test()' on this Cloud VM (no CUDA): 23 passed, 1 skipped (GPU). @doc SparseBrain / @doc step! / @doc LiquidCortex.run_lsm_step show Arguments, Returns, and Examples. Docs-only; no runtime behavior change.

Open in Web Open in Cursor 

Summary by cubic

Completes public API docstrings for SparseBrain / EnsembleBrain and the reference LSM helpers so REPL help and generated docs now include Arguments, Returns, and usage examples. Docs-only; no runtime behavior changes. Closes #20 (RM-337: https://linear.app/rpd-34/issue/RM-337).

Documented details worth noting

  • Ensemble aggregation weights [0.4, 0.3, 0.2, 0.1] (Fast → Integrator) are now documented on the type and constructor.
  • _init_ref_lsm! now states when to call it manually versus relying on lazy first-step init.
  • Plasticity modes are backtick-escaped so they render as identifiers in generated docs.
  • All examples assume a CUDA device.

Written for commit 047257d. Summary will update on new commits.

Review in cubic

cursoragent and others added 2 commits September 5, 2026 03:28
Add Arguments, Returns, and usage examples for SparseBrain,
EnsembleBrain, step!/ensemble_step!, readout and diagnostics
helpers, and the reference LSM entry points (RM-337).

Closes #20

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@linear-code

linear-code Bot commented Sep 5, 2026

Copy link
Copy Markdown

RM-337

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR successfully completes public API docstrings with proper structure and examples. All functions now include Arguments, Keyword Arguments, Returns, and Examples sections following Julia documentation conventions. No runtime behavior changes - documentation only.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Co-authored-by: Codex <noreply@openai.com>
@rmems rmems self-assigned this Sep 5, 2026
@rmems rmems added documentation Improvements or additions to documentation julia Julia related work labels Sep 5, 2026
@codecov

codecov Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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 julia Julia related work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[LiquidCortex.jl] GH#20 — Add complete docstrings with examples to all public API functions

2 participants