# nats-broker Conformance Pack

> For the complete documentation index, see [llms.txt](https://traderx.finos.org/llms.txt).

[Learning Guide — Messaging Layer Replacement with NATS](https://traderx.finos.org/docs/learning/state-006-messaging-nats-replacement.md): purpose, walkthrough, and related learning states.

# nats-broker Conformance Pack

## User Stories

*   backend services can communicate over a shared, robust broker.
*   frontend can receive live updates over websocket via ingress.

## Functional Requirements

*   [`FR-701`](https://traderx.finos.org/specs/baseline-uncontainerized-parity/spec.md)
*   [`FR-702`](https://traderx.finos.org/specs/baseline-uncontainerized-parity/spec.md)
*   [`FR-703`](https://traderx.finos.org/specs/baseline-uncontainerized-parity/spec.md)
*   [`FR-704`](https://traderx.finos.org/specs/baseline-uncontainerized-parity/spec.md)
*   [`FR-705`](https://traderx.finos.org/specs/baseline-uncontainerized-parity/spec.md)
*   [`FR-707`](https://traderx.finos.org/specs/baseline-uncontainerized-parity/spec.md)

## Non-Functional Requirements

*   [`NFR-701`](https://traderx.finos.org/specs/baseline-uncontainerized-parity/spec.md)
*   [`NFR-702`](https://traderx.finos.org/specs/baseline-uncontainerized-parity/spec.md)
*   [`NFR-703`](https://traderx.finos.org/specs/baseline-uncontainerized-parity/spec.md)
*   [`NFR-704`](https://traderx.finos.org/specs/baseline-uncontainerized-parity/spec.md)

## Acceptance Criteria

*   NATS service is reachable and healthy in state runtime.
*   Trade events published by trade-service are consumed by trade-processor.
*   Account-scoped updates are observable by frontend stream subscriber.
*   Realtime position updates preserve aggregate blotter semantics (existing security rows update in place).

## Verification References

*   `scripts/start-state-006-messaging-nats-replacement-generated.sh` (planned)
*   `scripts/test-state-006-messaging-nats-replacement.sh` (planned)
