---
id: TST-BIL-BIL-027
title: Execution job lookup
kind: integration
product_area: billing
module: billing
revision: 1
status: draft
source_sha:
  services-accounting: f47cb263875bbc0c5640fba7dae6785ec32695f8
repository: services-accounting
files:
- modules/billing/tests/integration/services/persistence/billing-run-execution-jobs.queries.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: 3
isolation: Suite-owned test workspaces and fixture records in the prepared local PostgreSQL database;
  fixtures are removed by the suite teardown.
evidence:
- services-accounting:modules/billing/tests/integration/services/persistence/billing-run-execution-jobs.queries.integration.spec.js
- services-accounting:modules/billing/tests/integration/services/persistence/billing-run-execution-jobs.queries.integration.spec.js#reads
  the job’s domain columns back by its id
- services-accounting:modules/billing/tests/integration/services/persistence/billing-run-execution-jobs.queries.integration.spec.js#refuses
  the job’s read from another tenant as absent
- services-accounting:modules/billing/tests/integration/services/persistence/billing-run-execution-jobs.queries.integration.spec.js#refuses
  a submission that names no data job
---
# Execution job lookup

## Verification Boundary

The suite checks production database or service behavior against the local test database.

## What This Suite Proves

The assertions examine execution job lookup. No complete specification scenario is bound to this file yet; its implementation exists, but coverage mapping remains unverified.

## What It Does Not Prove

It does not establish deployed IAM grants, actual queue and object-store delivery, mailbox outcomes or Commerce checkout. Local port replacements limit any workflow claim to the tested process.

## Real Dependencies and Test Doubles

PostgreSQL and the production persistence or service statements are real. The file declares its own fixtures and connection context; no deployed browser or message transport is inferred.

## Must Not Be Doubled

The database transaction, constraints, row locks, workspace isolation and production statements exercised by this suite must remain real. For handler suites, keep request validation and permission enforcement in the call path.
