Skip to content

Close events/phase sidecar-value checks (+3, 106→109)#8

Merged
neurolabusc merged 2 commits into
mainfrom
deriv-parity-checks
Jun 22, 2026
Merged

Close events/phase sidecar-value checks (+3, 106→109)#8
neurolabusc merged 2 commits into
mainfrom
deriv-parity-checks

Conversation

@neurolabusc

Copy link
Copy Markdown
Contributor

Three clean fixture-only rules.checks codes, base main (not stacked):

  • EVENT_ONSET_ORDERevents.tsv onset column not numerically sorted
  • PHASE_SUFFIX_DEPRECATED — func files using the deprecated phase suffix
  • PHASE_UNITSpart-phase image whose Units is not rad/arbitrary

All confirmed 1:1 vs @bids/validator 2.4.1; crates/bids-core/tests/misc_value_checks.rs (4 tests, CI-gated).

Deferred (documented in CLAUDE.md, no divergence)

  • derivative metadata (MISSING_RESOLUTION_DESCRIPTION/MISSING_DENSITY_DESCRIPTION): would not fire even in Deno with a standalone DatasetType:derivative root + valid res-/den- filename — derivative-context detection needs more than reproduced (likely nesting under a raw dataset's derivatives/). Both validators stay silent, so there's no parity divergence; needs investigation before it's closeable.
  • AGE_89: didn't fire in either validator with a simple participants.tsv.

Coverage 106 → 109. codespell/cargo fmt/clippy -D warnings/cargo test --workspace green; default parity sweep green; ISSUE_COVERAGE sums to 202.

🤖 Generated with Claude Code

neurolabusc and others added 2 commits June 22, 2026 13:48
The derivative-metadata family (the originally-planned next step) turned out
NOT to be closeable in isolation: MISSING_RESOLUTION_DESCRIPTION /
MISSING_DENSITY_DESCRIPTION don't fire even in Deno with a standalone
DatasetType:derivative root + valid res-/den- filename (derivative-context
detection needs more than reproduced; both validators silent, no
divergence). Deferred with notes; pivoted to three clean fixture-only codes:

- Add crates/bids-core/tests/misc_value_checks.rs (4 tests / 3 codes):
  EVENT_ONSET_ORDER (events.tsv onset not numerically sorted),
  PHASE_SUFFIX_DEPRECATED (func `phase` suffix), PHASE_UNITS (part-phase
  Units not rad/arbitrary). Confirmed 1:1 vs Deno 2.4.1.
- Promote the 3 codes to RUST_CODES. ISSUE_COVERAGE.md: 106 -> 109
  implemented, 72 -> 69 missing (sums to 202).
- CLAUDE.md: record derivative-metadata + AGE_89 as deferred (no divergence).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…, doc sync

- misc_value_checks.rs: use canonical entity order
  (sub-01_task-rest_part-phase_bold) for the PHASE_UNITS fixture and assert
  FILENAME_MISMATCH is absent; add negative controls — phase_suffix silent on
  a plain bold, PHASE_UNITS silent for Units rad/arbitrary.
- ISSUE_COVERAGE.md: name the MRS and misc sidecar-value/TSV families (with
  their codes) in the crafted-fixture evidence bucket.
- CLAUDE.md: replace the stale "52->202 / 126 missing" counts with a pointer
  to the ISSUE_COVERAGE.md status table (109 / 69).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@neurolabusc neurolabusc merged commit dfb95af into main Jun 22, 2026
2 checks passed
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