Repository navigation
0.5.0 - 2026-08-17
Release Notes
Added
- Two parallel edge collapse schedules. Both write certificates the
independent verifier accepts, both give the same diagram as the serial
collapse, and both are deterministic at every worker count.- The ordered schedule,
collapse::collapse_dense_ordered_paralleland
collapse::collapse_sparse_ordered_parallel, runs the serial schedule
on worker threads. Workers test a bounded window of the due edges
against one immutable state of the graph. The window then retires in
serial order: an edge reuses its cached test when no removal committed
since the test can have changed the result, and otherwise the test
runs again against the current graph. The reduced graph and the
certificate are the serial ones at every worker count, field for
field, with each floating value compared by bits. The certificates are
algorithm version 1. A gate covers dense and sparse input, worker
counts 0, 1, 2, 4, and 8, and window sizes from one edge to larger
than the whole input, and it compares against the serial collapse and
against an independent unpruned reference. - The rounds schedule,
collapse::collapse_dense_rounds_paralleland
collapse::collapse_sparse_rounds_parallel, removes edges in rounds.
Each round tests the live edges against a frozen snapshot of the graph
and deletes a batch whose removals provably do not affect each other,
so the batch is equivalent to removing those edges one at a time in
the recorded order. The reduced graph and the certificate are
identical at every worker count, field for field, with each floating
value compared by bits. They are not the serial ones: the two
schedules can keep different edges. A gate enforces the identity at 1,
2, 4, and 8 threads, and the diagram equality battery runs against the
serial collapse, the uncollapsed run, and the oracle.
- The ordered schedule,
CollapseScheduleonRipsParams, with
RipsParams::with_collapse_scheduleand the CLI flag
--collapse-schedule serial|ordered|rounds. It picks the schedule the
pipeline runs whencollapse_edgesis set. The default is the serial
schedule. The Python bindings exposecollapse_edgesalone and run the
serial schedule; theholos-tdaconsole script carries the flag.- Algorithm version 2 certificates for the rounds schedule.
CollapseCertificate::algorithm_versionreports 2, and each removal
step records its round.RemovalStep::epochreturns a step's epoch, and
CollapseStats::epochsreturns the epoch count. An epoch is a pass for
version 1 and a round for version 2. A step does not carry the version,
so read the version from the certificate. - Round checks in the independent verifier. For a version 2 certificate it
rebuilds the graph before each round and validates every witness of that
round against that one snapshot, with the checks it already applied to
version 1. It then checks that no removal of the round has both
endpoints in the closed common neighborhood of another removal of the
same round, that the recorded order within the round holds, and that the
round numbers are contiguous. The verifier rejects a round that groups
removals which affect each other, even when the same removals in
sequence would pass. The independence check examines the endpoint pairs
inside each closed common neighborhood instead of every pair of
removals, so a wide round of small neighborhoods costs the sum of the
squared neighborhood sizes, not the round width squared. Version 1
certificates keep their existing checks. - Scheduling counters on
CollapseStatsfor the ordered schedule.
logical_testsis the test count of the serial schedule.
invalidated_resultscounts cached tests dropped before use, whether a
conflicting removal or a large-neighborhood bail invalidated them; every
dropped test runs again serially at its turn, so this is also the repair
count.global_invalidationscounts the large-neighborhood bails that
dropped at least one cached test ahead of them, andwindow_batches
counts the window stages executed.window_slots_offeredand
window_members_formedgive window occupancy, and
window_members_reusedcounts the cached verdicts consumed without a
repair.edge_testskeeps its meaning of physical predicate calls,
which speculation can push above the logical count. The structural
fields are identical at every worker count and window size; the
scheduling counters,edge_tests, andmax_common_neighborhoodare the
fields that move. CollapseTimingsonCollapsedRipssplits an ordered run's wall clock
into the parallel test phase, the serial retirement walk, and the repairs
inside it. It is a diagnostic: the values vary between runs, never
affect an output field, and are zero on the serial and rounds schedules.- A phase-separated scaling benchmark (
crates/collapse-bench,
benchmarks/collapse_scaling_rounds.sh,
benchmarks/collapse_scaling_ordered.sh). It times the distance build,
the graph construction, the whole collapse call, and the downstream
reduction in one process, each on its own clock, so it measures collapse
time directly instead of subtracting it from a total. It asserts diagram
equality across every configuration before it reports a timing.
Changed
- With
RipsParams::collapse_edgesset,RipsParams::threadsis the
worker budget for the whole pipeline. One pool serves the reduction and,
when a parallel schedule runs, the collapse. A standalone parallel
collapse call owns a pool for its duration. - The CLI reports passes for the serial and ordered schedules and rounds
for the rounds schedule. CollapsedRipsis#[non_exhaustive]and carries atimingsfield;
construct it from a collapse call only.CollapseStatsimplements
Default.RemovalStep::passand thepassesfield are gone. Use
RemovalStep::epochandCollapseStats::epochs.- Performance, from two preregistered scaling studies (held-out
confirmation sets, four physical cores with two threads each). Neither
parallel schedule beats the serial collapse end to end on the median
entry, so the serial collapse stays the default and the throughput
recommendation in the confirmed regimes.- The ordered schedule, graded negative under its frozen rule. At four
workers the median confirmed entry runs the collapse at 0.84x the
serial speed and the whole pipeline at 0.85x. The serial collapse is
faster end to end on ten of the thirteen confirmed entries; the
ordered schedule wins three, by at most 1.13x. Peak memory is a median
1.06x and at most 1.15x of the serial pipeline. The cost is repair.
Earlier removals invalidate most cached tests, which then run again
serially, and on the median entry those repairs alone take about three
quarters of the whole serial collapse phase. The windows still stay at
or above 99 percent full on every headline entry, and the physical
test count stays inside its 2x bound. The ordered schedule gives a
parallel run whose reduced graph and certificate are exactly the
serial ones, bit for bit. - The rounds schedule, graded parallel-but-Amdahl-limited under its
frozen rule. The collapse itself scales with workers, a median 4.8x
from one worker to eight, and that does not carry to the pipeline. The
complete run is slower than the same pipeline with the serial collapse
on every confirmed entry, because the rounds schedule tests many more
edges to reach its fixed point, and the gap grows with the edge count.
Peak memory is a median 1.35x and at most 1.43x of the serial
pipeline. The rounds schedule gives a result that does not depend on
the worker count and, on some inputs, a much smaller reduced graph.
One confirmation entry keeps 2,199 edges where the serial schedule
keeps 16,815. - The point estimates above come from the registered runs. Their
records, the exact corpus files they cite, and a reproduction at a
release candidate commit are attached to the release. The registered
runs cite internal development commits that are not in the public
history; the reproduction, whose timings and peak memory are
descriptive, gave the same grades and the same numbers within
rounding.
- The ordered schedule, graded negative under its frozen rule. At four
Install holos-tda 0.5.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/t0rsion/holos/releases/download/v0.5.0/holos-tda-installer.sh | shInstall prebuilt binaries via Homebrew
brew install t0rsion/tap/holos-tdaDownload holos-tda 0.5.0
| File | Platform | Checksum |
|---|---|---|
| holos-tda-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| holos-tda-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| holos-tda-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| holos-tda-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| holos-tda-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
Records
The benchmark records behind the numbers in CHANGELOG.md and README.md are attached to this release. records-INDEX.md lists them: the consumed, grade-determining runs of the two registered collapse scaling studies with the exact corpus files they cite, and a descriptive reproduction at a release candidate commit. Records are attached as flat files; the index names each one.