Skip to content

Zigzag-resistant petal bending and a peony retune - #22

Merged
ALopezMoreno merged 2 commits into
mainfrom
bend-retune
Oct 16, 2026
Merged

ALopezMoreno merged 2 commits into
mainfrom
bend-retune

Conversation

@ALopezMoreno

Copy link
Copy Markdown
Owner

Before: bud petals crumpled into sharp, grid-sized zigzags, and the bud swelled only 8–15%.

After: peony petals fold in broad, smooth folds and arch over the top of the bud. The bud swells 22–34% (seed 11: 1.93 → 2.36). Fine-scale turning per sample drops about 45% on seeds 11 and 2027. The bending strength is a new species range, zigzag_bending, so other species can choose the crinkly, papery look (0 restores today's behaviour).

Builds on #20 (smoother growth) and includes its commit; merge #20 first.

How:

  • Bending: skip-one bending springs (u↔u+2) can't feel an alternating single-node zigzag, so excess growth buckled at the finest scale for free. Each grid line now also carries a second-difference term ½k(|a − 2b + c| − rest)² with an exact gradient. The FD test covers it, and the preconditioner masses include it.
  • Retune: peony zigzag_bending is 3–5. growth_rate is doubled to 0.10–0.16, because the smooth petals need more growth to fold.
  • Test fix: the JSON format test now checks petal orientation summed over the whole petal. A fold can overturn the surface at the single sample point it used before.
  • Digests: golden digests are re-blessed.
  • Known limit: max overlap rises to 0.5–0.8 of the thickness, up from about 0.15, because more growth packs tighter. A bud takes 6–18 s natively.

🤖 Generated with Claude Code

https://claude.ai/code/session_0176ayWToynvBuY9JpeA6W1V


Generated by Claude Code

The growth automaton's coin flips now read a Gaussian noise field smoothed
over growth_correlation nodes that drifts between stages as an AR(1) process
with coefficient growth_persistence. growth_anisotropy splits each node's
growth between petal length and width, and springs along and across the
petal follow their own axis. Three new species ranges, drawn after every
existing trait so plants keep their other traits. Golden digests re-blessed.

Closes #7.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0176ayWToynvBuY9JpeA6W1V
Skip-one bending springs cannot feel an alternating single-node zigzag, so
excess growth crumpled at grid scale. Petals now also carry
second-difference bending terms |a - 2b + c| along both grid directions,
scaled by a new species range zigzag_bending (0 restores the old crinkle).
Peony uses 3-5 with growth_rate doubled to 0.10-0.16: petals now arch over
the top in broad folds and the bud swells 22-34% instead of 8-15%.

The JSON format test now checks petal orientation over the whole petal,
since a fold can overturn the surface at a single sample point. Golden
digests re-blessed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0176ayWToynvBuY9JpeA6W1V
@ALopezMoreno
ALopezMoreno marked this pull request as ready for review October 16, 2026 04:07
@ALopezMoreno
ALopezMoreno merged commit c58a298 into main Oct 16, 2026
6 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.

2 participants