---
id: TST-PFM-INT-463
title: extension invocations table
kind: integration
product_area: platform
module: integrations
revision: 1
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
  macroservice-libraries: 54536a441935c6e09fdb7f96f0bec71c52ba4e03
  react-console: baf6dae382d6f41dce976c7f848667ccc37e076f
repository: services-platform
files:
  - modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js
implements: []
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 5
isolation: >-
  Use the suite-owned database fixtures and its declared cleanup; prepare the test database before
  integration or lifecycle execution.
evidence:
  - >-
    services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js
test_cases:
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#modules/extensions/db/extension-invocations.table.ts
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#accepts
      an invocation with its defaults: normal purpose, first attempt, current version
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#refuses
      a status outside the nine, by the status check
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#refuses
      a purpose outside normal, test and shadow, by the purpose check
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#refuses
      an attempt below one, by the attempt check
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#refuses
      an output digest that is not a sha256, by the digest check
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#refuses
      a scope or a completion that is not an object, by their checks
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#holds
      both rows, read as the owner, so an empty read below is the policy’s doing
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#reads
      nothing as the application role with no tenant at all
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#refuses
      an insert as the application role with no tenant, by the policy
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#grants
      UPDATE on exactly the outcome columns of contracts.md §5
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#inserts
      an invocation in the tenant its transaction names
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#settles
      an open invocation: every outcome column at once
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#refuses
      to rewrite the point an invocation was of
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#refuses
      to rewrite the handler, the scope or the start of an invocation
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#refuses
      to delete an invocation
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#refuses
      an insert into a tenant other than its transaction’s, by the policy
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#finds
      nothing to settle of another tenant’s invocation
    provenance: test
  - source: >-
      services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js#holds
      nothing on another extensions table
    provenance: test
dependency_evidence:
  provenance: test
  source: >-
    services-platform:modules/extensions/tests/integration/db/extension-invocations.table.integration.spec.js
  reviewed:
    - Suite introduction
    - Fixture setup
    - Client substitutions
    - Assertions and cleanup
---
# extension invocations table

## Verification Boundary

This database and service suite exercises extension invocations table. Its registration records the executable definition; no run result is asserted.

## What This Suite Proves

The suite contains executable checks, but no detailed scenario binding is verified in this pass.

## What It Does Not Prove

In-process execution does not establish deployed infrastructure or a real provider response. Several bindings can supply different parts of a detailed scenario; no single-file completeness is implied.

## Real Dependencies and Test Doubles

The suite definition identifies its database fixtures and replaced clients, hooks, clocks or executors. Integration runs use the prepared database; lifecycle runs exercise the in-process route or adapter path.

## Must Not Be Doubled

The database constraints, transactions and service behavior claimed by an integration binding must execute. Replaced external seams cannot establish live provider or infrastructure behavior.
