PR K: per-state PHASE_TIMEOUTS map + env overrides #15

Open
nsatoshi wants to merge 1 commits from devin/1776881375-pr-k-phase-timeouts into main
Owner

Closes gap-analysis v2 §7.6 + §10.7.

  • DEFAULT_PHASE_TIMEOUTS: Record<TransactionState, number | null> covering all 12 states (arch §8) with per-state rationale.
  • getPhaseTimeoutMs(state) honours per-state env overrides PHASE_TIMEOUT_<STATE>=<ms>; 0 disables the watchdog; invalid values fall through to the default.
  • CLOSED is the only state with null (no timeout).
  • 9 unit tests.

Wiring the map into the scheduler / exception manager is out of scope here — this PR lands the policy + env contract only; the watchdog consumer will follow once PR M / PR N land (they touch the same transition path).

Closes gap-analysis v2 §7.6 + §10.7. - `DEFAULT_PHASE_TIMEOUTS: Record<TransactionState, number | null>` covering all 12 states (arch §8) with per-state rationale. - `getPhaseTimeoutMs(state)` honours per-state env overrides `PHASE_TIMEOUT_<STATE>=<ms>`; `0` disables the watchdog; invalid values fall through to the default. - `CLOSED` is the only state with `null` (no timeout). - 9 unit tests. Wiring the map into the scheduler / exception manager is out of scope here — this PR lands the policy + env contract only; the watchdog consumer will follow once PR M / PR N land (they touch the same transition path).
nsatoshi added 1 commit 2026-04-22 18:11:36 +00:00
Per-state PHASE_TIMEOUTS map + env overrides
Some checks failed
CI / Frontend Lint (pull_request) Failing after 6s
CI / Frontend Type Check (pull_request) Failing after 7s
CI / Frontend Build (pull_request) Failing after 6s
CI / Frontend E2E Tests (pull_request) Failing after 8s
CI / Orchestrator Build (pull_request) Failing after 6s
CI / Contracts Compile (pull_request) Failing after 6s
CI / Contracts Test (pull_request) Failing after 7s
Code Quality / SonarQube Analysis (pull_request) Failing after 20s
Code Quality / Code Quality Checks (pull_request) Failing after 6s
Security Scan / Dependency Vulnerability Scan (pull_request) Failing after 4s
Security Scan / OWASP ZAP Scan (pull_request) Failing after 4s
e3328725b4
Closes gap-analysis v2 §7.6 / §10.7.

- Adds DEFAULT_PHASE_TIMEOUTS: Record<TransactionState, number | null>
  to orchestrator/src/types/transactionState.ts, covering all 12 states
  of the §8 state machine with rationale-per-state comments.
- getPhaseTimeoutMs(state) honours per-state env overrides
  (PHASE_TIMEOUT_<STATE>=<ms>; '0' disables; invalid → default).
- CLOSED is the only state with a null (no-timeout) value.
- 9 unit tests; full suite passes.
Some checks failed
CI / Frontend Lint (pull_request) Failing after 6s
CI / Frontend Type Check (pull_request) Failing after 7s
CI / Frontend Build (pull_request) Failing after 6s
CI / Frontend E2E Tests (pull_request) Failing after 8s
CI / Orchestrator Build (pull_request) Failing after 6s
CI / Contracts Compile (pull_request) Failing after 6s
CI / Contracts Test (pull_request) Failing after 7s
Code Quality / SonarQube Analysis (pull_request) Failing after 20s
Code Quality / Code Quality Checks (pull_request) Failing after 6s
Security Scan / Dependency Vulnerability Scan (pull_request) Failing after 4s
Security Scan / OWASP ZAP Scan (pull_request) Failing after 4s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin devin/1776881375-pr-k-phase-timeouts:devin/1776881375-pr-k-phase-timeouts
git checkout devin/1776881375-pr-k-phase-timeouts
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: d-bis/CurrenciCombo#15