Planning Python continuation after AUTO

User

Please review the results from project episodes 6-9 and identify a way forward, since we've not been able to perform useful continuation in the full Berton model.

Assistant

I reviewed episodes 6–9. My read: the full-model AUTO path has become a numerical-method problem, not a physics-discovery path. The best way forward is to stop making more full 4D AUTO variants until we have an independent continuation backbone that can actually follow the full equilibrium branch.

What episodes 6–9 established

Episode 06: canonical Berton “oscillation” is likely damped

episodes/06-full-model-auto-seed-continuation/docs/full_berton_dynamics_continuation_report.md

The long-integration seed is a stable spiral equilibrium:

  • z_eq ≈ 9618.03 m
Show remaining 149 lines
  • stable complex pair: Re ≈ -7.06e-6 s^-1, period ≈ 10.19 h
  • BDF/LSODA oscillation envelope decays by [REDACTED_LOCAL_PATH]2e3

So the canonical no-Coriolis Case 0 is not currently evidence for a sustained periodic orbit.

Episode 07: restricted 3D continuation can be made useful

The key success is TASK-019:

  • restricted W_a0 continuation works after using P = log(m/m_seed)/10
  • reaches W_a0 = 1.2 and beyond
  • matches Python branch tightly

But restricted H_a3 and z_W0 only give hints:

  • H_a3: nearby fold around 0.597, no AUTO Hopf; upward side fails near 0.611
  • smoothed z_W0: downward direction works; upward transition region remains fragile

This says the reduced/restricted formulation is useful as a diagnostic sandbox, but not sufficient for full-model claims.

Episode 08: full 4D H_a3 retry failed before becoming informative

episodes/08-full-model-auto-ha3/docs/task016_full_ha3_scaled_verdict.md

The full scaled H_a3 AUTO run accepted only the seed:

  • accepted range: H_a3 = 0.610000 only
  • no HB label
  • Python finite-difference checks still suggest a possible sign change by H_a3≈0.625, but those are not accepted branch points

So H_a3 remains a Python hint, not a continuation result.

Episode 09: full 4D smoothed z_W0 also failed immediately

episodes/09-full-model-auto-zw0/docs/task024_full_zw0_smooth_verdict.md

Even with the smoothed updraft and scaled q_z, AUTO accepted only the seed in both directions. The diagnostics show pivot/NaN failures, not a clean dynamical verdict.

Important point: the Python anchor checks at fixed seed show that changing z_W0 into the 9.5–10 km transition drastically changes residual/eigenvalues, but those points are not equilibria and not accepted AUTO branch points.

Main conclusion

I would not interpret the full AUTO failures as evidence for or against Hopf. They are mostly evidence that the current full 4D AUTO formulation is unusable for this problem.

The useful conclusions are:

  1. The canonical Berton no-Coriolis case appears damped, not periodic.
  2. Restricted continuation can work when the mass arclength coordinate is fixed.
  3. Full 4D AUTO is failing at the numerical-corrector level before it can answer the scientific question.
  4. Therefore, more full AUTO retries are unlikely to help unless we first build a better continuation workflow.

Recommended way forward

Create a new episode, probably:

episodes/10-full-model-python-continuation/

Goal: replace “AUTO-first” with “Python continuation first, AUTO only for final validation.”

Step 1: Build a full-model Python pseudo-arclength continuation driver

Use the same scaled variables as the best AUTO attempts:

Z = (z - z_seed) / 1000
U = (u - u_seed) / 5
W = w / w_scale
P = log(m / m_seed) / 10

But solve the equilibrium system directly in Python with:

  • tangent predictor
  • Newton / least-squares corrector
  • explicit residual scaling
  • finite-difference, complex-step, or JAX/autograd Jacobian if practical
  • condition-number diagnostics at every accepted point
  • saved predictor/corrector traces

This avoids AUTO’s opaque DGEBAL/pivot failures and lets us see where Newton actually goes bad.

Step 2: Use W_a0 as the full 4D gate

Before touching Hopf controls, require the Python continuation to reproduce a smooth full equilibrium branch in W_a0.

Acceptance gate:

  • continue at least over W_a0 = 0.1–1.2
  • residual norm stays small
  • branch agrees with the previous Python root-continuation probe
  • eigenvalues remain stable as expected

If even Python pseudo-arclength cannot do this, the issue is with the full residual/scaling/model equations, not AUTO.

Step 3: Revisit H_a3 with branch-following, not fixed-seed probes

Then continue the actual full equilibrium branch in H_a3.

The current evidence suggests the interesting region is roughly:

H_a3 ≈ 0.61–0.65

Look for:

  • accepted full equilibrium points across the suspected crossing
  • complex pair real part crossing zero
  • determinant/trace-style reduced diagnostics
  • long time integrations on both sides of the candidate crossing

Only if this produces a clean full-branch eigenvalue crossing should we try AUTO again.

Step 4: Treat z_W0 as a staged transition-region problem

For z_W0, do not jump straight from seed AUTO to the 7–10 km interval.

Instead:

  1. use smoothed updraft with a large smoothing width first;
  2. continue the full equilibrium through the transition region;
  3. gradually reduce smoothing width toward the TASK-023/TASK-024 value;
  4. only then compare to the piecewise Berton profile.

This should clarify whether the 9.6–10 km fragility is a real branch feature or just a nonsmooth/conditioning artifact.

Step 5: Only use AUTO after Python gives branch points and tangents

If Python continuation finds a candidate Hopf, then seed AUTO near that point with:

  • known accepted equilibrium coordinates
  • known tangent direction
  • tested residual/Jacobian scaling
  • preferably analytic or externally validated Jacobian blocks

AUTO should become a validator, not the exploratory engine.

Strategic recommendation

I would shift the research question from:

“Can we make AUTO continue the full Berton model?”

to:

“Does the full Berton model actually have a nearby Hopf/limit-cycle regime, and if so under which control?”

The immediate next artifact should be a reproducible Python continuation notebook/script, not another AUTO directory.

If that Python workflow finds no Hopf and long integrations remain damped across plausible H_a3, W_a0, z_W0, and smoothing/transition variants, then the honest conclusion is that this implementation of the Berton model does not reproduce Berton’s reported sustained oscillation under the studied assumptions.

User

Please update the episode index with the latest episodes and commit the change.

Assistant

Updated episodes/README.md with episodes 08–09 and refreshed episode 07 status.

Committed change:

58a0640 Update episode index through episode 09
User

Please create backlog tasks for your "Python continuation first, AUTO only for final validation" (in a new episode, as suggested).

Assistant

Created Episode 10 backlog tasks:

  • TASK-025 — Create episode 10 Python continuation scaffold
  • TASK-026 — Build full-model Python pseudo-arclength continuation core
  • TASK-027 — Use W_a0 as full-model Python continuation gate
  • TASK-028 — Continue full-model H_a3 branch with Python continuation
  • TASK-029 — Stage full-model z_W0 continuation through smoothed updraft transition
  • TASK-030 — Validate Python-discovered full-model candidates with AUTO

Added dependencies:

Show remaining 8 lines
  • 026 → 025
  • 027 → 026
  • 028 → 027
  • 029 → 027
  • 030 → 028, 029

Backlog auto-committed the task updates; working tree is clean.