Skip to content

refactor: rename case_count field to number_of_cases - #137

Merged
SkyeAv merged 1 commit into
mainfrom
fix-column-naming
Sep 4, 2026
Merged

refactor: rename case_count field to number_of_cases#137
SkyeAv merged 1 commit into
mainfrom
fix-column-naming

Conversation

@SkyeAv

@SkyeAv SkyeAv commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Renames the field backing the release-mode applied_to_treat case-cohort filter from case_count to number_of_cases.

  • drop_low_case_countdrop_low_number_of_cases, now defaulting to the number_of_cases column (src/tablassert/lib.py:1056)
  • Op wiring, --release + applied_to_treat gating, null handling, threshold (25), and significance-phase placement before resolve_batch are all unchanged
  • Tests and the changelog entry updated to match

Refs #123

Renames the applied_to_treat release-filter column and its op:
drop_low_case_count -> drop_low_number_of_cases, operating on the
number_of_cases column. Behavior, gating (--release + applied_to_treat),
null handling, and phase placement are unchanged.
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: f01943ea-0945-429b-a943-3eae34e6e270


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@SkyeAv
SkyeAv merged commit 19e595d into main Sep 4, 2026
5 checks passed
SkyeAv added a commit that referenced this pull request Sep 4, 2026
Cut 16.6.0 and bump the package version in pyproject.toml, uv.lock,
and CITATION.cff.

Minor: two capabilities and one activated release filter. The agent
gains --distill (-d / -dt): every LLM call of a run (inner agent,
judge, reflexion) is appended as one ChatML record per line to
<state-dir>/distill/records.ndjson, tagged with the article's
pmc_id, for fine-tuning in Unsloth Studio or via
datasets.load_dataset("json"); distill-export converts the corpus
to an on-disk HF dataset behind the new [distill] extra (#136).
uuid_on_collision: merge now recomputes number_of_cases as the exact
union of a build-internal supporting_case_ids carrier when present,
replacing first-wins under-reporting and its scalar-conflict report,
and strips the carrier before write in both dedup paths (916f509).
The release-mode applied_to_treat filter is renamed
drop_low_number_of_cases and now reads the number_of_cases column
the pipeline actually emits; the old case_count column never
survived coercion to the significance phase, so the filter had been
a silent no-op since 16.1.0 — release builds now actually drop
treatment edges backed by fewer than 25 cases (#137). Also repairs
a stale gepa_metric test fixture that CI's missing dspy extra had
masked (2dcfcb3, tests only).

Changelog:
- Versioned the Unreleased section as 16.6.0 - 2026-09-04.
- Added the missing --distill entry under Added with its PR link
  (#136).
- Added the missing drop_low_number_of_cases entry under Fixed with
  its PR link (#137), stating the prior no-op honestly.
- Kept the supporting_case_ids union entry; it was committed
  directly to main and carries no PR link.
- Normalized that entry's double-hyphen to the house em dash.

Docs: docs/configuration/graph.md documents the number_of_cases
exception to merge first-wins (8b669d8); #136 already updated
docs/cli.md and docs/agent.md.

Testing:
- uv run pytest -q -> 1197 passed, 3 skipped (96% coverage)
- uv run ruff check . && uv run ruff format --check . && uv run pyright -> clean / 0 errors
- uv lock --check -> up to date
- uv run mkdocs build --strict -> clean
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