Skip to content

feat: al_explain_setup skill; auto-unless compute setup in al_configure_search (5G) - #192

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/likelihood-lifecycle-p5g-assistant
Nov 25, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/likelihood-lifecycle-p5g-assistant

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Likelihood-lifecycle phase 5G (#191). This teaches the assistant the automatic compute setup now on library main:

  • A new al_explain_setup skill explains which setup a fit used or will use and why. It reads files/setup.json + files/parallel.json, matches the setup to its row in setup_rules.yaml, quotes the rule sentence, links the autolens_profiling day-zero page and the PyAutoPulse decision, explains the estimate and flags untested branches.
  • al_configure_search's compute section becomes "Compute setup: auto unless…".

Merge timing: merge with or after the library release that carries the automatic setup. The wiki-currency check installs the latest released autolens (2026.11.22.1), which has no al.estimate_runtime, setup= or lazy_sparse_operator=, so that check is expected to flag the new snippets until then. No gate-off markers were added, by design.

Changes

  • New skills/al_explain_setup.md:
    • Branch A, a fit that ran or is running: a JSON + rule-table lookup snippet, chosen_by, the rule sentence with optimal and secondary setups, the day-zero and Pulse links, parallel reason codes, the estimate (measured cell, Nautilus heuristic, η curve, size band, uncalibrated interferometer/weak), and untested branches.
    • Branch B, a planned fit: al.estimate_runtime.
    • Combine: links to al_configure_search, hpc_campaign, al_load_results and al_debug_fit_failure.
  • skills/al_configure_search.md: the default is setup="auto" + number_of_cores="auto", followed by when to override. The explicit table stays as the override route, with an A100 column. Two stale claims are fixed: the sparse operator is not numba-only (JAX apply_sparse_operator()), and GPU interferometer fits do use it (the A100 designation is jax_gpu_sparse_fp64_wtilde). The number_of_cores inconsistency is fixed too.
  • Small edits: skills/README.md, AGENTS.md ("Compute setup"), al_load_results (the new output files), al_run_search, al_debug_fit_failure (slow-fit pointer), init-slam, al_profiling_setup, hpc_campaign, and sources.yaml (+autolens_inference, +PyAutoPulse).
  • Generated adapters: .claude / .codex, written with install.sh --write-project-discovery; --check-project-discovery reports OK.
  • New test: autoassistant/tests/test_explain_setup_skill.py (registration and content).
  • Also changed: .github/workflows/wiki-currency.yml. Its sparse clone of autolens_profiling now includes wiki/ as well as catalogue/, so the citation check can find the day-zero pages the skills cite.

Test Plan

  • make test: 320 passed, 2 skipped, 1 xfailed; 9 errors, all in test_forward_model_consistency.py (Reference requires autolens==2026.9.27.2; found 9999.0.0.dev0). These fail identically on unmodified HEAD and are not from this change. freeze-check: OK.
  • make audit (against local main libraries): 0 missing or broken symbols, 0 call-argument mismatches. --check-citations: 460 citations, 0 missing. --lint-idioms: clean.
  • make colab-contexts: OK. The al_configure_search context is 18,833 characters (cap 20,000).
  • Both new snippets run. Branch B printed Estimate: ~40 min on this hardware (697 ms/eval, hst cell · Nautilus n_live=150 ≈ 1.4e4 evals, heuristic · η=0.55).
  • Heart dev gate: GREEN (assistant not Heart-gated; PR checks decide).

Notes:

  • Dead link until 5F merges: the workspace guide autolens_workspace/scripts/guides/advanced/auto_setup.py is linked as a URL. It arrives with autolens_workspace#689.
  • Follow-up: the wiki/core HPC pages and the hpc templates' --use_cpu → --setup change are filed as draft/feature/autolens_assistant/hpc_setup_flag_and_wiki_auto_setup.md.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

…igure_search (5G)

New al_explain_setup reads files/setup.json + files/parallel.json, matches
the setup_rules.yaml row, quotes the rule, links the autolens_profiling
day-zero page and Pulse decision, explains the estimate and untested
branches; planned fits use al.estimate_runtime. al_configure_search now
defaults to setup="auto" + number_of_cores="auto" with an override table
(stale numba-only / never-on-GPU sparse claims fixed). Small edits across
skills, AGENTS.md, sources.yaml; adapters and a registration test.
wiki-currency's profiling sparse clone now includes wiki/ for the citations.

Part of #191 (likelihood-lifecycle phase 5G).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 8e79213 into main Nov 25, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/likelihood-lifecycle-p5g-assistant branch November 25, 2026 20:31
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