Skip to content

fix(igla-race): ASHA pruning uses INV2_BPB_PRUNE_THRESHOLD=3.5#299

Merged
gHashTag merged 6 commits into
mainfrom
fix/asha-inv2-threshold
May 19, 2026
Merged

fix(igla-race): ASHA pruning uses INV2_BPB_PRUNE_THRESHOLD=3.5#299
gHashTag merged 6 commits into
mainfrom
fix/asha-inv2-threshold

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Summary

  • Imports INV2_BPB_PRUNE_THRESHOLD from invariants.rs
  • Fixes should_prune() function: threshold 2.7→3.5
  • Fixes run_worker() threshold: threshold 3.0→3.5
  • INV-2 PROVEN: threshold=3.5 (phi^2+phi^-2+0.5) guarantees champion survives

Test Plan

  • cargo clippy -p trios-igla-race -- -D warnings = 0
  • cargo test -p trios-igla-race = 128 passed

Issue

Closes #143

Dmitrii Vasilev and others added 6 commits May 20, 2026 02:54
L11 DONE — Worker pool module with composite invariant coordination:

Files:
- crates/trios-igla-race/src/race.rs (new): WorkerPool, RaceState, check_worker_pool_invariant()
- crates/trios-igla-race/src/lib.rs: Export race module
- trinity-clara/proofs/igla/worker_pool_composite.v (new): Coq proofs for composite invariant
- assertions/igla_assertions.json: Add INV-L11 with falsification witness

Coq Theorems (all QED):
- inv2_falsification_witness: threshold=2.65 → false
- inv3_falsification_witness: d_model=255 → false
- inv12_falsification_witness: rung=2000 → false
- witness_composite_inv: threshold=2.65 ∧ d_model=128 ∧ rung=2000 → false
- valid_config_satisfies_composite: threshold=3.5 ∧ d_model=256 ∧ rung=1000 → true
- worker_pool_safe: all invariants → individual holds

Rust Tests (8 passed):
- test_composite_invariant_valid
- test_inv2_violation
- test_inv3_violation
- test_inv12_violation
- test_worker_pool_creation
- test_worker_pool_validate_config
- test_race_state_victory_tracking
- test_trinity_constants

L-R4: All numeric constants trace to .v files via igla_assertions.json
L-R8: Falsification witness present in Coq file
L-R10: Atomic commit

Agent: OPUS

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…tnesses. JSON INV-7 entry. Rust victory.rs ext. L7 DONE.

Agent: opus-4-6

L-R14: coqc trinity-clara/proofs/igla/igla_found_criterion.v = GREEN
- Fixed TrialConfig: added current_step, last_bpb
- Fixed victory.rs: removed duplicate imports, replaced IGLA_TARGET_BPB
- Fixed race.rs: use BPB_VICTORY_TARGET
- Fixed lib.rs: removed unused race exports
- trios-igla-race builds successfully

Agent: LEAD
- Add trios-igla-race dependency to trios-train-cpu
- Import PHI_SQ (φ² ≈ 2.618) for QK gain anchor
- Update AttentionConfig::default() qk_gain_init from 1.0 to PHI_SQ
- Add INV-9 tests: default_qk_gain_is_phi_sq, qk_gain_in_phi_range,
  falsify_qk_gain_one_rejected, model_uses_phi_sq_gain
- L-R14 traceability: phi_sq_eq Coq lemma proves φ² = φ + 1

Coq anchor: trinity-clara/proofs/igla/lr_phi_optimality.v::phi_sq_eq
Refs: trios #143, INV-9

Agent: HOTEL
- Imports INV2_BPB_PRUNE_THRESHOLD from invariants.rs
- Fixes should_prune() function: threshold 2.7→3.5
- Fixes run_worker() threshold: threshold 3.0→3.5
- INV-2 PROVEN: threshold=3.5 (phi^2+phi^-2+0.5) guarantees champion survives

Ref: Issue #143, INV-2 (asha_champion_survives.v)

Agent: ALFA

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Agent: ALFA
@gHashTag gHashTag force-pushed the fix/asha-inv2-threshold branch from 812c66f to 1cae0ab Compare May 19, 2026 19:54
@gHashTag gHashTag merged commit 41fc97f into main May 19, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🎯 IGLA RACE — Distributed Hunt: JEPA-T + NCA + GF16 + ASHA + Coq Invariants (Rust-only, Never-Stopping)

2 participants