Skip to content

Dev SetUndefinedStateVarError guard now accepts any undeclared name containing a double underscore (self._x__y = 1) since #7465 #7473

Closed

Description

@masenf

Severity: LOW, regression in 0.10.0a2.

#7465 made dunder names plain attributes so that mixin/ComponentState private attributes (self.__scratch, name-mangled to _Cls__scratch) and dunder class constants work. As implemented, the dev-mode SetUndefinedStateVarError guard now exempts any undeclared name that contains __, so self._x__y = 1 on an undeclared name is silently accepted in dev instead of raising. The guard should exempt only what #7465 intends (true dunders __x__ and the mangled _Cls__name form), not arbitrary names with a double underscore.

Repro: finding N-008 in FINDINGS.md (reverify_core cluster, Python-level probe).

Activity

  1. self-assigned this
    on Oct 7, 2026
  2. added theissue type on Oct 7, 2026
  3. linear-code commented on Oct 7, 2026

    @linear-code
  4. added a commit that references this issue on Oct 8, 2026
    62d454f
  5. added
    release-train
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

release-train

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions