Skip to content

Commit d221dae

Browse files
author
TNFR AI Agent
committed
feat: certify physical event and REMESH refinements
1 parent 15c95f2 commit d221dae

68 files changed

Lines changed: 26399 additions & 2528 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/agents/my-agent.md‎

Lines changed: 127 additions & 18 deletions
Large diffs are not rendered by default.

‎AGENTS.md‎

Lines changed: 127 additions & 18 deletions
Large diffs are not rendered by default.

‎CHANGELOG.md‎

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,121 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Added — 2026-09-10 Executed refinement and transactional runtime boundary
8+
9+
- Added `observe_executed_event_local_zhir_physical_prejump`. Starting from one
10+
intact stage-certified `OperatorEventExecutionResult`, it binds the scheduled
11+
and committed ZHIR event, preceding physical partition, terminal segment,
12+
glyph stage, ordered Mutation decisions and trigger certificates to the same
13+
execution. The existing physical pre-jump observer remains an offline
14+
coordinate pairing without common-execution provenance.
15+
- Added `event_remesh_refinement.py` and
16+
`test_event_remesh_refinement.py`. The new pure observer compares three
17+
already committed event/REMESH cycles on strictly nested coarse,
18+
intermediate and fine physical partitions. It records exact represented EPI
19+
checkpoints and persistent-node pairwise `L_inf` errors, executor-linked ZHIR
20+
rates and gates, and modal products only under a common captured generator.
21+
Integrity or decreasing finite errors do not certify solver accuracy/order,
22+
mesh convergence, Lyapunov decrease, a combined schedule/REMESH gain,
23+
whole-three-mesh atomicity or future behavior.
24+
- Added `remesh_history_stability.py` and
25+
`test_remesh_history_stability.py`. The exact finite companion certificate
26+
derives the invariant temporal distribution for uniform unclipped delayed
27+
REMESH and verifies a stationary-weighted Jensen disagreement identity.
28+
`0 < alpha < 1` gives primitive temporal mixing toward the preserved history
29+
barycenter; `alpha = 1` is a pure-delay permutation with conserved augmented
30+
energy and possible periodic orbits. Binary64 clipping, changing parameters,
31+
spatial consensus, zero pressure and schedule/REMESH composition remain
32+
outside the theorem. The certificate, transition observation and both
33+
constructors are re-exported from `tnfr.physics`.
34+
- Required custom event-schedule integrators to modify only EPI, `dEPI_dt`,
35+
`d2EPI_dt2` and the runtime clock and to realize exactly, in rationalized
36+
represented values, `EPI_right-EPI_left = dt*nu_f_left*DeltaNFR_left`.
37+
This held-input identity does not certify solver accuracy or order.
38+
- Made graph transaction snapshots owner-bound and preserved NetworkX
39+
structural mapping identities, alias topology and capturable callback-owned
40+
state. Exact `CallbackSpec` carriers and replayable one-dimensional object
41+
history arrays retain their aliases while their reachable mutable state is
42+
covered. Snapshot preflight rejects mutable structural keys with non-identity
43+
hash/equality, custom `__deepcopy__` hooks and unmodelled opaque C state while
44+
accepting common immutable atoms. Exact standard locks and loggers, including
45+
nested occurrences, are treated as external resources without invoking their
46+
copy reducers. Rollback covers capturable graph-reachable state; emitted I/O
47+
and warnings, external-resource state and external-only aliases remain outside
48+
it.
49+
- Centralized proof-stamp comparison on a closed immutable token grammar with
50+
bit-exact float and complex handling. Runtime, refinement, diffusion,
51+
pointwise, hybrid, Mutation and REMESH evidence now authenticates its own
52+
outer seal before nested semantic validation and fails closed without calling
53+
truth, equality or descriptor protocols on replaced stamp values.
54+
- Compacted parent runtime seals through exact-type references to independently
55+
validated child seals. Event/REMESH proof growth is now linear in the number
56+
of segments while deep child tampering still invalidates every enclosing
57+
record. Graph snapshots also preseed all direct graph-owned identities before
58+
capture and admit only the canonical `NodeCache` serialization binding and
59+
its exact weak owner reference.
60+
- Made standalone REMESH planning observationally pure and materialized live
61+
configuration, runtime controls, EPI channels and delayed history once per
62+
guarded boundary. A conversion or history read that changes graph state now
63+
aborts and restores the enclosing transaction instead of becoming a later
64+
baseline. `ON_REMESH` callbacks are graph-read-only observers; the public
65+
history append helper still derives its snapshot and capacity from the live
66+
canonical graph configuration.
67+
- Materialized `physical_flow_partitions` exactly once inside the outer
68+
`execute_event_remesh_cycle` transaction and forwarded that tuple unchanged
69+
to event execution.
70+
- Centralized the SDK graph-copy resource policy on the transaction classifier.
71+
Measurement, cloning and pulse trajectories now discard stale runtime caches,
72+
detach ordinary mutable graph data, and preserve exact external resources by
73+
identity under the documented external-state boundary. Alias relationships
74+
crossing those resources and explicit graph-container back-references remain
75+
outside the SDK data-copy contract. Ordinary stored Python bound methods are
76+
rebound to copied receivers, including receivers that own nested external
77+
resources; built-in methods retain Python's atomic deepcopy behavior.
78+
- Updated S1, S2, S5 and S16 to distinguish the implemented finite three-mesh
79+
observation from convergence and to record the separate uniform exact
80+
augmented-history theorem. The next stability target is its bridge to the
81+
clipped binary64 runtime and a compatible schedule/REMESH composition law.
82+
83+
### Added — 2026-09-09 Physical pressure-refreshed event flow
84+
85+
- Added immutable `PhysicalFlowPartition` declarations with exact rationalized
86+
binary64 coverage, additive/subtractive clock checks and at least two
87+
positive physical segments.
88+
- Extended `execute_operator_event_schedule` with
89+
`physical_flow_partitions=`. It refreshes `DeltaNFR` before every segment and
90+
at the terminal boundary, captures all segment flows, and rolls back the
91+
whole graph if a boundary callback or later operation fails.
92+
- Added sealed `PressureRefreshBoundaryObservation`,
93+
`PhysicalEulerModalObservation` and
94+
`ExecutedPressureRefreshedFlowPartition` evidence. Pressure callbacks must
95+
preserve all non-pressure nodal state, full edge state, persistent graph
96+
configuration, histories, conductance and clock; existing non-`None` cached
97+
pressure weights cannot change, while the canonical default may initialize a
98+
missing or `None` cache.
99+
- Applied the same restricted-write policy to operator-stage pressure refreshes,
100+
froze hook presence and identity for the whole schedule, rejected integrator
101+
history writes even on newly added nodes, and preserved capturable callable
102+
state. Violations now fail before replacement hooks can run and roll back all
103+
graph-owned state.
104+
- Hardened graph transactions for custom mapping factories, owner-qualified
105+
slots, NetworkX internal mappings and ordinary lock-bearing metadata while
106+
preserving their identities across rollback.
107+
- Centralized runtime pressure callback dispatch in `_refresh_delta_nfr`,
108+
retaining legacy callbacks without retrying an internal `TypeError`.
109+
- Added exact common-metric segment gain composition and kept solver accuracy,
110+
order, mesh convergence, adaptive U2/U4 and future behavior explicitly
111+
uncertified.
112+
- Added `EventLocalZHIRPhysicalPrejumpObservation` and
113+
`EventLocalZHIRPhysicalRefinementComparison`. They separate Mutation's actual
114+
terminal-segment secant from an offline whole-interval secant and compare
115+
ordinary binary64 evaluations of the exact-real held factor `1-T*mu` and
116+
refreshed product `product_k(1-h_k*mu)` without identifying runtime endpoints
117+
with those maps or assuming equivalent decisions. Modal comparison requires
118+
trusted segment replays and one fixed generator; matching spectra alone cannot
119+
promote an isospectral, noncommuting sequence. Exact endpoint-map promotion
120+
remains gated by the separate exact-affine certificate.
121+
7122
### Added — 2026-09-09 Event-local ZHIR refinement evidence
8123

9124
- Rejected a scheduled Mutation before graph writes when the binary64

0 commit comments

Comments
 (0)