Skip to content

Fix code-review issues and implement the backlog-batch plan - #171

Merged
mbel-tech merged 30 commits into
mainfrom
claude/project-thread-s4y5cm
Oct 16, 2026
Merged

mbel-tech merged 30 commits into
mainfrom
claude/project-thread-s4y5cm

Conversation

@mbel-tech

@mbel-tech mbel-tech commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Requested by great salmon scientist · project thread

Before: A deep code review found 15 bugs (bypassable pickle allowlist, wrong Z-5 exits, stale cache key, broken binned exports, silent fps=1.0 fallback, UI, metadata, panel, zone and project-store problems), and docs/superpowers/plans/2026-10-13-backlog-batch.md was unimplemented.

After: Each bug is fixed with a test, and the plan is implemented except Tasks 0 (tag v0.3.0) and 12 (multi-animal Anipose), which wait on the user. Last full local run: 4769 passed, 219 skipped; ruff clean.

Review fixes, one commit each: idtrackerai unpickler allowlist, Z-5 gap exits, cache key, binned exports, v5 fps, DLC identity flags, calibration units, run --workers, export overwrite guard, metadata numeric keys, empty panels, zones CSV round-trip, video overrides.

Plan work:

  • Import: "Read from video…" and "Choose software…" (lenient scan, add --reader).
  • Readers: DeepLabCut .h5 (deeplabcut_h5, synthetic only; the real EPM file could not be downloaded here).
  • Interop: movement/xarray adapter.
  • Metadata: Excel sheet choice (project hash unchanged until a sheet is chosen).
  • Advisories: fragmented-slot warning before a run.
  • Metrics: IL-18 vertical speed, GL-18 3-D inter-individual distance, GL-19 3-D cohesion (registry now 57).
  • Docs: ROADMAP, INTEROPERABILITY, tracker-formats; decisions D-045 to D-052.

Behaviour changes worth a look: apply_panel raises on an empty panel; a v5 session with no readable fps fails at import; zones CSV gains optional columns; IL-3 and IL-14 are skipped on a declared side view.

Not done: ticking the 339 plan checkboxes, docs/IDTRACKERAI_FORMAT_ANALYSIS.md gap table, regenerating the guide screenshot and PDF, and track_wo_identities for the Ctrax and trx readers.

🤖 Generated with Claude Code

https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV


Generated by Claude Code

@mbel-tech mbel-tech self-assigned this Oct 15, 2026
claude added 15 commits October 15, 2026 19:28
…d frame-size guard in the backlog-batch plan

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
…e is no background image

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
…s count

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
… SLEAP

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
…y Dataset

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
… its limit)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
… files

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
…mpty slots

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
…(GL-18) and 3-D cohesion (GL-19)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
…tes up to date

Re-measured test and metric counts; reassigned the old D-11, D-12 and GL-16
proposals to D-17, D-18 and GL-20 (the originals are now shipped metric IDs);
added anipose and deeplabcut_3d rows; trx.mat is built, synthetic only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
@mbel-tech mbel-tech changed the title Fix 15 issues from the full code review Fix code-review issues and implement the backlog-batch plan Oct 15, 2026
…ords none

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7hYfMaQFqSMBtq9ZWJ3gV
@mbel-tech
mbel-tech marked this pull request as ready for review October 16, 2026 06:36
@mbel-tech
mbel-tech merged commit ce452a9 into main Oct 16, 2026
7 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.

2 participants