Skip to content

fix: surface catalog-external strategy bindings and resolve aliases - #1004

Merged
Pigbibi merged 1 commit into
mainfrom
fix/strategy-binding-visibility-20261101
Oct 31, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
fix/strategy-binding-visibility-20261101

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

AI

Generated and verified by an AI agent. All fixtures are synthetic; no private identifiers are introduced.

What changed

  • application/console_api/operations.js: strategy summary now matches bound accounts through the generated alias map, and returns unmatched_strategy_assignments for bindings whose profile the catalog no longer declares.
  • frontend/src/pages/strategies/StrategiesPage.tsx: renders those bindings in a dedicated "Bindings outside the catalog" section with the raw profile id, instead of silently dropping the account.
  • worker.js / new strategy_identity.js: one canonical alias resolver is used by catalog lookup, DCA capability, option-overlay, frozen-default and draft checks, so a legacy alias is the same strategy rather than an unconfigured one.
  • worker.js: SUPPORTED_STRATEGY_DOMAINS is derived from PLATFORM_CONFIG (generated from platform-config.json) instead of a second hardcoded list.
  • python/scripts/daily_digest_aggregator.py: removed the duplicated workflow-allowlist fallback; an absent config now yields an empty list instead of a second copy that can drift.
  • Regenerated v2_asset_map.js from the rebuilt frontend.

How verified

  • npm run build (tsc --noEmit + vite + budget) — passed
  • npm run test:operations — passed
  • node tests/console_strategy_execution_validation.mjs — passed (new alias/unmatched assertions)
  • node tests/strategy_switch_worker_validation.mjs — passed (new alias DCA assertions)
  • node tests/console_v2_assets_validation.mjs, console_display_gaps_validation.mjs, console_gap_contract_validation.mjs, console_api_worker_validation.mjs, website_strategy_freshness_validation.mjs — passed
  • python3 -m unittest discover -s python/tests — 11 failures, all pre-existing test_checkout_internal_dependency_consumers failures caused by macOS bash lacking mapfile; digest aggregator tests all pass.

- strategy summary matches accounts to catalog profiles through the generated
  alias map, so a legacy alias no longer disappears from its strategy card
- bindings whose profile the catalog no longer declares are returned as
  unmatched_strategy_assignments and rendered in their own Strategies section
  instead of being silently dropped
- worker catalog, DCA, option-overlay and frozen-default comparisons resolve
  the same aliases, keeping account-strategy matching consistent
- domain allowlists derive from the generated platform config instead of a
  second hardcoded list
- digest workflow allowlist no longer carries a duplicate fallback copy; the
  platform config is the only source
@coderabbitai

coderabbitai Bot commented Oct 31, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 91b4808a-dab1-4b6d-a288-be26133f2cd1
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Pigbibi Pigbibi added the owner-approved Owner approval for high-risk PRs. AI agents must never apply this label. label Oct 31, 2026
@Pigbibi
Pigbibi merged commit b3404a8 into main Oct 31, 2026
16 of 17 checks passed
@Pigbibi
Pigbibi deleted the fix/strategy-binding-visibility-20261101 branch October 31, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

owner-approved Owner approval for high-risk PRs. AI agents must never apply this label.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant