---
id: TST-MBR-STR-007
title: Large tree edits and competing moves
kind: integration
product_area: membership
module: structure
revision: 1
status: draft
source_sha:
  services-membership: 5994c270e8a37a30f848e99ba5b5ee6b87c08893
  react-console: baf6dae382d6f41dce976c7f848667ccc37e076f
repository: services-membership
files:
  - modules/structure/tests/integration/services/tree/tree-scale.integration.spec.ts
implements:
  - ATS-MBR-STR-002-02
  - ATS-MBR-STR-002-09
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 5
isolation: A uniquely named local workspace and its seeded records; the suite owns its fixture data and cleanup.
evidence:
  - 'services-membership:modules/structure/tests/integration/services/tree/tree-scale.integration.spec.ts'
bindings:
  - scenario: ATS-MBR-STR-002-02
    source: >-
      services-membership:modules/structure/tests/integration/services/tree/tree-scale.integration.spec.ts#the
      tree at scale › serialises two concurrent moves of one tenant by the tree lock, the second
      validating against the first’s closure
    provenance: test
  - scenario: ATS-MBR-STR-002-09
    source: >-
      services-membership:modules/structure/tests/integration/services/tree/tree-scale.integration.spec.ts#the
      tree at scale › leaves a closure equal to a fresh walk of the parents after the concurrent moves
    provenance: test
  - scenario: ATS-MBR-STR-002-09
    source: >-
      services-membership:modules/structure/tests/integration/services/tree/tree-scale.integration.spec.ts#the
      tree at scale › answers the moved subtree under its new parent
    provenance: test
invocation: 'npm run test:integration'
coverage_limit: >-
  Bindings identify the concrete cases executed in this file. A compound specification may also depend on
  other registered suites or remain partly proposed; registration is not a passing execution result.
provenance: test
source:
  - 'services-membership:modules/structure/tests/integration/services/tree/tree-scale.integration.spec.ts'
---

# Large tree edits and competing moves

## Verification Boundary

This suite invokes the local implementation against the prepared database and checks its persisted results. Large tree edits and competing moves defines the scope of its examples.

## What This Suite Proves

The suite executes the concrete examples named by its binding ledger. Those examples contribute to the linked capability or feature scenarios within the boundary of the test assertions.

## What It Does Not Prove

Registration supplies no fresh execution result or deployed conformance verdict. Browser behavior, deployed infrastructure and unasserted variants require separate evidence.

## Real Dependencies and Test Doubles

PostgreSQL, local Membership services and the suite’s persistence path are real. The business clock and caller fixtures are controlled by the harness.

## Must Not Be Doubled

The Membership path under examination, transaction behavior and database constraints stay real. Replacing those boundaries would remove the persisted proof the suite is intended to supply.
