Repository navigation
Compatibility sweep (MC-1..MC-3, Q-MC-a, Q-MC-b) - #636
Merged
Merged
Conversation
MC-1: read coverage.json schema_version 3 only; versions 1 and 2 are refused (coverage_version_unknown). The schema-2 wording and the unreachable "block in an older record" check go. MC-2: html_report loses check_source=False; the source digest is always checked and a report without a source is refused. The row-count check (check_counts), reachable only through the opt-out, goes with it. MC-3: next_fov and final sufficiency rows are read as the current writers write them (uninformative, warning_list); the older-table tolerance and the joined-warnings fallback go. Q-MC-b: repeat_plan refuses a contrast table without mean, control_mean, log_ratio_se or difference_se instead of planning it on Cohen's d. The fallback to d for non-finite values or errors stays. Q-MC-a is not done: the redundancy result (a plain DataFrame from redundancy_distance, passed by optimise with redundancy_bins) records no acquisition identity. Adds CHANGELOG.md (Unreleased) and regression tests for the new refusals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WX6rdMV1r5jUPUR94kxV5a
Owner decision on #636: - repeat_plan refuses a table without d_low, d_high or between_share (without d_low it returned an empty plan silently; without between_share twice the fields halved the whole sampling error). The columns are checked before the empty-table return. - across_repeats refuses a table without mean or control_mean (it returned an empty table, as if nothing were compared). Review LOWs: sufficiency_text reads final["warning_list"] directly; AGENTS.md no longer says _html_page checks the report's counts. AGENTS.md sections 3 and 5 already describe the repeat refusal as the code does it. CHANGELOG: the items are "Sweep MC-1/2/3", apart from the Stage 2 MC labels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WX6rdMV1r5jUPUR94kxV5a
This was referenced Nov 14, 2026
Closed
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.
This is the MorphoCoverage part of the approved compatibility sweep. The inventory is
docs/restart/designs/compat-sweep-inventory-2026-11-13.mdon MorphoFeature branchclaude/restart-doc(§5, owner answers in §12). After review, the owner decided to refuse the three further old-table tolerances. Each line was checked again againstorigin/mainat42e1986before anything was deleted. The scientific refusals stay, and so do the decided keeps in §11 (_repeat_alias.py,objects).Commits:
76b4fe7(sweep),701d8c4(owner decision and review fixes). No force-push.Items
checked_versionreadscoverage.jsonschema_version3 only. Versions 1 and 2 are refused withcoverage_version_unknown. The unreachable check for "a block in a version < 3 record" is removed. The schema-2 wording is removed from thedescribed.pydocstring, from_missing_reasonand fromdocs/common/data_format.md. A schema-3 export without the block (MorphoFeature writes none for FOVs that do not come from preprocessing) still defaults no control (experiment_block_missing).html_report(check_source=...)is removed. The source digest is always checked, and a report without a source is refused._html_page.check_countsis removed too: once the opt-out was gone nothing could reach it, because the digest covers every row of both tables.TypeErroroncheck_source.is_uninformativeandsplit_uninformativereaduninformativedirectly._warning_listandsufficiency_text(review LOW) readwarning_listdirectly, and the joined-warningsfallback is gone. The current writers always set these fields.test_sufficiency.pyhand-built rows in the older shape. They now carryuninformative: None.redundancy(a plainpd.DataFramefromredundancy_distance, passed byoptimise(..., redundancy_bins=...)) records no acquisition identity. The other 18 result types record one. This item moves to a separate follow-up PR.repeat_planraisesValueErrorfor a table missingmean,control_mean,log_ratio_seordifference_se. Before, it planned such a table on Cohen's d without saying so. The fallback to d for non-finite values or errors stays.repeat_planrefuses a table withoutd_low,d_highorbetween_share. Before, a table withoutd_lowgot an empty plan with no reason given, and one withoutbetween_sharehad its whole sampling error halved when the fields were doubled. These columns are checked before the empty-table return.across_repeatsrefuses a table withoutmeanorcontrol_mean. Before, it returned an empty table, as if no condition were compared. It is still empty without a repeat column. Missing values inside these columns are read as before.d_low,d_highandbetween_shareare each refused, with and without rows (×3), and missing values are still read.across_repeatsrefuses a table withoutmeanorcontrol_mean(×2). The edge golden now uses an empty table instead of one withoutd_low.Docs
CHANGELOG.mdis new, with an Unreleased section. Its items are called "Sweep MC-1/2/3" so they do not clash with the Stage 2 MC-1/MC-2.docs/common/data_format.mdis updated._html_pagechecks the report's counts (review LOW).repeatis refused with aValueErrornamingbiological_repeat(_repeat_alias.refuse_repeat_alias), and nothing is renamed. They needed no change.docs/common/function_index.jsonlis regenerated.src/againstorigin/main: 10 files, 68 lines added, 74 deleted.Gate (on
701d8c4, fresh--no-cache-dirvenv, Python 3.13)Whole suite (same tree)
The
data/referencecomparison was not run. This PR changes behaviour on purpose, but only for inputs the current writers do not produce.🤖 Generated with Claude Code
https://claude.ai/code/session_01WX6rdMV1r5jUPUR94kxV5a