Skip to content

fix: Use libcucascade domain for all NVTX ranges - #196

Merged
rapids-bot[bot] merged 1 commit into
NVIDIA:mainfrom
9prady9:fix/nvtx-domain-ranges
Sep 15, 2026
Merged

rapids-bot[bot] merged 1 commit into
NVIDIA:mainfrom
9prady9:fix/nvtx-domain-ranges

Conversation

@9prady9

@9prady9 9prady9 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • move every cuCascade NVTX range into the libcucascade domain
  • replace the converter's global-domain nvtxRangePushA/nvtxRangePop wrapper with nvtx3::scoped_range_in
  • remove the CUCASCADE_NVTX CMake option and always compile the annotations
  • propagate the header-only CUDA::nvtx3 target through the library's public usage requirements

Rationale

NVTX dispatches to no-op stubs when no profiling tool is injected, so a separate compile-time switch is unnecessary. Always compiling the ranges ensures they are available whenever cuCascade is profiled. Keeping both the function-level and named hg:* ranges in libcucascade also makes cuCascade activity easy to distinguish from NVTX ranges emitted by other libraries.

Verification

  • configured the release build with CUDA 13.2 and cuDF 26.08
  • compiled and linked cucascade_shared and cucascade_cudf_shared with warnings treated as errors
  • verified generated CMake export targets propagate CUDA::nvtx3
  • passed all pre-commit hooks on the changed files

@copy-pr-bot

copy-pr-bot Bot commented Sep 15, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@9prady9 9prady9 changed the title Use libcucascade domain for all NVTX ranges fix: Use libcucascade domain for all NVTX ranges Sep 15, 2026
@mbrobbel

Copy link
Copy Markdown
Member

/ok to test edfbb63

@mbrobbel

Copy link
Copy Markdown
Member

/merge

@rapids-bot
rapids-bot Bot merged commit beeac82 into NVIDIA:main Sep 15, 2026
12 checks passed
felipeblazing pushed a commit to felipeblazing/sirius that referenced this pull request Sep 16, 2026
…capture (sirius-db#1804)

## Description

Sirius emitted every NVTX range into the default domain, so profiles
interleaved Sirius with `libcudf`/`CCCL` and couldn't be filtered to
Sirius alone.

**NVTX `sirius` domain**

- All 80 annotation sites move into a named `sirius` domain.
- The pipeline range spans task boundaries and can't be scoped, so it
switches to `nvtxDomainRangeStartEx`/`End` — semantics unchanged.
- `src/legacy/` is deliberately left on the global domain.

**The domain tag type is declared twice on purpose**

- simpatico also builds standalone, without `src/include` on its include
path.
- `parquet_benchmark` gets `src/include` but not simpatico's include
root.
- So neither header can include the other — collapsing them fails with
`fatal error: codegen/util/nvtx.hpp: No such file or directory`.
- NVTX keys domains by name, so both tag types resolve to one `sirius`
domain.
- The name comes from a single `SIRIUS_NVTX_DOMAIN_NAME` definition set
from `${PROJECT_NAME}`, so it can't drift.

**quent bump**

- `381e1be` → `b21933d0`, for
[quent#736](rapidsai/quent#736), which groups
explicitly named NVTX domains by name at the presentation boundary.

**Quent context ordering**

- cuCascade's ranges gained a `libcucascade` domain in
[cuCascade#196](NVIDIA/cuCascade#196), already
on `dev` — but that domain never reached Quent.
- `nvtx_injection::dispatch` drops events while its `OnceLock` hook is
unset, and that hook is installed by `quent::create_context`, which ran
inside `telemetry_context`'s constructor — i.e. *after* the memory
manager was built. cuCascade's pinned-pool setup, including the
`nvtxDomainCreateA` that names the domain, landed in that dead window.
- The handle stayed valid, so later cuCascade ranges were captured but
unnamed; the UI showed them under `domain0x1`.
- `telemetry_context::create` now takes an already-built
`rust::Box<quent::Context>`, and `SiriusContext::initialize` builds it
first via the new `make_quent_context()`. This keeps the memory manager
and per-GPU device ids the context declaration needs, so no telemetry is
lost.

**Verification**

- TPC-H SF100 (Q1/Q3/Q5) under nsys: one `sirius` domain alongside
`libcucascade`, `libcudf` and `CCCL`; zero ranges left in the default
domain.
- Under Quent: all four domains now appear by name — `libcucascade`
showed as `domain0x1` before the ordering fix.
- Builds clean after rebase onto `dev` (RAPIDS nightly 26.12):
`sirius_extension`, `sirius_unittest`, `parquet_benchmark`, standalone
`simpatico_codegen`.
- `pre-commit run -a` green.

## Checklist
- [x] Read CONTRIBUTING.md and ensure PR meets "reviewability" checklist
- [ ] Cover changes with new or existing tests — NVTX domain membership
and Quent capture timing are observable only in a profiler, so both are
verified via the nsys/Quent runs above; the two
`telemetry_context::create` call sites in tests are updated for the new
signature
- [x] Document configuration changes in code and summarize in the
description above
- [ ] Update human and agent documentation — `quent-telemetry.md`
doesn't enumerate domains, so nothing went stale

## References

Refs [cuCascade#196](NVIDIA/cuCascade#196),
[quent#736](rapidsai/quent#736)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
aunjgr added a commit to matrixorigin/sirius that referenced this pull request Sep 29, 2026
* build(deps): bump cxx from 1.0.200 to 1.0.202 in /rust (#1801)

Bumps [cxx](https://github.com/dtolnay/cxx) from 1.0.200 to 1.0.202.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/dtolnay/cxx/releases">cxx's
releases</a>.</em></p>
<blockquote>
<h2>1.0.202</h2>
<ul>
<li>Support build environments that limit build-script filesystem writes
outside of OUT_DIR (<a
href="https://redirect.github.com/dtolnay/cxx/issues/1760">#1760</a>,
thanks <a
href="https://github.com/gudcks0305"><code>@​gudcks0305</code></a>)</li>
</ul>
<h2>1.0.201</h2>
<ul>
<li>Specialize <code>enable_borrowed_range</code> and
<code>enable_view</code> for <code>rust::Slice&lt;T&gt;</code> (<a
href="https://redirect.github.com/dtolnay/cxx/issues/1758">#1758</a>,
thanks <a
href="https://github.com/MixusMinimax"><code>@​MixusMinimax</code></a>)</li>
<li>Register bazel toolchains as dev dependencies (<a
href="https://redirect.github.com/dtolnay/cxx/issues/1759">#1759</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/dtolnay/cxx/commit/983982c5fd5584a5391ae46877e952118e431f73"><code>983982c</code></a>
Release 1.0.202</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/552330e2a705f1b0ed03454eb2fc9b4d702ff556"><code>552330e</code></a>
Touch up PR 1760</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/3a9d010450c5ee145a9394ced0b83a294215a91e"><code>3a9d010</code></a>
Merge pull request 1760 from
gudcks0305/codex/fix-shared-header-fallback</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/97c1cfffcbc51bea167b927dd4acdba147ef3bbf"><code>97c1cff</code></a>
fix: tolerate unavailable shared header directory</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/982aa18796aef5ffea9c26466bd21d8397002cb9"><code>982aa18</code></a>
Release 1.0.201</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/a543f3b5c859b6a11757a4899a0dd367fb2a7a37"><code>a543f3b</code></a>
Lockfile update</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/a237c373198ff5cfe4aa8dc9e2e49ac75643b114"><code>a237c37</code></a>
Reformat with clang-format 22</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/eeabfb536ec143ff52bd1c54a2bc9eecba6881f2"><code>eeabfb5</code></a>
Move static assertions from header to source file</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/47d9bf7a5fae6657712e1e1373f1758b40fca660"><code>47d9bf7</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/cxx/issues/1758">#1758</a>
from MixusMinimax/slice-impl-borrowed-range-and-view</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/5a9c2ba4cebbc3ac62f20175e1bb60c26b82affb"><code>5a9c2ba</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/cxx/issues/1759">#1759</a>
from dtolnay/bazel</li>
<li>Additional commits viewable in <a
href="https://github.com/dtolnay/cxx/compare/1.0.200...1.0.202">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cxx&package-manager=cargo&previous-version=1.0.200&new-version=1.0.202)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump cxx from 1.0.200 to 1.0.202 in /experimental/starrocks (#1800)

Bumps [cxx](https://github.com/dtolnay/cxx) from 1.0.200 to 1.0.202.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/dtolnay/cxx/releases">cxx's
releases</a>.</em></p>
<blockquote>
<h2>1.0.202</h2>
<ul>
<li>Support build environments that limit build-script filesystem writes
outside of OUT_DIR (<a
href="https://redirect.github.com/dtolnay/cxx/issues/1760">#1760</a>,
thanks <a
href="https://github.com/gudcks0305"><code>@​gudcks0305</code></a>)</li>
</ul>
<h2>1.0.201</h2>
<ul>
<li>Specialize <code>enable_borrowed_range</code> and
<code>enable_view</code> for <code>rust::Slice&lt;T&gt;</code> (<a
href="https://redirect.github.com/dtolnay/cxx/issues/1758">#1758</a>,
thanks <a
href="https://github.com/MixusMinimax"><code>@​MixusMinimax</code></a>)</li>
<li>Register bazel toolchains as dev dependencies (<a
href="https://redirect.github.com/dtolnay/cxx/issues/1759">#1759</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/dtolnay/cxx/commit/983982c5fd5584a5391ae46877e952118e431f73"><code>983982c</code></a>
Release 1.0.202</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/552330e2a705f1b0ed03454eb2fc9b4d702ff556"><code>552330e</code></a>
Touch up PR 1760</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/3a9d010450c5ee145a9394ced0b83a294215a91e"><code>3a9d010</code></a>
Merge pull request 1760 from
gudcks0305/codex/fix-shared-header-fallback</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/97c1cfffcbc51bea167b927dd4acdba147ef3bbf"><code>97c1cff</code></a>
fix: tolerate unavailable shared header directory</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/982aa18796aef5ffea9c26466bd21d8397002cb9"><code>982aa18</code></a>
Release 1.0.201</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/a543f3b5c859b6a11757a4899a0dd367fb2a7a37"><code>a543f3b</code></a>
Lockfile update</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/a237c373198ff5cfe4aa8dc9e2e49ac75643b114"><code>a237c37</code></a>
Reformat with clang-format 22</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/eeabfb536ec143ff52bd1c54a2bc9eecba6881f2"><code>eeabfb5</code></a>
Move static assertions from header to source file</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/47d9bf7a5fae6657712e1e1373f1758b40fca660"><code>47d9bf7</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/cxx/issues/1758">#1758</a>
from MixusMinimax/slice-impl-borrowed-range-and-view</li>
<li><a
href="https://github.com/dtolnay/cxx/commit/5a9c2ba4cebbc3ac62f20175e1bb60c26b82affb"><code>5a9c2ba</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/cxx/issues/1759">#1759</a>
from dtolnay/bazel</li>
<li>Additional commits viewable in <a
href="https://github.com/dtolnay/cxx/compare/1.0.200...1.0.202">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cxx&package-manager=cargo&previous-version=1.0.200&new-version=1.0.202)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* perf(scan): see through DATE→TIMESTAMP casts in fused scan-filter range extraction (#1577)

# perf(scan): see through DATE→TIMESTAMP casts in scan filter range
extraction

**Branch:** `pr/cast-through-range-extraction` → base: **`dev`**. Two
commits, no longer stacked: the change, and the review follow-up for
@mbrobbel's ±infinity / overflow comment. Rebased onto `dev` @
`05148c78` (2026-09-15).

> [!NOTE]
> **Previously stacked on #1555**, which has since merged (`3ac080d8`).
This PR was rebased onto `dev`: the ~70 never-merged commits of the
#1391 fused scan-filter lineage are gone, and the one remaining change
was **ported** rather than replayed — `dev` had meanwhile refactored the
extraction machinery out of `scan_utils.cpp` into
`op/scan/scan_filter_analysis.{hpp,cpp}`
(`extract_numeric_range_pushdown` → `analyze_scan_filters`,
`decoded_bound{floor,ceil}` → `sirius::numeric_range{minimum,maximum}`).
The diff below is now exactly this change: **5 files, +889 / −24**.

## Problem

DuckDB constant-folds qgen-style date arithmetic (`l_shipdate <= DATE
'1998-12-01' - INTERVAL '72' DAY`) into `CAST(l_shipdate AS TIMESTAMP)
<= TIMESTAMP '1998-09-20 00:00:00'`, which arrives at the scan as an
`EXPRESSION_FILTER`. `analyze_scan_filters` only understood
`CONSTANT_COMPARISON` / `CONJUNCTION_AND`, so `fold_numeric_conjunct`
refused the clause and the whole scan lost its in-decode masking:
full-width decode + per-row cast AST filter + gather-compact. q1 varied
1.288 s vs 0.831 s with the equivalent DATE literal; the same shape
appears in 9 predicates across q1/q4/q5/q6/q10/q12/q14/q15/q20 under
spec-official (qgen) parameters.

## Change

Three additions in `src/op/scan/scan_filter_analysis.cpp`:

- **`to_decoded_bound`**: accepts finite `TIMESTAMP[_S|_MS|_NS]`
constants against DATE columns, lowering ticks / ticks-per-day into the
stored-day domain by floor/ceil (templated on the finer-scale DECIMAL
branch). The bound is EXACT for every comparison op — midnight(d) is
strictly monotonic in d — so midnight and non-midnight constants both
keep full coverage and the residual filter drops; `= non-midnight` folds
to a provably empty range.
- **`fold_comparison_bound`**: the comparison switch lifted out of
`fold_numeric_conjunct` so both filter shapes share one implementation.
- **`fold_expression_conjunct`** + a new `EXPRESSION_FILTER` case,
matching `cmp(CAST(bound_ref AS TIMESTAMP*), ts_const)` in both operand
orders (comparison flipped on swap), recursing through AND conjunctions.

**Edges of the DATE domain** (review follow-up, see
`lower_timestamp_to_days`): `DATE ±infinity` rows compare correctly
because ±INT32_MAX days and ±INT64_MAX ticks are the extremes of their
domains, and **±infinity constants now lower exactly** to the infinite
date's stored days instead of being refused. A finite date whose
midnight overflows the target (~±292,000 years for `TIMESTAMP/_S/_MS`,
~±292 years for `TIMESTAMP_NS`) makes DuckDB raise; a decode range
cannot raise, and neither does the residual `cudf::cast` it replaces, so
the range is deliberately not clipped to the castable window and such
rows are kept or dropped by the instant they denote. The only divergence
from DuckDB, and only on queries DuckDB refuses to answer.

**Refused (coverage cleared, residual kept):** `TRY_CAST`
(NULL-on-overflow diverges from day math on >-side bounds),
`TIMESTAMP_TZ` (midnight is session-timezone dependent), `INT64_MIN`
ticks (below -infinity, never a real instant), and every non-comparison
shape (including the `BETWEEN` DuckDB builds from two cast comparisons
on one column; follow-up).

## Measured (SF1000, GB300, spec-official qgen parameters)

- **Power@Size +9.6% → 10,079,305**
- Power-run suite time **−8.3%**
- q1/q12/q14/q15 each **−36..39%** (the queries whose only selective
predicate is a folded date cast)

> [!WARNING]
> These numbers were measured on the **pre-rebase fused-scan-filter
stack**, not on this branch. They have **not** been re-measured against
current `dev`, whose scan/decode path has since changed (#1524 late
materialization, #1555, and others). Treat them as the original
motivation, not as a claim about this branch's delta. Correctness on
current `dev` is verified below.

## Amplification history (honest note)

Multiplying the number of fused scans exposed two classes of
pre-existing bugs downstream of scan-produced geometry — neither
introduced by this change, both diagnosed during its qualification:

- two pre-existing Sirius GPU use-after-free races (batch read-lock
lifetime, error-path teardown);
- a pre-existing **CCCL 3.4.0** bug: the warp-specialized (TMA)
`cub::DeviceScan` on Blackwell performs an out-of-bounds `__shared__`
read that silently corrupts scan outputs under concurrent kernel
diversity (memcheck-reproducible with a 22-line bare `ExclusiveSum`;
CTK-bundled CCCL 3.2.0 is clean).

Both hardenings ship separately in **#1580** (which supersedes the
now-closed #1546).

## Tests

- `test/cpp/scan/test_scan_filter_cast_ranges.cpp` (`[range_pushdown]`):
exhaustive boundary matrix — all 5 ops × midnight / one-µs-either-side /
noon constants, pre-epoch floor, operand flips, AND shapes, S/MS/NS
flavors, extreme finite ticks, ±infinity constants (all ops, both
directions, both operand orders, every flavor), `INT64_MIN` refusal,
bounds not clipped to the castable window, and the refusal set.
- `test/cpp/integration/test_gpu_execution_cast_date_predicates.cpp`
(`[cast_date]`): GPU-vs-CPU equivalence for the folded SQL shapes on
three scan paths. **On current `dev` the fold's ranges only take effect
on a GPU-pinned Parquet entry decoded through the compressed path** (the
DuckDB-native ingestible does not analyze its filter), so besides the
plain and DuckDB-pinned scans the fixture pins bitpacked Parquet twins,
proves via census that the pin compressed, and lifts the fused-decode
selectivity caps so the in-decode mask answers. New tables: `DATE
±infinity` rows (finite constants on every path, infinite constants on
the fold path) and a year-300000 date that raises on CPU while the fold
answers by instant.

Run on this branch, rebased onto `dev` @ `05148c78`:

| Filter | Result |
| --- | --- |
| `[range_pushdown],[cast_date],[fused_scan_filter]` | 17/17 green —
9,788 assertions |
| `[scan],[filter]` neighbor sweep | 374/374 green — 461,053 assertions
|

`pixi run pre-commit run -a` clean on the changed files.

> [!NOTE]
> Found while making the tests bite, pre-existing and not touched here:
the residual `cudf::cast` path multiplies `±INT32_MAX` days into int64
micros and wraps, so e.g. `d < TIMESTAMP 'infinity'` returns the
+infinity row on unpinned / DuckDB-format scans today. The fold gives
the right answer where it engages.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 <[email protected]>

* fix: RAPIDS nightly 26.12 build (#1803)

Handle breaking changes in 26.12 to fix nightly job.

* fix(compression): bring in Felipe's fixes and improvements to compression exploration (#1726)

## Description
This PR brings in the changes from Felipe's late-mat branch #1391 to fix
and improve simpatico's explore function.
It includes excluding JIT costs from the evaluation, and outputting all
pareto-optimal points so we can change the throughput floor without
re-measuring.

## Checklist
- [x] Read CONTRIBUTING.md and ensure PR meets "reviewability" checklist
- [x] Cover changes with new or existing tests
- [x] Document configuration changes in code and summarize in the
description above
- [x] Update human and agent documentation (README.md, docs/, skills,
CLAUDE.md)

## References

Co-authored-by: Felipe Aramburu <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>

* perf: build the Sirius physical plan once per query; skip the row-group metadata walk for pin-served scans (#1548)

## Description

Two independent frontend fixes, one per commit, that cut redundant
plan-construction work out
of the query path.

### 1. Build the Sirius physical plan once per query

The transparent path built the Sirius GPU physical plan **twice per
query**: once in
`OnFinalizePrepare` purely to validate GPU support (the resulting plan
was discarded), and
again in `PhysicalSiriusExecution::GetDataInternal` for the actual run.
The validated plan is
now handed to `PhysicalSiriusExecution` and consumed by the first
`GetData` (one-shot — the
move empties the slot). Re-executions of the same prepared operator
rebuild from the logical
plan template exactly as before, so data-drift and rebind semantics are
unchanged.

### 2. Defer the row-group metadata walk for pin-served scans

Every plan build constructs one duckdb-native ingestible per `seq_scan`,
whose constructor ran
`prepare_duckdb_native_walk`: `GetPartitionStats` plus a per-row-group
statistics pass per
prunable filter column and per projected varchar column. For a
**pin-served scan its output is
never consumed** — splits come from the pinned entry's chunk plan and
insert-delta bundles, not
from the walk.

`sirius_plan_get` now marks a scan whose MVCC cache-or-CPU guards all
passed with
`mvcc_pin_serves_scan`; the plan generator forwards it as
`defer_metadata_walk`; the ingestible
skips the walk at construction; and the new
`gpu_ingestible::ensure_metadata_prepared()` hook
runs it lazily from the scan manager, on the query thread, for exactly
the scans that did *not*
match a pinned entry at execution time. A scan that actually reads disk
always gets its walk.

The two compound: fix 1 halves the number of plan builds, fix 2 removes
the walk from the
remaining build on pinned workloads.

### Refusal semantics preserved

- The projected-type gate stays **eager in both modes** (factored out as
`unsupported_projected_type_reason`), so unsupported types still refuse
at plan time, where
  the throw is a clean CPU fallback.
- `sirius_plan_get`'s table-level overflow-string probe strictly
dominates the walk's
per-row-group overflow check. For deferred scans the per-row-group
refusal moves to the lazy
walk (a runtime scan error → CPU fallback); for unpinned scans it stays
at construction.
- A lazy-walk failure throws out of `prepare_for_query` and surfaces as
a runtime scan error,
  matching the walk's other runtime refusals.

No new configuration knobs; behavior is unconditional.

## Measurements

**Re-measured 2026-09-16 after rebasing onto `dev` @ `05148c78`**
(RAPIDS 26.08), same GB300 box,
same duckdb-native SF1000 database, unpinned, q1–q19, best-of-3 per
query, arms alternated, each
arm built in its own worktree. Only runs where the process was in the
box's fast mode are
comparable (see the caveat below):

| | dev @ 05148c78 | this branch | |
|---|---|---|---|
| suite total, run A | 36.362 s | 35.907 s | |
| suite total, run B | 36.696 s | 35.922 s | |
| suite total, min | 36.362 s | 35.907 s | **−1.25%** |
| queries equal or faster | | | 19/19 |

Largest movers: q12 −4.2%, q6 −3.6%, q5 −2.2%, q3 −1.9%. No query slower
outside its own run
spread. This matches the −1.05…−1.23% measured on the previous base — as
expected, fix 1 is the
whole effect on an unpinned workload.

**Caveat — bimodal box, not bimodal code.** During this session the
machine put roughly a third of
launched Sirius processes into a persistent "slow mode": cold first
iterations identical, every
warm iteration ~2.6× slower, for the process's whole lifetime, on
*either* binary. Twelve
alternating single-process probes (q6+q12, 3 iterations) split dev 2
fast / 4 slow and this branch
4 fast / 2 slow, with the two binaries equal inside each mode (q6
1.66–1.71 s vs 1.66–1.71 s fast;
4.4–4.5 s vs 4.4–4.5 s slow). Slow-mode runs are excluded from the table
above. The mechanism is not
diagnosed here (best guess: host-pool placement vs page cache); it
predates and is independent of
this PR.

**Also on both arms:** the pre-existing `SIGSEGV` in
`cuMemcpyBatchAsync_v2` under
`decode_duckdb_native_split` now also fires intermittently on q2 (and
q9), not only q20/q3. Dev
bug, reproduces on the base binary.

<details><summary>Original measurements against dev @ 9624f063</summary>



Measured on a GB300 workstation against a duckdb-native TPC-H SF1000
database, comparing this
branch against its base (`dev` @ `9624f063`), each arm built in its own
worktree.

**Unpinned — the case where the walk cannot be skipped and must run
anyway.** Best-of-3 per
query, 4 complete runs on the base and 3 on this branch, arms
alternated:

| | base | this branch | |
|---|---|---|---|
| suite total, min of runs | 37.784 s | 37.389 s | **−1.05%** |
| suite total, median of runs | 37.882 s | 37.416 s | **−1.23%** |
| per-run spread | 37.78–38.15 s | 37.39–37.46 s | non-overlapping |
| queries faster | | | 15/19 |

The two arms' spreads do not overlap, so this is not run-to-run noise.
Largest movers: q6
−4.1%, q12 −3.4%, q19 −2.3%, q4 −2.2%. Two queries moved the other way
(q14 +3.2%, q13 +2.5%)
but both sit inside their own per-run spread.

This is fix 1 acting alone: with nothing pinned, `defer_metadata_walk`
is never set and the
walk runs eagerly on both arms — but the base runs it *twice per scan*
and this branch once.
Counting the per-operator plan-build log marker on a single-scan query
confirms the mechanism:
**6 emissions on the base, 3 on this branch** (3 logical operators × 2
builds vs × 1).

**Pinned.** Verified by log markers that the feature engages as designed
— one
`deferring metadata walk` and one `reusing finalize-validated Sirius
plan` per query, with the
walk skipped entirely. The magnitude of the pinned-workload win is
**not** re-measured here;
the numbers previously quoted on this PR were taken against a superseded
base and have been
removed rather than carried forward.

**Not measured:** the deferred-walk-then-pin-missing path (the walk runs
from
`prepare_for_query` instead of at plan time). Reaching it requires a pin
to disappear between
plan and execute, which I could not force deterministically at scale. It
runs the same function
on the same thread, just later.

**Unrelated pre-existing failure:** q20 segfaults on the unpinned
duckdb-native path on *both*
arms (4/4 runs), and q3 does so intermittently — `SIGSEGV` in
`cuMemcpyBatchAsync_v2` under
`decode_duckdb_native_split`. It reproduces identically on `dev`, so it
is not from this PR;
it is why the table above covers q1–q19.

</details>

## Checklist
- [x] Read CONTRIBUTING.md
- [x] Cover changes with new or existing tests
- [x] Document configuration changes in code and summarize in the
description above
- [ ] Update human and agent documentation (README.md, docs/, skills,
CLAUDE.md) — no
      user-facing behavior or configuration changes to document

## Tests

- New `test/cpp/scan/test_duckdb_native_deferred_walk.cpp`
(`[duckdb_native_deferred_walk]`,
  CPU-side, file-backed duckdb): deferred construction skips the walk;
`ensure_metadata_prepared()` produces a plan identical to the eager one
(row groups, starts,
counts, filter-stat pruning); unsupported types still refuse at
construction in both modes;
overflow-string refusal placement per mode; a failed walk is retried
rather than latched;
  deferred split claims match eager claims.
- **AC-12 lifecycle-test adaptation**
(`test/cpp/integration/test_query_lifecycle_slot.cpp`):
the runtime-window parser required a "Creating sirius physical plan"
line inside every
execution window. With plan reuse the first execution's plan is created
at finalize, so the
parser now also accepts the plan-reuse line as plan provenance. The
acceptance criterion
itself is unchanged — the id-zero check and the cross-execution
operator-id-sequence-equality
check still verify that operator ids restart for every repeated
execution.
- Local: `[duckdb_native_deferred_walk]` + `[duckdb_native_walker]` 10
cases / 101 assertions
  pass; full default suite green (2828 cases, 32.7M assertions).

## References

---------

Co-authored-by: Claude Fable 5 <[email protected]>

* build: add standalone `sirius` shared library CMake target (#1767)

This is the first step towards building Sirius as standalone library.

Closes #1732.

* fix(telemetry): give Sirius its own NVTX domain and fix Quent domain capture (#1804)

## Description

Sirius emitted every NVTX range into the default domain, so profiles
interleaved Sirius with `libcudf`/`CCCL` and couldn't be filtered to
Sirius alone.

**NVTX `sirius` domain**

- All 80 annotation sites move into a named `sirius` domain.
- The pipeline range spans task boundaries and can't be scoped, so it
switches to `nvtxDomainRangeStartEx`/`End` — semantics unchanged.
- `src/legacy/` is deliberately left on the global domain.

**The domain tag type is declared twice on purpose**

- simpatico also builds standalone, without `src/include` on its include
path.
- `parquet_benchmark` gets `src/include` but not simpatico's include
root.
- So neither header can include the other — collapsing them fails with
`fatal error: codegen/util/nvtx.hpp: No such file or directory`.
- NVTX keys domains by name, so both tag types resolve to one `sirius`
domain.
- The name comes from a single `SIRIUS_NVTX_DOMAIN_NAME` definition set
from `${PROJECT_NAME}`, so it can't drift.

**quent bump**

- `381e1be` → `b21933d0`, for
[quent#736](https://github.com/rapidsai/quent/pull/736), which groups
explicitly named NVTX domains by name at the presentation boundary.

**Quent context ordering**

- cuCascade's ranges gained a `libcucascade` domain in
[cuCascade#196](https://github.com/NVIDIA/cuCascade/pull/196), already
on `dev` — but that domain never reached Quent.
- `nvtx_injection::dispatch` drops events while its `OnceLock` hook is
unset, and that hook is installed by `quent::create_context`, which ran
inside `telemetry_context`'s constructor — i.e. *after* the memory
manager was built. cuCascade's pinned-pool setup, including the
`nvtxDomainCreateA` that names the domain, landed in that dead window.
- The handle stayed valid, so later cuCascade ranges were captured but
unnamed; the UI showed them under `domain0x1`.
- `telemetry_context::create` now takes an already-built
`rust::Box<quent::Context>`, and `SiriusContext::initialize` builds it
first via the new `make_quent_context()`. This keeps the memory manager
and per-GPU device ids the context declaration needs, so no telemetry is
lost.

**Verification**

- TPC-H SF100 (Q1/Q3/Q5) under nsys: one `sirius` domain alongside
`libcucascade`, `libcudf` and `CCCL`; zero ranges left in the default
domain.
- Under Quent: all four domains now appear by name — `libcucascade`
showed as `domain0x1` before the ordering fix.
- Builds clean after rebase onto `dev` (RAPIDS nightly 26.12):
`sirius_extension`, `sirius_unittest`, `parquet_benchmark`, standalone
`simpatico_codegen`.
- `pre-commit run -a` green.

## Checklist
- [x] Read CONTRIBUTING.md and ensure PR meets "reviewability" checklist
- [ ] Cover changes with new or existing tests — NVTX domain membership
and Quent capture timing are observable only in a profiler, so both are
verified via the nsys/Quent runs above; the two
`telemetry_context::create` call sites in tests are updated for the new
signature
- [x] Document configuration changes in code and summarize in the
description above
- [ ] Update human and agent documentation — `quent-telemetry.md`
doesn't enumerate domains, so nothing went stale

## References

Refs [cuCascade#196](https://github.com/NVIDIA/cuCascade/pull/196),
[quent#736](https://github.com/rapidsai/quent/pull/736)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

* chore: clean up build warnings and remove obsolete compat branches (#1809)

Some clean up:
- silence some build warnings
- remove some obsolete rapids comparability branches

* fix: Update simpatico for RMM deprecations and README commands (#1812)

I was going through the simpatico README and found that (1) some of the
commands were outdated and (2) I hit an RMM version bump-related error
(`rmm::mr::set_current_device_resource_ref()` has been removed upstream
in RMM). This PR fixes both these issues.

Here's a concise summary of the build issue and proposed fix from Codex
that I've edited myself

> ### Build issue
> The standalone Simpatico CLI and two tests failed against the upgraded
RAPIDS/RMM stack because they still used the removed
`rmm::mr::set_current_device_resource_ref()` API. The existing guards
also saved the previous resource as a non-owning
`device_async_resource_ref`, which can dangle after the current resource
is replaced.
> 
> ### Fix
> Switch resource installation to `cudf::set_current_device_resource()`,
retain its returned owning `cuda::mr::any_resource`, and move that
resource back when restoring the previous allocator. This follows the
ownership handling introduced in
https://github.com/sirius-db/sirius/pull/877, the non-deprecated cuDF
API migration in https://github.com/sirius-db/sirius/pull/1098, and the
existing RAII pattern from
https://github.com/sirius-db/sirius/pull/1205.
> The change here update the Simpatico CLI, operator-sweep test, and
compression round-trip test. The build and CLI round-trip verification
now pass.

cc @felipeblazing

---------

Signed-off-by: James Bourbeau <[email protected]>

* build: make CTrack dependency opt-in (#1772)

## Description

CTrack was fetched and linked unconditionally, which made a
profiling-only dependency part of every build. This adds
`BUILD_WITH_CTRACK`, defaulting to `OFF`, and gates the CTrack fetch,
link dependency, and compile definition behind that option so normal
builds do not require CTrack.

## Validation

- `pixi run pre-commit run -a` passes at this commit.
- The final stacked tree passes the complete release build.

## Checklist

- [x] Read `CONTRIBUTING.md` and meet the PR reviewability requirements.
- [x] Preserve the existing CTrack path when `BUILD_WITH_CTRACK=ON`.
- [x] Document the new build option next to its CMake definition.

## Stack

Layer 2 of 6. Based on `stacked/frugal-native-01-rapids`; followed by
#1776.

---------

Co-authored-by: Matthijs Brobbel <[email protected]>

* fix(test): avoid environment mutation after fork (#1679)

## Description

Replace the two watchdog runners' `fork()` + environment mutation +
`exec()` sequences with `posix_spawn()` using an environment prepared
entirely in the parent process.

Add a reusable child-process environment helper that snapshots the
inherited environment, applies child-only overrides and removals, and
leaves the parent unchanged. This generalizes the existing
envp-construction pattern in `test_operator_sweep.cpp` and
`test_fused_operator_sweep.cpp` so both watchdogs share it.

The spawn environments preserve the original pre-exec behavior,
including inheriting `SIRIUS_DISABLE`. After re-exec, the hidden runners
reapply `SIRIUS_CONFIG_FILE` and clear `SIRIUS_DISABLE` because shared
test-environment startup resets those process-wide values before the
selected test runs.

A tree-wide process-launch audit found no other post-fork environment
mutation. Other fork/exec sites either prepare `envp` in the parent or
perform only descriptor and exec operations in the child, so they are
intentionally outside this change.

## Validation

Validated on Ubuntu 24.04 with an NVIDIA GeForce RTX 5060 Ti (compute
capability 12.0), CUDA 13.2, and `io_uring` enabled:

- `CUDAARCHS=120 CMAKE_BUILD_PARALLEL_LEVEL=8 pixi run make`
- `pixi run pre-commit run -a`
- Child-process environment regression: 7 assertions in 1 test case
- Query-lifecycle watchdog: 78 assertions in 11 test cases
- Hive-partition CUDA watchdog: 28 assertions in 1 test case
- `pixi run make s3-test`: 31,433 assertions in 92 test cases using
testcontainers-managed MinIO over HTTP and TLS
- Native macOS C++17 spawn/environment smoke test passed

## Checklist

- [x] Read CONTRIBUTING.md
- [x] Cover changes with new or existing tests
- [x] Document configuration changes in code and summarize in the
description above (N/A: no configuration changes)
- [x] Update human and agent documentation (N/A: internal test
infrastructure only)

## References

Closes #1440

---------

Co-authored-by: Aaron Wu <[email protected]>

* fix: include RMM stream view in dictionary helper (#1810)

Follow-up of #1803.

* chore: use standard containers and pointers (#1805)

Reduce dependency on DuckDB-owned standard-library-like types.

- Replace DuckDB vectors and smart pointers for Sirius
pipeline/meta-pipeline ownership with standard-library equivalents.
- Propagate the standard types through pipeline conversion, query
indexing, task creation, telemetry, operator ports, and focused test
helpers.
- Remove direct DuckDB common-pointer/container includes where the
pipeline headers no longer require them.

* chore(simpatico): unify the two nvrtc JIT compile modes (#1814)

## Description
There used to be separate compilation modes in Simpatico for decode vs
encode, 1 of them using c++17 and the other c++20. There isn't really a
reason to do so, and it turns out c++20 is also faster.

## Checklist
- [ ] Read CONTRIBUTING.md and ensure PR meets "reviewability" checklist
- [ ] Cover changes with new or existing tests
- [ ] Document configuration changes in code and summarize in the
description above
- [ ] Update human and agent documentation (README.md, docs/, skills,
CLAUDE.md)

## References

Co-authored-by: Claude Opus 5 <[email protected]>

* feat(event): add query event publisher (#1776)

## Description

Query lifecycle notifications were coupled to their producers, making it
difficult for readahead and other services to observe execution without
adding direct dependencies. This introduces a query event publisher and
hook-driven subscribers, stamps publications with process-wide event IDs
and system-clock timestamps, and adds the thread utilities used to
dispatch subscriber work safely.

Tests cover event publication, subscriber behavior, ordering metadata,
and the supporting thread utilities.

## Validation

- `pixi run pre-commit run -a` passes at this commit.
- The final stacked tree passes the complete release build.

## Checklist

- [x] Read `CONTRIBUTING.md` and meet the PR reviewability requirements.
- [x] Cover the publisher, subscribers, and thread utilities with tests.
- [x] No user-facing configuration change.

## Stack

Layer 3 of 6. Based on `stacked/frugal-native-02-ctrack`; followed by
#1774.

* perf(spill): fix the partition-spill cliff; chunk and pipeline downgrade/offload copies (#1552)

# spill: fix the partition-spill cliff and monolithic downgrade copies
(T8)

**Branch:** `pr/spill-cliff-chunked-offload` → base: `dev` (`3a0ef61f`).
No stacking dependency.

## Problem

The q9-class RF1 spill cliff: +0.1 % delta rows tipped two extra ~4.5 GB
partition round-trips
through host (D2H 57→75 GB / H2D 75→93 GB, post-RF1 +117 ms), delivered
as single 18–28 GB
blocking copy submissions on an un-instrumented thread. Two independent
causes:

1. The builtin cucascade GPU→HOST fast converter submits an entire
batch's D2H copies as one
   monolithic batched call plus a blocking sync.
2. Monitor-issued downgrades force-flush the whole trigger→stop band (≥
12 GB per marginal
crossing on the SF1000 GB300 config) and spill whole partitions in
policy order, so a
   marginal working-set increase becomes a multi-GB spill.

## Change

1. **Chunked, pipelined GPU→HOST spill copies**
(`src/data/spill_chunked_converters.cpp`,
`chunked_spill_copy.hpp`): `SiriusContext::initialize` replaces the
builtin converter with a
Sirius-side transcription that flushes D2H submissions every
`~copy_chunk_bytes` (default
1 GiB; yaml `executor.downgrade.copy_chunk_bytes`, `0` keeps the
builtin) while the column
tree is still being walked — chunk k's DMA overlaps chunk k+1's prep.
Produces a
byte-identical `host_data_representation` (same self-describing
column_metadata layout); the
HOST→GPU restore direction deliberately stays on the unchanged builtin
converter. Adds NVTX
ranges to the downgrade worker's conversions (no timing instrumentation
is compiled into the
   production path; measurement is via the profiler).
2. **Overflow-proportional spill sizing** (`downgrade_executor.cpp`, new
`spill_policy.hpp`):
- Monitor requests (yaml
`executor.downgrade.overflow_proportional_spill`, default true) stop
as soon as live pressure drops back below the *trigger* threshold
instead of flushing down
     to the stop threshold.
- Byte-targeted requests carry `target_bytes`: dispatch stops once
planned (freed +
in-flight) bytes cover the target, bounding overshoot to < 1 batch at
any pool width, and
the final per-repo pick is best-fit (smallest candidate covering the
remaining deficit)
     instead of the next whole partition in policy order.
- The live predicate is evaluated before every dispatch, so an
already-satisfied request
     spills nothing instead of at least one batch.

Reservation-driven `request_downgrade` keeps its
dispatch-until-satisfied envelope
(livelock-sensitive at 251/256 GB); it only gains the earlier predicate
checks. This decouples
spilled bytes from both the trigger→stop band and whole-partition
granularity **without**
retuning `hash_partition_bytes` (a measured trade, not a win).

## Measured

SF1000, GB300: **q9 post-RF1 spill cliff eliminated (+117 ms → −71
ms)**; spilled bytes become
proportional to the actual overflow instead of the trigger→stop band.

## Testing

- New unit tests: `test_chunked_spill_copy.cpp` (chunked converter
produces byte-identical host
representations across chunk-size sweeps), `test_spill_policy.cpp`
(best-fit picks), extended
`test_downgrade_executor.cpp` (predicate-stops, target_bytes bounding).
- Full `sirius_unittest` suite green on GB300: 2842 test cases,
32,778,745 assertions.
- Full pre-commit hook set passes on the changed files.

## Related follow-up (not in this PR)

The stack lineage carries `dcc4c50a` "fix(downgrade): wake the scheduler
matcher after returning
extracted tasks" — a pre-existing whole-process deadlock (task returned
via RAII emits no
`task_available`; deterministic at SF1000 host-pinned q18, 7/7 hangs).
It applies to `dev`
independently of this PR and should be its own small PR.


🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: Bobbi Winema Yogatama <[email protected]>

* feat(benchmark): official TPC-H power/throughput/QphH harness (scoring, clause-2.8 evolution, scratch rollback, nsys mapping) (#1554)

# bench: official TPC-H power/throughput/QphH harness (RF1/RF2,
per-query telemetry + nsys)

Tooling-only PR — no engine code. Branch:
`pr/tpch-power-throughput-harness`, rebased onto current `dev`
(2026-09-16).

## Description

Extends `test/tpch_performance/tpch_power_throughput.py` and the
`bench/sf1000-repro` kit into a
harness for **official TPC-H power/throughput scoring** on a file-backed
`.duckdb` dataset, with
per-query telemetry and per-query nsys profiling for analysis runs. This
harness produced the
SF1000 QphH campaign on GB300 that took **QphH@Size from 5.47M to
7.52M** (reference run in the
commit message: Power@Size 7,165,616 / Throughput@Size 4,951,261 / QphH
5,956,411 on the PR #1409
stack, GPU-vs-CPU validation PASS after both refresh functions).

### Scoring (spec-conformant)

- `Power@Size = 3600·SF / geomean(22 stream-0 query times + T_RF1 +
T_RF2)` — the refresh
functions are timed as spec elements of the power geomean, not warmup.
Query times below
`slowest/1000` are floored per **clause 5.4.1.4** (the 1000:1 spread
cap).
- `Throughput@Size = N·22·3600 / measurement_interval · SF` — the
interval is wall-clock from
first stream start to last stream end (**clause 5.3.6.1**), with N
concurrent query streams
  (spec permutations) plus one refresh stream running N RF1/RF2 pairs.
- `QphH@Size = sqrt(Power · Throughput)`.
- `--vary-predicates` runs each stream's own qgen substitution
parameters, as an official run
  requires; the default fixed parameters keep validation meaningful.
- `--update-set-offset` implements **clause 2.8 database evolution**:
one evolving database is
reused across runs (`--scratch-db <shared> --keep-scratch-db`) — the
power run consumes update
set N+1, throughput N+2..N+streams+1 — instead of restoring a 440 GB
pristine copy per
benchmark run. Validation requires offset 0 (`--update-set-offset`
rejects `--validation`);
the scratch size check accepts the evolved size and reports drift
instead of failing.

### Shared-GPU probe gate (`run-power.sh`)

The config reserves ~0.95 of the device at `LOAD`. On a shared box that
fails not only while
another workload runs but **for minutes after it exits** — the driver
reclaims a dead process's
async-pool backing lazily, during which `nvidia-smi` already reports the
memory free but large
allocations still OOM. Gating on `nvidia-smi` therefore passes and the
run still dies; the only
reliable gate is the failing operation itself. `run-power.sh` retries a
throwaway extension-LOAD
probe (`PROBE_TRIES`, default 20 × 60 s) before committing to the run,
on the original
(non-telemetry) config so a Quent capture never sees a second same-named
engine.

### Rollback-scratch: WAL-discard restore (`--rollback-scratch`,
`ROLLBACK=1`)

Restores the scratch DB after a run **without re-copying** (a 15-minute,
440 GB operation at
SF1000). Recipe — three thresholds keep every refresh mutation confined
to the WAL:
`SET checkpoint_threshold='1TB'`, `SET wal_autocheckpoint='1TB'`, and
`SET auto_checkpoint_skip_wal_threshold=2^40` (so bulk writes do not
checkpoint-on-commit). The
run then ends via `os._exit` because DuckDB force-checkpoints the WAL
into the base file on any
clean shutdown and offers no opt-out; deleting `<scratch>.wal`
afterwards (run-power.sh's
`ROLLBACK=1` does it) restores content-pristine state, so every run
reuses one copy at offset 0.

Qualified at small scale: 3 mutate/discard cycles returned exact
pristine content each time.
**Caveat (orphan drift):** the base file keeps small orphaned-block
growth from DuckDB's
optimistic bulk writes — never read, never reclaimed — so the file size
drifts up across cycles;
the size check reports the drift, and the copy should be refreshed when
it grows large.
Incompatible with `NSYS=1`.

### Per-query nsys (`--nsys-per-query`, `NSYS=1`)

Each sequential power-pass query is bracketed in its own cudaProfilerApi
capture range
(`--capture-range=cudaProfilerApi --capture-range-end=repeat::sync`);
the throughput phase gets
one whole-interval range (cudaProfilerStart is process-global —
concurrent streams must not use
it). Two gotchas are baked in:

- **`repeat::sync`, and never trust report indices**: nsys silently
merges adjacent capture
ranges when profiler_stop/start pairs arrive faster than it finalizes a
range, and can drop the
last range at exit — the surviving `range.<N>.nsys-rep` files are
numbered compactly, so
index-based assignment shifts every pointer after the first merge
(observed: 72 files for 89
planned ranges). `prep_analysis_bundles.py` therefore joins reports to
manifest entries by
**absolute-timestamp overlap** (report capture window from its sqlite
export, manifest window
from the runner-recorded `start/stop_epoch_ns`, falling back to the
quent query's Init..Exit
window), and writes a full accounting to `nsys_range_map.json` — mapped
/ ambiguous (merged) /
dropped / no_window / conflict; orphan reports and partial overlaps
flagged, nothing silently
  reassigned. A 0-byte sqlite export is treated as failed, not cached.
- **env-clear for the nsys frontend**: the frontend's bundled
`libssl.so.3` predates the pixi
libcurl's `OPENSSL_3.2.0` requirement and dies at startup, so nsys is
launched with
`LD_PRELOAD`/`LD_LIBRARY_PATH` cleared and both restored only for the
profiled python.

nsys runs are analysis runs; their metrics are never quoted as scores.

### Validation worker design

Validation cannot share a process with the pinned run: Sirius's host
pool is a growing pool
allocator (unpinning returns blocks to the pool, not the OS) and DuckDB
sizes its default
`memory_limit` from total system RAM with no knowledge of what Sirius
holds — at SF1000 a
CPU-side q9 allocates into a machine already ~320 GB spoken for and gets
OOM-killed. The GPU rows
are pickled per phase, and a **fresh child process** that never loads
the extension replays
RF1/RF2 on its own copy of the pristine input to reproduce the
post-refresh states, then diffs
row-by-row (sorted multisets, absolute tolerance). Related:
`--duckdb-memory-limit` (default
32 GB) caps the benchmark connection itself — the unlimited default
OOM-killed the pinned process
during pin materialization at SF1000.

### Telemetry and analysis prep

- Every query is labeled (`CALL sirius_set_query_label`, zero-padded
`q01`..`q22`) and each phase
bucketed into its own Quent query group via `CALL
sirius_set_session_label` (`warmup`,
`power_clean`, `power`, `power_postrf2`, `tput_s1..sN`); both calls sit
outside the timed
  window. `QUENT=1` derives a telemetry-enabled config per run.
- `prep_analysis_bundles.py <run_dir> <nsys_dir> <quent_dir>` builds
per-query analysis bundle
JSONs (nsys report pointers with `nsys_status`/`nsys_shared_with`,
timings, quent UUIDs) and
  pre-exports every `.nsys-rep` to sqlite in parallel.
- `--pin-layout <json>`: mixed-tier pin layouts with validated column
coverage (a
schema-qualified name creates a second entry over the same table for
per-column tiering);
SF1000 reference layout in `bench/sf1000-repro/pin-layout-sf1000.json`.
- `--warmup-pass` burns one discarded pass so JIT/first-touch costs land
nowhere; crash-safe
cleanup keeps results when unpin fails; the perf-stack env
(`SIRIUS_EXP_*`, `SIRIUS_PRE_SQL`,
`LD_PRELOAD`) is recorded into `run_info.txt`/`metrics.json` for
provenance.
- `generate_tpch_refresh.sh`: dbgen `upath[128]` overflow fix (stage via
`/tmp`).

## Engine dependencies (all in `dev` now)

Everything this harness leans on has landed, and the rebase commit
adapts the harness to it:

- **`sirius_set_session_label`** exists in `dev`; the runner still
catches `CatalogException` and
  degrades to unlabeled groups on an older engine.
- **Split pin entries** (the `main.orders` host-tier entry in the SF1000
layout) use the
column-aware `find_pinned_entry_for_duckdb_table(requested_ids)` lookup
that is in `dev`. A
scored run must still have zero `Transparent execution fallback` lines
in its `log_dir`.
- **`SIRIUS_EXP_*` gates** (#1524): `run-power.sh` exports the same
names and defaults as `run.sh`
(`SIRIUS_EXP_FUSED_SCAN_FILTER`, `SIRIUS_EXP_LATE_MAT`,
`SIRIUS_EXP_LATE_MAT_PIN_UNIQUE_COLS`).
Late-mat is inert on duckdb pins; fused scan-filter engages on the
compressed GPU pins.
- **Config** (#1499): the two diagnostic YAMLs no longer set
`thread_name_prefix`, which the loader
  now rejects.
- **Patched libcudf** is optional (`CUDF_SO`), matching `run.sh` after
#1524; unset uses the pixi
  libcudf.
- `SIRIUS_POISON_FREES` / `SIRIUS_QUARANTINE_FREES` (used by
`verify-poison-concurrent.sh`) are the
one remaining separate piece; without them that gate degrades to a
concurrent stress run with
  coredump capture.

## Reconciliation with #1470

PR #1470 (fadvise cache eviction, benchmark totals) landed in
`test/tpch_performance/performance_test.py`; this PR does not touch that
file and keeps dev's
shape. The runner's own `_evict_page_cache` uses the same mechanism
(`posix_fadvise(DONTNEED)`,
no sudo) but targets the `.duckdb` scratch/input files with an
fsync-first dirty-page path — it
complements rather than duplicates `drop_os_cache`.

## Staged refresh (#1551)

Staged refresh landed in `dev` while this PR was open and is on by
default in the runner; the
clause-2.8 offset and the rollback path both pass it through
(`rf1/rf2_statements(dir, set,
staged)`), and `run-power.sh` forwards `--no-staged-refresh` for the
legacy path. Staging tables
are created after the rollback thresholds are armed, so they live in the
WAL and are discarded
with it.

## Rollback on every exit path

The rebase commit also closes a gap in `--rollback-scratch`: an
exception mid-run used to reach
interpreter teardown, where the kept-alive connection's destructor
checkpoints the WAL into the
base file and consumes the scratch — on exactly the crashed run whose
scratch needs restoring.
`os._exit` now fires on every exit path once rollback is armed, and
`run-power.sh` reaches its
WAL-discard step even when the runner fails (`|| RC=$?` instead of
tripping `set -e`).

## Checklist

- [x] Read CONTRIBUTING.md
- [x] Cover changes with new or existing tests — `py_compile`/`bash
-n`/`pre-commit` clean;
exercised end-to-end at SF1000 (see measured context above) and at small
scale for the
rollback qualification. No unit tests: benchmark tooling, not engine
code.
- [x] Document configuration changes — knob table in
`bench/sf1000-repro/README.md`, flag docs
      in `test/tpch_performance/CLAUDE.md`.
- [x] Update human and agent documentation (README.md, CLAUDE.md)

## References

Refs #1470 (cache-eviction overlap, reconciled above).

🤖 Generated with [Claude Code](https://claude.com/claude-code)


🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Fable 5 <[email protected]>

* chore: remove obsolete template bootstrap and directory placeholder (#1816)

As mentioned in
https://github.com/sirius-db/sirius/pull/1806#discussion_r4033651889,
these files are obsolete.

* feat(exec): add CUDA event completion polling (#1774)

## Description

Components that finish work on CUDA streams need to observe event
completion without blocking an executor thread. This adds
`cuda_event_completion_poll`, which polls CUDA events and dispatches
their completion callbacks through the execution infrastructure.

The accompanying tests cover registration, polling, completion dispatch,
shutdown, and error paths.

## Validation

- `pixi run pre-commit run -a` passes at this commit.
- The final stacked tree passes the complete release build.

## Checklist

- [x] Read `CONTRIBUTING.md` and meet the PR reviewability requirements.
- [x] Cover normal completion and lifecycle edge cases with tests.
- [x] No user-facing configuration change.

## Stack

Layer 4 of 6. Based on `stacked/frugal-native-03-query-events`; followed
by #1773.

* refactor(io): normalize I/O layout and cache handle naming (#1773)

## Description

The I/O code used prefetch-specific names for objects that now represent
cache residency and completion more generally. This normalizes the I/O
namespace and source layout, moves REST and S3 helpers under `io/rest`,
introduces the shared invocable execution utility, and renames
`prefetching_handle` to `cache_handle` throughout scan, cache, and
engine code.

The rename prepares the interfaces consumed by the dynamic I/O and
frugal-caching layer while keeping behavior unchanged.

## Validation

- `pixi run pre-commit run -a` passes at both commits in this PR.
- The final stacked tree passes the complete release build.

## Checklist

- [x] Read `CONTRIBUTING.md` and meet the PR reviewability requirements.
- [x] Update affected tests and documentation with the normalized names.
- [x] No user-facing configuration change.

## Stack

Layer 5 of 6. Based on `stacked/frugal-native-04-cuda-events`; followed
by #1771.

* chore: update affiliation of Yu and Xiangyao (#1808)

* feat: enforce task input invariants at compile-time part-1 (#1593)

This PR simply updates sirius to be able to compile against updates in
https://github.com/NVIDIA/cuCascade/pull/192, so we can incrementally
move to a more bolted down data management strategy.

This is intentionally narrowly scoped to ease the review process, and
the subsequent independent pieces will be proposed separately.

Part 1 of a few to move towards solving
https://github.com/sirius-db/sirius/issues/1063 from the root of it.

* build(deps): bump clap from 4.6.6 to 4.6.7 in /experimental/starrocks (#1828)

Bumps [clap](https://github.com/clap-rs/clap) from 4.6.6 to 4.6.7.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/clap-rs/clap/releases">clap's
releases</a>.</em></p>
<blockquote>
<h2>v4.6.7</h2>
<h2>[4.6.7] - 2026-09-14</h2>
<h3>Features</h3>
<ul>
<li><em>(derive)</em> Add <code>#[command(defer = &lt;bool&gt;)]</code>
attribute to opt-in to lazy initialisation of subcommands</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/clap-rs/clap/blob/main/CHANGELOG.md">clap's
changelog</a>.</em></p>
<blockquote>
<h2>[4.6.7] - 2026-09-14</h2>
<h3>Features</h3>
<ul>
<li><em>(derive)</em> Add <code>#[command(defer = &lt;bool&gt;)]</code>
attribute to opt-in to lazy initialisation of subcommands</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/clap-rs/clap/commit/d3e59a9ab214910b9dad02921b7ef42c6400de9b"><code>d3e59a9</code></a>
chore: Release</li>
<li><a
href="https://github.com/clap-rs/clap/commit/d997f878c484e02b2935d32a7b67afe990e91227"><code>d997f87</code></a>
docs: Update changelog</li>
<li><a
href="https://github.com/clap-rs/clap/commit/fb6058cc38cf6f4b07b8db89c850fc80e059e222"><code>fb6058c</code></a>
Merge pull request <a
href="https://redirect.github.com/clap-rs/clap/issues/6409">#6409</a>
from heaths/pwsh-support</li>
<li><a
href="https://github.com/clap-rs/clap/commit/2310870f7a9fe4c39f5bb5620261a06ac9aaa0b1"><code>2310870</code></a>
test(complete): Add tests for completer_for_path</li>
<li><a
href="https://github.com/clap-rs/clap/commit/5967c17393a09f90112cdc5b2c20a1383f0bd8e4"><code>5967c17</code></a>
refactor(complete): Move shell detection to Shells</li>
<li><a
href="https://github.com/clap-rs/clap/commit/594602bb29f374e49da5029df63e5c740c723ad0"><code>594602b</code></a>
fix(complete): Detect pwsh for PowerShell</li>
<li><a
href="https://github.com/clap-rs/clap/commit/3a4f2d031b5110aaaac40f1cb1d6c0b8ff619df8"><code>3a4f2d0</code></a>
Merge pull request <a
href="https://redirect.github.com/clap-rs/clap/issues/6427">#6427</a>
from clap-rs/renovate/shlex-2.x</li>
<li><a
href="https://github.com/clap-rs/clap/commit/67ebaed4ac95a83d5d7cc22d64ee0fc162ae1db3"><code>67ebaed</code></a>
Merge pull request <a
href="https://redirect.github.com/clap-rs/clap/issues/6426">#6426</a>
from clap-rs/renovate/actions-checkout-7.x</li>
<li><a
href="https://github.com/clap-rs/clap/commit/c968b136d0e6f560c08b06a844a20f2798a00096"><code>c968b13</code></a>
chore(deps): Update Rust crate shlex to v2</li>
<li><a
href="https://github.com/clap-rs/clap/commit/8f247cbf58c582a755ee4dbe62a2390d93b9f8eb"><code>8f247cb</code></a>
chore(deps): Update actions/checkout action to v7</li>
<li>Additional commits viewable in <a
href="https://github.com/clap-rs/clap/compare/clap_complete-v4.6.6...clap_complete-v4.6.7">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=clap&package-manager=cargo&previous-version=4.6.6&new-version=4.6.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump clap from 4.6.6 to 4.6.7 in /rust (#1831)

Bumps [clap](https://github.com/clap-rs/clap) from 4.6.6 to 4.6.7.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/clap-rs/clap/releases">clap's
releases</a>.</em></p>
<blockquote>
<h2>v4.6.7</h2>
<h2>[4.6.7] - 2026-09-14</h2>
<h3>Features</h3>
<ul>
<li><em>(derive)</em> Add <code>#[command(defer = &lt;bool&gt;)]</code>
attribute to opt-in to lazy initialisation of subcommands</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/clap-rs/clap/blob/main/CHANGELOG.md">clap's
changelog</a>.</em></p>
<blockquote>
<h2>[4.6.7] - 2026-09-14</h2>
<h3>Features</h3>
<ul>
<li><em>(derive)</em> Add <code>#[command(defer = &lt;bool&gt;)]</code>
attribute to opt-in to lazy initialisation of subcommands</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/clap-rs/clap/commit/d3e59a9ab214910b9dad02921b7ef42c6400de9b"><code>d3e59a9</code></a>
chore: Release</li>
<li><a
href="https://github.com/clap-rs/clap/commit/d997f878c484e02b2935d32a7b67afe990e91227"><code>d997f87</code></a>
docs: Update changelog</li>
<li><a
href="https://github.com/clap-rs/clap/commit/fb6058cc38cf6f4b07b8db89c850fc80e059e222"><code>fb6058c</code></a>
Merge pull request <a
href="https://redirect.github.com/clap-rs/clap/issues/6409">#6409</a>
from heaths/pwsh-support</li>
<li><a
href="https://github.com/clap-rs/clap/commit/2310870f7a9fe4c39f5bb5620261a06ac9aaa0b1"><code>2310870</code></a>
test(complete): Add tests for completer_for_path</li>
<li><a
href="https://github.com/clap-rs/clap/commit/5967c17393a09f90112cdc5b2c20a1383f0bd8e4"><code>5967c17</code></a>
refactor(complete): Move shell detection to Shells</li>
<li><a
href="https://github.com/clap-rs/clap/commit/594602bb29f374e49da5029df63e5c740c723ad0"><code>594602b</code></a>
fix(complete): Detect pwsh for PowerShell</li>
<li><a
href="https://github.com/clap-rs/clap/commit/3a4f2d031b5110aaaac40f1cb1d6c0b8ff619df8"><code>3a4f2d0</code></a>
Merge pull request <a
href="https://redirect.github.com/clap-rs/clap/issues/6427">#6427</a>
from clap-rs/renovate/shlex-2.x</li>
<li><a
href="https://github.com/clap-rs/clap/commit/67ebaed4ac95a83d5d7cc22d64ee0fc162ae1db3"><code>67ebaed</code></a>
Merge pull request <a
href="https://redirect.github.com/clap-rs/clap/issues/6426">#6426</a>
from clap-rs/renovate/actions-checkout-7.x</li>
<li><a
href="https://github.com/clap-rs/clap/commit/c968b136d0e6f560c08b06a844a20f2798a00096"><code>c968b13</code></a>
chore(deps): Update Rust crate shlex to v2</li>
<li><a
href="https://github.com/clap-rs/clap/commit/8f247cbf58c582a755ee4dbe62a2390d93b9f8eb"><code>8f247cb</code></a>
chore(deps): Update actions/checkout action to v7</li>
<li>Additional commits viewable in <a
href="https://github.com/clap-rs/clap/compare/clap_complete-v4.6.6...clap_complete-v4.6.7">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=clap&package-manager=cargo&previous-version=4.6.6&new-version=4.6.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Add Python API build check (#1827)

I was going through the Python API section of the README and noticed it
fails to build due to lack of a recent git tag

<details>
<summary>Full traceback:</summary>

```
(base) jbourbeau@rl-b5652-03:~/sirius-python-build$ pixi run -e duckdb-python build-duckdb-python
✨ Pixi task (build-duckdb-python in duckdb-python): CMAKE_ARGS="-DDUCKDB_SOURCE_PATH=$PIXI_PROJECT_ROOT/duckdb" pip install --no-build-isolation ./duckdb-python
Processing ./duckdb-python
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [77 lines of output]
      [version_scheme] version object: <ScmVersion 0.0.1.dev1 dist=1 node=gb236c8194ed14c7a7c685e0534dde501cc855b3a dirty=False branch=HEAD>
      [version_scheme] version.tag: 0.0.1.dev1
      [version_scheme] version.distance: 1
      [version_scheme] version.dirty: False
      Traceback (most recent call last):
        File "/home/jbourbeau/sirius-python-build/duckdb-python/duckdb_packaging/setuptools_scm_version.py", line 56, in version_scheme
          return _bump_dev_version(str(version.tag), distance)
        File "/home/jbourbeau/sirius-python-build/duckdb-python/duckdb_packaging/setuptools_scm_version.py", line 73, in _bump_dev_version
          major, minor, patch, post, rc = parse_version(base_version)
                                          ~~~~~~~~~~~~~^^^^^^^^^^^^^^
        File "/home/jbourbeau/sirius-python-build/duckdb-python/duckdb_packaging/_versioning.py", line 33, in parse_version
          raise ValueError(msg)
      ValueError: Invalid version format: 0.0.1.dev1 (expected X.Y.Z, X.Y.Z.rcM or X.Y.Z.postN)

      The above exception was the direct cause of the following exception:

      Traceback (most recent call last):
        File "/home/jbourbeau/sirius-python-build/.pixi/envs/duckdb-python/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "/home/jbourbeau/sirius-python-build/.pixi/envs/duckdb-python/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/jbourbeau/sirius-python-build/.pixi/envs/duckdb-python/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 175, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/h…