Skip to content

Settle the open issues: a compiled-tape fix and the outcome of each issue - #925

Merged
seabbs-bot merged 11 commits into
mainfrom
claude/settle-open-issues-6nrow8
Dec 1, 2026
Merged

seabbs-bot merged 11 commits into
mainfrom
claude/settle-open-issues-6nrow8

Conversation

@seabbs-bot

@seabbs-bot seabbs-bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Settles the open issues against the redesigned branch.
Each issue has a comment with its reproduction and outcome; this table is the index.

Changes in this pull request

Every open issue

Issue Title Outcome Evidence
#913 ReverseDiff compiled tape gives wrong values for the transpose of normalised table increments Fixed, closed Cause: a value-dependent branch in the floor of the total, frozen at the zero recording point (1 / eps is the 1e15 scale). ad / ReverseDiff (compiled) locally: 2,845 pass, 0 fail, from 13 failures
#857 Enzyme gives wrong gradients for change points built by vcat of Pair vectors Waiting: upstream report to file Narrowed to copyto! of a Vector{Tuple{Int64, Float64}}, package-free, on Julia 1.11.9 and 1.13.4 with Enzyme 0.13.221. Report text attached. Docs row added here
#397 Plain Enzyme reverse through NoAdjoint fails on Julia 1.11 Waiting: upstream reports to file, or the floor to move to 1.12 Both package-free reproducers re-run on 1.11.9 and 1.13.4
#314 Enzyme reverse: TypeError "in new … got RefValue" for a Union-typed modifier Waiting: upstream report to file Package-free and package reproducers re-run on 1.13.4; the loss chosen outside matches ForwardDiff. The maintainer's question on a custom rule is answered
#872 Enzyme plain Reverse of a NoAdjoint Recurrence segfaults on Julia 1.11 with threads Does not reproduce, closed 12 of 12 clean runs today on 1.11.9 with 4 threads; 46 in all on two machines
#526 Enzyme reverse AD job runs close to its 75-minute cap Waiting: the kit, for shards Both reverse jobs were cancelled at the cap on #907. Measured: one Enzyme compile of 3 to 15 s per scenario, 238 scenarios, every other operator free, half of a compile in type inference. No package-side cut keeps every check. Kit request text attached
#310 Julia pre (1.14) fails at resolve Waiting: a Mooncake release for Julia 1.14 Mooncake 0.5.74 allows Julia up to 1.13
#835 Reverse-mode AD backends on device arrays are untested Waiting: a CUDA GPU Cannot run without one; what to run is listed
#834 Test device sparse couplings in forms other than CSR Package side done on #907; waiting: a CUDA GPU for the check fb8773a, 26d6b08
#512 GPU performance Waiting: a CUDA GPU to time the three open rows Status of each proposed fix listed
#513 Design: AcceleratedKernels Evaluation finished, declined, closed AK measured and declined; Parallel(backend) built; each feature gap has a home
#402 Run the AD registry on Julia 1.11 and 1.12 per pull request Declined, closed The reverse registry does not fit one job on one version; 1.11 is checked per push by the compat_floor items
#541 CI: the full unit suite runs six times per push Step 1 done, step 2 declined; waiting: the kit, for step 3 Kit request text attached
#908 Run the downstream check against BVDOutbreakSize Waiting: the kit and a token check The job cannot pass until a downstream entry carries test arguments
#906 Release nudge Waiting: the release Closed by its workflow when 0.2.0 is registered
#323 Release 0.2.0 Waiting: #907, #920 and #916, then the maintainer Ordered list of what it waits on
#211 Adoption This repository's part done, closed Items 1, 2, 3 and 5 done; the two ports are pull requests in their own repositories
#569 Review round index Resolved, closed 30 of its 32 issues are closed
#552 Docs: cut the reference pages Three items done, one declined, one moved to #323, closed API overview is 527 words; the rule timings stay as the policy's evidence
#401 Docs after #366 and #391 Resolved apart from the tutorial fold, which is declined, closed Item-by-item table against the current pages
#281 Docs: a performance page linked to a published benchmark report Resolved on #907, closed 7d9bde2
#280 Docs: tutorial cards on epiaware.org Waiting: the site's repository The list of titles and paths is attached
#899 Wren.jl No extension, closed Three models pass on Enzyme, Mooncake and Reactant with no extension
#891 Follow-ups from #536 Three items resolved, two declined, closed 0a9026f for a recurrence without a kernel; docstring recipe here
#915 Census-style clamped lag updates Declined, closed No operator of the package is involved and one model needs it
#623 Mooncake gradients of two tutorials slower than hand rules Resolved, closed transform 0.56 to 0.91 of the hand rule; reproduction ahead in five of six timings
#873 A Survival with a Derived hazard costs 1.8× a hand rule Recommended option is in, closed #880 gives closed-form partials; the onset table is now 1.1× to 1.6× with dual numbers
#329 Cohort and hazard kernels built element by element Resolved, closed 8 to 10× when filed; now 0.9 to 1.0 (two-clock), 1.0 to 1.4 (abscond), 1.1 to 1.6 (onset)
#572 Forward pass, allocations and compile time against hand code Not finished, open Remaining: the blockwise Depletion step, the onset table, compile time
#924 Title doesn't render correctly and Rt won't be familiar to people Title fixed here; waiting: the docs-structure work, for the grouping Opened during this work. Four places renamed, anchor unchanged
#914 Occupancy gradient is 3–4× the hand rule Reproduced, not fixed, open 3.0 to 3.9× on the kernels alone; needs a fused reverse step per group

