Repository navigation
Description
Overview
Library repos must not carry science-specific paths or named science targets. The WFC3-IR mosaic-hole regression in autoreduce — the reason the IR adapter ships STScI's MDRIZTAB DQ-bit rows instead of drizzlepac's final_bits = "0" default — is named after the real target it was found on. Rename every reference to the generic regression it actually encodes (HST program 14653, F160W, five-exposure mosaic, 123-px hole at r = 5.3") and drop the target name. Comment/name text only: no behaviour change, no API change, no test-outcome change.
Plan
- Reword the DQ-bit rationale comment in the WFC3-IR adapter so it cites the program/filter/exposure-count rather than the target name.
- Rename the regression test to describe the dataset shape it guards (
test_five_exposure_f160w_mosaic_would_not_have_holed) and reword its comment the same way. - Reword the "Blobs (DQ 512)" paragraph in the WFC3 design doc so the failing dataset is identified generically.
- Sweep the whole repo for any remaining occurrence of the target name and fix anything tracked; leave the gitignored local drizzle cache alone.
- Run the
autoreducetest suite to confirm the rename is behaviour-neutral, then ship.
Detailed implementation plan
Work Classification
Library (PyAutoReduce source + its own tests + its own design docs). No workspace follow-up: nothing user-facing changes, and the renamed test is referenced nowhere outside its own file.
Affected Repositories
- PyAutoReduce (primary)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./PyAutoReduce | main | clean |
Recent branches: main only. worktree_check_conflict clean — no active task claims PyAutoReduce (the two open tasks claim autolens_profiling, PyAutoArray, PyAutoGalaxy).
Suggested branch: feature/anonymise-wfc3-ir-hole-regression-target
Worktree root: ~/Code/PyAutoLabs-wt/anonymise-wfc3-ir-hole-regression-target/
Implementation Steps
autoreduce/instruments/wfc3_ir.py(~L37) — in thedq_bits_rowsrationale comment, replace(PJ011646, 5 exposures, a 123-px hole at r = 5.3")with(program 14653, F160W, 5 exposures, a 123-px hole at r = 5.3"); reflow the following comment lines so the block stays inside the line budget.test_autoreduce/test_target_and_instruments.py(L157-161) — renametest_pj011646_would_not_have_holed→test_five_exposure_f160w_mosaic_would_not_have_holed, and reword its body comment to describe an HST program 14653 F160W five-exposure mosaic. Assertions untouched.docs/design/wfc3.md(~L52) — in the "Blobs (DQ 512)" paragraph, replace the sentence subjectPJ011646 (program 14653, F160W, 5 exposures, 2–6 px dithers)with a genericAn HST program 14653 dataset (F160W, 5 exposures, 2–6 px dithers); reflow the paragraph.grep -rIn -i pj011646 --exclude-dir=.gitover the repo → must return nothing tracked.scripts/cache/cache_manifest.jsonis gitignored (.gitignore:17 scripts/cache/) and does not contain the name in any case.- Run the suite in the task worktree (
source activate.sh,python3 -m pytest test_autoreduce -q) — every test must pass, including the renamed one, with the same count as before.
Key Files
autoreduce/instruments/wfc3_ir.py— WFC3-IR adapter; carries thedq_bits_rowstable and the comment explaining why it exists.test_autoreduce/test_target_and_instruments.py— the DQ-bits regression legs; the renamed test assertsfinal_bits & 512atnumimages = 5.docs/design/wfc3.md— the WFC3 design note whose "Blobs (DQ 512)" section narrates the failure.
Trade-offs / risks
- The Brain's
featurepass flags "public-API change may ripple downstream" from its generic heuristics; that does not apply here — no exported symbol changes, and the renamed identifier is a pytest method referenced only in its own file. - The regression's provenance stays recoverable: PyAutoMind history records (
complete/,condemned.md,autonomy_log.md) are deliberately not touched — they are records of work that happened.
Original Prompt
Click to expand starting prompt
# Anonymise the named science target in the WFC3-IR hole regression
Type: maintenance
Target: PyAutoReduce
Repos:
- PyAutoReduce
Difficulty: small
Autonomy: safe
Priority: low
Status: formalised
# Anonymise the named science target in the WFC3-IR hole regression
Type: maintenance
Difficulty: small
Autonomy: safe
Priority: low
Library repos must not name science targets — "these repos shouldnt have science specific paths". The WFC3-IR mosaic-hole regression in autoreduce is named after the real target it was found on. Rename the references to the generic regression (HST program 14653, F160W, 5-exposure mosaic with a 123-px hole) and drop the target name:
- `autoreduce/instruments/wfc3_ir.py:37` (comment)
- `test_autoreduce/test_target_and_instruments.py:157-158` (test name `test_pj011646_would_not_have_holed` and its comment)
- `docs/design/wfc3.md:52`
No behaviour change. Mind history records (complete/, condemned.md, autonomy_log.md) stay untouched — they are records of work that happened.
Activity
Jammy2211 commentedon Aug 28, 2026
Branch pushed — PR withheld on Heart RED
Implementation is complete and pushed; the pull request is deliberately not opened because the readiness gate (
ship_librarystep 3) came back RED.feature/anonymise-wfc3-ir-hole-regression-target(PyAutoReduce, pushed toorigin)b4ee3697097fe91fe332b12d61c8479a6756a3fb~/Code/PyAutoLabs-wt/anonymise-wfc3-ir-hole-regression-targetpython3 -m pytest test_autoreduce/ -q→ 299 passed, 3 skipped, 34 warnings, 12.77sHeart readiness verdict (verbatim)
pyauto-heart readiness --jsonat 2026-08-28T21:34:42Z — verdict:red, score 45, profiledefault.red_reasons:release validation FAILED (stage integrate)yellow_reasons:workspace validation not passing (2 failed, cloud#33179766004: autolens_test scripts/imaging/rectangular_mge.py, autolens_test scripts/imaging/rectangular_mge_rtu.py)manifest drift: session-start hooks (generated) — 32 mismatch(es) vs PyAutoMind/repos.yamlNone of these reasons touch PyAutoReduce, and this change is comment/test-name/doc text only — but the gate is the gate, so the PR waits for a human decision (clear the RED, or authorise the narrow corrective-PR exception in
AUTONOMY.md).What landed
autoreduce/instruments/wfc3_ir.pydq_bits_rowsrationale comment now citesprogram 14653, F160W, 5 exposures, a 123-px hole at r = 5.3"test_autoreduce/test_target_and_instruments.pytest_pj011646_would_not_have_holed→test_five_exposure_f160w_mosaic_would_not_have_holed; comment reworded. Assertions untouched.docs/design/wfc3.mdgrep -rIn -i -e pj011646 -e 011646 --exclude-dir=.gitover the repo now returns nothing. The only other place the string lived,scripts/cache/cache_manifest.json, is gitignored (.gitignore:17 scripts/cache/) and does not contain it in any case. PyAutoMind history records (complete/,condemned.md,autonomy_log.md) were deliberately left untouched.PR body to use when the gate clears
Paste verbatim into
gh pr create --label pending-releaseJammy2211 commentedon Aug 29, 2026
PR open — under an acknowledged Heart RED
The human authorised opening and merging under the RED verbatim: "open prs under red and merge i acknowledge". The readiness reasons are unchanged from the comment above, and none of them touches PyAutoReduce:
release validation FAILED (stage integrate)workspace validation not passing (2 failed, cloud#33179766004: autolens_test scripts/imaging/rectangular_mge.py, rectangular_mge_rtu.py)manifest drift: session-start hooks (generated) — 32 mismatch(es) vs PyAutoMind/repos.yamlThe acknowledgement is recorded on the task entry in
PyAutoMind/active.md(heart-ack:).pending-release, headfeature/anonymise-wfc3-ir-hole-regression-target(b4ee369).Opened in the same session under the same acknowledgement (unrelated task, PyAutoBrain#315):
syncmode, and the shared rename table birth and sync now both use PyAutoBrain#316Jammy2211 commentedon Aug 29, 2026
Shipped
5ee7c4e1a8cb1b2a75863ff4c4193262f422a5cf)Testsworkflow green —unittest (3.12)success,unittest (3.13)success,unittest-nojaxskipped (conditional leg).mergeStateStatus: CLEAN.release validation FAILED (stage integrate); YELLOWsworkspace validation not passing (2 failed, cloud#33179766004: autolens_test scripts/imaging/rectangular_mge.py, rectangular_mge_rtu.py)andmanifest drift: session-start hooks (generated) — 32 mismatch(es) vs PyAutoMind/repos.yaml. None touches PyAutoReduce.The WFC3-IR mosaic-hole regression is now identified by the dataset shape it encodes (HST program 14653, F160W, five-exposure mosaic, 123-px hole at r = 5.3") in all three sites: the IR adapter's
dq_bits_rowsrationale comment, the regression test's name and comment, and the "Blobs (DQ 512)" paragraph ofdocs/design/wfc3.md. Comment/test-name/doc text only — no executable line changed; 299 passed, 3 skipped.PyAutoMind history records (
complete/,condemned.md,autonomy_log.md) were deliberately left untouched.