ATS-PFM-OPS-002 Resolve interrupted background work: Capability Test Specification
Markdown Design / Platform / Operational Records / Background Work / Capability Test Specification Show evidence (sources, provenance, origins, pinned commits)Coverage Rule covered Transition covered Validation gap: FND-PFM-OPS-054 Permission not-applicable Edge covered Failure covered Boundary covered Concurrency gap: FND-PFM-OPS-054 Invariant covered Interaction covered Test Scenarios 12 scenarios proving CAP-PFM-OPS-002 ; 9 bound to an existing test.
07 Apply the business consequence before failure failure unit proposed
Proves BR-CAP-PFM-OPS-002-07 Preconditions A registered kind has a failure consequence that can fail before settlement. Steps Reconcile a failed execution, first refusing the consequence and then allowing it to finish. Expected The refusal leaves the run open for another pass; successful consequence application precedes failed settlement. Data Controlled records and caller contexts matching this scenario’s preconditions. Source macroservice-libraries:packages/jobs/src/reconciler/job-reconciler.spec.ts #applies it before the settlement, so a consequence that fails leaves the job for the next pass 10 Retain lifecycle failure evidence interaction api proposed
Proves BR-CAP-PFM-OPS-002-07 Preconditions A workspace lifecycle run reaches an interrupted execution outcome. Steps Reconcile it and inspect the lifecycle record alongside the job record. Expected Both records identify the failed work without silently reopening its final history. Data Isolated workspace records and caller contexts for both sides of the interaction. Source macroservice-libraries:packages/jobs/src/reconciler/job-reconciler.spec.ts #applies it before the settlement, so a consequence that fails leaves the job for the next pass ; CAP-PFM-SEC-003 ; WF-PFM-OPS-003 11 Defer a transient candidate lookup failure unit negative test
Proves BR-CAP-PFM-OPS-002-11 Preconditions A stalled candidate’s repository lookup raises a connection error. Steps Run one reconciliation pass with the transient lookup fault. Expected The candidate is deferred without a settlement or an unregistered-kind alert. Data Run-owned records and controlled clocks or dependency responses named in the preconditions. Bound to Source macroservice-libraries:packages/jobs/src/reconciler/job-reconciler.spec.ts #defers the candidate to a later pass 12 Follow continuation before deciding the outcome interaction unit test
Proves BR-CAP-PFM-OPS-002-12 BR-CAP-PFM-OPS-001-12 Preconditions The previous execution succeeded by creating a recorded successor that remains running. Steps Reconcile first against the predecessor, then against the ended successor. Expected The first pass preserves the active job; the later pass uses the successor’s outcome. Data Run-owned records and controlled clocks or dependency responses named in the preconditions. Bound to Source macroservice-libraries:packages/jobs/src/engine/job-continuation.spec.ts #the reconciler ← Previous Capability Test Specification ATS-PFM-OPS-001 · Complete background work with a durable record: Capability Test Specification Next Capability Test Specification → ATS-PFM-OPS-003 · Notify a job’s requester of its outcome: Capability Test Specification