1. An asynchronous flow creates failure boundaries

The historical architecture separates intake from analysis. An input may therefore be accepted, awaiting processing or associated with an outcome not yet confirmed in storage. Reliability depends on handling each boundary, not merely using Redis and PostgreSQL.

Start by mapping the record lifecycle and identifying which component owns responsibility at each stage. Then examine what happens if it stops. This is an analysis framework; these guarantees have not been verified in 2.8.2.

2. Queue acknowledgment and database confirmation

Redis Streams provides consumption and message-tracking mechanisms; their concrete use depends on application configuration. Referencing Streams does not establish that HARPIA uses a particular group, acknowledgment policy or recovery mechanism.

A PostgreSQL transaction can make a set of database changes atomic. It does not automatically combine an external system’s acknowledgment and a database write into one operation. Action ordering and recovery require software evidence.

3. Idempotency has a defined scope

Earlier documentation mentions deterministic identifiers and adapter deduplication. Interpretation depends on identity fields, whether sensor identity is included and how long duplicate protection remains valid. A laboratory observation should not be generalized to every format and operating condition.

Replay should be compared with the initial outcome: finding count, case associations and preserved fields. Changing only the sensor, source identifier or configuration may change expectations. These cases require deliberate decisions rather than treating visually similar records as duplicates.

4. Failure scenarios and recovery criteria

This matrix proposes tests rather than reporting results. Each scenario requires an authorized environment, known input and a safe interruption method. Recovery should be declared only after reconciling inputs and outcomes.

4. Failure scenarios and recovery criteria
ScenarioWhat to observeCriterion to define
Interrupted workerThe fate of in-flight records and ability to resume.Outstanding records identified and reconciled.
Unavailable databaseWrite failure, retry behavior and queue acknowledgment.No inappropriate confirmation of results.
Replay of the same inputCounts and relationships before and after replay.Behavior consistent with deduplication scope.
Repeated invalid inputImpact on other inputs and rejection diagnosis.An isolated failure that remains diagnosable.

5. Operational and capacity measurements

An assessment may track accepted, rejected, processed and pending inputs, per-stage failures and time to persisted result. These are proposed indicators; this note does not establish that corresponding endpoints or dashboards exist.

A performance report should state hardware, versions, input format and volume, rule configuration, duration, warm-up and methodology. Rule cost depends on the event set and window. Without these conditions, production throughput or latency claims are unsupported.

6. What recoverable persistence means

Persisting a case differs from proving recovery after failure, retention compliance or backup restoration. Assessment should test querying, restart and reconciliation with the input set. Any deletion policy also needs scope and evidence.

Technology selection alone does not provide continuous availability, absolute durability or exactly-once delivery. In 2.8.2, these properties remain subject to verification of software and deployment.

Assessment questions

  • Who retains responsibility for a record during a failure?
  • What is the actual deduplication scope?
  • Can outcomes be reconciled after restarting components?

References and documentary basis

External references describe technologies and practices. They do not certify implementation in HARPIA. Historical Bellot material remains identified as archival.

Bellot — arquivo técnico da base anterior ↗Redis — Streams ↗PostgreSQL — Transactions ↗