Skip to content

Phase 4a: the nine core-loop ag_* skills - #3

Closed
Jammy2211 wants to merge 2 commits into
feature/phase-3-wiki-corefrom
feature/phase-4a-core-skills
Closed

Phase 4a: the nine core-loop ag_* skills#3
Jammy2211 wants to merge 2 commits into
feature/phase-3-wiki-corefrom
feature/phase-4a-core-skills

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Phase 4a of PyAutoLabs/PyAutoBrain#188 — the core modelling loop. Based on the Phase 3 branch (#2); GitHub will retarget to main when #2 merges.

The nine skills

setup_environment · prepare_imaging_data (owns the real-data gate) · simulate_dataset · build_imaging_model · configure_search · run_search · plot_fit · load_results · debug_fit_failure — every code block adapted from a named autogalaxy_workspace script, every dotted symbol import-verified, and every skill's generated script actually executed (test-mode search.fit completed; aggregator loaded the result back; the identifier silent-resume trap proven live: two different datasets, same unique_tag, identical hash).

Execution evidence corrected the docs

  • output_filename is not universal: only 6 functions accept it on the released wheel (subplot_fit_imaging raises TypeError — AGENTS.md's own "Right" example was a failing call). Full naming-kwarg split now in AGENTS.md, _style.md, plotting.md, ag_plot_fit.
  • ag.from_json("galaxies.json") returns a plain list, not ag.Galaxies — 4 pages corrected, re-wrap idiom documented.
  • PYAUTO_TEST_MODE=2 writes no fit products (level 1 does) — sandbox.md now says so.
  • Two main-only APIs trimmed (leaked from the local source stack; absent from the wheel CI installs): subplot_fit_imaging_list, the jitted-simulation pytree-registration helper.

Validation (clean-venv wheel autogalaxy==2026.7.29.2)

--check-version clean · --scope all 35 files / 209 symbols / 0 missing · lint / citations (906) / provenance (0 errors) clean · link sweep 667 links / 0 broken · 16/16 skill symlinks resolve · pytest 66 passed / 2 skipped.

Upstream findings (report-only)

  • autogalaxy_workspace:scripts/imaging/data_preparation/examples/psf.py names a nonexistent symbol in prose (real: ag.preprocess.kernel_with_odd_dimensions_from).
  • autogalaxy_workspace:scripts/imaging/modeling.py claims N=11 (and N=21) where the measured count is N=9.
  • subplot_galaxies docstring default disagrees with its signature ("subplot_galaxies" vs "galaxies").

🤖 Generated with Claude Code

https://claude.ai/code/session_01EVSbY4u1JLfqRMgXYtnN9v

Jammy2211 and others added 2 commits August 1, 2026 16:42
ag_setup_environment, ag_prepare_imaging_data (owns the real-data gate),
ag_simulate_dataset, ag_build_imaging_model, ag_configure_search,
ag_run_search, ag_plot_fit, ag_load_results, ag_debug_fit_failure — each
grounded on named autogalaxy_workspace scripts and validated by EXECUTING
its generated script (test-mode fit completed; aggregator round-trip;
identifier silent-resume proven with identical hashes on different data).

Reconciliation: skills/README index, PENDING.md, skill_citation_map rows;
execution evidence corrected stale claims in AGENTS.md/_style.md/
plotting.md/sandbox.md/3 concept pages (output_filename is NOT universal —
the six-function wheel-verified split is now documented; from_json returns
a plain list; PYAUTO_TEST_MODE=2 writes no fit products). Trimmed two
main-only APIs that leaked in from the local source stack
(subplot_fit_imaging_list; the jitted-simulation pytree helper).

Validation vs released wheel 2026.7.29.2: --check-version clean; --scope
all 35 files / 0 missing; lint/citations/provenance clean; link sweep 667/0
broken; pytest 66 passed / 2 skipped.

Epic: PyAutoLabs/PyAutoBrain#188 (Phase 4a)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EVSbY4u1JLfqRMgXYtnN9v
…e cone)

Same class as the index.md fix on Phase 3: wiki-currency sparse-clones
autogalaxy_workspace at scripts/ only, and the workspace commits no
per-dataset READMEs anyway (imaging data is auto-simulated).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EVSbY4u1JLfqRMgXYtnN9v
@Jammy2211
Jammy2211 deleted the branch feature/phase-3-wiki-core August 1, 2026 16:20
@Jammy2211 Jammy2211 closed this Aug 1, 2026
@Jammy2211
Jammy2211 deleted the feature/phase-4a-core-skills branch August 1, 2026 16:22
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.

1 participant