Repository navigation
Backlog
Description
Track what stands between main and a releasable 0.2.0.
Open now
- Stepwise API (done in Stepwise methods: select strata of a state, shared parameters, batches and the chunked-run contract #928, tracked in Stepwise methods: select strata of a State, shared stratum parameters, batches and the chunked-run contract #918).
- Public API freeze (done in Settle the public surface: remove Device, make the taught names public, keep internals internal #986 and Run the FFT only on request and remove Auto #1027, which removes
Auto). - Julia floor raised to 1.12 in
Project.toml, CI and docs (done in Raise the Julia floor to 1.12 #1033 and Run the compat-floor CI legs on Julia 1.12 #1036). - Review fixes (Independent review before release: findings still open #930): done in Fail at the call when a step reads a float parameter from the modifier #981, Test Enzyme's default mode on each rule and state when runtime activity is needed #984, Name the error for a device kernel with host inputs, and take one modifier without a tuple #991 and No silent plain AD: the rule takes ranges and lazy wrappers, and names what it does not #955.
- Docs: One Performance page with plots, and docstrings cut to one example #1002 is merged and the navigation entry is renamed. Still to do: re-time
benchmark/results/docs.csvon a quiet machine. - Test suite trim (needs the owner's decision, so left unticked): owner's choice on the time budget,
-O1workers and doctests once per push (comment of 2 December, 07:03). - Both reverse AD jobs finish inside their 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 is closed, but A cheaper resumed step: the state stays in the run's buffer, a state as one vector, PerStratum histories, and advance! as a proposal #1009 reports both jobs still cancelled at the limit on
main, so this stays open. - Downstream on the final API: BVDOutbreakSize, ComposableTuringIDModels and Wren models pass their own tests; run
test/downstream/runtests.jlonce against BVDOutbreakSize. - Release mechanics: version number, compat bounds, release notes and registration, now tracked in Release v0.2.0 #1037 (Release 0.2.0: register the version Project.toml already carries #323 is closed).
Decided
- Done on
main: the pure step and typedrecordmarkers (Pure step, record markers and the first part of the redesign #907), and the pure step as the one extension protocol (Make the pure step the single way to extend the package #920). - Done on
main: kernel views and growth of a recurrence (Table by input time, reversed recurrence and growth of a recurrence #923), and the docs rewritten to the EpiAware standards (README: plain motivation bullets, the model stated as a model, links that resolve #972, Docs navigation, overview, FAQ and an API overview with one entry per concept #978, Tutorials: renewal, imports, forecasting and reproduction number rewritten to the standards #980, Tutorials: vaccination, clinical outcomes and occupancy rewritten to the standards #985, Docs: tutorials batch 3, explanation pages and Three towns #997). - Julia floor: 1.12.
- ReverseDiff is a supported backend (Say ReverseDiff is a supported backend #974).
- Benchmarks call registry scenarios directly (Time registry scenarios by direct calls in the benchmarks #954).
- Release gates: all test jobs green on Julia 1.12 and 1.13, no AD job cancelled by its limit, coverage at target, benchmarks at parity, device tests pass on JLArrays and OpenCL, the three downstream packages pass, no open issue without an owner.
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.
- Pure step and typed
recordmarkers, verified on every backend (Pure step, record markers and the first part of the redesign #907). - One extension protocol: the pure step only; review items from Pure step, record markers and the first part of the redesign #907; pure forms for couplings and whole-step pieces.
- Stepwise API:
select, shared stratum parameters, batches as blocks, chunked-resume contract (Stepwise methods: select strata of a State, shared stratum parameters, batches and the chunked-run contract #918). - Kernel views: unsummed table, forward recurrence, growth as an operator property, strata maps.
- Docs to EpiAware standards: structure, prose, API overview, merged AD/GPU/performance page.
- Tutorials: "Fitting to data" (SMC, then SMC²) and the reporting-triangle and case-reproduction-number page.
- Every open issue settled: fixed, resolved, declined with a reason, or waiting on a named party.
- Benchmarks: interleaved comparison with a noise band, hand-run suite with history, user tool for comparing gradient routes.
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
publiclists 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
mainon 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
- ReverseDiff: keep as a tested backend (then ReverseDiff compiled tape gives wrong values for the transpose of normalised table increments #913 must be fixed) or state it as untested.
- Julia floor: 1.11 or 1.12.
- Version number for the release.
Generated by Claude Code
Metadata
Metadata
Assignees
Labels
No labels
Activity
seabbs-bot commentedon Dec 1, 2026
Status of the item "Every open issue settled", from #925.
Three things in that work bear on the gates here:
EpiAwarePackageTools.update("."; ad_timeout = 110)is the stopgap.Sharewithout its parameter, so aShareflow changed a model's output and a doctest inmodifiers.mdfailed. Settle the open issues: a compiled-tape fix and the outcome of each issue #925 fixes it (eea0134).Generated by Claude Code
seabbs-bot commentedon Dec 1, 2026
Reactant: classification of the broken results (first pass)
The committed
test/reactant/results.tsvonmain(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,timeoutorskipped, 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.
_discounteddispatches onv::Real, and the Newton loop ofgrowthstops on_solvableand_settled, which compare valuesReal, then a value-dependent branch_check_lag_mapaccepts a kernel table only asAbstractArray{<:Real}, which a traced array is notRealPair.(starts, values)over a traced vector has nosimilarin Reactant's broadcast; the same change points written as a literal reach the package and then fail in_check_coefficientand in the extension's_rows_atSparseMatrixCSC(m, n, colptr, rowval, nzval)takesnzval::Vector, and a traced array is not onenzvalruns through our sparse coupling; report upstream otherwisePoisson(λ)andNegativeBinomial(r, p)takeRealparameters, andTracedRNumberis not aRealifon its valuesifelsewill show the step tracesRows 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<:Realneeds 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
seabbs-bot commentedon Dec 1, 2026
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.jlon Julia 1.12.7 with Reactant 0.2.308, ReactantCore 0.1.26 and Enzyme 0.13.220, on the CPU, in #939.Counts
mainwhen this work started (3f7e82c)The second row is what the first real run showed: the committed table was out of date in two ways.
rec_resumefailed in both modes at both sizes (4 cells):cases.jlused a nameCRthat the module does not define.It is fixed in the pull request.
They fail on
mainat 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
_discountedtookv::Real; the Newton and power-iteration loops stopped on comparisons of valuesReal, value-dependent branches_check_lag_maptook a table only asAbstractArray{<:Real}Real_safe_slopebranched 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 optimisationRealand a value branch (ours), then a compiler bugPair.(starts, values)over a traced array has nosimilarrec_cp_traced), which needed two fixes of oursSparseMatrixCSCholds its nonzeros as aVector, whichcollectof a traced array is notrec_sparse) with no change of oursPoissonandNegativeBinomialtakeRealparametersRealifon its valuesifelsetraces (caserec_pure_step)rec_resume(4)cases.jlNo result is
wrong,timeoutorskippedin the final table.A user's own step
A modifier written as a pure
stepfrom the extending pages traces with no method for Reactant when it chooses withifelse,min,maxorclamp.Written with
ifonv,sorθit fails withTypeError: non-boolean (TracedRNumber{Bool}) used in boolean context.The rule is now in "Rules for every type" of the extending docs.
Not checked
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 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
seabbs-bot commentedon Dec 1, 2026
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
mainat 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/andext/the item executed (the coverage counters are written and cleared after each item).src/andext/executedThe 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.
test/unit/adjoints.jltest/unit/device_rules.jltest/unit/gpu_arrays.jltest/package/quality.jl(managed)test/unit/recurrence.jltest/unit/recent.jltest/unit/gradient_routes.jlWhat 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.
That is the rule checked against ForwardDiff on every registry model in under 7 minutes, where
test/unit/adjoints.jltakes 11.7 minutes for its own hand-built models.device_rules.jlandgpu_arrays.jltake 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. 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 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.jlre-spells 44 cases ofdevice_rules.jlwith copied fixtures.test_adjointruns 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.
The registry is otherwise close to minimal: 132 scenarios, 8 near-duplicate pairs.
recent.jl:284and:533,recurrence.jl:825and:866againstrecord.jl:4and:45,pool_capacity.jl:269insidetruncate.jl:73,convolution.jl:437insideusecases/delays.jl:29,dual_ties.jl:74to:98.pullback_matches,rule_vjp), four naive loops, three ForwardDiff configurations,Halvedefined four times, and the device fixtures copied betweendevice_rules.jl,pure_step.jlandtest/device/rules.jl.4. Target shape
ADFixturesalready 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.jluses 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.
test/unit/adjoints.jl);device_rules.jl);test/openclandtest/cudawith 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.
These stay, with duplicates merged.
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:
src/andext/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;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:
adjoints.jl,recent.jl,buffer_depth.jl,pure_step.jlwhose models are registry scenariosdevice_rules.jlDevice-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.jlitems."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:
test_adjoint, and 214 in hand-written items.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:
adaptof the operator (traces, returned states, contributions, user types)_add_outer!method for a device sparse route's cotangentFieldErrorin the reverse pass of lag contributions of a computed kernelEach 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/BVDOutbreakSizeto 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.jlcould 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
seabbs-bot commentedon Dec 2, 2026
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
stepandinitrun once while the program is recorded, on values that are not yet known.So
if,&&,||and? :onv,s, an entry ofθor the history are not allowed.Write the choice as
ifelse(cond, a, b),min,maxorclamp.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.
An error while tracing, not a wrong result:
TypeError: non-boolean (Reactant.TracedRNumber{Bool}) used in boolean context, with the user'sstepat the top of the stack.ifelseare computed.So neither arm may throw (
logorsqrtof a negative number), and for a gradient neither may beNaNor 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.
A traced number is not a
Real(TracedRNumber{Float64} <: Realisfalse).So a
stepwhose arguments after the modifier are untyped, as the extending pages already require, needs nothing more; one that annotates::Realor builds0.0wherezero(v)belongs does not trace.θ.A field that is a traced number, a
PerStratumor aTimeVaryingof a traced array reachesstepthroughθas on the host.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_stepintest/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 below1e-8).The constants and the compile calls below are written out for a reader; this exact script was not run as it stands.
The same
Carrywritten withx > θ.cap ? (θ.cap, x - θ.cap) : (x, zero(x))gives theTypeErrorof rule 2.Carrywritten withmin(x, θ.cap)andmax(x - θ.cap, zero(x))also traces and agrees with ForwardDiff.What the user must write differently around the model
θ[S + 1], needsReactant.@allowscalararound the user's own code; the package's loops allow it already.TimeVarying([1 => v[1], 4 => v[2]]);Pair.(starts, v)does not trace (caserec_cp_traced).[v[i] for i in eachindex(v)];SparseMatrixCSCdoes not hold a traced array (caserec_sparse).Not run, so not to be stated as working
tracemethod under Reactant; only the built-in traces are in the suite.blocks(m) = (nv, ns)with tuples) and a user's coupling written as a pure form.step_pullback: Reactant never calls it, as Enzyme differentiates the traced program.Generated by Claude Code
seabbs-bot commentedon Dec 2, 2026
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
src/andext/executedThe 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
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.
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=fullruns them all.What it did deliver
Gather,IncrementsandNormalisedhad no adapt rule; a route's CSC sparse coupling was not stored as CSR.test/item_times.tsvheld 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.
What would cut the time, each needing your decision
Loading:items in one job, not five (about 2 minutes each run).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
seabbs-bot commentedon Dec 2, 2026
Decisions for the owner, from the test suite trim
Each with its measured effect.
The measurements are on current
mainwith #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.TEST_BUDGETintest/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 cutmainis red until about a quarter of the suite is cuttest/runtests.jl)-O1, same 2,416 assertions passingPkg.testalone no longer runs the docs pages' examples; "Quality: doctest" (about 240 s, docstrings) is the kit's and staysAlready 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
seabbs-bot commentedon Dec 2, 2026
Documentation audit and target structure
Read at
d696616: the README, 37 Markdown pages and 12 Literate tutorials underdocs/src, anddocs/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
README.mdgetting-started/index.mdgetting-started/three-towns.mdgetting-started/three-towns-forward.mdgetting-started/time-units.mddomain-guides/infectious-disease-models.mdtutorials/backend-case-study.jlexplanation/api-overview.mdexplanation/operators.mdexplanation/shapes-and-couplings.mdexplanation/modifiers.mdexplanation/adjoints-and-backends.mdperformance/summary.mddocs/benchmarks.mdComposableRecurrencesDifferentiationInterfaceExthas no page, and the navigation lists a ForwardDiff page for an extension that does not exist.developer/*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
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.
docs/benchmarks.md.Plots only, drawn by
benchmark/figures.jlfrombenchmark/results/and thebenchmarksbranch.Every figure states its machine and revision.
No time from the AD registry's dynamic call is quoted for a scenario under 60 µs.
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
docs/pages.jl, so How it works, and the API overview with it, stays after Extensions (kit issue 558).docs/pages.jlis regenerated fromdocs/docs_config.jlby 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:Each will give its page and word counts before and after.
Generated by Claude Code
seabbs-bot commentedon Dec 2, 2026
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.
mainhas 5 exported and 62 public names; #986 gives 5 and 63.Recurrence,ConvolutionTimeVarying,PerStratum,PairwisePrimarySecondaryDepletion,Hazard,Floor,TruncateFlow,Share,SplitRedistribute,Allocate,TransformDerived,GatherRecentSurvival,Increments,Normalised,kernel_weights,delay_massesexponential_history,window_sums,contributions,pressuregrowth,growth_gainTrace,Resume,Pressurerecordmarkers;Pressureis also a roleStaterecord = Resume()returns andstate =takesstep,init,step_pullback,traceblocks,isstateless,islinear,nstate,ntrace,trace_rows,ismodifierforward!,pullback!,Step,Initparam,add_param!,param_rows,cotangent,add_cotangent!pullback!PieceInterfacetest_adjointtest_adjoint(backend, op, args...)gradient_routesNoAdjointSerial,Threaded,Parallel,EXECUTORDirect,FFTMethodDirectis the default once the FFT runs only on requestconvert_floatsselect,BatchedDeviceParallelLocalstep_pullbackuses_adjoint,Runtest_adjointtakes no role, andgradient_routesanswers the route questionTRACED_MIN_STRATAAutoparam_eltype,depth,forward,ispointwise,each!_kernel_couplings, which nothing called, is removed.ispointwisestays, as the tests and the AD fixtures call it.Generated by Claude Code
seabbs-bot commentedon Dec 2, 2026
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
mainplus #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
mainis still to be confirmed.The suite as it stands
Default suite (
test/runtests.jl, whatPkg.testand the Test workflow run).@testitems undertest/unit,test/usecasesandtest/package; items tagged:adlive intest/adand run in the per-backend AD jobs.test/item_times.tsv.:quality(run once on CI, in the Linux Test cell; includes the standards items, the benchmark and Reactant result-file items and theLoading:items),:threads(threads_onlymode),:usecase.skip_quality,quality_only,threads_only,usecase_only,record_times.Item times and the budget.
test/item_times.tsv: one line per item,seconds<TAB>assertions<TAB>name, written byjulia --project=test test/runtests.jl record_times. It held every item as of Load the registry by path, cover the two new scenarios, and record every item's time on current main #953; items added since have no line and weigh as the median.TEST_BUDGETintest/item_times.jlis 21 minutes on four workers. The busiest worker takes 20.2. It was 15 and only passed because 174 items had no recorded time. See the owner questions.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 byregistry.jl):calls()reads each scenario as(; name, op, args, single)by running its loss with a recording route;UNREACHEDlists the five scenarios it cannot reach;piecesnames the kinds of piece in a call;COVERis 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 toCOVER).ad_layer.jl:scenarios(),backends()and the ForwardDiff references. Only theADFixturesmodule includes it.ADFixtures.jl: imports the AD packages and includes the three files. The AD jobs, Reactant and the benchmarks load this module.registry.jlalone, in the test moduleRegistry(test/unit/registry.jl), so the default suite and the downgrade job load no AD package for it. Do not makeADFixturesa 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 snippetAdjointCheckincludes it too.device.jl:device_run(a call moved to a device against the host: values, device arrays, the route, cotangents) andresumed_run.tests.jl:test_rule,test_resumed,test_device, and the expectationsDEVICE_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 throughREGISTRY, which the includer sets.test/unit/registry.jl: two slices overCOVERon the host and JLArrays, one item for sparse matrices moved in CSC form, one for the lists.CR_REGISTRY=fullruns all 137 calls (about 17 minutes under coverage).test/device/registry.jl: the same on a real device array type.test/cuda/runtests.jlcalls it; it has never been run.test/opencldoes not call it yet.AD jobs (
test/ad, one job per backend tag).Items tagged for several backends must load the
JobBackendssnippet and usejob_backendsorjob_runs, or they compile every backend in every job.What is open, in order of value
test_adjoint24.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.mkcontextfor the broadcast kernel onJLBackend; Mooncake: GPUArrays'cached_alloc). Needs a CUDA GPU.CuSparseMatrixCSCon CUDA is owed.julia test/downstream/runtests.jlclones 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 againstepiforecasts/BVDOutbreakSize.Questions for the owner
Commands
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 withccall(:jl_write_coverage_data, Cvoid, (Cstring,), file)andccall(: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
seabbs-bot commentedon Dec 2, 2026
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
docs/src/references.mdas the canonical bibliography.main(Docs: conjugate gamma–Poisson estimation of the instantaneous reproduction number #975), inPACKAGE_SECTIONSofdocs/docs_config.jl.Open
ad35e62: the Performance page and docstring wording in one pull request. It replaces One Performance page with plots, drawn from recorded timings #1001 and Docstrings: one example each and no restating of other docstrings #998, which are closed.State: docs build, standards items and doctests pass locally.
Quality: docstring formatfails onAllocate, whose docstring onmainno longer names its fieldoffsetssince Shorter docstrings for Transform, Allocate and Redistribute #999; that needs one word restored insrc/modifiers/allocate.jland is not part of One Performance page with plots, and docstrings cut to one example #1002.Remaining work, in order
benchmark/results/docs.csvon a quiet machine.The file in One Performance page with plots, and docstrings cut to one example #1002 was timed at
d6966163on 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-docswith 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.
Allocatedocstring soQuality: docstring formatpasses onmain.PACKAGE_SECTIONSstill has the old name of a page now titled "Gradient rules, AD backends, executors and GPU arrays". Rename it and regeneratedocs/pages.jl(see below).RecurrenceandDepletionare 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.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
Commands
julia --project=docs docs/make.jl --skip-notebooks.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 ofdocs/docs_config.jlthat lists the others inFORCE_STUB_TUTORIALS.julia --project=test.docs/src:git clean -fdX docs/src. They fail the prose checks otherwise.Pkg.precompile()in the test environment first; doctests otherwise fail on precompilation notices printed into their output.docs/pages.jlis managed. Editdocs/docs_config.jl, then regenerate with the kit's own function:test/package/standards_config.jlmust be removed from it, or its check errors as an unexpected pass.Checklist applied to a page
@ids are unchanged.The owner's rules
docs/src/refs.biband cited by key; each page lists its own with a non-canonical@bibliographyblock.Generated by Claude Code
seabbs-bot commentedon Dec 2, 2026
Moved from #908, which is closed in favour of the kit request: run
julia test/downstream/runtests.jlonce against epiforecasts/BVDOutbreakSize with access to that repository, and report what it needs.Generated by Claude Code
[-]Release readiness: work in flight and gates[/-][+]Release readiness: what is still open before 0.2.0[/+]seabbs-bot commentedon Dec 4, 2026
Status against
mainat d1f52c3Done:
Autoremoved (Run the FFT only on request and remove Auto #1027, 80945f6).Project.toml, CI and docs (Raise the Julia floor to 1.12 #1033, e1239a9; Run the compat-floor CI legs on Julia 1.12 #1036, 228db42).Remaining:
benchmark/results/docs.csvon a quiet machine. It was last written by One Performance page with plots, and docstrings cut to one example #1002.-O1workers and doctests once per push.[sources]entries, moved here from Release 0.2.0: register the version Project.toml already carries #323.main), and the option style on Stabilise the call API before the release #916.Generated by Claude Code