Skip to content

docs: resolve all rustdoc warnings (clippy and compiler already clean) - #574

Merged
senamakel merged 3 commits into
tinyhumansai:mainfrom
senamakel:fix/clippy-warnings
Oct 25, 2026
Merged

senamakel merged 3 commits into
tinyhumansai:mainfrom
senamakel:fix/clippy-warnings

Conversation

@senamakel

@senamakel senamakel commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #573 (epic 7964). Audit of main for clippy findings and compiler warnings.

Before / after

Invocation Before After
cargo clippy --workspace --all-targets -- -D warnings 0 0
cargo clippy --workspace --all-targets --all-features -- -D warnings 0 0
clippy on sqlite / tools / multimodal / png-optimize feature legs 0 0
cargo clippy --all-targets --all-features -- -D warnings in integration-proofs/run-ledger-mongodb 0 0
cargo check --workspace --all-targets --locked 0 0
cargo build --workspace --all-targets (default, all-features) 0 0
cargo fmt --all -- --check clean clean
cargo doc --workspace --no-deps --all-features (rustdoc warnings) 23 0

The only findings were 23 rustdoc warnings (21 rustdoc::private_intra_doc_links, 2 rustdoc::redundant_explicit_links) across harness, harness-tools, orchestration and registry. Fix: links to private items became plain code spans, redundant explicit targets removed. Doc comments only, no behaviour change; no #[allow] added.

Verified

  • RUSTDOCFLAGS='-D warnings' cargo doc --workspace --no-deps --all-features: clean
  • cargo test --workspace --all-features: 6159 passed, 0 failed

Also contains a commit adding and a commit removing stray lint logs (the history is not squashed); net diff is the 21 doc-comment files only.

Summary by CodeRabbit

  • Documentation
    • Refined documentation references and link formatting across the project for clearer, more consistent reading.
    • No runtime behavior or public APIs changed.

senamakel and others added 3 commits October 25, 2026 09:24
Add c1.log, c2.log, chk.log, doc.log, and fmt.log as untracked files.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
… spans

Rustdoc cannot resolve intra-doc links that point at private items, so
`[`Self::foo`]`-style references in public documentation were rewritten as plain
code spans across the harness, orchestration, and registry crates. This keeps
the docs building without broken-link warnings while preserving the same
readable references.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
@tinysweeper

tinysweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Tiny Sweeper review

Verdict: Incomplete · Priority: none
Coverage: Reviewed 9 of 21 files; not reviewed (large PR): crates/tinyagent…, crates/tinyagent…, and 10 additional unreviewed files.
Pull request purpose (title): docs: resolve all ru…

Diagnostics and supporting details

Full summary

Pull request purpose (title): docs: resolve all rustdoc warnings (clippy and compiler already clean). This pull request is a follow-up to #573 titled "docs: resolve all rustdoc warnings (clippy and compiler already clean)". Its stated purpose is to clear the 23 rustdoc warnings found in an audit of main (21 `rustdoc::private_intra_doc_links` and 2 `rustdoc::redundant_explicit_links`) across harness, harness-tools, orchestration, and registry, without adding any `#[allow]` attributes. The diff is doc-comment only: intra-doc links to private items are converted to plain code spans and redundant explicit link targets are removed. No executable behaviour changes. The latest-push delta is unavailable.

Unreviewed paths

  • crates/tinyagents-harness-tools/src/scratchpad/store.rs
  • crates/tinyagents-harness-tools/src/state_block/mod.rs
  • crates/tinyagents-harness/src/context/mod.rs
  • crates/tinyagents-harness/src/cost/mod.rs
  • crates/tinyagents-harness/src/no_progress/post_compaction.rs
  • crates/tinyagents-harness/src/retry/failover.rs
  • crates/tinyagents-harness/src/summarization/task_state/ledger.rs
  • crates/tinyagents-harness/src/title/mod.rs
  • crates/tinyagents-harness/src/tool/deferred/mod.rs
  • crates/tinyagents-harness/src/tool/toolset/external/types.rs
  • crates/tinyagents-orchestration/src/run_progress_ledger/mod.rs
  • crates/tinyagents-registry/src/pricing/mod.rs

