Skip to content

ADR 0040 step 7 — Require scoped ports in the dispatcher #4971

Open

Description

@thymikee

Make scoped authority the only way a dispatcher route can reach session state.

ADR 0040

Required behavior

  • Replace remaining store-shaped ports with scoped operations. Keep the concrete store and its construction private to its owner.
  • Delete the old scope finalizer. Serialize committed output IDs and typed receipts after unlock.
  • Extend the R75 owner rule to resolved type and value imports, namespace imports, and re-exports. Keep R7 for field owners.
  • Keep one transition table as data per machine. Check the exhaustive switch, per-row tests, and ADR table against it. Log actor, event, old state, and new state.

Verification

Prove the owner rule rejects a new raw edge in a handler and in a replay adapter. Run real-path provider integration, layering, wire compatibility, and the full gate at cutover. Obtain device smoke evidence for changed open, close, and capture paths.

Related work

Complete step 1, step 2, step 3, step 4, step 5, step 6 before cutover.

Activity

  1. apex-sentinel-staging commented on Nov 22, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: feature

    The issue defines concrete required changes for an architectural refactor, including replacing store-shaped ports with scoped operations, deleting a finalizer, extending ownership rules, and adding verification steps. It references an ADR and prerequisite steps, giving a maintainer enough to plan and act on the work.

  2. thymikee commented on Nov 22, 2026

    @thymikee
    MemberAuthor

    When this step lands, amend the ADR that ADR 0040 (#4964) lists for it in its Amendments table, in the same PR. ADR 0040 does not edit those ADRs up front, because an ADR states the current truth and the code has not changed yet.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions