Skip to content

refactor(P3d): source data_format from the ModalityRegistry#257

Merged
divyasinghds merged 2 commits into
developfrom
refactor/p3d-conventions-registry
Jun 15, 2026
Merged

refactor(P3d): source data_format from the ModalityRegistry#257
divyasinghds merged 2 commits into
developfrom
refactor/p3d-conventions-registry

Conversation

@LukasWodka

Copy link
Copy Markdown
Collaborator

Fourth and final slice of P3 (epic backend#796). conventions._data_format_for was a 6-frozenset ladder; it now reads spec_for(category).data_format — the registry is the single source. Adds data_format to ModalitySpec.

Stacked on #256 (P3c).

Behaviour-identical: same DataFormat per category. test_conventions (incl. per-category data_format tests) and test_template_equivalence (the #44 acceptance gate) pass unchanged. Full suite 1035 passed, 97.3%. Also drops a now-unused DataFormat import + a pre-existing unused Intent import.

Scope note: the file-options DEFAULT_* dicts + grouping frozensets (still used by _default_file_options_for / exported) stay in conventions — folding them fully into the registry is a follow-up with P5's resolve cleanup.

Completes the P3 series (a–d): per-category dispatch — validators, transfer, flags, data_format — now has one source, the ModalityRegistry.

🤖 Generated with Claude Code

Fourth and final slice of P3 (backend#796). conventions._data_format_for was a
6-frozenset ladder (IMAGE / TEXT / TABULAR / TIME_SERIES / TIME_TO_EVENT /
MLM); it now reads spec_for(category).data_format — the registry is the single
source. Adds data_format to ModalitySpec.

Behaviour-identical: the same DataFormat per category. test_conventions
(including the per-category data_format tests) and test_template_equivalence
(the #44 YAML-resolution acceptance gate) pass unchanged. Full suite 1035
passed, 97.3%. Also drops a now-unused DataFormat import and a PRE-EXISTING
unused Intent import from conventions.py.

Scope note: the conventions file-options DEFAULT_* dicts and the grouping
frozensets (still used by _default_file_options_for + exported/tested) stay in
conventions — folding those + the resolve() defaults fully into the registry
is a follow-up (with P5's resolve cleanup). REGRESSION_CLASS_CATEGORIES is
exported/tested only (not used in resolve logic), left as-is.

Stacked on #256 (P3c). Completes the P3 series (a-d): the per-category dispatch
— validators, transfer, behavior flags, and data_format — now has one source,
the ModalityRegistry.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@LukasWodka

Copy link
Copy Markdown
Collaborator Author

👋 Heads-up — Code review queue is at 17 / 8

Above the WIP limit. The team convention is to review existing PRs before opening new work.

Open PRs currently in Code review (oldest first):

Pull from review before opening new work. (This is a nudge from the kanban WIP check, not a block.)

@divyasinghds divyasinghds self-assigned this Jun 15, 2026
@divyasinghds divyasinghds merged commit 1d1219c into develop Jun 15, 2026
3 checks passed
@divyasinghds divyasinghds deleted the refactor/p3d-conventions-registry branch June 15, 2026 13:27
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