Skip to content

refactor(spine): preflight reads scalar identity + ports off RunContext - #71

Merged
larsrollik merged 1 commit into
mainfrom
refactor/preflight-typed-reads
Aug 11, 2026
Merged

refactor(spine): preflight reads scalar identity + ports off RunContext#71
larsrollik merged 1 commit into
mainfrom
refactor/preflight-typed-reads

Conversation

@larsrollik

Copy link
Copy Markdown
Member

preflight_hardware_check now reads simulate/debug/subject/out_path and the bpod port from the RunContext instead of raw args_dict keys. (setup_config and the hook-mutable settings.task.patched stay dict reads — not RunContext-owned scalar keys.)

With this, every msw-core consumer before the task boundary reads those scalars off ctx, which unblocks dropping the redundant scalar keys from the threaded dict — the boundary re-supplies them via to_task_kwargs (#70).

No behaviour change; the preflight test's _args builds a ctx carrying the scalars, matching real flow.

preflight_hardware_check now reads simulate/debug/subject/out_path and the bpod
port from the RunContext instead of raw args_dict keys (setup_config and the
hook-mutable settings.task.patched stay dict reads - they are not RunContext-
owned scalar keys). With this, every msw-core consumer BEFORE the task boundary
reads those scalars off ctx, which unblocks dropping the redundant keys from the
threaded dict (the boundary re-supplies them via to_task_kwargs). Test _args
builds a ctx carrying the scalars, matching real flow.
@larsrollik
larsrollik requested a review from a team as a code owner August 11, 2026 05:38
@larsrollik
larsrollik merged commit b15feb5 into main Aug 11, 2026
7 checks passed
@larsrollik
larsrollik deleted the refactor/preflight-typed-reads branch August 11, 2026 05:45
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