---
id: TST-PFM-INT-616
title: Extension scope selection
kind: unit
product_area: platform
module: integrations
revision: 1
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
  macroservice-libraries: 54536a441935c6e09fdb7f96f0bec71c52ba4e03
  react-console: baf6dae382d6f41dce976c7f848667ccc37e076f
repository: macroservice-libraries
files:
  - packages/extensions/src/resolution.spec.ts
implements: []
environment: mock
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 1
isolation: 'The test process owns its inputs, fake clocks and any replaced runtime ports.'
test_cases:
  - provenance: test
    source: >-
      macroservice-libraries:packages/extensions/src/resolution.spec.ts#answers none when no binding
      matches
  - provenance: test
    source: >-
      macroservice-libraries:packages/extensions/src/resolution.spec.ts#lets a product binding win over a
      tenant-wide one
  - provenance: test
    source: >-
      macroservice-libraries:packages/extensions/src/resolution.spec.ts#orders by the point’s scope
      order, not the order the rows came in
  - provenance: test
    source: >-
      macroservice-libraries:packages/extensions/src/resolution.spec.ts#takes the lowest priority among
      bindings at the same scope
  - provenance: test
    source: >-
      macroservice-libraries:packages/extensions/src/resolution.spec.ts#answers a configuration error
      when two product bindings tie
  - provenance: test
    source: 'macroservice-libraries:packages/extensions/src/resolution.spec.ts#ignores a disabled binding'
  - provenance: test
    source: >-
      macroservice-libraries:packages/extensions/src/resolution.spec.ts#ignores a draft binding and a
      binding whose handler is disabled
  - provenance: test
    source: >-
      macroservice-libraries:packages/extensions/src/resolution.spec.ts#ignores a binding of another
      point and one at a scope kind the point does not declare
  - provenance: test
    source: >-
      macroservice-libraries:packages/extensions/src/resolution.spec.ts#ignores a binding whose scope id
      is not the call’s, or whose kind the call does not name
  - provenance: test
    source: >-
      macroservice-libraries:packages/extensions/src/resolution.spec.ts#sets shadow bindings apart, at
      any scope, without letting them take part
  - provenance: test
    source: >-
      macroservice-libraries:packages/extensions/src/resolution.spec.ts#reads the effective window when
      given an instant
  - provenance: test
    source: >-
      macroservice-libraries:packages/extensions/src/resolution.spec.ts#answers every matching enabled
      binding, most specific first, then by priority
  - provenance: test
    source: 'macroservice-libraries:packages/extensions/src/resolution.spec.ts#answers none when nothing matches'
evidence:
  - 'macroservice-libraries:packages/extensions/src/resolution.spec.ts'
---
# Extension scope selection

## Verification Boundary

This unit suite exercises extension scope selection within the shared package. It records engineering coverage at the pinned revision without claiming a deployed run.

## What This Suite Proves

The source assertions cover the package behavior under controlled inputs. No detailed capability or feature scenario binding is verified in this registration.

## What It Does Not Prove

The suite does not establish deployed authorization, database behavior, provider effects or a complete customer workflow.

## Real Dependencies and Test Doubles

Imported package functions execute against the source-defined fixtures. Runtime ports, clocks and external transport responses remain controlled wherever the suite replaces them.

## Must Not Be Doubled

The shared function under test and its result assertions must execute. Returning an expected answer from a substitute does not prove the package behavior.
