Command and read surfaces
Use the authenticated HTTP API for client commands and queries. The API separates commands from reads and assigns every operation a tenant-scoped authorization action. Follow the operation’s idempotency requirements. Retries after timeouts are normal and must reuse the same business identity. The OpenAPI contract describes the operations mounted ondevelop. A mounted operation is not proof that a specific deployment wires its Dataprev adapter. An unavailable rail integration returns 501 Not Implemented for that request instead of disappearing from the API.
The Lender command stream remains available for the supported integration commands. It is not a replacement for the complete HTTP surface. See Consignado events.
Scheduled workers
The gateway runs eleven scheduled loops. They share delayed first execution, stable per-replica staggering, non-overlapping passes, positive jitter, panic isolation, and graceful shutdown.
Nine of the eleven take their cadence from environment configuration and need a restart to change. Bid payload cleanup and proposal witness are the two runtime-configurable ones: they read their cadence through the Systemplane and take effect on the next delay.
Averbação recovery and rail-command recovery exist because a rail command can leave its outcome unestablished: the process died mid-call, or the rail never answered. They converge that state against the rail’s own registry instead of losing it. Both loops are off by default. Enable them in any deployment that submits averbações or rail commands.
Rail windows
Rail defaults and constraints ondevelop include:
- a 24-hour loan-auction validity window that Dataprev supplies and the gateway does not configure
- a 72-hour portability-request lookback
- 20 days to complete portability registration
- 7 business days to reverse refinancing
- a one-year auction-discovery lookback, with a five-minute clock-skew allowance
Throughput and pacing
Dataprev traffic is paced per tenant. The operator config provides the validated ceiling, while the throughput API records the tenant’s effective allocation. A stored value of0 pauses rail traffic for that tenant. Auction fan-out has a separate budget and can never exceed the hard Dataprev ceiling.
Reconciliation safety
Bookkeeping and repasse reads are independent. One failing source must not suppress the other. Expected repasses can emit three states:consignado.repasse.overdue: the expected movement is lateconsignado.repasse.resolved: the movement arrived after an overdue alarmconsignado.repasse.unobserved: the gateway cannot currently prove presence or absence

