Skip to content

create association … to System.User writes the association, then exec fails reconciling System module access rules #932

Description

@ako

Found while fixing #555 (PR #931), on a blank 11.14.0 app.

create association M.Thing_User from M.Thing to System.User; writes the association, and then exec reports an error:

failed to reconcile access rules of module System: … 00000000-0000-0000-0000-000000000002.mxunit: no such file or directory

The access-rule reconciliation runs for the TO module (System). System has no stored unit, because its domain model is synthesized from modelsdk/meta/system_module.go. Per the association pointer semantics in CLAUDE.md, member access only belongs on the FROM entity, so a System TO end should need no reconcile at all.

Expected: the association is created with no error, and nothing is attempted against the System module's units.

Verify: exec on a fresh app, then mx check reports 0 errors, and the exit code is 0.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions