Skip to content

docs: restructure Chapter 2 around practical galaxy modeling #94

Closed

Description

@Jammy2211

HowToGalaxy Chapter 2 restructure

Target: @howtogalaxy
Type: docs
Consequence: judge

Original implementation request (verbatim)

Yes, proceed with the full HowToGalaxy implementation despite Heart RED, validate it and get the PR up. Do prm if the required checks and shipping gates pass.

Approved scope

Adapt the approved HowToLens Chapter 2 prose to galaxy modeling without further block reviews. Use six tutorials: non_linear_search (Nautilus only), practicalities (merge realism and concise results), why_modeling_is_hard, linear_profiles, data_and_likelihoods, search_chaining. Move speed and historical prior passing to optional; replace optional LBFGS with MultiStartProdigy alongside MCMC. Preserve observational narrative, practical output tree/identifier/VRAM details and scientific distinctions. Link results and multi_dataset as advanced follow-up. Use neighbouring-galaxy component separation for Galaxy chaining. Regenerate notebooks and navigation; smoke and API validate. Do not edit Lens or Chapter 3 content owned by another chat.

Plan

  • Apply approved Chapter 1–4 lesson adaptations to Chapter 2 tutorials 1–4.
  • Implement data/likelihood and component-chaining lessons using current Galaxy examples.
  • Update optional material, numbering, references, build configuration and generated artefacts.
  • Validate, open PR, and merge only if all required shipping gates/checks pass.
    Tier: judge — merge mode: explicit current user /prm conditional on green checks.

Detailed review checkpoint: /mnt/c/Users/Jammy/Workspace/Science/scratch/howto_chapter2_review_2026-10-31/RESUME.txt (approved exact prose in current chat).

Branch survey

HowToGalaxy main clean at ead53e6; task branch feature/howtogalaxy-chapter2.
Other chat has separate howto-chapter3 worktree; avoid its sources, regenerate only this branch.
Worktree: /home/jammy/Code/PyAutoLabs/.worktrees/howtogalaxy-chapter2/HowToGalaxy

Validation plan

AST/compile and API grounding; smoke changed scripts, full required smoke as feasible; regenerate with Hands and validate catalogue/notebook/link paths. Real fits needed to substantiate convergence/runtime; no fabricated timings. Heart RED override above permits this implementation and PR, no release or failed-check bypass.

Activity

  1. Jammy2211 commented on Oct 31, 2026

    @Jammy2211
    CollaboratorAuthor

    Validation and Heart RED development override

    Validation

    • Full repository smoke runner, Python 3.12: 31 passed, 0 failed (all runnable scripts; 7 package initializers excluded by discovery).
    • Notebook generation: 32 passed, including start_here; 31 generated tutorial/simulator notebooks parse.
    • Tutorial completeness: 25 passed. Navigator/path and banner checks, catalogue reproducibility, explicit search-memory settings and diff whitespace checks passed.
    • Independent review passed after correcting mask-value prose, stale chapter references and prior wording.
    • Independent full-size CPU JAX check: 150×150 simulation / 11,304 fitted pixels, four free parameters in the second-stage model, finite compiled likelihood, gradient and two-point batch. The fixed neighbour used a prior-median instance; this tests computation, not fitted-model quality.
    • The Heart smoke wrapper does not register howtogalaxy; used this repository's CI-owned .github/scripts/run_smoke.py with the existing isolated Python 3.12 environment and local source stack.

    Smoke skips sampling and plotting, and uses capped data. No full scientific inference/convergence or GPU performance claim is made. Required GitHub CI must pass before merge.

    Heart RED Override

    The user explicitly authorised this task in the current chat:

    Yes, proceed with the full HowToGalaxy implementation despite Heart RED, validate it and get the PR up. Do prm if the required checks and shipping gates pass.

    Authoritative readiness at 2026-10-31T17:02:52.103664+00:00 remains RED for these exact reasons:

    • PyAutoFit: 2 commit(s) behind origin
    • release validation FAILED (stage integrate)

    This is a development-only override. It does not clear Heart, claim to fix it, authorise a release, or bypass failed branch tests or required CI. The current-turn merge authorisation is conditional on every required check and shipping gate passing.

    Closes #94.

  2. Jammy2211 commented on Oct 31, 2026

    @Jammy2211
    CollaboratorAuthor

    Chapter 3 reconciliation and repeat validation

    PR #95 merged while #96 was in CI. Merged main into the feature branch, retained Chapter 3 exactly as merged, reconciled navigation, and regenerated notebooks/catalogues.

    • Current head: 93cab426cc91baf22fe9bf546d8b81e2be72e896.
    • Full repository smoke: 28 passed, 0 failed (the consolidated Chapter 3 has fewer scripts).
    • Generation: 29 passed, including start_here; 28 notebooks parse.
    • Completeness: 22 passed; navigation, catalogue reproducibility, memory and whitespace checks pass.
    • Initial-head CI: all eight jobs passed. Final-head CI is running again; no merge before all checks pass.

    The recorded development-only Heart RED override remains in effect; no release or failed-check bypass.

  3. Jammy2211 commented on Oct 31, 2026

    @Jammy2211
    CollaboratorAuthor

    Shipped — 2026-10-31

    Merged #96 at b4a9a429c5067eb51e744d78f5eaf67e1c41c054 after all eight CI jobs passed on the final head, including Python 3.12 and 3.13 smoke tests.

    The approved Chapter 2 restructure is implemented, with optional searches/speed/historical prior passing, regenerated notebooks and navigation. The concurrent Chapter 3 restructure was integrated without changing its content.

    Final local validation: 28/28 scripts, 29/29 generation items, 22 completeness checks; navigation/catalogue/memory/whitespace and independent review clean. Full-size CPU JAX likelihood/gradient/batch check passed. These checks do not establish full inference convergence or GPU performance.

    User explicitly approved 14 live points for the inadequate 13-parameter comparison (10 is rejected by current Nautilus); 75 remains for tuned priors and reduced complexity. Heart remains RED under the recorded development-only override; no release or failed-check bypass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions