Retire the unproduced rpa_instruments table

Table of Contents

This page is a capture in the inbox bucket of the product backlog — a pre-sprint idea, not yet pulled into a sprint as a story.

1. What

Retire ores_trading_rpa_instruments_tbl and the ores.trading.rpa_instrument model behind it, once the credit family has decided where the risk participation agreement's own facts live.

2. Why

RiskParticipationAgreement routes to credit_instrument, so nothing writes the rpa_instruments table and nothing reads it. Before the routing repair the generated route pointed at rpa_instruments while the ORE importer wrote credit_instruments, whose check refused the code: the import was refused and the export found no row to rebuild from.

The table's own columns — reference_counterparty, participation_rate and protection_fee — were never written by any mapper, and the credit mapper does not fill them either. They are the credit family's RPA facts, so the credit family decides whether they get a home or are not persisted.

Retiring a generated entity is its own unit: it touches the model, the generated C++ and SQL, the shell command unit and its recipe, and the rpa_instrument leaf of the rates wire variant, and no tool prunes the files it leaves behind.

3. Outcome

Done, not discarded for lack of merit. The credit story's task retire-the-unproduced-rpa-instruments-table retires the table, so this capture has no work left. It is filed here to leave the inbox.

4. References

5. See also

Emacs 29.3 (Org mode 9.6.15)