Skip to content

Release readiness: what is still open before 0.2.0 #921

Backlog

Description

@seabbs-bot

Track what stands between main and a releasable 0.2.0.

Open now

Decided

Earlier text

Earlier title: Release readiness: work in flight and gates

Aim

A releasable package this week, with nothing held back.
This issue tracks the work and the gates.

Work in flight

Each item is a PR against the claude/amazing-shannon-6nrow8 branch (#907), which then merges to main.

Queued behind those

  • Test suite trim: scenario registry, one conformance test per piece, default suite time cut; after the extension-protocol PR, which ports the fixtures.
  • Downstream on the final API: BVDOutbreakSize, ComposableTuringIDModels, Wren models, each with its own tests green and its hand-written glue removed where the package now covers it.
  • Public API freeze: export and public lists reviewed name by name against Stabilise the call API before the release #916.
  • Release mechanics: version, compat bounds, release notes, registration.

Gates for release

  • All test jobs green on main on Julia 1.11 to 1.13: unit, quality, JET, docs, doctests, and every AD backend the package claims.
  • No AD job cancelled by a time limit.
  • Patch and project coverage at target.
  • Interleaved benchmarks at parity or better against the previous main, and against the hand-written loops and gradients, with any slower case explained.
  • Device tests pass (JLArrays and OpenCL); what cannot be measured without a GPU runner is stated in the docs.
  • The three downstream packages pass their own tests on the release commit.
  • No open issue without an owner and a stated reason.

Decisions needed from the owner


Generated by Claude Code

Activity

  1. seabbs-bot commented on Dec 1, 2026

    @seabbs-bot
    CollaboratorAuthor

    Status of the item "Every open issue settled", from #925.

    Three things in that work bear on the gates here:

    1. "No AD job cancelled by a time limit" cannot be met without a workflow change. Both reverse jobs were cancelled at 75 minutes on Pure step, record markers and the first part of the redesign #907. Enzyme reverse AD job runs close to its 75-minute cap: where the time goes #526 has the measurement and the kit request; EpiAwarePackageTools.update("."; ad_timeout = 110) is the stopgap.
    2. ReverseDiff: ReverseDiff compiled tape gives wrong values for the transpose of normalised table increments #913 is fixed in Settle the open issues: a compiled-tape fix and the outcome of each issue #925, so the compiled-tape job passes (2,845 of 2,845 locally). That removes one side of the ReverseDiff decision.
    3. A regression came in with ffb3917 on Pure step, record markers and the first part of the redesign #907 ("Carry a share's bound in its type"): three methods still dispatched on Share without its parameter, so a Share flow changed a model's output and a doctest in modifiers.md failed. Settle the open issues: a compiled-tape fix and the outcome of each issue #925 fixes it (eea0134).

    Generated by Claude Code

  2. seabbs-bot commented on Dec 1, 2026

    @seabbs-bot
    CollaboratorAuthor

    Reactant: classification of the broken results (first pass)

    The committed test/reactant/results.tsv on main (3f7e82c) holds 306 rows: 272 work and 34 are errors.
    The 34 are 17 registry scenarios, each failing forward and reverse at the same place.
    No row is wrong, timeout or skipped, and every hand-written case works.
    Each group was re-run today on Julia 1.13.4 with Reactant 0.2.308 and Enzyme 0.13.220, the versions the suite is held to.
    This is a first pass: the cause column is from the error and the source, and the fixes are not written yet.

    # Scenarios What fails Kind Cause Plan
    1 Growth rate from a reproduction number; Growth rate and profile of strata that mix _discounted dispatches on v::Real, and the Newton loop of growth stops on _solvable and _settled, which compare values dispatch on Real, then a value-dependent branch ours fix: a traced solve with a fixed form, checked against the host path
    2 Convolution transpose of normalised increments of a table; Convolution increments of a table per stratum _check_lag_map accepts a kernel table only as AbstractArray{<:Real}, which a traced array is not argument check on Real ours fix: the check reads the entries through the same trait as the other coefficient checks
    3 Convolution kernel from a held hazard given by change points; Recurrence kernel shortened by a survival on change points Pair.(starts, values) over a traced vector has no similar in Reactant's broadcast; the same change points written as a literal reach the package and then fail in _check_coefficient and in the extension's _rows_at unsupported op upstream, then argument checks of ours both fix ours (the literal form traces); report the broadcast upstream
    4 Recurrence sparse coupling; Recurrence routes, dense and sparse; Recurrence routes in a buffer deeper than the kernels; Recurrence trace through a sparse coupling; Recurrence sparse user coupling declared linear SparseMatrixCSC(m, n, colptr, rowval, nzval) takes nzval::Vector, and a traced array is not one unsupported type SparseArrays and Reactant: no traced sparse matrix to check whether a vector of traced numbers as nzval runs through our sparse coupling; report upstream otherwise
    5 Convolution Poisson delay distribution; the same on a step of two units; Recurrence negative binomial generation interval per stratum; the same per pair of strata Poisson(λ) and NegativeBinomial(r, p) take Real parameters, and TracedRNumber is not a Real unsupported type Distributions and Reactant report upstream; nothing in our code runs before the failure
    6 Recurrence whole-step modifier branching at a tie (occupancy); the same over five steps the fixture's modifier branches with if on its values value-dependent branch inherent to the scenario, which exists to test a branch at a tie stays broken; a twin written with ifelse will show the step traces

    Rows 1 to 3 are 6 scenarios (12 cells) with a cause in our code.
    Rows 4 and 5 are 9 scenarios (18 cells) that fail in a constructor outside the package, before any of our code runs.
    Row 6 is 2 scenarios (4 cells) that cannot trace as written.

    Beyond the table, the common pattern is that a traced number is not a Real, so every method or check of ours typed <:Real needs the traced type admitted, which the extension does one method at a time.
    The upstream items will be written up with reproducers in a separate issue, "Reactant.jl: upstream reports", in the form of #931.
    Nothing was run on a GPU.


    Generated by Claude Code

  3. seabbs-bot commented on Dec 1, 2026

    @seabbs-bot
    CollaboratorAuthor

    Reactant: classification after the fixes, and what the first real run found

    This replaces the first-pass table above.
    The results are from a full run of test/reactant/runtests.jl on Julia 1.12.7 with Reactant 0.2.308, ReactantCore 0.1.26 and Enzyme 0.13.220, on the CPU, in #939.

    Counts

    Rows Working Broken
    Committed on main when this work started (3f7e82c) 306 272 34
    The same code run today in a fresh environment 306 264 42
    After the pull request 322 295 27

    The second row is what the first real run showed: the committed table was out of date in two ways.

    • The case rec_resume failed in both modes at both sizes (4 cells): cases.jl used a name CR that the module does not define.
      It is fixed in the pull request.
    • Four capacity scenarios failed in reverse: three do not compile and one returns a gradient with an entry wrong by 1.14 and no error.
      They fail on main at 7b6a4ee and at 21fb0bb as well, so no change of ours caused it.
      The cause is ReactantCore 0.1.28, which a fresh install resolves beside Reactant 0.2.308; with ReactantCore 0.1.26 all four are right.
      The test environment now holds ReactantCore to 0.1.26, and the Reactant page of the docs says so.

    The 16 extra rows are two scenarios that came in from main (4 rows) and three new hand-written cases (12 rows).
    The second of those scenarios, and a change to the share flows, arrived after the full run: the eight scenarios concerned were run again on the merged code and all work.

    Every result that was broken or is broken

    # Scenarios (cells) What failed Kind Cause Now
    1 Growth rate from a reproduction number; Growth rate and profile of strata that mix (4) _discounted took v::Real; the Newton and power-iteration loops stopped on comparisons of values dispatch on Real, value-dependent branches ours fixed, works
    2 Convolution increments of a table per stratum (2) _check_lag_map took a table only as AbstractArray{<:Real} argument check on Real ours fixed, works
    3 Convolution transpose of normalised increments of a table (2) the same check; then _safe_slope branched on the total; then the forward compile fails in Reactant's passes with a product of an 11 × 3 and a 9 × 3 array, from a program that verifies before optimisation check on Real and a value branch (ours), then a compiler bug ours, then Reactant reverse works; forward broken upstream
    4 Convolution kernel from a held hazard given by change points; Recurrence kernel shortened by a survival on change points (4) Pair.(starts, values) over a traced array has no similar unsupported op Reactant: a traced array holds numbers only broken; change points written one by one now trace (case rec_cp_traced), which needed two fixes of ours
    5 The five sparse-coupling scenarios (10) SparseMatrixCSC holds its nonzeros as a Vector, which collect of a traced array is not unsupported type SparseArrays and Reactant broken; with a vector of traced numbers as the nonzeros the coupling traces (case rec_sparse) with no change of ours
    6 The four distribution scenarios (8) Poisson and NegativeBinomial take Real parameters unsupported type Distributions and Reactant: a traced number is not a Real broken; nothing of ours runs before the failure
    7 The two occupancy scenarios whose modifier branches at a tie (4) the fixture's modifier uses if on its values value-dependent branch inherent: the scenario tests that branch broken; a pure step written with ifelse traces (case rec_pure_step)
    8 Four capacity scenarios, reverse (4) compile failure in Reactant's passes (3), wrong gradient (1) wrong result, compile failure ReactantCore 0.1.28 works with ReactantCore held at 0.1.26
    9 rec_resume (4) undefined name in cases.jl error in the test ours fixed, works

    No result is wrong, timeout or skipped in the final table.

    A user's own step

    A modifier written as a pure step from the extending pages traces with no method for Reactant when it chooses with ifelse, min, max or clamp.
    Written with if on v, s or θ it fails with TypeError: non-boolean (TracedRNumber{Bool}) used in boolean context.
    The rule is now in "Rules for every type" of the extending docs.

    Not checked

    • No GPU cell was run: this container has no GPU.
      Not checked there: that the traced programs compile and are right on a CUDA device, the kernel launch of a strata loop on the device (TRACED_MIN_STRATA), run times, and memory at 1,000 strata.
      The pull-request smoke run with every strata loop as a kernel passes on the CPU.
    • The suite ran on Julia 1.12.7 only, not on 1.11 or 1.13.
    • Reactant 0.2.309 does not resolve beside CUDA in this environment, so the suite was not run on it.

    The upstream causes (rows 3 to 6 and 8, and three more met on the way) are written up with reproducers, run today on Reactant 0.2.309, in #940.
    Nothing was filed upstream.


    Generated by Claude Code

  4. seabbs-bot commented on Dec 1, 2026

    @seabbs-bot
    CollaboratorAuthor

    Test suite trim: measurements and proposed shape

    This is the proposal for the queued item "Test suite trim", posted before any large deletion.
    It also covers #541, #526, #835, #834 and #908.
    Everything below was measured on main at 4ce03f8, Julia 1.13.4, on a 4-core, 15 GB Linux container, unless a CI run is named.

    1. What was measured

    Default suite (the Test workflow's items), locally.
    Every item ran once, in one process per sixth of the suite, with a test set that records, per item, the wall time, the compile time, the assertion count and the lines of src/ and ext/ the item executed (the coverage counters are written and cleared after each item).

    Items 630
    Assertions 41,837 passed, 0 failed, 43 broken
    Summed item time 93.5 min
    of which compilation 87.8 min (94%)
    Lines of src/ and ext/ executed 9,040
    Items that execute no line that another item does not 447 (54.4 min)

    The same quantity on CI (run 46604443039): ubuntu 107.6 min, windows 107.8, downgrade 76.7, macOS 41.6, each on 4 workers.
    I could not reproduce the figure of 225 minutes; the largest number I have for one cell is 108.

    The time is concentrated.
    The 20 slowest items take 32 min, the 100 slowest 65 min, and the other 530 take 29 min.

    File Minutes Items Assertions
    test/unit/adjoints.jl 11.7 48 624
    test/unit/device_rules.jl 10.0 22 1,063
    test/unit/gpu_arrays.jl 6.6 15 655
    test/package/quality.jl (managed) 6.0 9 199
    test/unit/recurrence.jl 3.8 44 24,151
    test/unit/recent.jl 3.7 19 170
    test/unit/gradient_routes.jl 3.6 4 162
    the other 60 files 48.1 469 14,813

    What a push costs on CI.
    28 jobs start on a pull request push (AD 7, Threads 5, Test 4, Benchmark 3, Reactant 2, Trim 2, and one each of Documenter, JET, OpenCL, template sync and pre-commit).
    The default unit suite runs in five of them (three operating systems, downgrade, Threads on 1.11).
    Of the last 40 completed AD runs, no Enzyme reverse or Mooncake reverse job finished: 36 and 37 were cancelled while queued, and those that reached the test step were cancelled at about 71 minutes of tests or failed.
    The last AD run with every job green is from 24 November (Enzyme reverse 67.1 min of tests, Mooncake reverse 50.8, Enzyme forward 41.3, Mooncake forward 34.2, ForwardDiff 16.7, ReverseDiff 16.4 and 14.4).

    Still running: the per-item measurement of the Enzyme reverse job (60 items).
    The other AD jobs follow it.

    2. Where the time goes, and why

    Compilation is 94% of the default suite.
    An operator's type carries its kernel, coupling and modifiers, so each distinct model a test builds is compiled afresh: the forward run, the rule's reverse pass, and a second forward run on dual numbers for the ForwardDiff reference.
    The suite builds its models by hand in each item, at each item's own sizes and wrappers, so almost no two items share compiled code.

    Three measurements show that the model count, not the checks, is the cost.

    1. For all 132 registry scenarios, compiling and running the forward run takes 125 s in total, the rule's reverse pass 98 s, and the ForwardDiff reference 164 s.
      That is the rule checked against ForwardDiff on every registry model in under 7 minutes, where test/unit/adjoints.jl takes 11.7 minutes for its own hand-built models.
    2. The same 132 operators moved to JLArrays compile and run forward in 95 s and through the rule in 109 s.
      device_rules.jl and gpu_arrays.jl take 16.6 minutes: the 61 hand-written device cases each run 3 to 4 times (Float64 under a recording executor, Float32 on the host, Float32 on the device, some again on dual numbers), each run a new element or array type and so a new compile.
    3. One item, "Adjoint: Recurrence modifiers", compiles 21 operator types in 90 s and executes one line no other item does.

    3. Redundancy found, with evidence

    I had every item catalogued by reading (kind, pieces, oracle, sizes, duplicates): 573 unit and package items and 113 AD items.
    By kind, the unit items are 165 behaviour, 118 internal, 102 rule, 68 edge case, 61 error, 23 loops over models and 36 tooling.

    • The same model through several spellings.
      The 61 device cases against the registry: 21 are a registry scenario's pieces exactly, 31 partly, and 9 have no registry counterpart.
      test/device/rules.jl re-spells 44 cases of device_rules.jl with copied fixtures.
    • The same check per backend.
      test_adjoint runs 48 registry operators through the entry point the registry gradient items reach; what it adds is the operator as a differentiated argument and finite differences on every float field.
      Seven AD items compile both Enzyme and Mooncake in both reverse jobs because they do not select the job's backend.
    • Fixtures that differ only in size or element type: two occupancy scenarios (10 and 5 steps), two user-coupling scenarios (3 and 30 strata), the vaccination scenario and its Float32 copy.
      The registry is otherwise close to minimal: 132 scenarios, 8 near-duplicate pairs.
    • Exact duplicates between unit items: for example recent.jl:284 and :533, recurrence.jl:825 and :866 against record.jl:4 and :45, pool_capacity.jl:269 inside truncate.jl:73, convolution.jl:437 inside usecases/delays.jl:29, dual_ties.jl:74 to :98.
    • Internals a behaviour test covers: 118 items assert on internal functions; the catalogue names the behaviour item beside each where one exists.
    • Helpers written more than once: two rule checkers (pullback_matches, rule_vjp), four naive loops, three ForwardDiff configurations, Halve defined four times, and the device fixtures copied between device_rules.jl, pure_step.jl and test/device/rules.jl.

    4. Target shape

    1. One scenario registry, read as calls.
      ADFixtures already holds the 132 scenarios.
      It gains one accessor that returns each scenario's operator and run arguments at its starting parameters, by running the loss with a recording route (the mechanism test/ad/adjoints.jl uses for 48 of them today, moved into the registry).
      It reaches 127 of the 132 as it stands; the five it misses (two reversed runs, pressure, two growth scenarios) keep their own checks.
      A short list of forward-only calls joins it for the pieces the registry lacks and the device cases have (nine kernel and modifier shapes), so they cost no AD compile in any backend job.
    2. Conformance tests that run across the registry, each one check written once:
      • the rule's reverse pass against ForwardDiff (replaces the model loops of test/unit/adjoints.jl);
      • the forward run and the rule's passes on JLArrays against the host, in Float32 and under the recording executor, so one run per scenario checks the values, the element type and the kernel arguments (replaces the passes over the device cases and the matching models of device_rules.jl);
      • a run resumed part-way against the whole run, on the host and on the device;
      • the same functions, called from test/opencl and test/cuda with their array type, so the device jobs draw from the registry too.
        Scenarios report by piece (kernel shape, coupling, modifier, depletion form, record marker), from a table of tags beside the registry, so a failure names the piece.
    3. Behaviour tests for what the registry cannot express: values against the naive loops, argument errors, printing, executors, threading.
      These stay, with duplicates merged.
    4. Edge-case tests where they pin a real bug, kept as they are (68 unit items and 24 AD items are of this kind).
    5. The backends keep drawing from the same registry, as do Reactant and the benchmarks.

    5. Deletions, and the rule each must pass

    No item is deleted unless all three hold, and the pull request will list them item by item:

    1. the item that still asserts its behaviour is named;
    2. the set of executed lines of src/ and ext/ in the default suite is a superset of the set before (line by line, not as a percentage), and the same for each AD job touched;
    3. nothing is skipped or marked broken.

    Julia records line coverage only, so there is no branch figure to give; a line set that does not shrink is the stricter test available.

    Planned for this pull request, in order:

    Step Replaces Measured now Expected after
    Registry conformance on the host (rule against ForwardDiff, resume) model loops in adjoints.jl, recent.jl, buffer_depth.jl, pure_step.jl whose models are registry scenarios about 17 min about 5 min
    Registry conformance on JLArrays the passes over the 61 device cases and the registry-matched models of device_rules.jl 16.6 min about 5 min
    Exact duplicates and subsets the pairs in section 3 about 2 min 0
    Shared helpers the duplicated helpers 0 0
    AD jobs see below

    Device-only checks stay as their own items: launch arguments and sizes, device errors, adapt structure, route gating, allocation bounds, sparse storage, resumed-state types.

    The target of a third.
    A third of 93.5 minutes is 31 minutes.
    The steps above reach about 65 minutes by my estimate.
    The rest is in about 60 items of 20 to 80 s each that are not duplicates of anything; they are slow because each builds several one-off models.
    Moving their models onto registry scenarios, so they share compiled code, is the same change item by item, and I will take them in order of time and say where I stop.
    I will not reach a third by weakening an oracle or dropping a model that nothing else checks.

    Two items I will not touch are managed by the kit: "Quality: doctest" (308 s) and the other quality.jl items.
    "Standards: docs page doctests" (82 s) runs the docs pages' examples that the Documenter job also runs on every push; I propose to leave it unless you want it gone.

    6. #526, Enzyme reverse

    From the logs and the catalogue, before my own per-item numbers:

    • 61 items carry the tag; about 544 gradient compiles, of which 252 are the registry, 78 test_adjoint, and 214 in hand-written items.
    • Seven of those items compile the other reverse backend as well, in both jobs.
    • Several hand-written items differentiate a registry scenario again and add one assertion (an element type, a call without the barrier).

    Plan: fold those assertions into the registry items so the model compiles once; make the seven items select the job's backend; then profile one first gradient to see whether the half of the compile that is type inference has a cause in the rule's own code that can be removed.
    I will post the measured split of compile against run, by item and by scenario, on #526.
    The job split and the timeout are workflow changes, so they go to the kit as text (see section 9).

    7. #835 and #834, found by the registry on JLArrays

    Running every registry operator on JLArrays, forward and through the rule's passes, already shows differences that no test catches today.
    I have not yet separated the faults from what is refused by design:

    Count What happens on JLArrays
    88 of 134 calls forward run matches the host
    80 the rule's passes match the host
    33 "the inputs live on a device but a kernel, coupling or modifier..." after adapt of the operator (traces, returned states, contributions, user types)
    9 change points refuse a device (documented)
    4 scalar indexing in the rule's reverse pass with a gain or add given as a parameter
    2 no _add_outer! method for a device sparse route's cotangent
    1 a sparse coupling's cotangent differs from the host's
    1 a FieldError in the reverse pass of lag contributions of a computed kernel

    Each becomes a registry-drawn test and a fix, or a stated refusal with its error tested.
    Reverse-mode AD backends on device arrays: I will run Enzyme and Mooncake through the rule on JLArrays for the registry and record what fails and where; OpenCL through pocl gets the same pass.
    What needs a real GPU will be listed.

    8. #908, downstream

    I could not attach epiforecasts/BVDOutbreakSize to this session (the request was refused), so I cannot read or run it here.
    I will write the check as a small script a maintainer or CI can run (clone at the default branch, develop this checkout over its [sources] pin, run its quick mode), and say plainly that it is untested from this session.

    9. Kit requests

    EpiAware/EpiAwarePackageTools.jl could not be attached either, so the exact workflow changes (reverse jobs in two cells or a higher limit, coverage scoped to the package, pull requests on ubuntu only, #541) will be in the pull request description for the coordinating session to file.

    What I have not done yet

    No test file is changed.
    The AD jobs other than Enzyme reverse are not measured per item yet; their job totals above are from CI.


    Generated by Claude Code

  5. seabbs-bot commented on Dec 2, 2026

    @seabbs-bot
    CollaboratorAuthor

    Reactant: what a user's extension must do to trace (facts for the developer docs)

    Everything here was run on 1 and 2 December 2026 on Julia 1.12.7 with Reactant 0.2.308, ReactantCore 0.1.26 and Enzyme 0.13.220, on the CPU, with the code of #939.
    What was not run is listed at the end.

    The rules

    1. No choice on a value.
      step and init run once while the program is recorded, on values that are not yet known.
      So if, &&, || and ? : on v, s, an entry of θ or the history are not allowed.
      Write the choice as ifelse(cond, a, b), min, max or clamp.
      Combine conditions with & and |, not && and ||.
      A branch on a type, a size, an integer field or anything else known when the model is built is unaffected.
    2. What a violation gives.
      An error while tracing, not a wrong result: TypeError: non-boolean (Reactant.TracedRNumber{Bool}) used in boolean context, with the user's step at the top of the stack.
    3. Both arms of an ifelse are computed.
      So neither arm may throw (log or sqrt of a negative number), and for a gradient neither may be NaN or infinite where it is not chosen: guard the argument, ifelse(n > 0, k / ifelse(n > 0, n, one(n)), zero(n)).
      This was run for the package's own soft minimum, not for a user's step.
    4. Number types.
      A traced number is not a Real (TracedRNumber{Float64} <: Real is false).
      So a step whose arguments after the modifier are untyped, as the extending pages already require, needs nothing more; one that annotates ::Real or builds 0.0 where zero(v) belongs does not trace.
    5. Parameters come from θ.
      A field that is a traced number, a PerStratum or a TimeVarying of a traced array reaches step through θ as on the host.
    6. No method for Reactant is needed.
      The two modifiers below have none.

    A modifier that traces and differentiates

    The two modifiers and the model are those of the case rec_pure_step in test/reactant/cases.jl, which the suite compiles forward and in reverse at 20 and at 400 steps and checks against plain Julia and ForwardDiff (relative error below 1e-8).
    The constants and the compile calls below are written out for a reader; this exact script was not run as it stands.

    using ComposableRecurrences, Reactant, Enzyme
    const CR = ComposableRecurrences
    
    # Exponential smoothing: a state started by `init`.
    struct Smooth{A}
        a::A
    end
    CR.init(::Smooth, θ, history) = last(history)
    function CR.step(::Smooth, θ, v, s)
        s′ = θ.a * s + (1 - θ.a) * v
        return s′, s′
    end
    
    # An overflow above a cap is carried to the next step, chosen with `ifelse`.
    struct Carry{C}
        cap::C
    end
    function CR.step(::Carry, θ, v, s)
        x = v + s
        over = x > θ.cap
        return ifelse(over, θ.cap, x), ifelse(over, x - θ.cap, zero(x))
    end
    
    const S, T = 3, 20
    const g = [0.4, 0.3, 0.2, 0.1]
    const H = [1.0 + 0.5 * k + 0.1 * i for k in 1:S, i in 1:4]
    function model(θ)
        modifiers = (Smooth(PerStratum(θ[1:S])), Carry(θ[S + 1]))
        R = reshape(θ[(S + 2):end], S, T)
        return Recurrence(g; modifiers)(R; history = H)
    end
    traced(θ) = Reactant.@allowscalar model(θ)   # `θ[S + 1]` reads one entry
    loss(θ) = sum(traced(θ))
    grad(θ) = Enzyme.gradient(Enzyme.Reverse, loss, θ)[1]
    
    θ = Reactant.to_rarray(vcat([0.3, 0.5, 0.7], 2.5, fill(1.0, S * T)))
    y = (Reactant.@compile traced(θ))(θ)
    dθ = (Reactant.@compile raise = true raise_first = true grad(θ))(θ)

    The same Carry written with x > θ.cap ? (θ.cap, x - θ.cap) : (x, zero(x)) gives the TypeError of rule 2.
    Carry written with min(x, θ.cap) and max(x - θ.cap, zero(x)) also traces and agrees with ForwardDiff.

    What the user must write differently around the model

    • Reading one entry of a traced array, such as θ[S + 1], needs Reactant.@allowscalar around the user's own code; the package's loops allow it already.
    • Change points from traced values: write the pairs one by one, TimeVarying([1 => v[1], 4 => v[2]]); Pair.(starts, v) does not trace (case rec_cp_traced).
    • A sparse coupling: pass the nonzeros as a vector of traced numbers, [v[i] for i in eachindex(v)]; SparseMatrixCSC does not hold a traced array (case rec_sparse).
    • A delay given as a distribution with a traced parameter does not trace; pass its masses.
    • Hold ReactantCore at 0.1.26: with 0.1.28 the gradient of a model with a capacity is wrong or does not compile (Reactant.jl: upstream reports #940, section 1).

    Not run, so not to be stated as working

    • A user's trace method under Reactant; only the built-in traces are in the suite.
    • A user's blockwise step (blocks(m) = (nv, ns) with tuples) and a user's coupling written as a pure form.
    • A user's step_pullback: Reactant never calls it, as Enzyme differentiates the traced program.
    • Anything on a GPU.

    Generated by Claude Code

  6. seabbs-bot commented on Dec 2, 2026

    @seabbs-bot
    CollaboratorAuthor

    Test suite trim: outcome, and a correction to the proposal above

    The work is in #949.
    It does not trim the default suite, and one number in my proposal was wrong.

    Correction

    I gave the default suite as 93.5 minutes of summed item time.
    That baseline ran while other processes of mine shared the machine.
    The 621 items present in both the baseline and the final run took 87.9 minutes in the baseline and 69.4 minutes alone, a ratio of 0.79.
    On the same footing the baseline is about 74 minutes.

    Outcome against the proposal

    Before After (#949)
    Items 630 627
    Assertions 41,837 41,952
    Failures, broken 0, 43 0, 43
    Lines of src/ and ext/ executed 9,040 9,066, and none lost
    Summed item time, same machine load about 74 min 77.1 min

    The target was a third of the time, and my own estimate above was a fall of about 30%.
    The suite is instead about 4% larger: the registry items cost 5.2 minutes and the trims save about 2.5.

    Why

    • The redundancy is smaller than the catalogue suggested.
      Of eight groups of "exact duplicates", four were, and they were small.
      Of the 44 unit rule-check items, 18 have every model's pieces inside a registry scenario, but they vary a scalar or Boolean gain, a history's length, a start or an executor, which nothing else checks, so they stay.
    • The registry across the whole suite is not cheap under coverage.
      All 135 calls through the rule, a resumed run and JLArrays take about 17 minutes, not the 11 I estimated from uninstrumented timings.
      The default suite therefore runs the 33 scenarios that hold every kind of piece (5.2 minutes), and CR_REGISTRY=full runs them all.
    • The time is compilation (94%), one compile per distinct model, so it falls only with fewer models or cheaper compiles.

    What it did deliver

    • The registry read as calls, with one rule check, one device check and one resume check that run across it, shared with the unit tests and the CUDA script.
    • Three device faults found by that pass and fixed: gain or add parameters could not run the rule's reverse pass on a device; Gather, Increments and Normalised had no adapt rule; a route's CSC sparse coupling was not stored as CSR.
    • Every item's time and assertion count recorded (test/item_times.tsv held 458 of 632 items).
      With all of them recorded the busiest of four workers takes 19.3 minutes, so the 15 minute budget passed only because 174 items had no time.
      Read the AD registry as calls: registry-wide checks on host and JLArrays, three device fixes, AD job cuts #949 sets the budget to 20 and says so; that is yours to accept or refuse.
    • About 5 minutes off each reverse AD job.

    What would cut the time, each needing your decision

    1. Optimisation level 1 for the test workers: 19% less on a sixth of the suite (13.7 to 11.1 minutes), same assertions passing. It tests code compiled differently from what users run.
    2. Pairs instead of products in the loops over models: the one I changed went from 36 models to 12 and from about 62 s to 24 s. Three more loops of 21 to 34 models are next.
    3. The docs pages' doctests once per push, not in the unit suite and in the docs build (about 80 s).
    4. The benchmark and Reactant result-file items and the Loading: items in one job, not five (about 2 minutes each run).
    5. Fewer jobs per push (CI: the full unit suite runs six times per push; run the thread items once and the 1.11 registry weekly #541), through the kit.

    Not done from the proposal: the nine device pieces the registry lacks were not added to it, the device jobs' OpenCL run does not draw from the registry yet, and the per-item measurement of the AD jobs other than Enzyme reverse.
    The checkbox "Test suite trim" should stay open.


    Generated by Claude Code

  7. seabbs-bot commented on Dec 2, 2026

    @seabbs-bot
    CollaboratorAuthor

    Decisions for the owner, from the test suite trim

    Each with its measured effect.
    The measurements are on current main with #953, Julia 1.13.4, 4 cores, coverage on: 637 items, 42,219 assertions, 80.9 minutes of summed item time, 20.2 minutes on the busiest of four workers.

    Decision Measured effect Cost or risk
    Time budget (TEST_BUDGET in test/item_times.jl): keep it where the suite is (21 minutes, as #953 sets), or hold it at 15 and let the budget item fail until the suite is cut At 15 the item fails today by 5.2 minutes a worker; it passed before only because 174 of 632 items had no recorded time At 21 the check only catches growth; at 15 main is red until about a quarter of the suite is cut
    Optimisation level 1 for the test workers (one flag in test/runtests.jl) 19% less: one sixth of the suite took 13.7 minutes at the default and 11.1 at -O1, same 2,416 assertions passing The tests then run code compiled differently from what users run; allocation and inference assertions passed in the sixth I ran, the other five sixths are unmeasured
    Doctests once per push: drop "Standards: docs page doctests" from the unit suite, since the Documenter job runs the same pages' examples About 80 s of item time in the Linux Test cell Pkg.test alone no longer runs the docs pages' examples; "Quality: doctest" (about 240 s, docstrings) is the kit's and stays
    Kit items, filed as EpiAware/EpiAwarePackageTools.jl#567 Two shards per reverse AD backend: the Enzyme reverse job needs it to finish (no reverse job completed in the last 40 AD runs; the package-side cuts in #949 are about 5 minutes of it). Coverage scoped to the package: 10 to 15% on that job. Pull requests on ubuntu only: two of the three operating-system cells, about 150 minutes of item time a push Workflow changes outside this repository

    Already done and needing no decision: pairs instead of products in the two loops that are true products (36 models to 12, and 20 to 10), and the benchmark and Reactant result-file items running once on CI.


    Generated by Claude Code

  8. seabbs-bot commented on Dec 2, 2026

    @seabbs-bot
    CollaboratorAuthor

    Documentation audit and target structure

    Read at d696616: the README, 37 Markdown pages and 12 Literate tutorials under docs/src, and docs/benchmarks.md, 50,400 words with code.
    Held against the EpiAware package standards, the requirements for this repository and the inline comments on #928.
    The earlier audit (on #907) and the restructure in #922 were read; what they got right is kept below and #922 is superseded by the pull requests listed at the end.

    Page by page

    Page Verdict Reason
    README.md Rewrite the links, keep the rest Why bullets, maths and example meet the standard. The tagline links two words to pages, "Getting started guide" points at an anchor that is gone, and "Where to learn more" links the repository to itself and omits the tutorials. The badge table still has two columns for a backend the docs must not name; it is a managed block, so the fix is in the template's inputs, not by hand.
    getting-started/index.md Rewrite Nine rhetorical questions as navigation. No link to Related packages on the home page (standard 5). The extensions table has 10 of 13 extensions.
    getting-started/three-towns.md Keep, edit "Changing the model" is a diff and a collapsed hand loop; Performance repeats the performance page.
    getting-started/three-towns-forward.md Keep New and referenced; only placed in the navigation.
    getting-started/time-units.md Keep, edit wording Delay masses are also derived in Shapes and couplings; link, do not repeat.
    domain-guides/infectious-disease-models.md Merge into a Getting started FAQ It is an index from a model feature to the tutorial that builds it, not a page of its own; table cells hold constructor calls of up to 30 words.
    11 tutorials Keep as short pages, rewrite prose and code a few at a time Titles such as "Vaccination" and "Spatial models" do not say what the page builds. Plot code is repeated in each page instead of one function reused. Only two have references. "Learning more" lists link the Public API from every page.
    tutorials/backend-case-study.jl Keep under Development Only its navigation entry is touched.
    explanation/api-overview.md Rewrite Eleven of thirteen sections are one sentence pointing elsewhere; no concept is defined. One entry per concept, each saying what it is.
    explanation/operators.md Keep, edit Six sentences open with "So"; the calls table mixes operators and helpers.
    explanation/shapes-and-couplings.md Keep, edit Four "So" openers; ten wrappers in one ungrouped list.
    explanation/modifiers.md Keep, cut "Depletion in practice" repeats two tutorials and the domain guide.
    explanation/adjoints-and-backends.md Split and cut 3,800 words. Names a backend and its tapes four times. Performance claims move to the performance page; what stays is rules, backends, executors and GPU arrays, with a title that says so.
    performance/summary.md Merge Sixteen tables, no plot, an issue number.
    docs/benchmarks.md Merge, leave a description of the suite Three tables, two issue numbers, names the unmentionable backend.
    12 extension pages Keep, edit two; add one Issue numbers in the Enzyme and GPUArrays pages. ComposableRecurrencesDifferentiationInterfaceExt has no page, and the navigation lists a ForwardDiff page for an extension that does not exist.
    developer/* Not edited Owned by #945, #952 and #955. Only placed in the navigation.
    Docstrings Wording only To be checked name by name for signature restated in prose and for text shared between docstrings.

    Terms: stratum, kernel, modifier, coupling and history are each defined in two or three places and not in the API overview.
    The API overview becomes their one home and other pages link to it.

    Target structure

    1. Home: the README.
    2. Getting started: Overview; FAQ ("Which page builds a given model feature"); Three towns; Reporting triangle, case reproduction number and descendants; Time units; then the tutorials, grouped by what they model with an index page first.
      A "Fitting" group follows the tutorials and is left empty for the particle filter page (Stepwise methods: select strata of a state, shared parameters, batches and the chunked-run contract #928) and the conjugate estimate of the reproduction number.
    3. API reference (generated).
    4. Extensions: one page each, with the missing page added.
    5. Benchmarks: the two generated pages.
    6. Performance: one page that replaces the performance summary and the narrative of docs/benchmarks.md.
      Plots only, drawn by benchmark/figures.jl from benchmark/results/ and the benchmarks branch.
      Every figure states its machine and revision.
      No time from the AD registry's dynamic call is quoted for a scenario under 60 µs.
    7. How it works: API overview first, then Operators, Shapes and couplings, Modifiers, and Rules, backends and executors.
    8. Development: unchanged.

    Pages after: 36 Markdown pages (two merged away, an extension page and a tutorial index added, the domain guide becomes the FAQ) and 12 tutorials.

    Blocked by the template

    • Group order is fixed in the managed docs/pages.jl, so How it works, and the API overview with it, stays after Extensions (kit issue 558).
    • The Benchmarks group takes only the kit's two pages, so the performance page sits beside it (kit issue 559).
    • Extensions is one page per extension (kit issue 560).
    • The badge table and standard sections of the README are managed blocks.

    docs/pages.jl is regenerated from docs/docs_config.jl by the kit's own function, never edited.

    Delivery

    Six or more small pull requests against main, each with the docs build, doctests and the standards and README tests run:

    1. README.
    2. Navigation, Overview, FAQ, API overview, the missing extension page.
    3. Operators, Shapes and couplings, Modifiers, Rules, backends and executors.
    4. The performance page.
    5. Tutorials, three or four per pull request.
    6. Docstring wording.

    Each will give its page and word counts before and after.


    Generated by Claude Code

  9. seabbs-bot commented on Dec 2, 2026

    @seabbs-bot
    CollaboratorAuthor

    Frozen public surface, from the name-by-name pass for #930 finding 3, with the owner's decisions applied.
    The changes are in #986, one commit per decision.
    main has 5 exported and 62 public names; #986 gives 5 and 63.

    Name What it is Decision
    Recurrence, Convolution the two operators exported
    TimeVarying, PerStratum, Pairwise coefficient wrappers exported
    Primary kernel column read at the input's time public
    Secondary the default reading, at the output's time made public
    Depletion, Hazard, Floor, Truncate pools and the forms that draw from them public
    Flow, Share, Split flows between pools public
    Redistribute, Allocate, Transform the other built-in modifiers public
    Derived, Gather parameters computed from, or read at other rows of, a parameter public
    Recent a parameter read from recent outputs public
    Survival, Increments, Normalised, kernel_weights, delay_masses computed kernels and delay masses public
    exponential_history, window_sums, contributions, pressure helpers around a run public
    growth, growth_gain growth rate and profile of a recurrence public
    Trace, Resume, Pressure record markers; Pressure is also a role public
    State what record = Resume() returns and state = takes made public
    step, init, step_pullback, trace the pure step public
    blocks, isstateless, islinear, nstate, ntrace, trace_rows, ismodifier declarations of a new type public
    forward!, pullback!, Step, Init roles of a coupling or whole-step modifier public
    param, add_param!, param_rows, cotangent, add_cotangent! reading parameters and adding cotangents in a pullback! public
    PieceInterface conformance test of a new type public
    test_adjoint rule tester, test_adjoint(backend, op, args...) made public
    gradient_routes the routes a recurrence can take, timed public
    NoAdjoint plain AD of an operator public
    Serial, Threaded, Parallel, EXECUTOR executors and their setting public
    Direct, FFTMethod convolution methods; Direct is the default once the FFT runs only on request public
    convert_floats an operator in another float type public
    select, Batched strata of a state, and batched runs public, added by #928
    Device older spelling of Parallel removed
    Local role of a map's own partials internal; the pages teach a closed-form derivative as a step_pullback
    uses_adjoint, Run route query and the operator's role internal; test_adjoint takes no role, and gradient_routes answers the route question
    TRACED_MIN_STRATA strata from which a traced loop is one kernel internal: a tuning constant; the Reactant pages describe the behaviour
    Auto the automatic convolution method internal; the pull request that runs the FFT only on request removes it
    param_eltype, depth, forward, ispointwise, each! internals with docstrings internal

    _kernel_couplings, which nothing called, is removed.
    ispointwise stays, as the tests and the AD fixtures call it.


    Generated by Claude Code

  10. seabbs-bot commented on Dec 2, 2026

    @seabbs-bot
    CollaboratorAuthor

    Hand-over: the test suite after #949, #953 and #962

    For a reader with no context from the session that did this work.
    Figures are from main plus #953 (Julia 1.13.4, 4 cores, 15 GB, coverage on, one process at a time): 637 items, 42,219 assertions, 0 failures, 42 broken, 80.9 minutes of summed item time, 94% of it compilation.
    #962 is merged at 873f274; its own CI had not finished when this was written, so the downgrade job passing on main is still to be confirmed.

    The suite as it stands

    Default suite (test/runtests.jl, what Pkg.test and the Test workflow run).

    • Items are @testitems under test/unit, test/usecases and test/package; items tagged :ad live in test/ad and run in the per-backend AD jobs.
    • The runner splits items over up to four worker processes, balanced by test/item_times.tsv.
    • Tags that select: :quality (run once on CI, in the Linux Test cell; includes the standards items, the benchmark and Reactant result-file items and the Loading: items), :threads (threads_only mode), :usecase.
    • Modes: skip_quality, quality_only, threads_only, usecase_only, record_times.

    Item times and the budget.

    The scenario registry (test/ADFixtures/src/).

    • registry.jl: the 134 scenarios (_SCENARIOS), each a loss of one operator call, and the lists of how backends take them. It names no AD package.
    • calls.jl (included by registry.jl): calls() reads each scenario as (; name, op, args, single) by running its loss with a recording route; UNREACHED lists the five scenarios it cannot reach; pieces names the kinds of piece in a call; COVER is the scenarios that between them hold every kind; uncovered_pieces() must be empty (the ForwardDiff AD job checks it, so a new scenario with a new kind of piece must be added to COVER).
    • ad_layer.jl: scenarios(), backends() and the ForwardDiff references. Only the ADFixtures module includes it.
    • ADFixtures.jl: imports the AD packages and includes the three files. The AD jobs, Reactant and the benchmarks load this module.
    • The unit tests include registry.jl alone, in the test module Registry (test/unit/registry.jl), so the default suite and the downgrade job load no AD package for it. Do not make ADFixtures a dependency of the test environment: the downgrade job cannot resolve a path source, and loading the module pulls Enzyme, GPUCompiler and DifferentiationInterfaceTest into jobs that never loaded them.

    Checks written once and run across the registry (test/registry/).

    • rule.jl: pullback_matches, the rule's reverse pass against ForwardDiff. The unit snippet AdjointCheck includes it too.
    • device.jl: device_run (a call moved to a device against the host: values, device arrays, the route, cotangents) and resumed_run.
    • tests.jl: test_rule, test_resumed, test_device, and the expectations DEVICE_PLAIN, DEVICE_REFUSED, HOST_FIXTURES (each a call name, the last two with the error message). A new scenario that cannot run on a device must be listed there with its message. These files read the registry through REGISTRY, which the includer sets.
    • test/unit/registry.jl: two slices over COVER on the host and JLArrays, one item for sparse matrices moved in CSC form, one for the lists. CR_REGISTRY=full runs all 137 calls (about 17 minutes under coverage).
    • test/device/registry.jl: the same on a real device array type. test/cuda/runtests.jl calls it; it has never been run. test/opencl does not call it yet.

    AD jobs (test/ad, one job per backend tag).
    Items tagged for several backends must load the JobBackends snippet and use job_backends or job_runs, or they compile every backend in every job.

    What is open, in order of value

    1. Enzyme reverse AD job runs close to its 75-minute cap: where the time goes #526, Enzyme reverse cannot finish inside 75 minutes. Locally: hand-written items 43.9 min, test_adjoint 24.3 min, registry about 16 min a slice of four; 94 to 97% compilation; 85% of a first gradient is inside Enzyme's own generated thunk. No package-side cause was found and about 5 minutes were cut. It needs two shards per reverse backend or a longer limit: Workflow changes ComposableRecurrences needs: AD job shards or a longer limit, package-scoped coverage, operating systems per event, and downstream test arguments EpiAwarePackageTools.jl#567.
    2. The default suite is not trimmed (the "Test suite trim" box above). The time is compilation of distinct models. What cuts it: the owner questions below, and pairs instead of products in loops over models (done for the two loops that were true three-way products).
    3. CI: the full unit suite runs six times per push; run the thread items once and the 1.11 registry weekly #541, jobs per push. 28 jobs; the unit suite runs in five. Operating systems per event and the docs concurrency group are in the kit request.
    4. Run Enzyme and Mooncake reverse gradients on CUDA arrays #835, reverse AD on device arrays. The rule is checked on JLArrays across the registry. Enzyme and Mooncake cannot run on JLArrays, for reasons outside the package (Enzyme: no mkcontext for the broadcast kernel on JLBackend; Mooncake: GPUArrays' cached_alloc). Needs a CUDA GPU.
    5. Check CUDA sparse couplings in CSC and COO form on a GPU #834, device sparse forms. CSR and CSC are tested on JLArrays, and a route's CSC coupling is now stored as CSR. CuSparseMatrixCSC on CUDA is owed.
    6. Run the downstream check against the live BVDOutbreakSize repository #908, downstream. julia test/downstream/runtests.jl clones a downstream, points its [sources] entry at the checkout and runs its tests with arguments. It passed against a stand-in repository and has not been run against epiforecasts/BVDOutbreakSize.
    7. Not measured: per-item times of the AD jobs other than Enzyme reverse, and Enzyme reverse registry slices 2 to 4.
    8. Not explained: in the failing downgrade job, why the test workers compiled GPUCompiler again after the job's precompile step had built it.

    Questions for the owner

    Question Measured
    The macOS Test cell hit its 60 minute limit on cc74265 (59.4 minutes of tests). Run the registry items on Linux only on CI, as the quality items are? macOS was at 48 to 57 minutes before; the registry items add about 5 minutes of item time
    Optimisation level 1 for test workers? 19% less on a sixth of the suite (13.7 to 11.1 minutes), same assertions passing; the other five sixths unmeasured
    Drop "Standards: docs page doctests" from the unit suite, since the docs build runs the same examples? About 80 s
    Time budget: 21 minutes as now, or 15 and a failing budget item until the suite is cut? Busiest of four workers 20.2 minutes

    Commands

    # The default suite, as CI runs it (four workers).
    julia --project=test test/runtests.jl
    # Re-record item times and assertion counts.
    julia --project=test test/runtests.jl record_times
    # One AD job.
    julia --project=test/ad test/ad/runtests.jl enzyme_reverse
    # Every registry scenario on the host and JLArrays (default: the cover).
    CR_REGISTRY=full julia --project=test test/runtests.jl skip_quality
    # The downstream check.
    julia test/downstream/runtests.jl

    To measure per item (time, compile time, assertions, covered lines) run items in one process with a custom test set passed to TestItemRunner.run_tests(dir; filter, testset); write and clear the coverage counters after each item with ccall(:jl_write_coverage_data, Cvoid, (Cstring,), file) and ccall(:jl_clear_coverage_data, Cvoid, ()), under --code-coverage=@<repo>.
    Run one heavy Julia process at a time on a 15 GB machine: two together ran it out of memory.
    Measure a baseline on an idle machine: mine was 21% high because other processes shared it.


    Generated by Claude Code

  11. seabbs-bot commented on Dec 2, 2026

    @seabbs-bot
    CollaboratorAuthor

    Documentation work: hand-over

    For a reader with none of the earlier context.
    The audit and target structure are in the comment above on this issue.

    Merged

    Open

    Remaining work, in order

    1. Re-time benchmark/results/docs.csv on a quiet machine.
      The file in One Performance page with plots, and docstrings cut to one example #1002 was timed at d6966163 on Julia 1.13.4 while docs builds ran on the same 4-core container, so its numbers should not be quoted yet.
      Run task -t benchmark/Taskfile.yml matrix-docs with nothing else running (about an hour); only the CSV changes, and the page's figures and sentences are drawn from it.
      A second run I started was stopped before it produced any output, so there is no partial result to pick up.
    2. Fix the Allocate docstring so Quality: docstring format passes on main.
    3. Fitting group: add the particle filter page from Stepwise methods: select strata of a state, shared parameters, batches and the chunked-run contract #928 when it lands.
    4. Navigation label: the entry "Adjoints and backends" in PACKAGE_SECTIONS still has the old name of a page now titled "Gradient rules, AD backends, executors and GPU arrays". Rename it and regenerate docs/pages.jl (see below).
    5. Docstrings: Recurrence and Depletion are still about 1,000 words each. What remains is the call's keywords and the pool and overflow rules, which are stated nowhere else; cutting further means moving that content to a docs page first. The other docstrings were scanned for second examples, history and issue numbers, not reworded.
    6. Not touched: developer/* (owned by other pull requests), Time units (read, left as it is), backend-case-study.jl (title and code not revised).

    Blocked by the template

    • Group order: How it works, with the API overview first, sits after Extensions and Benchmarks (kit issue 558).
    • The Performance page sits beside the Benchmarks group, not in it (kit issue 559).
    • Extensions is one page per extension (kit issue 560).
    • The README badge block and standard sections are managed blocks.

    Commands

    • Fast docs build (executes the Markdown pages, stubs the Literate tutorials): julia --project=docs docs/make.jl --skip-notebooks.
    • Full build: julia --project=docs docs/make.jl. It runs the link check, which a sandbox whose proxy refuses external hosts cannot pass; to execute chosen tutorials locally, build with a copy of docs/docs_config.jl that lists the others in FORCE_STUB_TUTORIALS.
    • Standards, README and doctest items, from a file at the repository root:
      using TestItemRunner
      @run_package_tests verbose = true filter = ti -> startswith(ti.name, "Standards") ||
          ti.name in ("Quality: README sections", "Quality: doctest", "Quality: docstring format")
      run with julia --project=test.
    • Before the standards items, remove the pages a build generates into docs/src: git clean -fdX docs/src. They fail the prose checks otherwise.
    • In a fresh worktree, run Pkg.precompile() in the test environment first; doctests otherwise fail on precompilation notices printed into their output.
    • docs/pages.jl is managed. Edit docs/docs_config.jl, then regenerate with the kit's own function:
      using EpiAwarePackageTools; const K = EpiAwarePackageTools
      K._apply_pages(".", (; EXTENSIONS_NAV = K._extensions_nav("."),
          BENCHMARKS_NAV = K._benchmarks_nav(true, true)))
    • A page that leaves a pending list in test/package/standards_config.jl must be removed from it, or its check errors as an unexpected pass.

    Checklist applied to a page

    • The title says what the page builds or covers; @ids are unchanged.
    • The introduction states what is modelled and what is computed, as a list when there are several parts.
    • Each model is stated as equations with every symbol defined, before its code.
    • Terms (stratum, kernel, modifier, coupling, history) are used as the API overview defines them and are not defined again.
    • Each result is a number printed from running the page.
    • No scene setting, rhetorical questions, sentences opening with "So", interpretive one-liners, sales adjectives or unreferenced empirical claims.
    • Tutorial code is small functions that take what they need as arguments and are reused across sections; random draws are made apart from the functions that run a model; code lines are within 80 characters.
    • "Learning more" links only pages that bear on the page.
    • A thing is said once; other pages link to it.
    • One sentence per line, UK English, sentences of at most 35 words.

    The owner's rules

    • No caveats, known-issue lists or workarounds in the docs: a fault becomes an issue.
    • ReverseDiff is a supported backend and appears wherever the backends are listed.
    • Real references only, checked against Crossref or the publisher, kept in docs/src/refs.bib and cited by key; each page lists its own with a non-canonical @bibliography block.
    • No issue or pull request numbers, no history and no stub pages in docs, docstrings or comments.
    • Every timing states its machine and revision; no timing through the AD registry's dynamic call.
    • Managed files are not hand-edited.

    Generated by Claude Code

  12. seabbs-bot commented on Dec 2, 2026

    @seabbs-bot
    CollaboratorAuthor

    Moved from #908, which is closed in favour of the kit request: run julia test/downstream/runtests.jl once against epiforecasts/BVDOutbreakSize with access to that repository, and report what it needs.


    Generated by Claude Code

  13. changed the title [-]Release readiness: work in flight and gates[/-] [+]Release readiness: what is still open before 0.2.0[/+] on Dec 2, 2026
  14. seabbs-bot commented on Dec 4, 2026

    @seabbs-bot
    CollaboratorAuthor

    Status against main at d1f52c3

    Done:

    Remaining:


    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions