Skip to main content
Lerian Consignado has 25 business-fact definitions for CloudEvents 1.0 through lib-streaming v3. Of these, 23 have unconditional production emission paths on develop. Consignado emits the two portability outcomes only when the outcome consumer is enabled and the deployed gateway manifest declares the event. Emitted facts enter the transactional outbox before publication.
The payload contracts below describe the CloudEvent data object. A property marked with ? can be absent. null is valid only where a payload contract writes it explicitly.

Application-stream contract

The topic identifies the producing application, not one event. Route by ce-source, ce-resourcetype, and ce-eventtype. Use ce-type as their source-qualified composite. Never infer an event from the topic name.

Emitted-event catalog

Payload notation

The wire uses JSON with snake_case property names. These aliases describe the formats used by the schemas:

Payload contracts

The gateway discovers an open loan request in Dataprev.Subject: id_solicitacao
The gateway discovers a live M011 portability offer and records it with its outbox envelope.Subject: id_solicitacao
The gateway reads worker margin from Dataprev.Subject: request_ref
The gateway witnesses the accepted rail proposal against the durable client bid.Subject: proposal_ref
Dataprev confirms averbação.Subject: contract_id
Dataprev rejects averbação.Subject: contract_id
Contract booking reaches its immutable boundary.Subject: numero_contrato
The client confirms that the worker received the funds.Subject: numero_contrato
A client supersedes a signed CCB or an already-confirmed payment. The payload points to the corrected resource. Consumers retrieve it over authenticated M2M and verify its SHA-256 digest. The event ce-resourcetype distinguishes the correction kind.Subject: numero_contrato
Dataprev accepts this gateway’s own origin-side portability exclusion. The contract leaves the institution, so downstream servicing can stop. This fact does not report the incoming-institution side and carries no settlement amount.Subject: numero_contrato
Dataprev rejects this gateway’s own origin-side portability exclusion. The contract remains in place. The payload preserves the published refusal code and bounded message.Subject: numero_contrato
Contract exclusion reaches a successful terminal state.Subject: numero_contrato
Contract exclusion reaches a rejected terminal state.Subject: numero_contrato
Redirection reaches a confirmed outcome.Subject: request_ref
Redirection reaches a rejected outcome.Subject: request_ref
The gateway normalizes one bookkeeping, repasse, or portal CSV record.Subject: object_ref
The gateway reads an employment suspension or termination record.Subject: record_id
A worker absence or termination alert is reported.Subject: SHA-256(payload)
A tenant’s effective Dataprev throughput changes.Subject: tenant_id
A credit assignment is registered in the gateway domain.Subject: idempotency_key
An expected repasse passes its deadline or has no computable deadline.Subject: object_ref
A movement resolves an overdue repasse.Subject: object_ref
The gateway cannot establish a current rail observation for the expectations.Subject: object_ref
An operational deduction-calendar window is published.Subject: competencia_consulta

Commands consumed from Lender

These are inbound commands, not events emitted by Consignado. They arrive on lerian.streaming.lender.commands with ce-source: lender and ce-type: studio.lerian.lender.<resource>.<event>. Averbação is not a Lender command on develop. Submit it through the authenticated HTTP operation.

Delivery and compatibility rules

  • Deduplicate by (ce-source, ce-id) and make handlers idempotent.
  • To replay a redirection refusal from the consumer DLQ, redeliver the original source record identified by its topic, partition, and offset. Do not publish a new event. The original ce-id and redirection request_ref remain stable.
  • Read ce-schemaversion before decoding. The header carries schema 1.0.0, and the topic never does.
  • Money and rates are decimal strings. Timestamps are UTC, in RFC 3339 format. Date-only values use YYYY-MM-DD, and competências use YYYYMM.
  • Envelope subjects are business references or content digests and do not carry the worker CPF.
  • Unknown or unsupported inbound command keys land in the Consignado consumer DLQ.
  • A missing required business identifier prevents publication or command execution. Consignado never synthesizes it.