Skip to content

fix: honor absent witnesses and unresolved triage in sizing - #482

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/sizing-none-triage-rules
Oct 6, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/sizing-none-triage-rules

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Recognize Witness: none (including a bare sentinel) as an absent witness, keep unresolved triage out of unattended work, and stop treating ordinary “raises” prose as an error-contract change. Invalid Unattended declarations now explain their fallback. Explicit consequence and unattended overrides retain precedence.

Closes #480. Implements the approved plan; tier glance, witnessed auto-merge on green.

API Changes

No scientific library API changes. Internal declared-header metadata adds witness_none_reason and unknown_unattended; sizing explanations expose those values. No downstream modelling scripts are affected.

Test Plan

  • 37 targeted sizing/intake tests pass, including synthetic triage, bare/reasoned none, unknown declarations and override cases.
  • Full suite: 1,249 passed; the sole old untyped fixture inferred triage under the new rule. It now declares maintenance, preserving its header-roundtrip intent, and the affected module passes.
  • Immutable 229-prompt regrade: 15 derived judge→glance, five explicit-none promotions to judge, no unintended promotion and no effective consequence changes. Historical keyword decisions documented below.
  • Heart YELLOW acknowledged in-session: autogalaxy_workspace, autolens_workspace and euclid_strong_lens_modeling_pipeline each have an open PR 7d old; release validation stale because PyAutoNerves source moved since rehearsal. No new reasons.
Whole-backlog witness

Whole-draft regrade

Compared the same 229 prompt files from an immutable snapshot; paths and SHA-256 content hashes match. The initial live capture held 231 markdown files; one file was added concurrently before the snapshot. The snapshot holds 232 markdown files, including three READMEs excluded from the 229-prompt comparison. There are no current triage task prompts; triage behavior is covered by unit tests.

Before derived consequence: {'glance': 115, 'judge': 81, 'notify': 33}
After derived consequence: {'glance': 126, 'judge': 71, 'notify': 32}

Prompt Derived consequence Effective consequence Derived unattended After reason
draft/bug/autoarray/galaxy_duplicate_pytree_registration_after_jax_fitness.md judge → glance glance → glance ready → ready witness declared: in one Python process, construct a JAX af.Fitness for an `; witnessed change to a consumed repo
draft/bug/autoarray/mapping_overlay_follow_ups_forward_regions_throu.md judge → glance glance → glance ready → ready witness declared: `aplt.plot_array(array=fit.data, regions=[mapping.image_cont; witnessed change to a consumed repo
draft/bug/autofit/assertion_repr_recurses_forever.md judge → glance glance → glance ready → ready witness declared: print(model.gathered_assertions()) on a model with one add_a; witnessed change to a consumed repo
draft/bug/autofit/mcmc_thin_zero_and_check_size_short_chain.md judge → glance glance → glance ready → ready witness declared: thin is max(1, int(max(times) / 2)) in both `emcee/searc; witnessed change to a consumed repo
draft/bug/autofit/model_function_cannot_resolve_config_priors.md judge → glance glance → glance ready → ready witness declared: af.Model(some_function) with no explicit priors builds a mod; witnessed change to a consumed repo
draft/bug/autofit/pyautofit_prior_model_summary_header_prints_wron.md judge → glance glance → glance ready → ready witness declared: a unit test over _find_groups (or its representative-key hel; witnessed change to a consumed repo
draft/bug/autofit/stale_enable_pytrees_register_model_advice_in.md judge → glance glance → glance ready → ready witness declared: grep -rn enable_pytrees autofit/ autofit_workspace/scripts/s; witnessed change to a consumed repo
draft/bug/autogalaxy/aggregator_reload_drops_sparse_operator.md judge → glance glance → glance ready → ready witness declared: a fit run with dataset.apply_sparse_operator(...) and relo; witnessed change to a consumed repo
draft/bug/autogalaxy/power_law_multipole_m1_singular_at_isothermal_slope.md judge → glance glance → glance ready → ready witness declared: `ag.mp.PowerLawMultipole(m=1, slope=2.0, multipole_comps=(0.; witnessed change to a consumed repo
draft/bug/autonerves/pyautonerves_emits_a_false_workspace_is_stale.md judge → glance judge → judge ready → ready witness declared: a regression test in PyAutoNerves asserting that `check_vers; witnessed change to a consumed repo
draft/bug/euclid/drawer_pix_initializer_exception_flake.md judge → glance glance → glance ready → ready witness declared: pytest tests/test_latent_run_level.py -m slow passes 10 co; witnessed change to a consumed repo
draft/bug/pyautolens/point_source_json_datasets_record_no_regime.md judge → glance glance → glance ready → ready witness declared: dataset/point_source/multiple_sources written under `PYAUT; witnessed change to a consumed repo
draft/feature/autoarray/interferometer_curvature_preload_phase1.md judge → glance judge → judge ready → ready witness declared: (1) correctness: on a fixed instance whose mapper is held fi; witnessed change to a consumed repo
draft/feature/autoarray/multiwavelength_inversion.md glance → judge judge → judge ready → ready Witness: none declared — placeholder prompt ("expand fully the day I use it"); the combined-inversion design (how curvature_reg matrices combine, what CombineAnalysis's likelihood is) is undecided, so no claim settles it yet.
draft/feature/autofit/ep_analytic_updates.md glance → judge judge → judge ready → ready Witness: none declared — an umbrella of four sequenced work packages (plan in PyAutoFit#1338), each its own issue/PR at pick-up with its own witness; nothing settles the umbrella.
draft/feature/autofit/ep_lbfgs_jax.md glance → judge judge → judge ready → ready Witness: none declared — placeholder prompt ("IC50 fits use DynestyStatic, which is slow"); no target search, tolerance or runtime is stated, so no claim settles it.
draft/feature/autofit/skip_the_likelihood_for_assertion_violating_samp.md judge → glance judge → judge ready → ready witness declared: A model with an add_assertion between two priors, fitted w; witnessed change to a consumed repo
draft/feature/pyautobrain/brain_board_follow_ups.md notify → judge judge → judge ready → ready Witness: none declared — a living catch-all ("pick up only when a real morning shows the need"); each item gets its own witness when it is filed as a task.
draft/feature/workspaces/cluster_pixelized_analysisfactor.md judge → glance glance → glance ready → ready witness declared: scripts/cluster/features/extended_source/ runs to completi; witnessed change to a consumed repo
draft/feature/workspaces/model_figures_6b2_slam_stages.md glance → judge judge → judge ready → ready Witness: none declared — decision-first (inline figures in ~200 SLaM stage functions vs flipping model_figure: true in output.yaml); the witness follows the human's pick.

Cheaper → judge: 5; every case has an explicit none witness or triage work type. No unrelated cheaper → judge moves.
Effective consequence changes: 0.

Historical 14-prompt review

Current draft prompts use the immutable snapshot; completed/folded prompts are assessed from their saved originals. No additional keywords were removed.

Historical prompt Before → after Declared Decision
mapping_overlay_follow_ups judge → glance glance raises removal accepted: derived tier matches declared tier
assertion_repr_recurses_forever judge → glance glance raises removal accepted: derived tier matches declared tier
emcee_crashes judge → glance glance raises removal accepted: derived tier matches declared tier
model_function_cannot_resolve_config_priors judge → glance glance raises removal accepted: derived tier matches declared tier
pyautofit_prior_model_summary_header judge → glance glance raises removal accepted: derived tier matches declared tier
stale_enable_pytrees judge → glance glance raises removal accepted: derived tier matches declared tier
mcmc_thin_zero_and_check_size_short_chain judge → glance glance raises removal accepted: derived tier matches declared tier
drawer_pix_initializer_exception_flake judge → glance glance raises removal accepted: derived tier matches declared tier
point_source_json_datasets_record_no_regime judge → glance glance raises removal accepted: derived tier matches declared tier
mesh_geometry_areas_transformed judge → glance glance raises removal accepted: derived tier matches declared tier
witt_wynne_solver_library_home judge → judge glance additional keyword removal declined: existing names a judged surface: public api; narrow approved change preserves override
wiki_currency_check_version_gate judge → judge glance additional keyword removal declined: existing names a judged surface: public api; narrow approved change preserves override
point_solver_profiling_cells judge → judge glance additional keyword removal declined: existing names a judged surface: defaults to; narrow approved change preserves override
unregistered_worktrees judge → judge notify additional keyword removal declined: existing names a judged surface: reported by; narrow approved change preserves override

@Jammy2211
Jammy2211 merged commit 8c860cf into main Oct 6, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/sizing-none-triage-rules branch October 6, 2026 14:05
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.

fix: sizing faculty — none-witness rule, raises keyword, triage rule

1 participant