Skip to content

docs: drop issue numbers, dangling refs and dead missing-guards - #389

Merged
seabbs merged 3 commits into
mainfrom
claude/prs-issues-triage-p548ev-docs-standards
Sep 7, 2026
Merged

seabbs merged 3 commits into
mainfrom
claude/prs-issues-triage-p548ev-docs-standards

Conversation

@seabbs-bot

Copy link
Copy Markdown
Collaborator

Closes #385
Closes #387
Closes #368

Three documentation hygiene issues in one sweep, none of which changes behaviour.

Issue numbers on tutorial pages (#385)

sir-ode.md said reverse-mode NUTS through the ODE solver was a Turing and SciMLSensitivity gap and cited an issue.
#375 showed the block is in how the package builds its ODEProblem, so the sentence now says that and cites nothing.
time-varying-damping.md said higher-order time-varying AR coefficients were tracked in an issue.
It now says they are not built yet.

The third page, catalyst-ode.md, is rewritten on #377, which already drops its citation.
It is left alone here so the two do not conflict.

Dangling @refs (#387)

Per symbol, following standard 12.

Symbol Route Why
AbstractBroadcastRule joins public An abstract type that exists to be subtyped, with broadcast_n and broadcast_rule already exported for it.
ImportedRate plain code The resolved modifier the scan uses. A user constructs ImportedCases and never names this.
concrete_observations plain code Internal narrowing helper.
InfectionNoiseDraws plain code Lives on #348 only, fixed there in c862312.

Dead missing-guards (#368)

renewal-negbin.md fits a NegativeBinomialError with no delay, so every index of y_t is scored.
predictive_bands wrapped every read in a try/catch that filled unscored days with missing, and credible_bands, ci_ribbon! and multi_ci_ribbon! carried the skipmissing and findall(!ismissing, ...) paths to match.
None of it could fire.
The helpers now read the chain directly.
split-observations.md keeps its own copies, because its streams have different lead-ins.

Checks

Every @setup and @example block on the edited page parses.
Runic is clean over src and the page.
The docs build is what verifies the rendered result, and it runs on this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Lw3PbYZfA1dZhfaaE9tbdp


Generated by Claude Code

…the docs

Two tutorial pages pointed a reader at an issue by number, against
standard 8. sir-ode.md now states the block in the package's own
ODEProblem construction, which is the cause, and time-varying-damping.md
states that a higher-order AR(p) is not built yet. The Catalyst page's
citation goes with the rewrite already on its own branch.

Four @ref targets were neither exported nor public. AbstractBroadcastRule
is an extension point, so it joins the public list. ImportedRate and
concrete_observations are internal, so their references become plain
code.

renewal-negbin.md fits a model with no delay, so every index of y_t is
scored. Its plotting helpers no longer guard against unscored days they
cannot have.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lw3PbYZfA1dZhfaaE9tbdp
@seabbs-bot
seabbs-bot requested a review from seabbs as a code owner September 5, 2026 21:41

@seabbs-review-bot seabbs-review-bot 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.

This PR removes GitHub issue-number references from three tutorial docs, drops @ref links to non-public symbols (concrete_observations, ImportedRate), and adds the already-documented AbstractBroadcastRule to the public list so its existing @ref links resolve; it also strips missing-value handling from renewal-negbin.md helper functions that is genuinely unreachable in that tutorial (no reporting delay is used). Overall sound and consistent with the no-issue-numbers standard, but one edit goes beyond removing an issue number and substitutes an unverified technical claim.

Automated first pass by seabbs-review-bot (Claude sonnet), triggered by: first pass. Not a human review. Comment @seabbs-review-bot to ask for another pass: @seabbs any time, the author's agent once it has pushed changes. Add the no-review label to opt this PR out. Ping @seabbs with any questions.

Comment thread docs/src/tutorials/sir-ode.md Resolved
@seabbs-review-bot seabbs-review-bot Bot added the llm-reviewed Reviewed by seabbs-review-bot label Sep 5, 2026
The cause of the reverse-mode block on the hand-coded ODE path is not
established anywhere in the repository, so the page says only what is
true today.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lw3PbYZfA1dZhfaaE9tbdp
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Try this Pull Request!

Option 1: Julia Package Manager

Open Julia and type:

import Pkg
Pkg.activate(temp=true)
Pkg.add(url="https://github.com/EpiAware/ComposableTuringIDModels.jl", rev="claude/prs-issues-triage-p548ev-docs-standards")
using ComposableTuringIDModels

Option 2: Local Checkout

If you have the repo locally:

git checkout claude/prs-issues-triage-p548ev-docs-standards
julia --project=. -e "using Pkg; Pkg.instantiate()"

@github-actions

github-actions Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark comparison vs base

Minimum time per call. Buckets are PR time as a % of base, so lower is faster (🟢 faster, ⚪ within 5%, 🔴 slower). Counts of benchmarks per bucket:

Group 🟢 <50% 🟢 50–75% 🟢 75–95% ⚪ 95–105% 🔴 105–125% 🔴 125–150% 🔴 >150%
Evaluation · 6 3 · · · ·
ForwardDiff · · 1 · 1 · ·
ReverseDiff (tape) · 1 · 1 · · ·
Mooncake reverse · 2 · · · · ·
Enzyme reverse · 1 · · · · ·
Evaluation — 9 benchmarks (by time change)
Benchmark base PR time memory
Model evaluation / DirectInfections+Poisson / forward 1.12 μs 786.0 ns 🟢 0.7× ⚪ 1.0×
Model evaluation / RandomWalk latent / rand 460.0 ns 329.0 ns 🟢 0.72× ⚪ 1.0×
Model evaluation / Renewal+NegativeBinomial / rand 2.18 μs 1.58 μs 🟢 0.72× ⚪ 1.0×
Model evaluation / RandomWalk latent / forward 420.0 ns 308.0 ns 🟢 0.73× ⚪ 1.0×
Model evaluation / DirectInfections+Poisson / rand 661.0 ns 487.0 ns 🟢 0.74× ⚪ 1.0×
Model evaluation / AR latent / rand 631.0 ns 465.0 ns 🟢 0.74× ⚪ 1.0×
Model evaluation / Renewal+NegativeBinomial / forward 4.72 μs 3.55 μs 🟢 0.75× ⚪ 1.0×
Model evaluation / AR latent / forward 521.0 ns 398.0 ns 🟢 0.76× ⚪ 1.0×
Sampling / NUTS (DirectInfections+Poisson, 50 draws) 94.02 ms 87.87 ms 🟢 0.93× ⚪ 1.0×
AD gradients — 7 benchmarks (by time change)
Benchmark base PR time memory
AD gradients / DirectInfections+Poisson posterior / Enzyme reverse 3.52 μs 2.47 μs 🟢 0.7× ⚪ 1.0×
AD gradients / DirectInfections+Poisson posterior / Mooncake reverse 8.75 μs 6.22 μs 🟢 0.71× ⚪ 1.0×
AD gradients / DirectInfections+Poisson posterior / ReverseDiff (tape) 103.13 μs 75.97 μs 🟢 0.74× ⚪ 1.0×
AD gradients / AR latent logjoint / Mooncake reverse 5.39 μs 4.01 μs 🟢 0.74× ⚪ 1.0×
AD gradients / AR latent logjoint / ForwardDiff 8.18 μs 9.33 μs 🔴 1.14× ⚪ 1.0×
AD gradients / DirectInfections+Poisson posterior / ForwardDiff 13.81 μs 11.93 μs 🟢 0.86× ⚪ 1.0×
AD gradients / AR latent logjoint / ReverseDiff (tape) 105.88 μs 101.5 μs ⚪ 0.96× ⚪ 1.0×

@codecov

codecov Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
ad-enzyme-forward 63.32% <ø> (ø)
ad-enzyme-reverse 62.11% <ø> (ø)
ad-forwarddiff 62.54% <ø> (ø)
ad-mooncake-forward 62.54% <ø> (ø)
ad-mooncake-reverse 62.54% <ø> (ø)
ad-reversediff 62.73% <ø> (ø)
ad-reversediff-compiled 62.73% <ø> (ø)
unit 93.96% <ø> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/base/base.jl 50.00% <ø> (ø)
...servation_models/ObservationErrorModels/methods.jl 100.00% <ø> (ø)
src/steps/ImportedCases.jl 90.90% <ø> (ø)
src/steps/RenewalStep.jl 92.98% <ø> (ø)

... and 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The rebuild-coverage test item added in #372 does
`using InteractiveUtils: subtypes`, but the stdlib was never added to
`test/Project.toml`. Julia 1.12 refuses to load a stdlib that is not in
the active environment, so every test matrix job on a branch carrying
that item errors in `reconstruction.jl`.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lw3PbYZfA1dZhfaaE9tbdp
(cherry picked from commit 4d7322a)

Copy link
Copy Markdown
Collaborator Author

CI status on 08da53b.

Coverage, the codecov checks and every test job so far are green.
downgrade-compat / Downgrade Compat was cancelled at the reusable workflow's hard-coded 45-minute job cap (downgrade.yml in EpiAware/.github at the pinned ref, no timeout_minutes input), after 45 minutes on the julia-runtest step under tonight's runner load.
The cap is filed as EpiAware/EpiAwarePackageTools.jl#521.
I will re-run the job once when the rest of the Test run has finished, since GitHub will not re-run a single job of a run still in progress.

Documenter / Documentation was cancelled by the repository-wide docs queue (EpiAware/EpiAwarePackageTools.jl#522) and will be re-run when the queue has room.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Update on 08da53b.

Every test matrix job, coverage / coverage and both Codecov checks are green, and the AD jobs are running.
downgrade-compat / Downgrade Compat was cancelled a second time at the 45-minute cap (attempt 2 ran 05:27 to 06:13 UTC on the julia-runtest step), so I am not re-running it again.
This PR changes documentation and the public list only, so the downgrade run exercises nothing this diff touches.
The cap itself is EpiAware/EpiAwarePackageTools.jl#521.

Documenter / Documentation is still waiting on the repository-wide docs queue and will be re-run when it has room.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

llm-reviewed Reviewed by seabbs-review-bot

Projects

None yet

3 participants