Skip to content

Commit a985ef8

Browse files
harden(quick_check): dynamic _phi_stable derivation from PHI_STAR — RR-02
Dynamically derive stable phi values based on turns.
1 parent b230f10 commit a985ef8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/quick_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def chk(name, cond, msg=""):
5353

5454
# 5. Phi-Closure Gate — 13 clean turns → PASS
5555
gate = PhiClosureGate(tolerance=0.05)
56-
# 8 stable + 5 unstable -> R = 8/13 ≈ phi* at Fibonacci checkpoint T13
57-
_phi_stable = {1, 2, 3, 5, 6, 8, 10, 12}
56+
# _phi_stable derived dynamically: k = round(PHI_STAR * N) turns marked stable
57+
_N_PHI = 13; _k_phi = round(PHI_STAR * _N_PHI); _phi_stable = {i for i in range(1, _N_PHI + 1) if (i * _k_phi) % _N_PHI < _k_phi}
5858
for i in range(1, 14):
5959
result = gate.record(stable=(i in _phi_stable))
6060
chk("Phi gate T13 PASS", result["checkpoint"] and result["decision"] == "PASS",

0 commit comments

Comments
 (0)