Review completed with no actionable findings.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Yes, conditionally: exposing embedded-address information is a documented RPC interface, not merely an incidental result of descriptor expansion. The 2019 getaddressinfo documentation explicitly describes embedded as information about the address inside P2SH or P2WSH, “if relevant and known.” This establishes an intended interface while retaining a knowledge-dependent condition.
The added assertion concerns a P2SH-wrapped P2WSH output whose redeemscript and witnessScript were supplied during import. That is within the documented class of known embedded addresses. The pinned RPC help retains the same condition and explicitly describes nested embedded fields.
The documented interface separates embedded script/address information from wallet ownership and key-origin metadata. Its description explicitly excludes timestamp, HD-path/seed metadata, and ownership fields from the embedded object.
The test's ismine assertion and embedded-presence assertion express distinct expectations. Ownership alone is not the documented reason to expose embedded information; the relevant condition is that the inner address is meaningful and known. The new assertion checks presence, not that the embedded object carries a separate ownership claim.
Ralph's inferences
Applying that contract to migrated sh(wsh(pkh())) outputs is supported by the existing recursive RPC behavior. Given the known P2SH redeemscript, the RPC extracts its P2WSH destination and creates an embedded object; it then recursively describes the known witnessScript. Descriptor expansion supplies script knowledge, but does not itself define the externally visible embedded-field contract.
The inspected base and head both obtain scripts from a signing provider and pass them through the same explicit embedded-object construction. The base migration test already states that both native and wrapped forms must survive migration and already checks embedded information for the native form. The patch extends that observation to the wrapped form without changing production behavior. This supports interpreting the assertion as exercising an existing conditional contract rather than introducing a new metadata requirement.