APEX7 CONSOLE AND SDK
_§42/§43_
Console (web/console/)
New screens (additive to user's WIP):
- Operations (
#/ops/operations) - the journal: type, status,
attempts, recovery, failure class, linked payment; detail view shows
every attempt with probes and provider refs.
- Safety (
#/ops/safety) - the independent indicator panel: integrity
verdict + critical findings, in-flight payments, outbox, recon, halt,
regcap denials, wedged keys.
- Existing console rules preserved: integer minor-unit money formatting,
error states never render as zero (TEST-062/063).
API additions
GET /v1/ops/safety · GET /v1/ops/operations ·
GET /v1/ops/operations/{id} · POST /v1/ops/outbox/replay
(ops-scoped; read-only GETs).
SDK (sdk/apex_client.py)
X-Correlation-Idsupport (client-level or per-call).Payment/Operationtyped views;get_operation/list_operations/
safety methods.
retry_advice(exc)- explicit safe-retry contract:
retry_same_key (429/5xx/408 - resend UNCHANGED with the same
Idempotency-Key), fetch_status (409 conflicts, unclear transport
failure - retrieve first, never resend), do_not_retry (definitive
refusal). A lost response is never proof of non-execution.
Verified
tests/test_sdk.py + new endpoint coverage via ops scopes.