Repository navigation
polar-config skill: refer to versioned config entries by external ID, never by Polar ID - #39
Merged
Merged
Conversation
simonxabris
marked this pull request as ready for review
November 26, 2026 14:12
sebastianekstrom
force-pushed
the
abris/xp-75-external-id-lookup
branch
from
November 27, 2026 13:12
155b5ff to
7c89559
Compare
sebastianekstrom
force-pushed
the
abris/xp-75-external-id-lookup
branch
from
November 27, 2026 13:21
7c89559 to
0a47284
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #30.
Publishing a changed product, benefit, meter or custom field creates a new version with a new Polar ID. Only the external ID (or the custom field's slug) stays the same. In a test session, the agent stored the product ID in
POLAR_PRODUCT_ID. After a price change it published catalog v2, and Subscribe started failing with "Product is no longer sold". The agent's fix was to paste the new ID into.env.local, which will break again on the next publish.This replaces the one-line product warning in
polar-configwith a "Never store a Polar ID for something in the config" section:external_products,external_benefit_id,external_meter_id,external_product_id, andexternal_idwithcatalog_status: "live"onproducts.list,benefits.listandmeters.list.catalog_status: "live"is needed:is_archived: falsedoes not drop retired versions.external_idon what Polar returns (subscriptions, grants). Customer state only hasbenefit_idandmeter_id, so use the external ID filters instead.Fixes XP-75. Related: XP-77.