Partial review reasons

  • critique: crates/tinyagents-harness-tools/src/scratchpad/store.rs — not selected by the large-review budget
  • security: crates/tinyagents-harness-tools/src/scratchpad/store.rs — not selected by the large-review budget
  • critique: crates/tinyagents-harness-tools/src/state_block/mod.rs — not selected by the large-review budget
  • security: crates/tinyagents-harness-tools/src/state_block/mod.rs — not selected by the large-review budget
  • critique: crates/tinyagents-harness/src/context/mod.rs — not selected by the large-review budget
  • security: crates/tinyagents-harness/src/context/mod.rs — not selected by the large-review budget
  • critique: crates/tinyagents-harness/src/cost/mod.rs — not selected by the large-review budget
  • security: crates/tinyagents-harness/src/cost/mod.rs — not selected by the large-review budget
  • critique: crates/tinyagents-harness/src/no_progress/post_compaction.rs — not selected by the large-review budget
  • security: crates/tinyagents-harness/src/no_progress/post_compaction.rs — not selected by the large-review budget
  • critique: crates/tinyagents-harness/src/retry/failover.rs — not selected by the large-review budget
  • security: crates/tinyagents-harness/src/retry/failover.rs — not selected by the large-review budget
  • critique: crates/tinyagents-harness/src/summarization/task_state/ledger.rs — not selected by the large-review budget
  • security: crates/tinyagents-harness/src/summarization/task_state/ledger.rs — not selected by the large-review budget
  • critique: crates/tinyagents-harness/src/title/mod.rs — not selected by the large-review budget
  • security: crates/tinyagents-harness/src/title/mod.rs — not selected by the large-review budget
  • critique: crates/tinyagents-harness/src/tool/deferred/mod.rs — not selected by the large-review budget
  • security: crates/tinyagents-harness/src/tool/deferred/mod.rs — not selected by the large-review budget
  • critique: crates/tinyagents-harness/src/tool/toolset/external/types.rs — not selected by the large-review budget
  • security: crates/tinyagents-harness/src/tool/toolset/external/types.rs — not selected by the large-review budget
  • critique: crates/tinyagents-orchestration/src/run_progress_ledger/mod.rs — not selected by the large-review budget
  • security: crates/tinyagents-orchestration/src/run_progress_ledger/mod.rs — not selected by the large-review budget
  • critique: crates/tinyagents-registry/src/pricing/mod.rs — not selected by the large-review budget
  • security: crates/tinyagents-registry/src/pricing/mod.rs — not selected by the large-review budget

Review snapshot

Change surface Files Review signal Count
Production 21 Active findings 0
Tests 0 Noted findings 0
Documentation 0 Resolved findings 0
Configuration 0 Pending checks/questions 36

Completeness: Incomplete
Test assessment: No supported feature-to-test mapping was available; this does not mean tests are absent or passed.

What changed

Twenty-one files change with 23 additions and 23 deletions, all confined to documentation comments. Links such as `[`Store`](tinyagents_harness::store::Store)` in the scratchpad store module doc become a plain `[`Store`]` reference, and similar private-item links (`[`ledger`]`, `[`Self::record_tool_effect_started`]`, `[`select_tier`]`, `[`BLOCKED_AFTER_FAILURES`]`, `[`MAX_CANDIDATES`]`, `[`SchemaTransform`]`, `[`is_decorated_id`]`, and others) are converted to plain code spans. The redundant explicit target on `[`AgentProgress`]` in the orchestration run-progress-ledger module doc is dropped, and the `[module docs](self)` link in the retry failover module is replaced with plain text. Some links in the same doc comments remain untouched; the description lane notes these are pre-existing and outside the diff.

