Skip to content

Align crypto live pool authority#27

Merged
Pigbibi merged 1 commit into
mainfrom
codex/crypto-live-pool-authority
Jun 3, 2026
Merged

Align crypto live pool authority#27
Pigbibi merged 1 commit into
mainfrom
codex/crypto-live-pool-authority

Conversation

@Pigbibi
Copy link
Copy Markdown
Contributor

@Pigbibi Pigbibi commented Jun 3, 2026

Summary:

  • Consume the ordered upstream live pool for crypto_leader_rotation instead of rebuilding monthly membership/ranking locally.
  • Add an authoritative pool resolver and focused tests that do not require pandas.
  • Document the CryptoSnapshotPipelines authority boundary.

Tests:

  • timeout 120 env PYTHONPATH=src:/home/ubuntu/Projects/QuantPlatformKit/src /usr/bin/python3 -m unittest tests.test_entrypoints tests.test_rotation_authority tests.test_catalog tests.test_contract_governance -v
  • Result: OK, 2 existing pandas-dependent tests skipped because pandas is not installed in the base environment.

@Pigbibi Pigbibi merged commit adf8a0f into main Jun 3, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex/crypto-live-pool-authority branch June 3, 2026 11:31
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6bcb783003

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +139 to 143
selected_pool = legacy_rotation.resolve_authoritative_rotation_pool(
working_state,
indicators_map,
btc_snapshot,
trend_universe_symbols=trend_universe_symbols,
trend_pool_size=config["trend_pool_size"],
build_stable_quality_pool_fn=lambda indicators, btc, previous_pool: legacy_core.build_stable_quality_pool(
indicators,
btc,
previous_pool,
pool_size=config["trend_pool_size"],
min_history_days=config["min_history_days"],
min_avg_quote_vol_180=config["min_avg_quote_vol_180"],
membership_bonus=config["membership_bonus"],
),
allow_refresh=bool(config.get("allow_rotation_refresh", True)),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep rotated-out holdings in the sell evaluation

With the new contract, universe_snapshot is only the current artifact live pool (docs/crypto_cross_platform_strategy_spec.md:71), so a trend holding from last month that was removed from the new artifact is no longer present in trend_universe_symbols. After resolving the pool solely from that upstream list here, the later sell loop still iterates only trend_universe_symbols, meaning get_trend_sell_reason() is never called for the stale holding and no rotated_out sell reason is emitted for it; include existing non-BTC portfolio holdings in the sell evaluation even while restricting new buys to the authoritative pool.

Useful? React with 👍 / 👎.

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