Skip to content

fix: address CR findings for match-rust production readiness - #1

Open
lanpishu6300 wants to merge 7 commits into
mainfrom
fix/cr-findings
Open

fix: address CR findings for match-rust production readiness#1
lanpishu6300 wants to merge 7 commits into
mainfrom
fix/cr-findings

Conversation

@lanpishu6300

@lanpishu6300 lanpishu6300 commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • match-core: revoke blocked market leftovers; restore buy on empty sell pop; IOC never matches a foreign best; FOK sell consumer_all_number; reject duplicate trust_order_no; gear < 1 treated as 1 after protocol gate
  • match-protocol: allowlist order_form 1..=5; require market gear >= 1
  • match-core-hp: max_fills (gear); market remainder Revoke; Fill/Revoke carry client ids + remaining lots
  • match-contract: RocketMQ fails closed; health/restore fail closed; bounded queues
  • match-wal: durable flush path; do not swallow write errors

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets
  • cargo test --workspace
  • cargo test -p match-core-hp --features art
  • make fair

Harden match-core against ghost market rests, buy-drop on empty sell,
IOC matching foreign best, and FOK sell consumed-qty bookkeeping.
Tighten protocol validation (order_form allowlist, gear >= 1). Align
hp-engine gear with fill-count semantics, emit market remainder revokes,
and publish client order ids/statuses. Make contract fail closed on
RocketMQ/health bind/restore errors, bound queues, encode Redis
passwords, and fsync WAL writes.
Tone down plan banners and CR-era comments; keep prose guidance in
CONTRIBUTING so edits stay in a normal maintainer voice.
@lanpishu6300

Copy link
Copy Markdown
Owner Author

Follow-up: removed agentic/superpowers banners from plans, cleaned a few CR-era comments, and added AGENTS.md + .cursor/rules/human-prose.mdc so maintainer prose stays the default.

Move voice rules into CONTRIBUTING, ignore local editor config dirs, and
add a commit-msg hook that strips automated editor co-author trailers.
@lanpishu6300
lanpishu6300 force-pushed the fix/cr-findings branch 2 times, most recently from 51a5dd5 to d4d03c1 Compare July 22, 2026 01:59
…voke

Market leftovers emit Revoke; update gap tests and exclude sticky LLVM
edges on height/limit insert paths so the branch gate can pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant