Skip to content

Ship the HowTo setup_notebook audit: record it complete - #211

Merged
Jammy2211 merged 3 commits into
mainfrom
claude/howto-setup-notebook-audit-dm2j9e
Aug 18, 2026
Merged

Ship the HowTo setup_notebook audit: record it complete#211
Jammy2211 merged 3 commits into
mainfrom
claude/howto-setup-notebook-audit-dm2j9e

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

What

Bookkeeping for the setup_notebook() audit, now that all six code PRs are merged. The prompt runs the full lifecycle in this branch — draft/bug/howto/active/complete/2026/08/howto-setup-notebook-audit.md — with its active.md entry removed, per complete/AGENTS.md (the dated record is the ledger).

scripts/lifecycle.py check and lifecycle.py index --check both pass; complete/index.md and dashboard.md regenerated.

The audit

Every .py under scripts/ — plus each HowTo repo's root start_here.py — checked across the three HowTo repos and all five user-facing workspaces. 39 scripts were missing the line, all fixed and merged:

Repo Missing PR Merge
HowToFit 3 PyAutoLabs/HowToFit#45 1a4e7132
HowToGalaxy 2 PyAutoLabs/HowToGalaxy#66 d973bc57
HowToLens 6 PyAutoLabs/HowToLens#70 e0fbdf61
autofit_workspace 1 PyAutoLabs/autofit_workspace#138 fa55c438
autogalaxy_workspace 5 PyAutoLabs/autogalaxy_workspace#211 47227c79
autolens_workspace 22 PyAutoLabs/autolens_workspace#485 c5960f69
autocti_workspace 0 — already clean

Every check green on all six.

What the record keeps

Things the next person would otherwise re-derive:

  • The omissions were not policy. They sit alongside siblings in the same directory that do carry the line (autolens_workspace/scripts/cluster/ has 6 without and 5 with) — a missing line is not a deliberate exemption.
  • The scope boundary. autoreduce_workspace has 30 scripts and none carry the line, which looks alarming until you notice it has no notebooks/ directory. Same for every *_workspace_test / *_workspace_developer repo (verified by tree listing). Nothing generates notebooks there, so the convention doesn't apply yet.
  • The CRLF trap. HowToFit/scripts/chapter_1_introduction/tutorial_1_models.py is committed CRLF while everything around it is LF; a naive read/split/write turns it into a 547-line whitespace-only diff.
  • The two placement forms (after the docstring, or after jax_wrapper) and the one import-first outlier.
  • Notebooks were patched, not regenerated — PyAutoHands isn't available in a cloud session. Verified three ways, and a real generate.py run should be a no-op; that's the first thing to check if it isn't.

Logged as unclaimed, not silently fixed

  • Fifteen start_here.ipynb files (nine in autolens_workspace, six in autogalaxy_workspace) carry JSON formatting that differs from the generator's indent=1 output. Pre-existing, flagged in both PR bodies, untouched.
  • draft/maintenance/workspaces/notebook_setup_notebook_drift_siblings.md stays open — notebooks carrying the commented form are a different failure.

claude added 3 commits August 18, 2026 12:20
The prompt advances draft/bug/howto/ -> active/: the audit has been run and the
fix pushed as branches in six repos, so it is in flight rather than not started.

The audit itself is recorded in the prompt file. Every .py under scripts/ (plus
each HowTo repo's root start_here.py) was checked across the three HowTo repos
and all five user-facing workspaces; 39 scripts were missing the
setup_notebook() line and all 39 are fixed, with the matching generated
notebook updated. autocti_workspace was already clean. autoreduce_workspace and
the *_workspace_test / *_workspace_developer repos are out of scope and the
prompt says why: none of them generates notebooks, so the convention does not
apply there yet.

No issue was filed and no PR opened — the registry entry says so and names the
branch and per-repo commit, so whoever picks it up knows exactly what is and is
not on main.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0126SmBwHMzP4okcjhjPoLFZ
The entry was written before the PRs existed and said so. They are open now, so
it names them instead: HowToFit#45, HowToGalaxy#66, HowToLens#70,
autofit_workspace#138, autogalaxy_workspace#211, autolens_workspace#485.

Also records why the three workspace legs are not behind the library-first
merge gate: setup_notebook is long-shipped in the released libraries and is
already called by every other example script in those repos, so there is no
unreleased API for a pending-release label to guard.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0126SmBwHMzP4okcjhjPoLFZ
All six PRs merged 2026-08-18 with every check green, so the prompt advances
active/ -> complete/2026/08/howto-setup-notebook-audit.md and its active.md
entry is removed. lifecycle check + index check both pass; dashboard
regenerated.

The record keeps what the next person would otherwise re-derive: that the
omissions were not a per-subtree policy (siblings in the same directory carry
the line), that autoreduce_workspace and the *_test / *_developer repos are
out of scope because none of them generates notebooks, the two placement forms
plus the one import-first outlier, and the CRLF file in HowToFit that turns a
naive mechanical sweep into a 547-line whitespace diff.

Two findings are logged as unclaimed rather than silently fixed: fifteen
start_here.ipynb files across the two big workspaces carry JSON formatting that
differs from the generator's output, and the sibling regeneration-drift task
stays open as a separate failure.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0126SmBwHMzP4okcjhjPoLFZ
@Jammy2211 Jammy2211 changed the title Register the HowTo setup_notebook audit and record its result Ship the HowTo setup_notebook audit: record it complete Aug 18, 2026
@Jammy2211
Jammy2211 merged commit dac8c0e into main Aug 18, 2026
2 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