Skip to content

docs(agents): park load_wire() overlay merge dropping value_maps (#329) - #391

Draft
AdamRickards wants to merge 1 commit into
mainfrom
review/park-value-maps-overlay
Draft

AdamRickards wants to merge 1 commit into
mainfrom
review/park-value-maps-overlay

Conversation

@AdamRickards

Copy link
Copy Markdown
Owner

Draft for sidecar live proof; do not merge.

Docs only: adds a hitl-engine-park.md row. load_wire()'s protocol-overlay merge (interpreter.py) merges only the overlay's attributes:, so a top-level value_maps: in wire/{overlay_dir}/{wire_id}.yaml is never read. Found while wiring #329's SSH-only net_mask_to_prefix map (#329 keeps it in base wire/netconfig.yaml as a workaround).

Offline (tested): a minimal probe on a throwaway copy of main adds a value_maps: entry to wire/ssh/netconfig.yaml. load_wire("netconfig", "ssh") keeps the overlay's attribute source but not the map (merged keys = base keys only). With #329's map moved into the SSH overlay, SSH ipv4_prefix returns the raw mask string instead of 24.

Live: not applicable (docs only).

Fix shape (Engine, needs HITL sign-off): mirror the attributes: merge for value_maps:. Not implemented here.

  • pytest tests/: pass
  • scripts/ci_offline.sh: pass
  • generate_floors_board.py --check: pass

Related #329

Adds a hitl-engine-park.md row: load_wire()'s protocol-overlay merge
(interpreter.py) merges only the overlay's attributes: block, so a
top-level value_maps: in wire/{overlay_dir}/{wire_id}.yaml is never
read; only the base file's value_maps: is used.

Found while wiring #329's SSH-only net_mask_to_prefix map, which had to
move into base wire/netconfig.yaml. Fix shape (mirror the attributes
merge for value_maps) is Engine-touching and needs HITL sign-off; not
implemented here.

Docs only. Offline repro: tested. Draft; do not merge.

Related #329
@AdamRickards

Copy link
Copy Markdown
Owner Author

Offline repro + claims review for head 7770d90: #329 (comment)

Verdict: pass. load_wire() drops an overlay's top-level value_maps:, reproduced offline. The Engine fix stays with HITL.

Draft; do not merge.

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