Repository navigation
Add verify skill and 1-tile fixture runner (workflow/scripts/verify.py) - #1008
Open
cailmdaley wants to merge 1 commit into
Open
cailmdaley wants to merge 1 commit into
cailmdaley wants to merge 1 commit into
Conversation
Adds .claude/skills/verify/SKILL.md and workflow/scripts/verify.py to run any ShapePipe stage (prepare, detect, psf, vignets, all) through workflow/bin/sp on a 1-tile, 3-exposure real-data fixture (592.232: exposures 2514827 at 0.86", 2780860 and 2780862 at 0.49"), compare columns and star/galaxy metrics against a baseline, and save a summary figure. Verified on Fir (def-waerbeke_cpu, 16 cores): - develop (--stage detect --strict, --stage psf --strict) vs baseline_develop: NO_DIFFERENCE (47/47 detect cols, 22/22 star cols bit-identical) - variant/phase-validation-only (--stage all) vs baseline_run1: 6/22 HSM_*_PSF star cols changed (de1 -0.0041 -> -0.0011/-0.0009), 296/296 galaxy cols bit-identical (rms(dg) = 0) - variant/psf-sampling-0p5-galaxy-centred (--stage all) vs baseline_run1: 6/22 star cols changed (de1 -> -0.00014/-0.00015), 142/296 galaxy PSF/ngmix cols changed (rms(dg) = 4.03e-3), 154 detection/mask cols bit-identical.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gemini 4 Neon on behalf of Cail.
Adds a
verifyskill (.claude/skills/verify/SKILL.md) and a single self-contained runner (workflow/scripts/verify.py) so any human or agent can run the stage a change touches through the real launcher (workflow/bin/sp) on a 1-tile, 3-exposure fixture and inspect the output beside a known-good baseline before committing.What it adds
.claude/skills/verify/SKILL.md— stage table, fixture staging instructions (Fir paths and CADC/VOSpace recipe elsewhere), and what to check before committing.workflow/scripts/verify.py— PEP-723 standalone script (uv run workflow/scripts/verify.py --stage <prepare|detect|psf|vignets|all>). Runs throughworkflow/bin/sp(--executor local), compares catalogues per column against--baseline, prints counts and star/galaxy metrics, and writesverify_summary.json+verify_<stage>.png. Pass--strictto exit non-zero on any difference.Fixture & cost
Default tile
592.232(3 exposures:2514827at 0.86″ seeing,2780860and2780862at 0.49″ seeing; ~1.6 GB inputs, 33,810 detected objects, 2,081 v2.0.0-selected galaxies, 5,083 good reserve stars). Pixels are not committed.detectpsfallVerification
Run live on Fir (
def-waerbeke_cpu, 16 cores):Unchanged

develop(--stage detect --strictand--stage psf --strictvsbaseline_develop):NO_DIFFERENCE— 47/47tile_detectcolumns and 22/22 reserve-star columns bit-identical on all 3 exposures.variant/phase-validation-only(--stage allvsbaseline_run1, 834 s):DIFFERENCES_DETECTED— only the 6HSM_*_PSFstar-validation columns moved (de1: −0.0041 → −0.0011/−0.0009 on the two 0.49″ exposures;dT: −0.0063 → −0.0020 on2514827), while all 296/296 galaxy catalogue columns on all 33,810 objects stayed bit-identical (rms(Δg) = 0).variant/psf-sampling-0p5-galaxy-centred(--stage allvsbaseline_run1, 1187 s):DIFFERENCES_DETECTED— reserve-starde1dropped to −0.00014/−0.00015 (6/22 star columns changed), 142/296 galaxy PSF/ngmix columns changed (rms(Δg) = 4.03e-3, 2,075 vs 2,081 selected), and all 154 detection/mask/position columns stayed bit-identical.