Home / Market / esl price sync

esl price sync

Synchronizes retail prices between ERP/POS systems and Electronic Shelf Labels (SES-imagotag, ZKONG, Pricer, Hanshow, SOLUM) with delta watermarking, idempotency, and battery modeling. Trigger phrases: esl price sync, electronic shelf labels, zkong sync, ses imagotag price, ghost pricing audit.

skill★ 508610 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: esl-price-sync description: "Synchronizes retail prices between ERP/POS systems and Electronic Shelf Labels (SES-imagotag, ZKONG, Pricer, Hanshow, SOLUM) with delta watermarking, idempotency, and battery modeling. Trigger phrases: esl price sync, electronic shelf labels, zkong sync, ses imagotag price, ghost pricing audit." category: architecture risk: safe source: community source_repo: wwewtech/esl-price-sync source_type: community date_added: "2026-09-22" author: wwewtech tags: [retail-tech, esl, iot, supply-chain, systems-integration, enterprise-software] tools: [claude, cursor, gemini, windsurf] license: "MIT"

---

ESL Price Sync: Deterministic Retail Shelf-Edge Pricing Architecture

Ensure strict real-time parity between ERP/POS price masters and Electronic Shelf Label (ESL) fleets (SES-imagotag, ZKONG, Pricer, Hanshow, SOLUM) via bounded delta streams, monotonic idempotency tokens, and Sub-GHz RF battery preservation models.

When to Use This Skill

Activate this skill when:

Do NOT use this skill when:

Core Mental Models & Non-Negotiable Rules

  1. The 5-Layer ESL Architecture Pipeline:

$$\mathbf{Price\ Master\ (ERP/POS)} \xrightarrow{\text{Extract}} \mathbf{Transform\ Middleware} \xrightarrow{\text{API/Message}} \mathbf{ESL\ Server} \xrightarrow{\text{Sub-GHz/2.4GHz}} \mathbf{Base\ Station\ (AP)} \xrightarrow{\text{RF\ Packet}} \mathbf{Physical\ Tag}$$

  1. Strict Delta Discipline & Cryptographic Watermarking:

$$\text{RowHash} = \text{SHA256}(\text{SKU} + \text{BasePrice} + \text{PromoPrice} + \text{Currency} + \text{UnitOfMeasure} + \text{Barcode} + \text{TemplateID})$$

  1. Monotonic Idempotency & Out-of-Order Packet Defense:
  1. RF Gateway Rate-Limiting & Battery Longevity Budget:
  1. Read-Only Audit Mode by Default:

Named Sins & Anti-Patterns (Что категорически ЗАПРЕЩЕНО)

| Anti-Pattern | Manifestation in Code/Workflow | Mandatory Production Counter-Rule | | :--- | :--- | :--- | | Scheduled Full Catalog Floods | Blasting 60,000 tags every night at midnight. | Stream strict deltas using SHA256 content watermarks. | | Ghost Price Blindness | Assuming API 200 OK means the customer sees the new price. | Track gateway ACK packet receipts (status: ACK_CONFIRMED). | | Non-Idempotent Retries | Retrying failed HTTP calls without idempotency keys. | Attach UUIDv5(sku, store_id, price_timestamp) to all mutations. | | Timezone Ambiguity | Pushing promo prices without UTC/local time offsets. | Enforce ISO 8601 UTC timestamps with explicit store local offsets. | | Gateway RF Flooding | Blasting 5,000 updates/second to a single RF base station. | Enforce leaky-bucket queue throttling ($\le 150\text{ tags/min/AP}$). | | Silent Canvas Overflow | Pushing a 6-digit price into a 4-digit template field ($1499 becomes $14). | Validate text bounds and template layout dimensions before enqueueing. | | Destructive Rollback Omission | Deploying flash sales without pre-computing revert state. | Cache previous active state to enable 1-click atomic rollback. | | Orphan Tag Neglect | Leaving decommissioned tags in the active database. | Reconcile missing heartbeat tags after 72 hours; flag as ORPHAN. | | Mid-Day Peak Syncing | Pushing massive price shifts during peak Saturday shopping hours. | Schedule bulk promotions before store opening or during off-peak hours. | | Unshielded Write Broadcasts | Executing write scripts without an audit dry-run. | Enforce dry-run simulation mode prior to initiating physical RF broadcasts. |

Concrete Archetypes / Presets

Archetype 1: Idempotent Delta Synchronizer (Python 3.10+)

import hashlib
import time
from typing import Dict, List, Optional

def compute_sku_hash(item: dict) -> str:
    payload = f"{item['sku']}:{item['price']}:{item['promo_price']}:{item['uom']}:{item['template']}"
    return hashlib.sha256(payload.encode('utf-8')).hexdigest()

class ESLDeltaSyncPipeline:
    def __init__(self, watermark_db: dict, max_rate_per_min: int = 150):
        self.watermark_db = watermark_db  # SKU -> last_pushed_hash
        self.max_rate_per_min = max_rate_per_min
        self.last_tx_time = 0.0

    def process_catalog_stream(self, incoming_feed: List[dict], dry_run: bool = True) -> dict:
        to_push = []
        unchanged = 0

        for item in incoming_feed:
            sku = item['sku']
            current_hash = compute_sku_hash(item)
            last_hash = self.watermark_db.get(sku)

            if current_hash != last_hash:
                idempotency_key = hashlib.sha1(f"{sku}:{item['version']}:{current_hash}".encode()).hexdigest()
                to_push.append({
                    "sku": sku,
                    "tag_id": item['tag_id'],
                    "price_data": item,
                    "idempotency_key": idempotency_key,
                    "content_hash": current_hash
                })
            else:
                unchanged += 1

        if dry_run:
            return {"mode": "DRY_RUN", "queued_for_rf": len(to_push), "unchanged": unchanged}

        # Rate-limited physical transmission
        sent = 0
        min_interval = 60.0 / self.max_rate_per_min
        for job in to_push:
            now = time.time()
            elapsed = now - self.last_tx_time
            if elapsed < min_interval:
                time.sleep(min_interval - elapsed)

            transmit_to_esl_gateway(job)
            self.watermark_db[job['sku']] = job['content_hash']
            self.last_tx_time = time.time()
            sent += 1

        return {"mode": "LIVE_COMMITTED", "sent_deltas": sent, "unchanged": unchanged}

Archetype 2: Reconciliation Audit Report Schema

{
  "audit_timestamp": "2026-09-22T10:15:00Z",
  "store_id": "STORE-0842",
  "total_audited_skus": 14200,
  "in_sync": 14188,
  "ghost_pricing_discrepancies": [
    {
      "sku": "SKU-99014",
      "barcode": "4006381333931",
      "tag_mac": "00:1A:7D:DA:71:04",
      "aisle": "Aisle 4 - Cereals",
      "erp_master_price": 4.99,
      "esl_server_price": 4.99,
      "tag_ack_price": 3.99,
      "divergence_layer": "RF Base Station (Packet dropped due to antenna shadow)",
      "last_ack_timestamp": "2026-09-20T04:12:00Z",
      "recommended_action": "Force targeted re-transmit on Channel 11"
    }
  ]
}

Archetype 3: Battery Longevity Estimation Model

def estimate_tag_battery_years(
    updates_per_day: float,
    ambient_temp_celsius: float = 21.0,
    battery_mah: float = 1200.0,
    uAh_per_refresh: float = 18.0,
    standby_uA: float = 1.2
) -> float:
    # Temperature de-rating factor (freezer sections de-rate capacity significantly)
    temp_factor = 0.65 if ambient_temp_celsius < 0.0 else (0.85 if ambient_temp_celsius < 10.0 else 1.0)
    effective_mah = battery_mah * 0.85 * temp_factor  # 85% usable chemistry margin

    daily_drain_uAh = (updates_per_day * uAh_per_refresh) + (standby_uA * 24.0)
    daily_drain_mAh = daily_drain_uAh / 1000.0

    lifespan_days = effective_mah / daily_drain_mAh
    return round(lifespan_days / 365.25, 2)

The Pre-Emit Quality Gate Checklist

Before finalizing any ESL integration, sync workflow, or audit output:

Self-Correction & Verification Loop

Bad (Vibe-Coded AI Slop Output):

> "To update the electronic labels, run a Python script that loops over all 50,000 products in your database and POSTs them to the ZKONG API every hour. If prices are wrong on the shelves, just run the script again."

*Problems: Fatal catalog flooding, battery destruction, zero delta tracking, zero idempotency, ignores gateway rate-limiting, blind to physical tag ACK status.*

Good (Production ESL Price Sync Output):

> 1. Execute read-only audit comparing ERP pricing against ESL gateway ACK states; identify 12 divergent SKUs. > 2. Compute SHA256 delta hashes for all modified SKUs since watermark 2026-09-22T08:00:00Z. > 3. Generate idempotent mutation payloads with UUIDv5 tokens and monotonic timestamp versioning. > 4. Verify tag layout: Confirm that promo prices fit within