Skip to content

fix: defer routine Firstrade notifications to the daily digest - #462

Merged
Pigbibi merged 4 commits into
mainfrom
fix/urgent-only-daily-evidence
Oct 30, 2026
Merged

Pigbibi merged 4 commits into
mainfrom
fix/urgent-only-daily-evidence

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Routine fills, accepted orders, no-trade cycles and healthy heartbeats still bypass the shared daily policy when rollout flags are off. Routine delivery failures can also fall back to normal messages, and accepted orders must not be reported as filled.

Changes

  • Apply urgent-only instant routing in every flag state. Bind routine live cycles to their confirmed private archive and persist one candidate per protected source run; retain unknown fills and strict account/target identity checks.
  • Use producer-verified accepted-order evidence without changing raw receipts or broker, risk and execution decisions. Carry allowlisted live plugin observations into the same run record.
  • Pin an isolated notification snapshot to QPK 2b04882058666ebc81d1650d93fa2105ec4ba3d8 while preserving existing trading dependency pins.
  • Project existing archives during the existing heartbeat workflow in every mode. A successful authentication retry now permits projection, and a same-workflow coverage-send attempt is not automatically retried after an uncertain acknowledgement.
  • Keep normal dry-run previews out of real delivery and live daily counts. Use localized coverage errors when required live archive/candidate writes cannot be confirmed.

Validation

Full PR CI 41010607673 passed: 1,354 tests and 13 subtests, with Ruff, dependency/lock checks and package build. Documentation check 41010607550 passed. Post-merge main CI 41010940311 and documentation 41010940207 also passed. Independent review and integration checks covered live/archive event reconciliation, non-running scheduled observations, exact archive URI proof, uncertain-ACK attempt tracking and normal dry-run isolation. The historical receiver fixture keeps its historical classification metric; separate current-QRS checks confirm routine events are not counted as urgent.

Reviewed PR head: 58ca364b56e5d8e0950f6fb5a87004c201b8e35a. Squash merge: 5167a41107052c203025cb76fc8e7dfe9d651bb1. The merged tree 0912868437ee74de9478e42ebced399af88624a2 exactly matches the reviewed final branch tree. Changed file hashes and the fresh main base were verified before merge.

No real Telegram send, trade, deployment, risk-limit, Scheduler timing, recipient, IAM or secret change is included. The existing 06:00 UTC+8 business-window boundary is preserved; production adoption and the natural scheduled daily report remain unverified.

@Pigbibi
Pigbibi merged commit 5167a41 into main Oct 30, 2026
2 checks passed
@Pigbibi
Pigbibi deleted the fix/urgent-only-daily-evidence branch October 30, 2026 05:53
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