---
id: TST-PFM-OPS-015
title: Cross job query
kind: integration
product_area: platform
module: operations
revision: 1
status: draft
source_sha:
  macroservice-libraries: 54536a441935c6e09fdb7f96f0bec71c52ba4e03
repository: macroservice-libraries
files:
  - packages/jobs/src/tests/integration/cross-job-query.integration.spec.ts
implements: []
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 5
estimate_basis: Scheduling estimate only; no duration is measured during this documentation pass.
isolation: >-
  The prepared local test database and suite-owned identifiers; existing hooks control rollback or
  cleanup.
evidence:
  - >-
    macroservice-libraries:packages/jobs/src/tests/integration/cross-job-query.integration.spec.ts at
    54536a441935c6e09fdb7f96f0bec71c52ba4e03: existing suite body, setup, assertions and cleanup.
binding_note: This existing engineering suite is registered without claiming a complete specification scenario.
assertion_sources:
  - >-
    macroservice-libraries:packages/jobs/src/tests/integration/cross-job-query.integration.spec.ts#answers
    the jobs of both schemas through the one view
  - >-
    macroservice-libraries:packages/jobs/src/tests/integration/cross-job-query.integration.spec.ts#exposes
    exactly the contract columns and the subject, in the contract’s own order, and no family’s own
  - >-
    macroservice-libraries:packages/jobs/src/tests/integration/cross-job-query.integration.spec.ts#answers
    no subject for families that supply no expression, as these two do not
  - >-
    macroservice-libraries:packages/jobs/src/tests/integration/cross-job-query.integration.spec.ts#stays
    read-only: a union of roots is no place to write a job
  - >-
    macroservice-libraries:packages/jobs/src/tests/integration/cross-job-query.integration.spec.ts#answers
    every job across kinds, most recently active first
  - >-
    macroservice-libraries:packages/jobs/src/tests/integration/cross-job-query.integration.spec.ts#answers
    a customer’s jobs narrowed to the tenants the caller reaches, and those naming no tenant
  - >-
    macroservice-libraries:packages/jobs/src/tests/integration/cross-job-query.integration.spec.ts#answers
    every tenant of the customer when the caller reaches them all, and never another customer’s
  - >-
    macroservice-libraries:packages/jobs/src/tests/integration/cross-job-query.integration.spec.ts#answers
    nothing at all for a caller whose scope is none
---

# Cross job query

## Verification Boundary

This suite exercises background work through production operations against the local database. Its implementation is present at the pinned source revision, and this register records no execution result.

## What This Suite Proves

The checks exercise cross job query within the file’s declared setup and assertion boundary. The structured assertion anchors distinguish these checks from the surrounding feature flows. No complete specification scenario is attributed to this suite yet.

## What It Does Not Prove

Local execution does not establish deployed infrastructure, live commercial-provider configuration or authorization-cache completion. Registration and an implemented suite do not establish a passing result.

## Real Dependencies and Test Doubles

The prepared PostgreSQL database and production operations under test are real.

## Must Not Be Doubled

The persistence operations, database constraints and reads under assertion remain real.
