D6-E0 establishes the local time-domain contract for one single-level, monovalent trap. D6-E1 and D6-E2 add separate research-only bulk and two-sided-interface device transients. D6-E3a adds bulk-defect/mobile-ion coupling, and D6-E3b adds the corresponding two-sided-interface/mobile-ion coupling. D6-E4 exposes one source-bound, narrow production protocol through Python, direct and asynchronous HTTP APIs, and the workstation. None of these checkpoints modifies the historical method-of-lines state vector.
The supported charge transitions are acceptor and donor. Neutral transitions are rejected on this charge-coupled path because a changing neutral occupancy cannot close the free-carrier capture charge with a trap-storage charge. Multivalent, amphoteric, metastable, and tunnelling transitions remain outside this checkpoint.
The inherited density-form MoL cannot be enabled by removing its existing explicit-defect guard:
- its packed state has carrier and ion densities, plus an optional four-density interface-plane block, but no trap occupancy state;
- its Poisson assembly would omit charged-defect storage;
- its quasi-steady recombination sink removes electrons and holes together and cannot represent the finite-frequency capture imbalance;
- the interface-plane carrier densities are not a shared trap occupancy.
The dynamic route therefore uses an explicit occupancy ODE. The physical occupancy is represented by the unbounded coordinate
u = log(f / (1 - f)), 0 < f < 1.
No accepted-step clipping or endpoint repair is allowed. A non-finite coordinate or a coordinate whose floating-point reconstruction saturates at zero or one fails closed. The bulk-device route appends these coordinates to its own opt-in DAE layout; the two-sided routes do the same for shared interface occupancies rather than changing the legacy layout.
For electron reservoirs j and hole reservoirs k,
C_n,j = c_n,j [n_j (1 - f) - n1_j f]
C_p,k = c_p,k [p_k f - p1_k (1 - f)]
df/dt = sum(C_n) - sum(C_p) = a (1 - f) - b f
a = sum(c_n n) + sum(c_p p1)
b = sum(c_n n1) + sum(c_p p)
lambda = a + b.
The exact constant-reservoir solution is
f(t) = f_qss + [f(0) - f_qss] exp(-lambda t),
f_qss = a / lambda.
The logit RHS and scalar analytic Jacobian are evaluated directly from the same capture law. At the QSS point, the carrier-density forcing and capture occupancy derivatives are exactly the D5 frequency-domain tangent arrays.
For both acceptor and donor transitions,
dQ_trap/dt = -q df/dt,
dQ_carrier/dt = q [sum(C_n) - sum(C_p)],
d(Q_trap + Q_carrier)/dt = 0.
The absolute trap charge differs: Q_acceptor = -q f and
Q_donor = q (1 - f).
physics.trap_transient.evaluate_trap_transientevaluates non-equilibrium capture, occupancy/storage, charge, and local conservation.physics.trap_transient.linearize_trap_transientreturns exact occupancy, logit, carrier-density, and capture derivatives.physics.trap_transient.constant_reservoir_trap_traceis the independent closed-form oracle.solver.trap_transient.solve_local_trap_transientintegrates the logit ODE with Radau or BDF and an analytic 1-by-1 Jacobian, then certifies every output sample against the oracle and local charge balance.experiments.bulk_defect_transient.run_bulk_defect_device_transientadvances carrier storage and occupied-trap storage with a backward-Euler index-1 DAE. Its coordinates are interior electron/hole quasi-Fermi increments, trap logit increments, and interior electrostatic-potential increments.experiments.interface_defect_transient.run_interface_defect_device_transientadvances one shared areal occupancy per physical interface together with bulk carriers, bulk electrostatic potential, and retained two-sided trace variables.experiments.bulk_defect_ion_transient.run_bulk_defect_ion_device_transientadds positive/negative mobile-ion log-density storage to the bulk-defect DAE.experiments.interface_defect_ion_transient.run_interface_defect_ion_device_transientadds the same ion storage and analytic face-flux tangent to the retained two-sided-interface DAE.experiments.dynamic_defect_transient.run_dynamic_defect_transientis the strict D6-E4 public wrapper. It requires a canonicalDynamicDefectTransientProtocol, executes the certified E3b engine, and returns immutable physical arrays plusDynamicDefectTransientEvidence.
Poisson remains an algebraic row instead of being eliminated from the time step. This preserves a sparse analytic Jacobian with four block types:
- local carrier storage derivatives;
- nearest-neighbour Scharfetter-Gummel current derivatives;
- separate electron/hole capture and local recombination derivatives;
- local trap-charge and electrostatic Poisson derivatives.
Each implicit step solves
S(z[k]) - S(z[k-1]) - dt R(z[k]) = 0,
P(z[k], V[k]) = 0,
where S = [n, p, Nt*f]. The implementation uses a sparse direct Newton
solve and a non-clipping line search. A centered-difference audit of every
Jacobian column is retained in the result certificate. Componentwise storage
scales are separate for carriers and occupied traps; carrier rows also include
an explicitly derived floating-point floor for subtracting adjacent large face
currents at a DC root.
The terminal current is not augmented by a synthetic trap-current term:
J_total[k] = Jn[k] + Jp[k]
+ polarity * eps * (E[k] - E[k-1]) / dt.
Trap charge changes Poisson and therefore the displacement term. Independently,
the solver compares the integrated change of q(p-n) + rho_trap against the
left/right conduction-current difference. It also reconstructs every returned
state with the eliminated-Poisson QF operator and requires the two operators to
agree.
The voltage history is right-continuous step-and-hold. Nested substeps are run inside every requested output interval, and the last two levels must agree in carrier/trap/potential state and terminal current. The initial state must be a residual- and contact-thermodynamically-certified QF/DC state from the same defect model.
D6-E1 deliberately accepts only non-spatial, single-level acceptor/donor bulk species, no interface states, no mobile ions, no selective contacts, and no non-local photon recycling. Unsupported physics fails before integration.
The interface route retains six zero-volume algebraic variables per physical
interface: two electrostatic trace potentials and the four carrier trace log
densities (n_Ls, p_Ls, n_Rs, p_Rs). One shared trap logit is differential.
For N device nodes and K interfaces, the sparse coordinate dimension is
3 * (N - 2) + 7 * K.
The differential storage and algebraic rows are
S = [n_interior, p_interior, Nt_area * f],
P_bulk(phi, n, p, sigma_if) = 0,
G_trace(phi_Ls, phi_Rs, sigma_if) = 0,
B_carrier(n_Ls, p_Ls, n_Rs, p_Rs, f) = 0.
The same four microscopic capture legs determine the electron source, hole
source, and Nt_area * df/dt. The incremental sheet charge is always
sigma_if = -q * Nt_area * (f - f_eq),
and enters both the outer finite-volume Poisson rows and the local two-sided Gauss law. No lumped shared-node interface charge is introduced.
The analytic sparse Jacobian covers bulk quasi-Fermi and potential columns, both trace-potential columns, all four trace log-density columns, and the explicit occupancy column. Newton uses a sparse direct solve and a non-clipping line search. Local carrier scaling includes the one-way Fermi-Dirac supplies; storage scaling includes a sparse coordinate-resolution bound for stiff rate rows. These are residual scales only and do not alter the physical equations.
The interface face reported in the ordinary device face array is the left bulk-to-left-trace observation. Its displacement current uses
D_L = -eps_L * (phi_Ls - phi_L) / d_L.
The result also reports both interface sides independently. On the right,
D_R = eps_R * (phi_Rs - phi_R) / d_R,
J_total,L = J_conduction,L + dD_L/dt,
J_total,R = J_conduction,R + dD_R/dt.
The certificate requires J_total,L = J_total,R, all ordinary face totals to
agree, and the integrated free-carrier plus sheet-charge change to match the
terminal conduction-current difference. Every returned state is also rebuilt
with the existing locally eliminated fixed-occupancy QF operator.
The initial dark reference and DC state must carry the same microscopic defect document hashes and a contact-thermodynamic certificate. Missing microscopic documents, mobile ions, simultaneous bulk defects, and a cross-node barrier exactly on the piecewise clamp switching boundary fail before time integration. The last restriction makes the analytic clamp-inactive-slice contract explicit instead of assigning an arbitrary derivative at a non-differentiable point.
The first combined transient lane keeps the D6-E1 carrier/trap/potential DAE and adds one reference-relative log-density coordinate for every active node of each mobile-ion species. Its differential and algebraic rows are
S = [n_interior, p_interior, Nt*f, P_positive, P_negative],
P(phi, n, p, rho_trap, P_positive, P_negative) = 0.
Positive and negative ions share the same blocking-boundary finite-volume operator used by the legacy MoL and D5 AC paths. The Poisson contribution is
rho_ion = q * [(P_positive - P_positive,0)
- (P_negative - P_negative,0)].
The conduction-current decomposition is evaluated from the same state:
J_conduction = Jn + Jp + q*F_positive - q*F_negative,
J_total = J_conduction + polarity*eps*(E[k] - E[k-1])/dt.
There is no synthetic trap- or ion-storage terminal channel. Terminal charge balance integrates free carriers, absolute trap charge, and ion charge over the interior control volume bounded by the first and last reported transport faces. Each contiguous mobile region separately has a full inventory certificate using the solver's endpoint-inclusive dual-cell widths. The two integrals intentionally have different boundaries, and positive and negative inventories cannot cancel one another into a false pass.
The ion part of the sparse Jacobian uses ion_face_flux_jacobian(), including
shared-site cross derivatives. Trap occupancy remains a logit and active ions
remain log densities. A declared site ceiling below the implemented steric
clip is checked before flux evaluation; a clipping kink or coordinate
overflow fails closed. Positive-only, dual-ion, and negative-only layouts use
the same public adapter.
The current E3a nonlinear solver is the inherited sparse-direct Newton with a
non-clipping line search. On the five-node reference device, D_ion=1e-20
and 1e-14 m2/s certify, including the slow-ion frozen limit. Deliberately
accelerated 1e-12 and 1e-10 m2/s probes currently stall the line search at
a scaled residual near 1.86e6; this is a recorded D6-E3c stiffness-solver
entry condition, not a certified range and not silently recovered.
The second combined lane retains all D6-E2 variables and appends one
reference-relative log-density coordinate per active positive or negative ion
node. For N nodes, K interfaces, and M_ion active ion coordinates, the
coordinate dimension is
3 * (N - 2) + 7 * K + M_ion.
The shared storage and algebraic rows are
S = [n_interior, p_interior, Nt_area*f, P_positive, P_negative],
P_bulk(phi, n, p, sigma_if, P_positive, P_negative) = 0,
G_trace(phi_Ls, phi_Rs, sigma_if) = 0,
B_carrier(n_Ls, p_Ls, n_Rs, p_Rs, f) = 0.
The same microscopic four-leg capture law drives carrier continuity and the
shared occupancy. The same ion densities drive Poisson, ion continuity, and
the analytic ion_face_flux_jacobian(). At the physical interface, the ionic
face current crosses the same geometrical face and is added identically to the
left and right carrier observations; it is not assigned to the trap storage.
The certificate independently checks the two interface totals, every ordinary
face total, the interior carrier/interface/ion charge balance, and full
per-component ion inventories.
Electrostatic displacement is evaluated from the potential increment before the spatial difference,
Delta E = -diff(phi[k] - phi[k-1]) / diff(x),
rather than subtracting two separately formed large electric fields. The local interface capacitive drops use the same increment-first form. This is algebraically identical but avoids unnecessary floating-point cancellation. No current-closure value is projected or repaired after the solve.
The implementation is currently at an intermediate checkpoint. Positive-only, dual-ion, and negative-only 10 mV traces certify, including full-column Jacobian comparison and nested time refinement. A 0.1 mV probe remains fail-closed on relative charge/current gates because the displacement-current difference approaches the double-precision subtraction floor. That low-signal case is an E3c numerical-range item, not a reason to relax the declared gates.
The source-bound E3c adapter executes the same E3b index-1 DAE in three frozen
timescale cases. The combined case uses the source ion diffusivity and capture
kinetics. The defect-dominated case changes only active-source-layer ion
diffusivity from 1e-14 to 1e-20 m2/s. The ion-dominated case changes only
the microscopic electron and hole capture cross sections by a factor of
1e-12. Every override, source identity, time/voltage history, grid axis,
time-step axis, solver policy, observable gate, and quality gate is included in
one canonical protocol hash shared by all nine matrix cells.
The production candidate fixture confines mobile ions to the absorber. An
ion-inactive ETL retains its structural site density but has D_ion=0; this
avoids introducing a zero-density steric boundary as a differentiable state.
Ion diffusivity overrides apply only to source layers that are already mobile.
The positive-ion centroid integrates only the active component with the same
endpoint-inclusive dual-cell widths used by the finite-volume inventory.
Cross-grid transient comparisons are reference relative:
Delta f(t) = f(t) - f(0),
Delta x_ion(t) = x_ion(t) - x_ion(0),
Delta Q(t) = Q(t) - Q(0).
Each t=0 state must still be residual-, contact-, and operating-point
certified. Comparing these changes prevents grid-dependent coarse DC baselines
from being misclassified as transient nonconvergence. Terminal current remains
an absolute observable. Earlier v3 and v4 lanes are retained as immutable
partial evidence: v3 used absolute DC-sensitive centroid and charge, while v4
still used absolute interface occupancy and required an unnecessarily narrow
line-search-only stiffness outcome.
The accelerated D_ion=1e-12 m2/s probe is a fail-closed stiffness boundary,
not a physical solution. Protocol v2 accepts only a typed line-search stall or
a typed Newton iteration limit. Both outcomes must report a machine-readable
iteration and finite residual above the registered nonlinear acceptance.
Iteration-limit errors also report charge, all-face current, interface current,
and linear backward errors. Unknown or unstructured failures fail the quality
contract.
The v5 source-clean matrix at commit ba54ce2 completed all nine cells without
reuse, failure, or missing artifacts and passed 339 of 339 certificate checks.
Certificate SHA-256 is
9eab2f9e251b8d4c0f7f3f07e0baeea9bb6497126ef8d8111eba1803947e5beb.
Its largest terminal grid/tolerance comparisons included 4.57e-10 C/m2
integrated charge change against a 1e-9 C/m2 limit, 3.82e-13 m centroid
shift against a 5e-11 m limit, and 2.02e-6 A/m2 terminal current against a
1e-5 A/m2 limit. The canonical protocol SHA-256 is
7db9bc5d8a166d3f928bcb0810bfbfdce26de1741085771a511ece9144ee1438.
The first production transient capability deliberately matches the physical
envelope demonstrated by E3c instead of treating all research adapters as
certified. DynamicDefectTransientProtocol binds the complete numerical
execution identity:
- exact dark, right-continuous step-and-hold time and voltage arrays;
- requested intervals, actual grid nodes, and grid SHA-256;
- stack and microscopic interface-defect document SHA-256 values;
- active positive-ion layer indices and defect quadrature order;
- time-step refinement factor and the full nonlinear solver policy;
- two-sided interface-current observation convention; and
- the E3c v5 reference lane and certificate SHA-256.
Protocol JSON uses exact keys, finite values, and a canonical SHA-256. A caller-supplied protocol must equal the protocol rebuilt from the requested stack, grid, history, solver policy, and reference certificate. A mismatch fails before device integration.
The v1 capability classifier requires exactly two electrical layers, exactly
one canonical uncalibrated microscopic two-sided interface defect,
equilibrium-referenced interface charge with rebaseline acknowledgement, and
exactly one active positive-ion layer whose role is absorber. It rejects
illumination, explicit bulk defects, active negative ions, multiple interface
defects, and unsupported topology before solving. The public result retains
terminal and all-face total current, both physical-interface observations,
occupancy and reference-relative occupancy change, positive-ion density and
centroid shift, reference-relative integrated charge, carrier densities, and
electrostatic potential. Certification requires both the inherited engine
certificate and a finite public projection.
The backend exposes the same contract at
POST /api/dynamic-defect-transient and through async job kind
dynamic_defect_transient. Both paths rebuild and resolve the expected
protocol before dispatch; malformed, mismatched, or out-of-capability requests
fail closed rather than becoming queued numerical jobs. The workstation adds a
Defect-Ion Transient experiment, eligibility assessment, strict async
submission, protocol/evidence summary, engineering and publication plots, and
terminal-current/interface-occupancy traces.
The source-bound production lane is
dynamic-defect-ion-transient-production-v1, executor v6. It independently
calls the public wrapper for combined, defect-dominated, and ion-dominated
cases, plus the typed fast-ion fail-closed boundary. Its axes are grid
(4, 6, 8) by time-step factor (1, 0.5, 0.25). Every completed cell returns
12 observables and 38 quality gates, including public protocol identity,
projection certification, engine scope/version, and exact E3c reference
binding.
At implementation commit
4f13a4bebfc71275bb83394e184144965d1359a6, source-clean run
464da3ec6e0bb94fbd40a82bdc9325b29eabbb6622dc8fcad699b505a4434f5f
completed 9 of 9 cells with zero failed, missing, or reused cells and passed
366 of 366 checks. Certificate SHA-256 is
52c63f74e5e139487aebce1e3ebe576d4861fb566788261e40d594e8f76f703b;
manifest canonical SHA-256 is
f46e4e13d463d044b4c8c06e4402f40e84acf190a91146eb989af0dd2546f808.
The fixed-thread full Python suite passed 3389 tests, with 2 skipped, 267
deselected, and 12 pre-existing np.trapz deprecation warnings. Production
benchmark provenance tests passed 59 tests. The final workstation tree passed
39 files and 475 tests, and the TypeScript/Vite production build passed with
only the pre-existing large-chunk warning.
Real browser QA used the frozen absorber-only preset and a current-source async backend. The job reached 100 percent and returned the certified protocol and evidence. A docked plot expanded from 283 px to 1014 px with its pane and SVG; saved maximised layouts reload through the resolved-layout conversion without console errors. At a 390 by 844 px viewport, the project tree becomes an accessible overlay, while the maximised result pane is 388 px and the Plotly container and SVG are 364 px without horizontal overflow. Engineering and publication views remain readable and the post-load console reports zero errors and warnings.
This evidence is internal numerical and public-interface certification for the frozen narrow device. It is not SCAPS transient parity, experimental transient validation, unique parameter identification, or coverage for bulk-defect plus ion, negative/dual ions, distributed dynamic defects, multivalent/metastable states, or tunnelling.
Unit tests cover strict boundedness, endpoint/non-finite rejection, one- and two-sided reservoirs, donor/acceptor charge signs, detailed balance, analytic centered differences, exact relaxation, tolerance refinement, fast-QSS and slow-frozen limits, immutable evidence, and fail-closed certification gates.
The D6-E1 integration tests use real acceptor and donor devices and cover bounded occupancy, charge sign, exact current decomposition, all-face current closure, carrier-plus-trap charge balance, analytic-Jacobian comparison, sparse-versus-dense matrix cardinality, nested time refinement, fast-QSS and slow-frozen limits, immutable output, and over-strict fail-closed gates.
The D6-E2 integration tests use a contact-consistent two-layer heterojunction with nonzero conduction- and valence-band steps. They cover shared bounded occupancy, the exact sheet-charge law, four capture and bulk-flux legs, left/right conduction and displacement currents, global charge balance, full-column Jacobian finite differences, nested time refinement, fast-QSS and slow-frozen limits, immutable output, provenance rejection, and over-strict partial/fail-closed behavior.
The D6-E3a integration tests use one residual-certified combined defect/ion DC state and cover positive-only, dual-ion, and negative-only layouts; exact carrier/ionic/displacement current decomposition; endpoint-inclusive component inventories; global carrier/trap/ion charge balance; all-face total current; full-column analytic-Jacobian comparison; nested time refinement; the slow-ion frozen limit; immutable output; pre-clipping rejection; and over-strict partial/fail-closed behavior.
The D6-E3b integration tests cover the corresponding three ion layouts with one microscopic two-sided interface, exact sheet charge and carrier/ion/displacement decomposition, left/right interface totals, the interior terminal-charge control volume, endpoint-inclusive component inventories, full-column analytic Jacobian comparison, slow-ion separation, immutable output, pre-clipping rejection, and over-strict fail-closed behavior. That checkpoint is committed and pushed with 12 focused tests, 83 related tests, and a pinned default suite of 3327 passes, 2 skips, and 267 deselections.
E3c adds cancellation-safe coordinate-to-storage increments, strict
source/case/protocol identity, the three timescale cases, and the 3 by 3
space/time refinement matrix. The v5 contract/registry set has 32 passing
tests. Dynamic-storage and bulk/interface trap/ion transient related tests have
76 passes. The first full-suite run correctly found that the new configs and
registry SHA were absent from the reproducibility matrix; after adding file and
semantic hashes plus bidirectional benchmark mappings, the focused provenance
set has 74 passes. The final fixed-thread full suite has 3358 passes, 2 skips,
267 deselections, and 12 pre-existing np.trapz deprecation warnings. The v3
and v4 partial certificates remain preserved.
E4 adds the protocol-bound production wrapper, direct/async preflight, workstation controls and evidence, and an independent v6 public-wrapper matrix. D6 is therefore internally closed for the explicitly declared narrow capability. External SCAPS and experimental validation remain separate work; multivalent and metastable physics begins at D7 rather than inheriting a single-level D6 certificate.