-
Notifications
You must be signed in to change notification settings - Fork 0
Permite personalizar ventana de estabilidad para RE’MESH #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
fermga
merged 1 commit into
main
from
codex/update-aplicar_remesh_si_estabilizacion_global
Aug 27, 2025
Merged
Permite personalizar ventana de estabilidad para RE’MESH #5
fermga
merged 1 commit into
main
from
codex/update-aplicar_remesh_si_estabilizacion_global
Aug 27, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❌ Deploy Preview for stunning-zabaione-f1f1ef failed. Why did it fail? →
|
fermga
added a commit
that referenced
this pull request
Sep 12, 2025
Intento: evitar repetición al inicializar métricas de fase Operadores implicados: [Autoorganización] Invariantes afectados: [#5] Cambios clave: helper _ensure_hist_deque y uso en coordinate_global_local_phase Riesgos/disonancias previstas: mínima, contenida por pruebas Métricas: sin cambio esperado Pruebas: existentes Mapa de equivalencias: n/a
fermga
added a commit
that referenced
this pull request
Sep 12, 2025
Intento: Aislar acumulación Kahan para fases vecinas mejorando coherencia numérica Operadores implicados: [Coherencia, Acoplamiento] Invariantes afectados: [#5] Cambios clave: - Añade helper privado _accumulate_cos_sin - Refactoriza _phase_mean_from_iter y neighbor_phase_mean_list Riesgos/disonancias previstas: posible costo extra en Python; mitigado con NumPy. Métricas: C(t), Si, νf, fase sin cambios Pruebas: tests/test_neighbors_map_cache.py; tests/test_neighbor_phase_mean_missing_trig.py; tests/test_neighbor_phase_mean_no_graph.py; tests/test_neighbor_phase_mean_performance.py Mapa de equivalencias: N/A
fermga
added a commit
that referenced
this pull request
Sep 12, 2025
Operators involved: [Self-organization] Affected invariants: [#5, #7] Key changes: - expose accumulate_cos_sin for phase math reuse - reuse helper in neighbor_phase_mean_list and legacy wrapper - export helper via helpers package and add regression test Expected risks/dissonances: minimal, covered by tests Metrics: C(t) stable; phase handling unchanged Equivalence map: _accumulate_cos_sin -> accumulate_cos_sin
fermga
added a commit
that referenced
this pull request
Sep 13, 2025
Intent: Ensure coupling coherence by validating shared graph\nOperators involved: [Coupling]\nAffected invariants: [#5]\nKey changes: Added graph equality check in add_edge; added test for cross-graph validation\nExpected risks/dissonances: None\nMetrics: No change expected in C(t), Si, vf, phase\nEquivalence map: None
fermga
added a commit
that referenced
this pull request
Sep 13, 2025
Operators involved: [Coherence] Affected invariants: [#5, #8] Key changes: - add _neighbor_phase_mean_core - delegate neighbor_phase_mean_list and _neighbor_phase_mean to core - extend neighbor_phase_mean tests Expected risks/dissonances: refactor may mis-handle numpy/no numpy paths; covered by tests Metrics: C(t), Si, νf, phase unchanged; averaging more explicit Equivalence map: none
fermga
added a commit
that referenced
this pull request
Sep 13, 2025
Intent: enforce coherent coupling rules across TNFR graphs Operators involved: [Coupling] Affected invariants: [#5] Key changes: - return resolved edge strategy alongside callbacks - apply strategy check to block mixed-graph TNFR connections - regression tests for custom callback edges Expected risks/dissonances: minimal; internal API signature change contained by tests Metrics: C(t), Si, vf, phase remain invariant Equivalence map: none
fermga
added a commit
that referenced
this pull request
Sep 14, 2025
Intent: reduce phase metric recomputation Operators involved: [Coherence] Affected invariants: [#5, #9] Key changes: - expose kuramoto_metrics wrapper for R and ψ - reuse metrics in phase_sync and kuramoto_order - cover shared-metrics path with tests Expected risks/dissonances: observers depend on kuramoto_R_psi correctness Metrics: R, ψ stable Equivalence map: kuramoto_metrics -> kuramoto_R_psi
fermga
added a commit
that referenced
this pull request
Sep 14, 2025
Intent: unify neighbor phase helpers for reuse Operators involved: [Coupling, Resonance] Affected invariants: [#5] Key changes: - Added _neighbor_phase_mean_generic to handle nodes or neighbor lists - Refactored neighbor_phase_mean_list and neighbor_phase_mean to use new helper - Updated tests to delegate through the generic helper Expected risks/dissonances: minimal; ensure trig cache remains valid Metrics: phase coherence consistent; no change expected Equivalence map: none
fermga
added a commit
that referenced
this pull request
Sep 14, 2025
Operators involved: [Coherence] Affected invariants: [#5] Key changes: - annotate NumPy vs Python test scenario Expected risks/dissonances: none Metrics: phase metric unchanged Equivalence map: none
fermga
added a commit
that referenced
this pull request
Sep 14, 2025
Intent: streamline phase synchrony observer to avoid repeated optional imports and improve efficiency. Operators involved: [Coherence] Affected invariants: [#5] Key changes: - compute optional numpy dependency once at module load - reuse cached dependency in phase_sync to avoid repeated optional imports Expected risks/dissonances: minimal; ensures fallback variance computation when NumPy absent to contain risk. Metrics: phase metric unchanged; C(t) stable Equivalence map: None
fermga
added a commit
that referenced
this pull request
Sep 15, 2025
Operators involved: [Resonance, Coherence] Affected invariants: [#5] Key changes: - Cache numpy module once at the start of _neighbor_phase_mean_generic - Add regression test confirming cached numpy reuse and identical phase results Expected risks/dissonances: Low; fallback path validated via tests Metrics: Phase mean remains stable; reduced dependency fetch overhead Equivalence map: None
fermga
added a commit
that referenced
this pull request
Sep 15, 2025
Operators involved: [Coupling|Resonance] Affected invariants: [#5, #9] Key changes: - centralize neighbor_phase_mean helpers in tnfr.metrics.trig and re-export lazily - update helpers, dynamics, operators, and benchmarks to consume the shared module - refresh neighbor phase tests to target the new module path and keep cache coverage Expected risks/dissonances: minor import order regressions mitigated with lazy wrappers Metrics: phase aggregation helpers remain shared; neighbor cache reuse verified via pytest Equivalence map: tnfr.helpers.numeric.neighbor_phase_mean -> tnfr.metrics.trig.neighbor_phase_mean
fermga
added a commit
that referenced
this pull request
Sep 15, 2025
Operators involved: [Coherence, Coupling] Affected invariants: [#5, #8] Key changes: - Rename tnfr.metrics.trigonometry module to trig_cache and update imports - Document split between trig.py helpers and trig_cache cosine/sine storage - Align phase-related tests with the new module name Expected risks/dissonances: Minimal; import paths updated consistently and covered by tests Metrics: Phase means and Si computations remain stable (validated via targeted pytest suite) Equivalence map: tnfr.metrics.trigonometry -> tnfr.metrics.trig_cache
fermga
added a commit
that referenced
this pull request
Sep 15, 2025
Operators involved: [Resonance, Coherence] Affected invariants: [#5] Key changes: - Remove trigonometric wrappers from helpers.numeric in favor of metrics.trig - Update helpers package exports to drop removed utilities - Point accumulate_cos_sin test to tnfr.metrics.trig implementation Expected risks/dissonances: Minimal risk of stale imports; pytest will flag regressions Metrics: Structural metrics unaffected; phase aggregation remains canonical Equivalence map: accumulate_cos_sin->tnfr.metrics.trig.accumulate_cos_sin; neighbor_phase_mean(_list)->tnfr.metrics.trig counterparts
fermga
added a commit
that referenced
this pull request
Sep 16, 2025
Operators involved: [Resonance] Affected invariants: [#5, #9] Key changes: - Remove the lazy trig module proxy from helpers.numeric - Drop re-exported neighbor phase mean helpers from the numeric module - Rely on tnfr.metrics.trig as the single source for circular phase utilities Expected risks/dissonances: - Direct trig imports must remain synchronized across modules Metrics: - Phase means remain computed via tnfr.metrics.trig Equivalence map: - tnfr.helpers.numeric._phase_mean_from_iter -> tnfr.metrics.trig._phase_mean_from_iter - tnfr.helpers.numeric._neighbor_phase_mean_core -> tnfr.metrics.trig._neighbor_phase_mean_core - tnfr.helpers.numeric._neighbor_phase_mean_generic -> tnfr.metrics.trig._neighbor_phase_mean_generic
fermga
added a commit
that referenced
this pull request
Sep 17, 2025
Operators involved: [Emision|Recepcion|Coherencia|Resonancia|Silencio] Affected invariants: [#1, #5, #9] Key changes: Added Quick start Python and CLI examples with canonical sequence; Highlighted nodal equation compliance and metric links Expected risks/dissonances: Minimal; ensures docs match CLI flags Metrics: Guidance for C(t), Si, νf, phase extraction only; no runtime shift Equivalence map: n/a
fermga
added a commit
that referenced
this pull request
Sep 17, 2025
Operators involved: [Coherencia] Affected invariants: [#3, #5] Key changes: - Align README quick start with run_sequence and dnfr hook behaviour - Highlight dynamics step/coordinate entry points for automatic phase sync Expected risks/dissonances: Baja; actualización documental Metrics: Documentación Equivalence map: N/A
fermga
added a commit
that referenced
this pull request
Sep 17, 2025
Operators involved: [Coherence|Resonance] Affected invariants: [#3, #5, #8] Key changes: - synchronised cached ΔNFR vectors with optional NumPy mirrors and degree lists - unified neighbour sum/mean builders so looped and vectorised paths share alias-aware data - exercised the NumPy branch in tests ensuring parity with the loop implementation Expected risks/dissonances: cache invalidation when toggling vectorized_dnfr mitigated by refreshing mirrors Metrics: ΔNFR parity between strategies; consistent phase/degree aggregation across branches Equivalence map: internal helpers reused; no public API renames
fermga
added a commit
that referenced
this pull request
Sep 17, 2025
…rence tracking Operators involved: [Coherence|Resonance|Self-organization] Affected invariants: [#1, #5, #7] Key changes: - Moved NodeCache and node mapping helpers into tnfr.cache and reused checksum primitives - Updated imports and helper exports with lazy glyph history proxies to avoid circular loading - Deleted tnfr.helpers.node_cache and ensured node_set_checksum honours non-storing calls Expected risks/dissonances: Potential unnoticed import regressions; mitigated via targeted pytest suite Metrics: No change in C(t), Si, νf; structural caching validated by tests Equivalence map: tnfr.helpers.node_cache.* -> tnfr.cache.*
fermga
added a commit
that referenced
this pull request
Sep 18, 2025
Operators involved: [Coherence, Resonance] Affected invariants: [#5] Key changes: (bullet list) - Filter accumulate_cos_sin to real finite pairs and reuse kahan_sum_nd for compensated sums - Preserve fallback/no-data handling while deriving processed flag from yielded pairs Expected risks/dissonances: Filtering may drop non-finite inputs; guarded by targeted tests Metrics: C(t) stable, Si unchanged, νf consistent, phase telemetry maintained Equivalence map: No API changes
fermga
added a commit
that referenced
this pull request
Sep 18, 2025
Operators involved: [Resonance, Coherence] Affected invariants: [#5, #8] Key changes: - Sum Kuramoto R/ψ from cached cosine and sine values via get_trig_cache - Allow get_trig_cache to align cache size with Kuramoto cache windows Expected risks/dissonances: Cache sizing regressions mitigated by focused pytest suite Metrics: Kuramoto R/ψ numerical parity and cache reuse validated through pytest Equivalence map: kuramoto_R_psi continues to expose the same API
fermga
added a commit
that referenced
this pull request
Oct 17, 2025
Operators involved: [Transition|Mutation|Coherence] Affected invariants: [#4, #5, #7] Key changes: - Move GrammarContext and grammar enforcement helpers into tnfr.validation.grammar to isolate canonical enforcement context - Split canonical compatibility tables into tnfr.validation.compatibility and validation rules into tnfr.validation.rules with focused helpers - Update imports and add validation tests covering grammar, compatibility, and rules modules to preserve TNFR invariants Expected risks/dissonances: Potential third-party imports still referencing tnfr.grammar; mitigated with compatibility re-exports and targeted tests Metrics: Expect unchanged C(t), Si, νf; normalisation thresholds exercised in new tests Equivalence map: tnfr.grammar.* -> tnfr.validation.grammar.*, tnfr.grammar.CANON_* -> tnfr.validation.compatibility.CANON_*
fermga
added a commit
that referenced
this pull request
Oct 18, 2025
Operators involved: [Coherence, Resonance] Affected invariants: [#3, #5] Key changes: - Added shared vector-length guard for circular means in ΔNFR neighbor aggregation - Reused precomputed neighbor sums in fallback path to avoid redundant traversal - Added dense-graph regression test validating fallback/vectorized parity for ΔNFR Expected risks/dissonances: Minimal risk of float tolerances diverging; mitigated via regression tests Metrics: ΔNFR parity across modes; phase alignment preserved Equivalence map: None
fermga
added a commit
that referenced
this pull request
Oct 18, 2025
Operators involved: [Resonance, Coupling] Affected invariants: [#5, #8] Key changes: - Vectorize ΔNFR gradient mixing when cached NumPy buffers are present - Cache reusable gradient arrays within DnfrCache and reuse them across runs - Extend vectorization tests to assert cache reuse and parity with list fallback Expected risks/dissonances: Vectorized math mismatches due to NumPy availability disparities Metrics: Expect identical ΔNFR outputs; cache reuse verified via tests Equivalence map: None
fermga
added a commit
that referenced
this pull request
Oct 18, 2025
Intent: Strengthen neighbour resonance aggregation fidelity\nOperators involved: [Resonance, Coupling]\nAffected invariants: [#1, #5]\nKey changes:\n- Replace dense ΔNFR accumulation with cached edge-based reductions using broadcasting and np.add.at\n- Ensure neighbour count and topology sums reuse cache buffers without adjacency builds\n- Extend vectorized dynamics tests with neighbour parity checks and performance regression guard\nExpected risks/dissonances: Possible numerical drift if edge indexing cache desynchronises; mitigated by regression tests\nMetrics: C(t), Si, νf, phase expected unchanged; performance gains validated via runtime ratio\nEquivalence map: No API renames
fermga
added a commit
that referenced
this pull request
Nov 9, 2025
…sub-epis [THOL][Canonical] Verify phase validation in sub-EPI propagation (Invariant #5)
This was referenced Nov 9, 2025
Merged
8 tasks
This was referenced Nov 10, 2025
8 tasks
fermga
pushed a commit
that referenced
this pull request
Nov 11, 2025
…mework Operators involved: Coherence (IL), Self-organization (THOL) Affected invariants: #9 (structural metrics), #10 (domain neutrality) Key changes: - Promoted Φ_s to CANONICAL status with 2,400+ experiments validation - Added comprehensive TNFR_FORCES_EMERGENCE.md documenting phase fields research - Documented research fields (|∇φ|, K_φ, ξ_C) with promotion criteria - Consolidated grammar documentation structure - Enhanced AGENTS.md with structural fields section - Added U6 experimental results and analysis tools - Implemented physics fields module (fields.py, liouville.py) - Added cross-domain validation framework Expected risks/dissonances: None - documentation strengthens theoretical coherence Metrics: Documentation C(t) ↑ (increased consistency and traceability) Phase tracking: Research fields remain phase-compatible (Invariant #5 preserved) Structural potential: corr(Δ Φ_s, ΔC) = -0.822 validates canonical promotion Research fields: |corr| < 0.15 (below threshold), remain RESEARCH status
This was referenced Nov 11, 2025
13 tasks
19 tasks
13 tasks
19 tasks
13 tasks
19 tasks
13 tasks
19 tasks
13 tasks
19 tasks
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
aplicar_remesh_si_estabilizacion_globalmediantepasos_estables_consecutivos.Testing
pytest -qhttps://chatgpt.com/codex/tasks/task_e_68af48643dc48321b0a1b462e05d0c46