Delfour Insight Economy — Phone ↔ Scanner

Fully client-side demo: Python orchestration in Pyodide.
delfour_phone.py writes a neutral Insight + Policy into a bus folder, delfour_scanner.py consumes it.

See also: Inside the Insight Economy

Setting up…

Phone → Insight + Policy

Shopper’s phone turns a sensitive profile into a neutral, scoped, expiring Insight.

Phone (shopper)
delfour_phone.py

Runs delfour_phone.py inside Pyodide and writes an envelope.json, signature, and a private reason.txt into /cases/bus/delfour.

Scanner → Apply Insight

Retailer self-scanner reads the same bus session and derives local artifacts (banner, audit, checks… whatever delfour_scanner.py decides).

Scanner (retailer)
delfour_scanner.py

Runs delfour_scanner.py in the same Python environment, reading from the bus folder and writing its own files into /cases/bus/delfour.

Bus session: /cases/bus/delfour

Files currently on the bus, after the last phone/scanner run.

Bus contents
./cases/bus
No files yet
Run the phone step to generate an Insight + Policy, then the scanner.

Hint: this view is generic on purpose — whatever delfour_phone.py and delfour_scanner.py write into the session directory will show up here.