Skip to content

docs(cli): NodeCommand::Reload lists only two reloadable fields; the set is now four #1623

Closed

Description

@yigitdot

crates/common/src/cli/node.rs (the NodeCommand::Reload doc comment, rendered as decdn node reload --help) says:

Currently payment.rate_per_mb and observability.log_level are reloadable; other fields are logged as ignored.

The actual reloadable set in crates/node/src/runtime/reload.rs is four entries: payment.rate_per_mb, observability.log_level, cache.pinned_hashes, and all of security.*.

Two places in the same file now state the correct set (added by #1614, ~550 lines below), so the file contradicts itself and the stale copy is the one operators see in --help.

Trivial fix — update the Reload doc to the four-entry set and point at runtime/reload.rs as the authority so the next addition has one place to update.

Found by a comment-accuracy pass on #1614. Out of scope for that PR (it predates it and is unrelated to key rotation), so filing separately per the repo convention of not bundling unrelated follow-ups.

Activity

  1. added
    kind:docs
    area:cli
    prio:low
    on Aug 5, 2026
  2. github-actions commented on Aug 5, 2026

    @github-actions

    🎯 Triage report

    The --help text for decdn node reload (NodeCommand::Reload doc comment in crates/common/src/cli/node.rs) lists only two reloadable config fields, but the actual reloadable set in crates/node/src/runtime/reload.rs is four: payment.rate_per_mb, observability.log_level, cache.pinned_hashes, and security.*. The stale copy is what operators see at runtime. The reporter identified it during a comment-accuracy pass on #1614 and filed it separately per repo convention.

    📊 Assessment

    Dimension Value Reasoning
    Type Task Mechanical doc correction; no design decisions required
    Labels documentation, cli, low (already applied) All three are accurate; no additions needed
    Coding agent Suitable Single-file doc change with a precise location (crates/common/src/cli/node.rs), clear before/after content, and a pointer to the authoritative source (runtime/reload.rs)
    💡 Notes and suggestions

    Fix location: crates/common/src/cli/node.rs — the /// ... doc comment on the Reload variant of NodeCommand.

    What to change:

    • Replace the two-item enumeration with the full four-entry set: payment.rate_per_mb, observability.log_level, cache.pinned_hashes, security.*.
    • Add a note pointing to crates/node/src/runtime/reload.rs as the single authoritative list, so the next field addition has one place to update (reducing the chance of this recurring).

    Suggested sub-tasks:

    • Update the Reload variant doc comment in crates/common/src/cli/node.rs
    • Verify cargo run -p decdn -- node reload --help output matches the updated doc
    • Search for any other doc strings or ADR references that enumerate the reloadable set

    Generated by Agentic Triage for #1623 · sonnet46 · 19.2 AIC · ⌖ 7.01 AIC · ⊞ 6K · ◷

    Add this agentic workflow to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/issue-triage.md@94ec5db57374c5b04a4b8eef8b4413f9af44d63f
    
  3. moved this from Backlog to Ready in deCDNon Aug 20, 2026
  4. moved this from Ready to In progress in deCDNon Aug 24, 2026
  5. moved this from In progress to Done in deCDNon Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clikind:docsprio:low

Type

Fields

Priority

Low

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions