← Explainer · Markdown · Source on GitHub

# Transport method selection and conservative accuracy on existing grids

**Design proposal, 2026-09-26.** Effort: TRN-01. Current status and owner are on the
[work board](/docs/WORKBOARD). This plan changes no runtime behavior and establishes
no accuracy improvement. Method-selection, architecture and performance-first GPU requirements
updated 2026-09-26; the first periodic MAC candidate and its stage/resource contract
were selected the same day. They remain proposed equations, not runtime support or
CUDA qualification. It is a separate numerical effort from
[AMR-02 data alignment](/docs/amrex-alignment/DATA_MODEL_ALIGNMENT), preceding the transport acceptance
of [S2 and S3](/docs/amrex-alignment/S2_S3_PLAN).

## Outcome and sequencing

Establish conservative transport on one physical level and one patch, with explicit
momentum budgets and demonstrated accuracy benefit on preselected current workloads.
Make the resulting flux accounting usable by S2 and later coarse/fine synchronization.
Conservation, solution accuracy, stability and computational cost are separate claims;
all must be evaluated before choosing a production method.

Retain the useful `SemiLagrangian` and limited `MacCormack` choices and add one
qualified conservative method. The current defaults and recorded selections remain
unchanged by this plan. Supporting several algorithms does not mean maintaining
duplicate runtimes: they share state, geometry, pressure/diffusion infrastructure,
results and the accepted-step loop. See the [algorithm review guide](/docs/amrex-alignment/ALGORITHMS)
and [progressive numerical explainer](/algorithms.html) for equations,
implementation links and the evidence needed to assess each claim.

Preferred numerical integration sequence: **AMR-02 -> TRN-01 -> S2 interface validation -> S3**.
The [GPU execution policy](/docs/plans/gpu-resident-processing) applies to new transport
work: keep fields and repeated numerical work resident, complete reductions on-device
and measure bounded control/status metadata. Full closure of unrelated GPU-01 migration
gaps is not a prerequisite to TRN-01 acceptance. Record unchanged legacy paths separately
and introduce no new bulk readbacks or CPU field processing.
Current-method budget measurements and small numerical experiments can begin before
alignment completes. Production integration uses the accepted aligned representation.
S2's layout/ownership work can overlap, but its advection interface design must use
TRN-01's established stencil, flux and timestep requirements. S2 acceptance requires
validated transport for its declared geometry/BC scope; S3 requires that single-level
and partitioned foundation before adding coarse/fine coupling.

Coordinate with the [boundary-condition plan](/docs/plans/boundary-condition-alignment):
BC-01 shares typed/JSON setup checks and verifies periodic coordinate correspondence;
BC-02 qualifies inflow, outlet/backflow, wall and symmetry behavior on one grid,
including MacCormack's forward, reverse and limiter stages. Complete this evidence
for each method's declared scope before its S2 transport acceptance. These numerical
corrections have their own scientific gates and are outside behavior-preserving
AMR-02. Mixed position-dependent BCs are deferred, not a prerequisite to this sequence.

Coordinate the scalar experiment with [T1](/docs/ROADMAP#t1--temperature-transport-and-prescribed-thermal-conditions).
Reuse appropriate flux/field infrastructure and budget checks. The experiment is a
numerical test harness, not a delivered temperature feature; T1's materials, thermal
BCs, sources, heat budgets and complete user workflow retain their own acceptance.
T1 scalar work need not wait for all MAC momentum work to finish.

Keep C#/.NET, ILGPU, one GPU, MAC staggering, float fields, Half geometry, double
weighted reductions and device residency. Multiblock, refinement, adaptation, new
thermal physics and a wholesale pressure/diffusion redesign are outside this effort.
Any required change to time integration or cut-cell stabilization must be an explicit
numerical decision with evidence, not an incidental part of data alignment.

## GPU execution requirement

**Required design, not a claim about current implementation:** working fields and
repeated numerical work stay on the GPU. New transport, boundary, stage/ghost,
flux-budget and stability operations finish their reductions on-device and retain
results for later numerical consumers. Do not download bulk fields or partial
reductions to finish numerical work on the CPU. PCG coefficient and recurrence
migration belongs to GPU-01 unless this effort changes that path; no CPU simulation
fallback is introduced.

The host may prepare inputs and one-time setup data, validate authored configuration,
bind capabilities, allocate resources and schedule work. A static mesh BVH built on
the host and uploaded once is a reasonable setup choice. Bounded control/status/layout
metadata may cross the boundary when its consumer, payload, cadence and synchronization
cost are documented and measured. Evaluate convergence and field-dependent limits on
the GPU; the host may observe completion flags between batches and orchestrate
acceptance, rejection or the next launch. Keep numerical coefficients and partial
reductions out of that control channel. Fully device-controlled loops are a later
measured optimization, not a prerequisite to this method.

Compute new measurements and sampled outputs on-device before requested capture.
Account for those outputs separately from control metadata; neither boundary permits
using downloaded fields as a CPU simulation workspace. Preserve all scientific checks,
throughput and memory gates. Unchanged current reduction/solver/CFL gaps remain
explicit GPU-01 work and do not require a wholesale solver migration inside TRN-01.

Use the approved [AMR-02 vocabulary](/docs/amrex-alignment/DATA_MODEL_ALIGNMENT): a `MeshPatch` has mesh
bounds and storage identity; `DomainBoundaryConditions` contains `BoundaryRegion`
conditions on the physical domain, with `DeviceDomainBoundaryConditions` and
`DeviceBoundaryRegion` as their device bindings. `IEmbeddedBoundarySource`/`SdfEmbeddedBoundarySource`
describe geometry inputs, while `EmbeddedBoundaryData`/`DeviceEmbeddedBoundaryData`
hold derived metrics. Patch kernels borrow an `EmbeddedBoundaryMetricsView` and a
compact derived `PatchKernelDescriptor`; `IndexType`, `Box`, `DomainGeometry`,
`LevelLayout` and `LevelFields` carry their separate spatial/data meanings. These are
target names, not assertions that today's source types have already been replaced.

The level coordinator schedules the chosen method's stages and dependencies; patch
kernels perform numerical work on device views. Every borrowed field/geometry view
must identify layout, geometry revision and time/stage validity. Invalidate or refill
ghosts after a producer changes their source; neither a valid allocation nor a
completed older frame establishes freshness for a new stage.

## The current limitation

[AdvectionGpu](https://github.com/hankbeasley/polycfd/blob/b7f5b9ba6f52355d9b196b586e4a6c8719d8feea/src/PolyCfd.Gpu/Advection/AdvectionGpu.cs) backtraces sample
locations and interpolates the previous velocity field. Its limited MacCormack
variant applies a forward/backward correction and limits overshoot. It does not
form the shared momentum transfers of a conservative finite-volume update.

For a transported quantity, a conservative update uses the same face transfer as
an outgoing contribution to one control volume and an incoming contribution to its
neighbor. Internal contributions cancel. Boundary transfers and sources still change
the total. On a MAC grid, momentum is associated with staggered control volumes;
cell-centered scalar conservation cannot simply be relabeled as momentum conservation.

Constant-density mass balance is constrained by pressure projection. A small velocity
divergence does not establish momentum-transport conservation. Kinetic energy is a
different diagnostic: viscosity, boundaries, forces and numerical dissipation affect
it, so the target is the appropriate physical evolution, not constant energy in every case.

The current method may be accurate for supported cases. No blanket accuracy ranking
is assumed: a conservative scheme can be more diffusive than the current MacCormack
scheme. Timestep splitting, backward-Euler diffusion, resolution and cut-boundary
approximations remain other error sources. See the [physics guide](/docs/PHYSICS_GUIDE).

## Candidate method and flux contract

The selected first candidate is **minmod MUSCL reconstruction with SSPRK2 transport,
using the accepted projected velocity as a frozen carrier**, followed by the existing
source, old-pressure predictor, backward-Euler diffusion and incremental projection.
The [complete equations and derivation](/docs/amrex-alignment/ALGORITHMS#first-regular-grid-mac-candidate)
are the numerical specification. This plan fixes the implementation boundary and
qualification sequence; selection does not establish an accuracy benefit.

[AMReX-Hydro](https://amrex-fluids.github.io/amrex-hydro/docs_html/Schemes.html)
provides Godunov and method-of-lines references that reconstruct cell-centered data
onto transport faces. PolyCFD already stores its authoritative velocity components
on staggered faces. Hydro's typical predicted-face MAC projection and final
cell-centered projection are therefore not a prescribed timestep for this solver.
Derive any additional projection from the chosen carrier-flux continuity and stage
accuracy requirements; do not add or omit one merely to match an AMReX routine name.
[Hydro projection reference](https://amrex-fluids.github.io/amrex-hydro/docs_html/Projections.html).
AMReX-based IAMR
also exposes conservative and nonconservative formulations: choosing conservative
transport is our numerical direction, not a requirement of AMReX's data model.
[IAMR algorithm options](https://amrex-fluids.github.io/IAMR/docs_html/AlgorithmOptions.html)

### Next deliverable: one complete regular-grid MAC timestep

**Selected design; implementation and numerical qualification remain pending.** The
first scope is one fixed, all-fluid Cartesian patch, periodic on every axis, with
constant density and constant nonnegative viscosity. Grid extents, periodic indexing
and component placement follow the [candidate specification](/docs/amrex-alignment/ALGORITHMS#first-regular-grid-mac-candidate).
Each component represents a numerical approximation to its dual-volume mean. Use
dual averages or an explicitly recorded midpoint approximation for initialization,
prescribed sources and reference comparisons. Count one independent periodic endpoint;
the stored partner is a derived copy, not another momentum volume.

Construct dual-face carrier velocities by the specified arithmetic averages of
accepted projected `U^n/V^n/W^n`. That mapping preserves the corresponding averaged
primal divergence on this regular periodic topology. Freeze these carriers for both
SSPRK2 stages; the intermediate `q1` is transported data and never becomes the carrier.
There is no previous-step history or additional carrier projection. Reconstruct each
stage's transported component with minmod slopes, use one shared oriented upwind flux
per interface and accumulate the actual transfer
`I = (dt/2) * (F0 + F1)` with face area included once. The flux-divergence stencil
reaches two component cells in each coordinate direction.

For prescribed steady carriers, SSPRK2 gives second-order temporal transport in its
smooth regime. Freezing the evolving momentum carrier at `U^n` makes the nonlinear
transport and complete coupled method **first order in time**; backward-Euler
diffusion also remains first order. Limited linear reconstruction is nominally
second order in smooth spatial regions and loses order where limiting is active.
No full-flow second-order or universal accuracy-improvement claim follows.

Enforce the sufficient local transport bound
`dt * max_(component,K) sum_d max(a_plus^+, (-a_minus)^+) / h_d <= 1/2`, where
`a_plus` and `a_minus` are the positively oriented high/low dual-face carriers and
`x^+ = max(x,0)`. Its derivation and divergence assumptions belong to the numerical
specification. This is a transport admissibility bound, not a boundedness claim for
the later pressure/source update. Evaluate and reduce it on-device before modifying
state; both stages use the same frozen carriers.

After all transported components are complete, apply prescribed `f^n` (zero by
default), the existing old-pressure predictor, optional backward-Euler diffusion,
and one primary incremental projection. Start with `RefinePressureProjection=false`.
Any required initialization projection is a separate cost. Restore the pressure
gauge and periodic copies, then measure final continuity independently of the
solver's recursive residual. The [filled proposed stage table](/docs/plans/boundary-condition-alignment#required-proposed-stage-tables)
specifies field freshness and checks, including zero viscosity; physical BCs remain
a separate extension. Preserve the [pressure qualification obligations](/docs/amrex-alignment/ALGORITHMS#pressure-solver-qualification).

The proposed GPU schedule uses the current MAC allocation, including its duplicated
normal endpoints. Let `S` be its total stored velocity samples, `M` the largest
stored component count and `N=Nx*Ny*Nz` the unique periodic component-cell count:

| Field or scratch | Placement and lifetime |
| --- | --- |
| Existing `UInterior`, `VInterior`, `WInterior` | Borrow unchanged through all component transport stages; this is both `q0` and the carrier source |
| Advected MAC state: `S` floats | Own the complete `qadv` result until every component is ready; only then may the original state be overwritten |
| Stage state: `M` floats | One component's `q1`, reused after that component's second-stage update and diagnostics finish |
| Oriented flux scratch: `N` floats | One component/direction at a time, shared by its neighboring volume updates; consume stage-weighted diagnostic contributions before reuse |
| Existing pressure/diffusion/reduction workspaces | Reuse their established ownership and precision contracts; account for them separately from transport scratch |

Additional transport field storage is therefore proposed as `4*(S+M+N)` bytes over
the current state, plus those existing workspaces and bounded device diagnostic
accumulators. Stream components and directions; do not retain nine full flux arrays,
allocate speculative AMR registers or introduce full velocity halos. Complete a
stage's directional contributions before consuming it in the next stage. Double
budget reductions finish on-device. Measure actual launch counts, synchronization,
peak allocation and complete-step time before accepting this resource design.

See [DeviceMacState](https://github.com/hankbeasley/polycfd/blob/b7f5b9ba6f52355d9b196b586e4a6c8719d8feea/src/PolyCfd.Gpu/Core/DeviceMacState.cs) and
[MacComponent](https://github.com/hankbeasley/polycfd/blob/b7f5b9ba6f52355d9b196b586e4a6c8719d8feea/src/PolyCfd.Gpu/Core/MacComponent.cs) for existing storage. The
next deliverable implements and tests these precise equations with frozen evidence
records, beginning source-free/inviscid and adding constant-viscosity/source controls.
Physical inflow/outlet/walls, cut momentum volumes, small-cell stabilization,
moving-volume work and multiple patches require separately derived extensions.

## Bounded method selection

Extend the existing scenario/runtime advection choice rather than introducing a
general plugin framework. The conservative candidate has no public name or serialized
value yet; add those only after the declared subset passes qualification. These
are planned contracts, not capabilities of the current mutable operator API.

### One resolved choice per run

Resolve and validate the method when creating the session, then keep it immutable
for that run. All patches and physical levels use the same momentum-transport method.
No per-patch, per-level or per-stage switching, automatic fallback, runtime hot swap,
or independently selectable limiter/reconstruction combinations are in scope. A
method's own predictor/corrector stages are part of that method, not separate choices.
Future temperature transport retains its own equation and qualification requirements.

Keep typed inputs, scenario JSON, resolved settings, saved-run identity and replay
consistent. Record the selected method and its resolved numerical settings alongside
the existing build identity; comparisons must identify differences in method and
timestep policy. Reject unknown strings, unknown enum values and unsupported
combinations through exhaustive dispatch. Do not reinterpret a saved method as a new
algorithm or silently change the default when adding a choice. Update maintained
callers, generated contracts, fixtures and examples together during implementation.

### Small host-side contract

Bind one implementation during setup and perform method dispatch on the host,
outside per-cell GPU kernels. The authored method remains immutable; bounded
device-produced control/status may guide launch scheduling, without downloading
fields or partials for host numerical work. Reuse aligned
`LevelFields` and `MeshPatch` field/geometry views with explicit
borrowing and stream completion; each implementation owns only its required scratch.
Allocate no conservative flux arrays for a semi-Lagrangian run and no MacCormack
correction buffers for a run that does not use them. Include retained buffers and
peak initialization/geometry-change storage in resource estimates before admission.

The contract must expose the following small set of numerical requirements:

| Requirement | Design obligation |
| --- | --- |
| Supported cases | Declare layout, dimension/minimum extents, boundary conditions, stationary cuts and motion support. Reject unsupported authored configurations before device allocation; validate evolving geometry on the device against the same contract. |
| Sampling and stages | Declare valid/ghost reach, edge/corner requirements and field/layout/geometry/time-stage validity. Device kernels determine timestep-dependent departure reach; do not pretend every method has one fixed stencil. |
| Physical boundaries | Resolve physical choices into component/operator mathematical conditions, with explicit boundary location, outside-domain sample meaning, outlet/backflow policy and stage timing. Qualify inflow and reversal, walls and symmetry for the selected method; follow [BC-02](/docs/plans/boundary-condition-alignment) and the [boundary derivation](/docs/amrex-alignment/ALGORITHMS#boundary-conditions). |
| Time limit | Compute field-dependent stability restrictions and their final reductions on-device; distinguish them from recommended accuracy controls. Keep limits available to dependent kernels and combine them consistently with motion, user and final-time controls, including cut-cell stabilization and later all active levels. Document any bounded final-scalar control readback. |
| Integration coupling | Specify advecting-velocity prediction, pressure constraints, temporal centering and any extra projection/source stages. Make necessary integrator changes explicit; a generic `Advect()` call does not establish numerical compatibility. |
| Conservation evidence | For a conservative method, expose consistently oriented, area/time-weighted interface transfers needed for budgets and later synchronization. Do not manufacture fluxes for interpolation methods or make them allocate unused flux storage. |

For adaptive stepping, compute and enforce the selected method's field-dependent
admissibility on the GPU on every attempt, including after geometry changes. For fixed
stepping, validate the configured step initially and reject an attempted step that exceeds a newly computed hard limit
before transport modifies fields; do not silently shrink it or bypass the check because
adaptive stepping is disabled. Preserve the separately declared final-time clipping
policy. Device-produced limits and validity flags protect dependent updates; bounded
final control/status may let the host schedule, reject or stop an attempt without
recomputing field-dependent limits. Record the applicable limit and actual accepted
timestep and measure any synchronization. A large-step
semi-Lagrangian stability property is not a guarantee of accurate transport.

### Qualification grows by method and topology

| Method | One patch / one physical level | S2 uniform patches | Initial S3 refinement |
| --- | --- | --- | --- |
| `SemiLagrangian` | Preserve current supported cases and scientific gates | Enable only after its own interpatch sampling and partition-equivalence checks | Unsupported initially |
| Limited `MacCormack` | Preserve current supported cases and scientific gates | Enable only after its forward/reverse/limiter stages pass partition-equivalence checks | Unsupported initially |
| Conservative candidate | Enable only for the TRN-01-qualified boundary/geometry/motion subset | Require shared-flux cancellation and partition equivalence for that subset | Sole initial candidate; still requires S3 coarse/fine, projection and geometry qualification |

All S2/S3 entries are future scope. No method is required to support every topology.
Stationary regular, stationary cut and moving-geometry qualifications remain separate
within each entry. Keep useful choices because of demonstrated capabilities or
speed/accuracy tradeoffs; remove abandoned experiments and superseded internals.
Retaining current methods is not a compatibility requirement to extend them to S3.

## Implementation steps

These are ordered work packages within TRN-01. Status lives on the work board.
The next output implements and tests the selected complete periodic timestep with
frozen executable evidence records. A new method name, offline algebra checks or a
scalar-only implementation does not close that deliverable.

1. **Establish current budgets and references.** Define component momentum and energy
   diagnostics, using derived geometry weights and double reductions completed on
   the GPU. Separate the
   observed increments from advection, pressure, viscosity, sources, physical boundary
   exchange and moving-boundary contributions. Measure the existing methods before
   changing them. Freeze target cases, observation windows, error measures, conservation
   limits and reference/build identities before candidate evaluation.
   Inventory readbacks, including indirect reduction APIs. New diagnostics complete
   on-device; record unchanged GPU-01 gaps separately from permitted bounded control
   and requested output. Do not make this effort depend on unrelated migration work.
2. **Implement and test the selected transport building block.** Follow the
   specified minmod reconstruction, frozen carriers, SSPRK2 weighted transfers,
   periodic indexing, CFL and scratch schedule. Test scalar transport with prescribed
   steady divergence-free velocity
   on one regular periodic grid. Check shared-flux cancellation, constant preservation,
   total transported amount, smooth-profile convergence and boundedness of sharp
   profiles. Include nonuniform prescribed velocity so constant-translation special
   cases do not hide a defect. Physical inlet/outlet extension follows BC-02. A scalar
   pass is evidence for this building block only.
3. **Implement the complete selected regular-grid MAC timestep.** Construct its staggered momentum
   fluxes and specified source/old-pressure/backward-Euler/incremental-projection
   coupling. Use one primary projection, with residual refinement disabled for this
   first scope; account for initialization separately. Check uniform
   velocity preservation, periodic momentum budgets, temporal/spatial convergence and
   the existing exact-flow controls. Verify the stated first-order coupled temporal
   behavior; diagnose projection and splitting effects separately. Measure the two
   flux evaluations, streamed scratch and complete-step cost against the preserved methods.
4. **Qualify physical boundaries and cut geometry.** Add wall/inlet/outlet momentum
   accounting, stationary cut cells and a justified small-cell stability treatment.
   Coordinate boundary formulas and stage tests with BC-02. AMReX-Hydro's Godunov
   edge-state rules are a reference for the conservative candidate, not a drop-in
   replacement for semi-Lagrangian sampling or MacCormack reversal/limiting.
   Any redistribution or merging must itself preserve the intended balance and respect
   the physical solid. Qualify moving geometry as a separate increment with consistent
   previous/current volumes and wall exchange before enabling the new method there.
5. **Integrate bounded selection and qualify the candidate.** Compare full single-grid
   workflows, including required output, against the preserved build. Keep the useful
   current methods and add the candidate only for its accepted subset. Bind one immutable
   selection per run, implement capability/timestep checks and selected-method resource
   estimates, and review predictor/projection coupling against the algorithm derivation.
   Preserve stage freshness and GPU evaluation of the candidate's field-dependent
   limits/failure predicates. Add no bulk field or partial-reduction readbacks for CPU
   numerical work; bound and measure any control/status transfers. Retained methods
   preserve their accepted behavior, with unchanged GPU-01 gaps identified separately.
   Update maintained typed/serialized settings, examples, fixtures, tests and guides
   together if the public method selection changes. Remove temporary experimental
   paths; preserve useful capabilities and historical reference evidence. Hand the
   accepted flux/stencil contract and verification cases to S2.

Current supported cases, including motion, remain usable while a candidate is
restricted to its validated subset. Do not silently route an unsupported candidate
case through another method or remove a capability to simplify acceptance. The
supported subset and outstanding qualification work must be explicit.

**Context:** `src/PolyCfd.Gpu/Advection`, `src/PolyCfd.Gpu/Integration`,
`src/PolyCfd.Gpu/Geometry`, `docs/PHYSICS_GUIDE.md`,
`docs/PERIODIC_EXACT_VALIDATION.md`, `docs/TAYLOR_GREEN_VALIDATION.md`,
`docs/BACKWARD_STEP_VALIDATION.md`, `docs/CYLINDER_FORCES.md`.

## Single-grid acceptance matrix

The rows below define required claims. They are not executable cases or pass results
until the [evidence records](#executable-evidence-records) resolve their configurations,
commands, references and limits. Begin with the periodic regular-grid subset; later
boundary/cut/moving rows retain separate scope and existing regression obligations.

| Evidence | What must be demonstrated |
| --- | --- |
| Prescribed scalar transport | Closed periodic/source-free budget within the declared roundoff-aware bound; constant preservation; convergence and appropriate limiter behavior. This is not momentum or thermal acceptance. |
| Traveling shear / transported profiles | Measured phase and amplitude error, spreading and grid/timestep convergence. |
| Planar Taylor-Green, Beltrami and nonlinear Taylor-Green | Field errors and their convergence, component momentum budgets and correct physical energy evolution. Nonlinear flow uses the qualified numerical reference, not an assumed exponential decay. |
| Backward step and cylinder | Recirculation/separation, field or measurement accuracy and forces within their applicable accepted protocols. |
| Boundary and stage qualification | BC-02 evidence for the enabled method/BC subset: nonuniform prescribed inflow, outlet and backflow policy, tangential wall/symmetry profiles, and forward/reverse/limiter-stage consistency. Separate boundary convergence from global solver convergence. |
| Static cut-cell and moving cases | Geometry-weighted balances, boundary consistency, small-cell stability and each declared supported motion regime. A regular-grid result does not qualify them. |

Method selection also requires implementation acceptance; these checks do not replace
the numerical evidence above:

| Contract evidence | What must be demonstrated |
| --- | --- |
| Identity and reproducibility | Typed and serialized choices resolve identically, survive saved-run/replay paths and fresh-integrator experiments, and remain immutable during a run. Comparisons retain method, actual timestep policy and build identity. |
| Exhaustive rejection | Unknown names/enum values and unsupported method/layout/BC/geometry/motion combinations fail with actionable errors. No branch silently selects another algorithm. |
| Timestep enforcement | New fixed/adaptive paths evaluate field-dependent hard limits on-device and enforce them before modifying fields, including after geometry changes. Final-time clipping and rejected steps preserve the declared policy; any final-scalar control channel is bounded and measured. Accuracy recommendations are not mislabeled as proven stability bounds. |
| Coupling and stage identity | The selected algorithm's predictors, pressure constraints and source ordering match its derivation. Diagnostic stage meanings and completed-frame identities remain truthful when methods have different internal stages. |
| Stage freshness | Fields and embedded metrics carry the required layout/geometry/time-stage validity; stale ghost values and stale borrowed views cannot feed another stage. |
| Resources and lifetime | Measured retained/peak memory agrees with selected-method estimates; unused methods allocate no field-sized scratch. Disposal, failed setup and geometry rebinding preserve borrowed lifetimes and device residency. |
| Transfer and control budget | New or changed transport/diagnostic paths perform no bulk field or partial-reduction downloads for CPU numerical work. Audit direct/indirect copies and pinned staging; document and measure control/status/layout metadata separately from requested output. Account for setup, changes, failures and fixed/adaptive paths. Identify unchanged GPU-01 gaps without requiring unrelated migration closure. |
| Numerical migration | New device reductions, stability evaluations and diagnostics preserve double accumulation and validated reduction/error behavior. Independent references and unchanged scientific gates pass; no diagnostic or convergence check is disabled to satisfy the transfer audit. Any changed solver path follows the same policy, without requiring a new device-controlled solver loop. |
| Preserved choices | Current methods retain their accepted scientific behavior and supported workflows. Candidate comparisons use frozen cases and limits; neither a default change nor a new option rewrites reference expectations. |

### Executable evidence records

Turn each enabled acceptance row into a checked-in configuration and an executable
test or validation invocation using the maintained workflow. Each record must contain:

| Record field | Required content |
| --- | --- |
| Claim and scope | Stable case identity, method and exact assertion; distinguish transport, coupled-flow, boundary and solver qualification |
| Pinned inputs | Grid/domain, initial data, density/viscosity, BCs, source/geometry scope, reconstruction/stage choice, actual timestep policy, final time and observation window |
| Reference and comparison | Analytic formula or immutable qualified reference identity, native placement/averaging convention, norm and weights; record build, scientific settings and relevant hardware/precision identities |
| Frozen acceptance | Numerical error, conservation, continuity, stability and resource limits with units and rationale; account for reference uncertainty and keep algebraic solver tolerance distinct from physical accuracy |
| Executable invocation | Exact maintained command or test filter and required inputs/backend. An unimplemented case records its missing harness; no invented command is presented as executable |
| Result evidence | Actual command, effective configuration, exit/result, measured values, receipt and artifact paths under ignored `output/`; retain failed and `notRun` results with their reasons |
| Verdict | Pass/fail only for the stated assertion and completed execution. Pending derivation, missing implementation or unavailable hardware/reference is `notRun`, never a qualified pass |

First bind existing periodic uniform/transported-profile and exact-flow controls,
then add the selected method's flux cancellation, nonuniform carrier continuity,
stage budgets and spatial/time refinement cases. Reuse
[periodic exact-flow protocols](/docs/PERIODIC_EXACT_VALIDATION) and existing
reference identities where applicable. The manifest/runner is a planned extension
of current validation, not a new delivered schema or test suite. Preserve known
failed qualifications alongside the comparison, even when a narrower new case passes.

[The transport design checker](https://github.com/hankbeasley/polycfd/blob/b7f5b9ba6f52355d9b196b586e4a6c8719d8feea/tools/check_mac_transport_design.py) supplies
offline exact-arithmetic checks of the documented algebra. Its result is evidence
only for those identities and small constructed examples, not execution of the GPU
implementation, a CUDA numerical pass or complete-timestep accuracy qualification.
Keep its actual command/result separate from the CUDA evidence records.

Freeze the accuracy cases, metrics, limits and error targets **before candidate
evaluation**. Then compare measured cost to meet those same targets; count only
configurations that satisfy the complete accuracy/stability conditions as eligible.
Use matched grid/timestep comparisons to isolate changes and cost-to-target runs to
assess practical value. Specify output cadence and include additional projections,
diffusion work, rejected attempts, initialization and retained/peak device memory.
An unqualified faster run is not a cost-to-accuracy improvement. BC-02 evidence uses
this same record contract; pressure claims additionally follow the
[pressure qualification matrix](/docs/amrex-alignment/ALGORITHMS#pressure-solver-qualification).

Compare the preserved and candidate methods at the same grid, timestep, physical
time/window and scientifically equivalent settings. Also compare cost to meet a
predeclared measurement-error target: tighter advective CFL limits can require more
steps even when each step is fast. Measure initialization, stepping, geometry and
required outputs; record allocations, retained memory and transfers on an idle GPU.

Acceptance requires **a demonstrated single-grid accuracy benefit on the preselected
target workload(s)** as well as validated conservation, stability and cost within
the agreed limits. Quantify the benefit beyond reference uncertainty and numerical
noise; do not select a favorable case or metric after seeing the results. Preserve
existing scientific gates on the regression workload set and explicitly retain any
previously unresolved qualification failures. Do not claim every flow improves.

Set conservation/error bounds and the target workload before evaluation. Use existing
reference protocols where they apply; explain and review any new references separately.
Do not refresh baselines, relax windows/tolerances or change performance allowances to
make the method pass. Failure to show the intended benefit calls for revision or
deferral, not automatic adoption because the method is conservative. Follow
[performance acceptance](/docs/PERFORMANCE_VALIDATION#architecture-change-acceptance).

Run `py -3.12 tools/verify static fast gpu` on Windows (`python3 tools/verify static fast gpu`
on Linux) for runtime implementation, focused CUDA tests while iterating, and the
appropriate CUDA `verify-all` suite with full coverage
before broad numerical acceptance. Follow [suite selection](/docs/COMPLETE_VALIDATION#choose-coverage-for-the-change)
and [verification instructions](https://github.com/hankbeasley/polycfd/blob/b7f5b9ba6f52355d9b196b586e4a6c8719d8feea/test/README.md), including isolated artifacts
when another campaign owns binaries. Report receipt paths, counts, `notRun` entries,
hardware/reference limitations and actual timing conditions. CPU backend not run
(user directive). Existing supported APIs, selective capture and completed-frame
ownership remain subject to [runtime contracts](/docs/RUNTIME_CONTRACTS).

## What remains for S2 and S3

S2 must preserve the accepted shared flux across same-resolution patch boundaries,
including periodic and cut interfaces, and demonstrate equivalence to the single-patch
method. Its data exchange policy follows each enabled method's reach and temporal
stages. Enabling an interpolation method on S2 needs separate partition equivalence;
it does not acquire a conservative-flux guarantee by sharing the same data model.

S3 still needs coarse/fine transfers, compatible geometry/coverage, time/area-integrated
flux mismatch correction, composite pressure and diffusion, and later regridding.
Refluxing can correct a mismatch between conservative level updates; it does not fix
an arbitrary interpolation update. [AMReX flux registers](https://amrex-codes.github.io/amrex/docs_html/AmrCore.html#fluxregisters)
Shared timesteps do not eliminate spatial flux mismatch. TRN-01 does not claim to
solve these multilevel problems in advance. Initially S3 accepts only the conservative
method qualified for that case; reject interpolation-method refinement requests.

When the effort is accepted, move lasting equations, budgets and method-selection
contracts into current runtime/physics guides and retire this implementation plan.