Skip to content

fix: add missing num field to QuaboUidDome to match control's model - #8

Merged
nraultwang merged 1 commit into
devfrom
fix/quabo-uid-dome-num-field
Jul 5, 2026
Merged

nraultwang merged 1 commit into
devfrom
fix/quabo-uid-dome-num-field

Conversation

@nraultwang

Copy link
Copy Markdown
Collaborator

Summary

control/utils/pydantic_config_models.py's QuaboUidDome gained an injected num field (assigned by config_file.py at load time), but pypff's independently-vendored copy of the same model (pypff/src/pypff/models.py) was never updated to match. Since every collected run's saved quabo_uids.json snapshot includes "num", pypff's stricter BaseStrictModel (extra='forbid') rejected it wholesale, breaking pseti show pff's config display with a spurious Skipping config quabo_uids.json: ... Extra inputs are not permitted [type=extra_forbidden] warning.

Found and fixed while validating the test-pseti HITL deployment on real hardware — pseti show pff <run_dir> on a real collected run surfaced the warning.

pypff intentionally duplicates these config models rather than depending on control (avoiding a hard cross-repo coupling), so this fix keeps both copies in sync rather than introducing a shared dependency.

Changes

  • src/pypff/models.py: QuaboUidDome gains num: int | None = None, matching control.utils.pydantic_config_models.QuaboUidDome.

Test plan

  • Verified PanosetiRun(...).configs no longer skips quabo_uids.json for a real collected run directory containing "num": 0.

🤖 Generated with Claude Code

control/utils/pydantic_config_models.py's QuaboUidDome gained an
injected `num` field (assigned by config_file.py at load time), but
pypff's independently-vendored copy of the same model was never
updated to match. Since every collected run's saved quabo_uids.json
snapshot includes "num", pypff's stricter BaseStrictModel (extra=
'forbid') rejected it wholesale, breaking `pseti show pff` config
display with a spurious "Skipping config quabo_uids.json" warning.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@nraultwang
nraultwang merged commit 5273bc9 into dev Jul 5, 2026
1 check 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