Features

  • Modified — Private intra-doc links converted to plain code spans: Removes the `rustdoc::private_intra_doc_links` warnings from the compiled documentation without touching code behaviour or adding lint suppressions. (crates/tinyagents-harness/src/agent_loop/tools.rs impl<State: Send + Sync, Ctx: Send + Sync> AgentHarness<State, Ctx> {, crates/tinyagents-harness/src/context/mod.rs impl<Ctx> RunContext<Ctx> {, crates/tinyagents-harness/src/cost/mod.rs fn select_tier(pricing: &ModelPricing, input_tokens: u64) -> Option<&PriceTier>, crates/tinyagents-harness/src/middleware/library/research_budget.rs pub const WEB_BUDGET_EXHAUSTED_INSTRUCTION: &str = "The direct web research budg, crates/tinyagents-harness/src/middleware/library/tool_policy.rs impl ToolAllowlistMiddleware {, crates/tinyagents-harness/src/middleware/library/unmet_deliverable.rs fn has_extension(segment: &str) -> bool {, crates/tinyagents-harness/src/no_progress/post_compaction.rs impl PostCompactionGuard {, crates/tinyagents-harness/src/steering/mod.rs impl SteeringHandle {, crates/tinyagents-harness/src/steering/types.rs pub struct PauseState {, crates/tinyagents-harness/src/summarization/task_state/ledger.rs const MAX_COMMAND_CHARS: usize = 200;, crates/tinyagents-harness/src/title/mod.rs pub fn collapse_whitespace(input: &str) -> String {, crates/tinyagents-harness/src/tool/toolset/external/types.rs use tinytools::ToolSpec;, crates/tinyagents-harness/src/tool/toolset/mod.rs where, crates/tinyagents-harness/src/tool/toolset/prepared/mod.rs impl<State: Send + Sync, Ctx: Send + Sync> PreparedToolSet<State, Ctx> {, crates/tinyagents-harness/src/tool/toolset/prepared/types.rs pub type SchemaTransform<Ctx> =, crates/tinyagents-registry/src/pricing/mod.rs fn normalize(model: &str) -> String {)
  • Modified — Redundant explicit link targets removed: Clears the `rustdoc::redundant_explicit_links` warnings; the orchestration ledger module doc now uses an implicit `[`AgentProgress`]` link and the retry failover doc reads as plain text. (crates/tinyagents-orchestration/src/run_progress_ledger/mod.rs, crates/tinyagents-harness/src/retry/failover.rs impl FailoverReason {)
  • Modified — Module-doc and type-doc link cleanup in harness-tools and steering/deferred modules: Removes remaining private-link warnings in module-level and type-level documentation; documentation text meaning is preserved. (crates/tinyagents-harness-tools/src/scratchpad/store.rs, crates/tinyagents-harness-tools/src/state_block/mod.rs, crates/tinyagents-harness/src/steering/types.rs use tinyinference_llm::message::Message;, crates/tinyagents-harness/src/tool/deferred/mod.rs)

Tests

No supported feature-to-test mapping was produced. Test execution is not inferred.

Findings

No active actionable findings.

Before merge

  • Complete the critique review for crates/tinyagents-harness-tools/src/scratchpad/store.rs, crates/tinyagents-harness-tools/src/state_block/mod.rs, crates/tinyagents-harness/src/context/mod.rs, crates/tinyagents-harness/src/cost/mod.rs, crates/tinyagents-harness/src/no_progress/post_compaction.rs, crates/tinyagents-harness/src/retry/failover.rs, crates/tinyagents-harness/src/summarization/task_state/ledger.rs, crates/tinyagents-harness/src/title/mod.rs, crates/tinyagents-harness/src/tool/deferred/mod.rs, crates/tinyagents-harness/src/tool/toolset/external/types.rs, crates/tinyagents-orchestration/src/run_progress_ledger/mod.rs, crates/tinyagents-registry/src/pricing/mod.rs.
  • Complete the security review for crates/tinyagents-harness-tools/src/scratchpad/store.rs, crates/tinyagents-harness-tools/src/state_block/mod.rs, crates/tinyagents-harness/src/context/mod.rs, crates/tinyagents-harness/src/cost/mod.rs, crates/tinyagents-harness/src/no_progress/post_compaction.rs, crates/tinyagents-harness/src/retry/failover.rs, crates/tinyagents-harness/src/summarization/task_state/ledger.rs, crates/tinyagents-harness/src/title/mod.rs, crates/tinyagents-harness/src/tool/deferred/mod.rs, crates/tinyagents-harness/src/tool/toolset/external/types.rs, crates/tinyagents-orchestration/src/run_progress_ledger/mod.rs, crates/tinyagents-registry/src/pricing/mod.rs.
  • Review uncovered paths: crates/tinyagents-harness-tools/src/scratchpad/store.rs, crates/tinyagents-harness-tools/src/state_block/mod.rs, crates/tinyagents-harness/src/context/mod.rs, crates/tinyagents-harness/src/cost/mod.rs, crates/tinyagents-harness/src/no_progress/post_compaction.rs, crates/tinyagents-harness/src/retry/failover.rs, crates/tinyagents-harness/src/summarization/task_state/ledger.rs, crates/tinyagents-harness/src/title/mod.rs, crates/tinyagents-harness/src/tool/deferred/mod.rs, crates/tinyagents-harness/src/tool/toolset/external/types.rs, crates/tinyagents-orchestration/src/run_progress_ledger/mod.rs, crates/tinyagents-registry/src/pricing/mod.rs.
Agent review details

critique

  • Conclusion: Neutral
  • Scope reviewed: incomplete; unanswered files: crates/tinyagents-harness-tools/src/scratchpad/store.rs, crates/tinyagents-harness-tools/src/state_block/mod.rs, crates/tinyagents-harness/src/context/mod.rs, crates/tinyagents-harness/src/cost/mod.rs, crates/tinyagents-harness/src/no_progress/post_compaction.rs, crates/tinyagents-harness/src/retry/failover.rs, crates/tinyagents-harness/src/summarization/task_state/ledger.rs, crates/tinyagents-harness/src/title/mod.rs, crates/tinyagents-harness/src/tool/deferred/mod.rs, crates/tinyagents-harness/src/tool/toolset/external/types.rs, crates/tinyagents-orchestration/src/run_progress_ledger/mod.rs, crates/tinyagents-registry/src/pricing/mod.rs
  • Lane summary: Reviewed 9 of 21 files — 12 not reviewed. Reviewed 9 files; 0 findings. 12 files were omitted: not selected by the large-review budget.

security

  • Conclusion: Neutral
  • Scope reviewed: incomplete; unanswered files: crates/tinyagents-harness-tools/src/scratchpad/store.rs, crates/tinyagents-harness-tools/src/state_block/mod.rs, crates/tinyagents-harness/src/context/mod.rs, crates/tinyagents-harness/src/cost/mod.rs, crates/tinyagents-harness/src/no_progress/post_compaction.rs, crates/tinyagents-harness/src/retry/failover.rs, crates/tinyagents-harness/src/summarization/task_state/ledger.rs, crates/tinyagents-harness/src/title/mod.rs, crates/tinyagents-harness/src/tool/deferred/mod.rs, crates/tinyagents-harness/src/tool/toolset/external/types.rs, crates/tinyagents-orchestration/src/run_progress_ledger/mod.rs, crates/tinyagents-registry/src/pricing/mod.rs
  • Lane summary: Reviewed 9 of 21 files — 12 not reviewed. Reviewed 9 files; 0 findings. 12 files were omitted: not selected by the large-review budget.

tests

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: Every changed line is a documentation edit converting intra-doc links into plain code spans; no executable behaviour changes, so no tests are required. The edits are consistent with the code they describe (e.g. the run_progress_ledger module doc still refers to `AgentProgress`, which is imported on line 16). _The code index is behind this pull request (indexed at `ce0cfd5dce80`), so retrieved context may be out of date._

commits

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The commits lane answered with no findings, reporting no sensitive content in committed files.
  • Lane summary: No sensitive content in committed files. _The code index is behind this pull request (indexed at `ce0cfd5dce80`), so retrieved context may be out of date._

description

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The description lane answered with no findings and considered the diff consistent with the claim of zero rustdoc warnings and no behaviour change; unchanged pre-existing links in the same doc comments were not treated as reportable.
  • Lane summary: The diff is a doc-comment-only change replacing intra-doc links to private items with plain code spans and dropping a redundant explicit link target, which matches the description's claim of 0 rustdoc warnings with no behaviour change. Two hunks leave other links in the same doc comments untouched, but those are not touched by the diff and are pre-existing, so nothing reportable stands out. _The code index is behind this pull request (indexed at `ce0cfd5dce80`), so retrieved context may be out of date._
Evidence and run details
  • Models: ladder/vectors-oai3, deepseek-v4.1-flash
  • Spend: $0.000423
  • Tokens: 234684 input · 3159 output · 11776 cached · 542 embedding
  • Updated: 2026-10-25T09:28:54Z
Head State Pass summary
bfceb6f1b2b9 incomplete 0 active finding(s), 0 resolved finding(s) (at 2026-10-25T09:28:54Z)

tinysweeper 0.1.2

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-25T09:28:25.751834Z bfceb6f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d8862a8f-a344-4cb3-8792-eae212d368aa
Commits

Reviewing files that changed from the base of the PR and between f7b8db0 and bfceb6f.

Files selected for processing: 21
  • crates/tinyagents-harness-tools/src/scratchpad/store.rs
  • crates/tinyagents-harness-tools/src/state_block/mod.rs
  • crates/tinyagents-harness/src/agent_loop/tools.rs
  • crates/tinyagents-harness/src/context/mod.rs
  • crates/tinyagents-harness/src/cost/mod.rs
  • crates/tinyagents-harness/src/middleware/library/research_budget.rs
  • crates/tinyagents-harness/src/middleware/library/tool_policy.rs
  • crates/tinyagents-harness/src/middleware/library/unmet_deliverable.rs
  • crates/tinyagents-harness/src/no_progress/post_compaction.rs
  • crates/tinyagents-harness/src/retry/failover.rs
  • crates/tinyagents-harness/src/steering/mod.rs
  • crates/tinyagents-harness/src/steering/types.rs
  • crates/tinyagents-harness/src/summarization/task_state/ledger.rs
  • crates/tinyagents-harness/src/title/mod.rs
  • crates/tinyagents-harness/src/tool/deferred/mod.rs
  • crates/tinyagents-harness/src/tool/toolset/external/types.rs
  • crates/tinyagents-harness/src/tool/toolset/mod.rs
  • crates/tinyagents-harness/src/tool/toolset/prepared/mod.rs
  • crates/tinyagents-harness/src/tool/toolset/prepared/types.rs
  • crates/tinyagents-orchestration/src/run_progress_ledger/mod.rs
  • crates/tinyagents-registry/src/pricing/mod.rs

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

This PR updates documentation references across the harness, harness-tools, orchestration, and registry crates. It adjusts Rustdoc links, code formatting, and one ledger description. No executable behavior or public declarations change.

Changes: Rustdoc reference updates

Layer / File(s) Summary
Documentation reference corrections
crates/tinyagents-harness-tools/src/{scratchpad/store.rs,state_block/mod.rs}, crates/tinyagents-harness/src/*, crates/tinyagents-orchestration/src/run_progress_ledger/mod.rs, crates/tinyagents-registry/src/pricing/mod.rs
Documentation references were changed between Rustdoc links and code-formatted text, or requalified. The state-block ledger description was also reworded. No implementation behavior changed.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

Suggested reviewers: tinysweeper

Merge Risk: Minimal · up to bfceb

No actionable merge-blocking risk is identified in this documentation-only change.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: resolving rustdoc warnings through documentation-only updates.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 21 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks each link with care
Then sets the code in backticks there
No runtime path is changed today
The docs now point a clearer way
I hop away, pleased with the repair

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

@tinysweeper tinysweeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

tinysweeper could not complete coverage (12 unanswered item(s)), so this is not an approval.

Diagnostics

Total spend: $0.0004

@tinysweeper tinysweeper Bot added the priority: p3 Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect. label Oct 25, 2026
@senamakel
senamakel merged commit 5bc2d1c into tinyhumansai:main Oct 25, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: p3 Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant