Tier 17.5: F3.2 sub-tier 5 — fact_multileg_option_events (51 cols, FINAL — audit fully closed) - #23
Merged
jamezycesar-collab merged 1 commit intoJun 18, 2026
Conversation
FINAL sub-tier of WS2 F3.2 follow-on. Closes the entire audit
backlog: known_field_mapping_gaps.csv drops to 0 rows.
Adds 51 spec-mapping columns to gold.fact_multileg_option_events
across all three multileg-Gold dialects (Delta, Hive, Fabric
Warehouse - multileg has no Fabric Lakehouse variant).
Column groups (CAT IM v4.1.0r15 section 5.2):
- Order header (22 cols, sec 5.2.1): underlying, order_key_date,
cat_order_id, event_timestamp, manual_flag, manual_order_key_date,
manual_order_id, electronic_dup_flag, electronic_timestamp,
dept_type, price, quantity, min_qty, order_type, trading_session,
firm_designated_id, account_holder_type, affiliate_flag,
representative_ind, solicitation_flag, rfq_id, number_of_legs
- Routing (11 cols, sec 5.2.2-5.2.3): sender_imid, destination,
destination_type, routed_order_id, session, route_rejected_flag,
exch_origin_code, paired_order_id, receiver_imid, sender_type,
originating_imid
- Modify/cancel/parent linkage (8 cols, sec 5.2.5.1-5.2.7):
prior_order_key_date, prior_order_id, parent_order_key_date,
parent_order_id, initiator, leaves_qty, cancel_qty,
request_timestamp
- Quote context for RFQ/RFE (10 cols, sec 5.2.8.1-5.2.8.6):
quote_key_date, quote_id, bid_price, ask_price, bid_qty, ask_qty,
routed_quote_id, quote_rejected_flag, prior_quote_key_date,
prior_quote_id
All 51 columns confirmed in CAT IM v4.1.0r15 PDF via verify_cat_im_v3.py.
22 mapping CSV refs (10 SECTION_MISMATCH + 12 ROW_MISMATCH) are
semantically valid as multi-leg usage-site references and were NOT
modified in this sub-tier. Polish can be applied in optional Tier 18.
AUDIT CLOSURE:
known_field_mapping_gaps.csv: 51 -> 0 rows (-51)
F3.2 remaining: 0 (was 51) - FULL CLOSURE
F3.1 phantom-table: 0 (cleared in Tier 13-16)
Total audit backlog: 0 (was 212 at start of remediation)
All 8 guardrails pass with 0 allowlisted rows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Milestone
This PR closes the entire F3.2 audit backlog. After merge,
guardrails/known_field_mapping_gaps.csvdrops to 0 rows. The audit remediation arc that began withAUDIT_2026_05_04.mdis complete.Summary
Final sub-tier of WS2 F3.2 follow-on. Adds 51 spec-mapping columns to
fact_multileg_option_eventsacross all three multileg-Gold dialects (no Fabric Lakehouse variant for multileg).Files changed
ddl/multileg/02_multileg_gold_delta.sql- 51 columns addedddl/multileg/04_multileg_fabric_warehouse.sql- 51 columns addedddl/multileg/06_multileg_gold_hive.sql- 51 columns addedguardrails/known_field_mapping_gaps.csv- 51 → 0 rows (header-only stub)CHANGELOG.md- Tier 17.5 + full audit closure entry51 columns added — CAT IM v4.1.0r15 §5.2
underlying,order_key_date,cat_order_id,event_timestamp,manual_flag,dept_type,quantity,solicitation_flag,number_of_legssender_imid,destination,destination_type,routed_order_id,route_rejected_flag,originating_imid,paired_order_idprior_order_key_date,parent_order_key_date,initiator,leaves_qty,cancel_qty,request_timestampquote_key_date,quote_id,bid_price,ask_price,bid_qty,ask_qty,routed_quote_id,prior_quote_idMapping CSV ref polish — deferred
The earlier PDF verification flagged 22 rows in this host table with
SECTION_MISMATCHorROW_MISMATCHstatus. These were NOT corrected in this sub-tier — they represent valid alternative references (multi-leg usage site vs single-leg canonical definition site). Polish can be applied in an optional future tier without affecting DDL correctness or audit closure.Coverage — AUDIT CLOSED
F3.2 burndown — COMPLETE
fact_option_executionsfact_option_allocationsfact_multileg_option_legsfact_option_order_eventsfact_multileg_option_eventsFull audit arc summary
Open followups (non-blocking)
_CREATE_TABLE_RE) to not treatCOMMENTas a body terminator when inside a column declaration.known_field_mapping_gaps.csv.ddl/multileg/05_*).Test plan
fact_multileg_option_eventsmapping rows now resolve in DDL