Skip to content

refactor(notifications): import pinned QPK digest modules - #423

Merged
Pigbibi merged 2 commits into
mainfrom
refactor/ft-qpk-dedupe-20261024
Oct 23, 2026
Merged

Pigbibi merged 2 commits into
mainfrom
refactor/ft-qpk-dedupe-20261024

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace the vendored notification copies with the modules already present in the pinned quant-platform-kit revision 5181f2d6a44b935f7b82c46bc9e77439297e18d5 (verified byte-identical by sha256).
  • Delete notifications/digest_snapshot/ (digest_archive.py, digest_candidates.py, digest_routing.py, unified_contract.py, __init__.py, provenance.json) and notifications/display_names.py plus its now-unreferenced notifications/display_names.json data file.
  • Rewrite production, script and test imports to quant_platform_kit.notifications.* and quant_platform_kit.common.display_names, keeping the same imported names.
  • Drop test_qpk_snapshot_matches_recorded_source_hashes: the vendored snapshot it guarded is removed, and the QPK pin is now the single reviewed source.
  • Update docs/unified-daily-notification.md to state that these modules are imported from the pinned QPK dependency and no longer vendored.

Behavior

No business logic, function signatures, exception text or data structures changed. QPK pin (pyproject.toml / uv.lock), CI workflows, deployment configuration and funding paths are untouched.

Verification

  • Baseline uv run pytest -q tests: 1064 passed, 0 failed, 0 skipped.
  • After: 1063 passed, 0 failed, 0 skipped (difference is exactly the removed provenance test).
  • Targeted notification / display-name tests: 122 passed.
  • uv run ruff check .: All checks passed.

🤖 Generated with Claude Code

Pigbibi and others added 2 commits October 24, 2026 03:35
Delete the vendored notification snapshot (notifications/digest_snapshot/) and notifications/display_names.py. All five modules are byte-identical to the modules at the pinned quant-platform-kit revision, so production code, scripts and tests now import them from quant_platform_kit directly.

Drop the snapshot provenance hash test; the QPK pin is the single reviewed source. Update docs/unified-daily-notification.md. QPK/strategy pins, trading, deployment and CI configuration are unchanged.

Verification: baseline 1064 passed; after 1063 passed (one provenance test removed), 0 failed, 0 skipped; targeted notification tests 122 passed; ruff check . passes.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Record that display name resolution comes from quant_platform_kit.common.display_names installed with QPK pin 5181f2d6, that the local notifications/display_names.py/json copies were removed, and that the notification modules come from the same QPK pin. Documentation only; no code or configuration change.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@Pigbibi
Pigbibi merged commit cbbf6c7 into main Oct 23, 2026
1 check passed
@Pigbibi
Pigbibi deleted the refactor/ft-qpk-dedupe-20261024 branch October 23, 2026 19:37
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