Repository navigation
Description
Overview
HowToFit's GitHub front page mentions Google Colab exactly once, buried mid-README ("every tutorial can be opened directly in Google Colab via the links in each chapter's README.md") — no badge, no direct link, while autofit_workspace carries a Colab badge on line 3. The chapter indexes that sentence defers to are themselves incomplete: both claim "Colab links to every tutorial are included" and neither is true. Separately, the chapter folders run 1 then 3 with no chapter 2, so chapter_3_graphical_models becomes chapter_advanced.
Notebook regeneration was verified to be a no-op first: a throwaway regen in a detached scratch worktree produced a byte-identical tree against main (70bfcfa), Catalogue written: llms-full.txt, workspace_index.json (19 scripts).
Plan
- Add a Colab badge directly under the
# HowToFittitle pointing at rootstart_here.ipynb, add a "Start Here on Colab" header-row link, and replace the buried sentence with a prominent "Run in Google Colab (no installation)" section under Getting Started. - Convert chapter 1's 4 relative
../../notebooks/...links (tutorials 6, 7, 8, optional Bayesian formalism) to real Colab URLs. - Add chapter 3's 2 missing optional tutorials (
hierarchical_ep,hierarchical_individual) as Colab rows. git mv scripts/chapter_3_graphical_models→scripts/chapter_advanced; sweep path refs and prose ("chapter 3" → "the advanced chapter") across 30 HowToFit files.- Fix the 3
main-pinned autofit_workspace URLs that the rename breaks. - Regenerate notebooks + catalogue in both repos and commit the twins alongside the source edits.
Detailed implementation plan
Work Classification
Workspace (both repos are workspace-type — no library-first merge gate).
Affected Repositories
- HowToFit (primary)
- autofit_workspace
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./HowToFit | main (70bfcfa) | clean |
| ./autofit_workspace | main (8ef0227) | clean |
Suggested branch: feature/howtofit-colab-and-chapter-advanced
Worktree root: ~/Code/PyAutoLabs-wt/howtofit-colab-and-chapter-advanced/
Pre-existing debris found during the survey (not this task's to fix, filed as a note): feature/scientific-workflow-language has worktrees for both target repos, unregistered in active.md. It is merged into origin/main in both and its remote branches are already deleted — post-merge cleanup that never ran. No claim conflict.
Implementation Steps
- Rename —
git mv scripts/chapter_3_graphical_models scripts/chapter_advancedso history follows the files. - HowToFit sweep (30 files) — path refs
chapter_3_graphical_models→chapter_advanced; prose "chapter 3" → "the advanced chapter". IncludesAGENTS.md,README.md,scripts/README.md,notebooks/README.md,start_here.py,scripts/simulators/simulators.py, and chapter 1'stutorial_1_models.py+tutorial_8_scientific_workflow.py.llms-full.txt/workspace_index.jsonare regenerated, never hand-edited. - Root README Colab surface — badge under the title in canonical
colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.11.1/start_here.ipynbform; header-row entry; "Run in Google Colab (no installation)" section presenting Colab as a first-class path alongside the local install. - Chapter indexes — chapter 1: convert 4 relative links to Colab URLs. Chapter advanced: add the 2 optional tutorials. Edit the
scripts/copies only;generate.pycopies them intonotebooks/. - autofit_workspace link fixes —
scripts/features/graphical_models.py:24,scripts/features/expectation_propagation.py:432,scripts/overview/overview_3_statistical_methods.py:29, plus their generated.ipynb/.mdtwins via regen. - Regen both repos —
python3 ../PyAutoHands/autohands/generate.py howtofitand... autofit, each run from inside its own worktree (generate.pyresolves fromPath.cwd(); run elsewhere it reports 0 scripts and changes nothing). Prove each run by its script count.
Verification
- No
chapter_3_graphical_modelsstring survives in either repo. notebooks/chapter_1_introduction/tutorial_8_scientific_workflow.ipynbstill has zero code cells, including no Colab setup cell (prose-only by design).- Regenerated
llms-full.txt+workspace_index.jsoncommitted —navigator_check.ymlfails otherwise. - Every Colab URL in canonical
blob/<tag>/form soPyAutoHands/autohands/bump_colab_urls.sh(which already coversHowToFitand sweeps*.mdat any depth) keeps the tag current at release. - HowToFit
url_check.ymlpasses.
Key Files
HowToFit/README.md— the Colab badge, header row, and Getting Started section.HowToFit/scripts/chapter_1_introduction/README.md— 4 relative links → Colab.HowToFit/scripts/chapter_advanced/README.md— renamed; 2 optional tutorials added.HowToFit/AGENTS.md,start_here.py,scripts/simulators/simulators.py— chapter refs.autofit_workspace/scripts/{features/graphical_models.py,features/expectation_propagation.py,overview/overview_3_statistical_methods.py}— brokenmain-pinned URLs.
Out of scope
PyAutoFit carries two prose-only "HowToFit chapter 3" mentions with no URLs (autofit/messages/truncated_normal.py:328, test_autofit/graph_spec/graphical_doubles.py:81). Including them would pull a library PR and the library-first merge gate in for two lines of prose. Filed as a separate docs/autofit follow-up.
Original Prompt
Click to expand starting prompt
for HowToFit, can we generate the Jupyer Notebooks?
Ok great, can you make it so the Google Colab link is clear and visible on the HowToFit GitHub Readme
Also make chapter 3 become chapter_advanced
Human decisions taken during planning (2026-09-14):
- Folder name is unnumbered
chapter_advanced, notchapter_2_advanced— it kills the confusing 1-then-3 gap and names what the chapter is rather than where it sits. Chapter 1 keepschapter_1_introduction. - Scope is HowToFit + autofit_workspace; the 2 PyAutoFit prose mentions are filed separately.
- Chapter-index link gaps are fixed in this task rather than deferred.
Activity
Jammy2211 commentedon Sep 14, 2026
Parked at the ship gate — Heart RED (unrelated)
Implementation is complete and validated; it is staged in both worktrees but deliberately not committed.
AUTONOMY.md: "Heart RED forbids commit, push and PR-open at every autonomy level."RED reason, verbatim (
pyauto-heart readiness --json, 2026-09-14,stale_reasons: []— not stale):Nothing in this task touches that defect. The RED is driven by autolens/autolens_test workspace validation (5 failed, 2 timeout, cloud#34099198772), manifest drift vs
PyAutoMind/repos.yaml, and profiling-result drift. The corrective-PR exception does not apply — it permits only a PR repairing the exact defect the RED names, and this repairs none of it. Human decision 2026-09-14: park and wait for green rather than override.What is done and verified
HowToFit (19 scripts regenerated)
# HowToFittitle +Start Here on Colabin the header row, both pointing at rootstart_here.ipynb.Run in Google Colab (nothing to install)subsection that leads Getting Started, ahead of the local-install path.scripts/chapter_3_graphical_models/→scripts/chapter_advanced/viagit mv(9 files, renames tracked asR, history preserved).../../notebooks/...links converted to real Colab URLs.hierarchical_ep,hierarchical_individual) added — both indexes' claim "Colab links to every tutorial are included" is now true.autofit_workspace (32 scripts regenerated)
main-pinned URLs into the old HowToFit path fixed, plus themarkdown/twin.Gates, all passing
chapter_3_graphical_modelsstring anywhere in either repo.notebooks/chapter_1_introduction/tutorial_8_scientific_workflow.ipynb— exactly 1 markdown cell, 0 code cells (prose-only by design, no Colab setup cell)..../PyAutoLabs/HowToFit/blob/2026.9.14.1/..., the formbump_colab_urls.shrewrites, so the tag stays current automatically.Reviewer notes for when this ships
output/chapter_3_graphical_models/...→output/chapter_advanced/.... Existing results will not resume; they appear under the old name.markdown/pages were hand-edited for the URL/prose substrings rather than regenerated.generate_markdown.pyexecutes every curated script for real and is an at-release tool; the edits are byte-equivalent to what a regen emits for those lines, andbump_colab_urls.shalready performs this same class of in-place rewrite on*.md.2026.9.14.1— the release that landed 2026-09-14, not the 2026.9.11.1 that was current when this was planned.To resume
Heart GREEN/YELLOW, then a single
/ship_workspacerun onfeature/howtofit-colab-and-chapter-advanced. Both worktrees are staged and ready at~/Code/PyAutoLabs-wt/howtofit-colab-and-chapter-advanced/. Staged content is already in git's object store, so it survives working-tree churn.Follow-up already filed, independent of this:
PyAutoMind/draft/docs/autofit/howtofit_chapter_3_prose_references.md(PyAutoFit's two prose-only "HowToFit chapter 3" mentions, split out to avoid dragging the library-first merge gate into workspace-only work).Jammy2211 commentedon Sep 14, 2026
Committed locally; blocked at push by the harness, not by policy
Both repos are committed with clean trees — nothing left to author:
8fbff314adf61egit pushoffeature/howtofit-colab-and-chapter-advancedis denied in both repos by the Claude Code auto-mode Bash classifier ([Auto-Mode Bypass]; a subagent hit the same denial reported as[CI Bypass]).This is a harness permission layer, separate from the Heart RED gate already overridden above. Evidence it is not a blanket session block: pushes to
PyAutoMindmainfrom the same session succeed — it is specific to these feature branches.Deliberately not routed around via
gh apiref-creation or git plumbing. That would defeat the control's intent rather than satisfy it.To unblock: add a Bash permission rule, or push both branches by hand:
Then PR-open and
/prmresume with nothing re-authored.Jammy2211 commentedon Sep 14, 2026
Shipped
3a755c55226f2fBoth branches proven merged into
origin/mainbygit merge-base --is-ancestor, not by the PR state alone.CI green on every run for each head sha (enumerated per run, not read off the summary rows): Navigator Check, Smoke Tests and Tutorials Complete on HowToFit; Navigator Check and Smoke Tests on autofit_workspace — all
completed / success, both 3.12 and 3.13 legs.Two checks worth naming, because they verify the rename rather than merely passing:
navigator / Catalogue stalenessconfirms the regeneratedllms-full.txt/workspace_index.jsonmatch the renamed tree, and the smoke suites execute every tutorial script, so a broken import path from the rename would have failed them.Delivered
# HowToFittitle andStart Here on Colableading the header row; aRun in Google Colab (nothing to install)subsection now opens Getting Started ahead of the local-install path. Previously Colab was one buried sentence with no link.scripts/chapter_3_graphical_models/→scripts/chapter_advanced/(git mv, history preserved), 16 prose phrasings reworded, 3 downstreammain-pinned URLs in autofit_workspace fixed.Merged under an explicit human override of Heart RED
Heart readiness was RED throughout for the unrelated reason
release validation FAILED (stage integrate). This was not theAUTONOMY.mdcorrective-PR exception — that covers only a PR repairing the defect the RED names. It was a live human override, recorded inPyAutoMind/active.mdunderheart-override:and in the thread above. Noted here so the precedent is auditable and not mistaken for policy.Follow-up filed
PyAutoMind/draft/docs/autofit/howtofit_chapter_3_prose_references.md— PyAutoFit's two prose-only "HowToFit chapter 3" mentions (autofit/messages/truncated_normal.py:328,test_autofit/graph_spec/graphical_doubles.py:81), split out to keep the library-first merge gate out of workspace-only work.