From a788b5a03d49a9f3ed98961d5cd860bc1967af8a Mon Sep 17 00:00:00 2001 From: dcccrypto Date: Fri, 28 Aug 2026 04:30:16 +0100 Subject: [PATCH] fix(specs): refresh matcher parity fixture after the 585f492 -> d4d4f1c redeploy parity-check has been failing with "[percolator-match] DRIFT DETECTED". The cause is the matcher devnet redeploy on 2026-08-25, not any SDK change: the committed spec still described 585f492 while the matcher moved to d4d4f1c. The drift is entirely ADDITIVE and maps to specific commits in that range: BatchMatcherCall tag 3 new (76b7106, batch multi-fill ABI) MATCHER_BATCH_HEADER_LEN 18 / LEG_LEN 26 new (same) MATCHER_BATCH_MAX_LEGS 16 new (same) insurance_fee_remainder_e6 @ 168 new (64fa492, BUG-101 remainder carry) _reserved 168 -> 176 shifted by the field above Nothing removed, no tag renumbered, so no existing encoder changes meaning. Verified locally: [percolator-match] parity OK, and the suite is 1008 passed / 31 skipped. Worth noting the other three targets (prog, stake, nft) report "cargo run failed" in CI as well as locally -- they have no sdk_parity_fixtures bin -- so this check only actually validates the matcher today. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01NgoNgagkvw7i5SSRC3FJ8D --- specs/matcher-parity.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/specs/matcher-parity.json b/specs/matcher-parity.json index d814de3..3663e89 100644 --- a/specs/matcher-parity.json +++ b/specs/matcher-parity.json @@ -18,11 +18,12 @@ "ctx_field_offsets": { "_new_pad": 156, "_pad0": 13, - "_reserved": 168, + "_reserved": 176, "base_spread_bps": 52, "fee_to_insurance_bps": 152, "impact_k_bps": 60, "insurance_accrued_e6": 144, + "insurance_fee_remainder_e6": 168, "inventory_base": 96, "kind": 12, "last_exec_price_e6": 120, @@ -80,6 +81,9 @@ "CTX_VAMM_LEN": 256, "CTX_VAMM_OFFSET": 64, "INIT_CTX_LEN": 78, + "MATCHER_BATCH_HEADER_LEN": 18, + "MATCHER_BATCH_LEG_LEN": 26, + "MATCHER_BATCH_MAX_LEGS": 16, "MATCHER_CALL_LEN": 67, "MATCHER_CONTEXT_LEN": 320, "MATCHER_RETURN_LEN": 64, @@ -93,6 +97,10 @@ { "name": "InitMatcherCtx", "tag": 2 + }, + { + "name": "BatchMatcherCall", + "tag": 3 } ] }