Not touched: #916 and #918, as instructed, and #919, which is today's design issue on the views of a kernel's table and belongs to the session that owns kernel views.
#921, the release tracker, has a status comment and stays with its owner.

In all: 15 closed, 14 open and waiting on a named party, 2 open and unfinished.

Tests run

  • ad / ReverseDiff (compiled), the whole job, locally on Julia 1.13.4: 2,845 pass.

  • The new item, before and after the change.

  • The unit items for computed kernels and the transpose, the doctests and the quality items, locally: 733 pass, 21 broken (as before), 0 fail. Runic passes on the changed files.

  • After the share fix and the title change: the standards items (doctests, navigation, wording, line length) and the Depletion unit items, locally: 1,430 pass, 21 broken (as before), 0 fail. Before the share fix the same run had 1 failure, the modifiers.md doctest.

  • The forward call on the plain path, before and after the floor change, three alternating rounds (Convolution over a Normalised kernel, 30 lags, 200 times, minimum µs). The outputs are identical to the last bit.

Kernel Before After
Normalised(Increments(table)) 3.54, 3.40, 3.00 3.52, 3.45, 3.20
Normalised(g * Survival(TimeVarying(h))) 7.99, 6.70, 8.40 7.96, 10.70, 8.40

The spread between rounds of one arm is larger than any difference between the arms.

  • A total that is not finite: a new check in test/unit/weights.jl (54 of 54 in its item).

The other AD jobs were not run locally.

For the maintainer

https://claude.ai/code/session_01WwC7izNqN3hiaW9xiV3dRm


Generated by Claude Code

The floor under the total of a Normalised kernel chose between the total
and eps by comparing the total, so a compiled tape kept the choice made
where it was recorded. It is now the max of the two, which every number
type evaluates at its own value. A total that is not finite is no longer
replaced by eps.

Claude-Session: https://claude.ai/code/session_01WwC7izNqN3hiaW9xiV3dRm
@seabbs-bot
seabbs-bot requested a review from seabbs as a code owner December 1, 2026 15:02
seabbs-review-bot[bot]

This comment was marked as resolved.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Try this Pull Request!

Option 1: Julia Package Manager

Open Julia and type:

import Pkg
Pkg.activate(temp=true)
Pkg.add(url="https://github.com/EpiAware/ComposableRecurrences.jl", rev="claude/settle-open-issues-6nrow8")
using ComposableRecurrences

Option 2: Local Checkout

If you have the repo locally:

git checkout claude/settle-open-issues-6nrow8
julia --project=. -e "using Pkg; Pkg.instantiate()"

The share form now carries its bound as a type parameter, and three
methods still dispatched on the form without it, so a share flow moved
nothing and its reverse pass was skipped. The doctest of a ward filled up
to a capacity shows the difference.

Claude-Session: https://claude.ai/code/session_01WwC7izNqN3hiaW9xiV3dRm
@seabbs-bot
seabbs-bot changed the base branch from claude/amazing-shannon-6nrow8 to main December 1, 2026 16:48
@seabbs-bot
seabbs-bot merged commit f540604 into main Dec 1, 2026
13 of 25 checks passed
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

📖 Documentation preview is ready!

View the docs for this PR at: https://EpiAware.github.io/ComposableRecurrences.jl/previews/PR925/

This preview will be updated automatically when you push new commits.

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

Labels

llm-reviewed Reviewed by seabbs-review-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ReverseDiff compiled tape gives wrong values for the transpose of normalised table increments

2 participants