Flat 2分/1k input overcharged the DeepSeek relay ~20x (verified on 100:
H5-charged / goose accumulated_cost stayed at ~20x across every session).
The flat rate is decoupled from real provider cost, so it overcharges
cheap providers and would underbill expensive ones.
Extend the H5_USE_BACKEND_COST path with H5_MARGIN_MULTIPLIER: charge
upstream accumulated_cost(USD) × rate × margin, which tracks the provider
automatically. Falls back to the token path when the upstream omits
accumulatedCost, so the change is safe to ship dormant.
See docs/h5-metering-gateway.md for the metering-gateway design.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
DNS/TLS/proxy scripts and docs/local-dev.md replace localhost URLs for H5, memind_adm, Plaza, and Ops during local dev.
Co-authored-by: Cursor <cursoragent@cursor.com>
Announce the v0.1.0-baseline tag (25d9c8c) as the starting point for all
future branches and document checkout workflow in docs/BASELINE.md.
Co-authored-by: Cursor <cursoragent@cursor.com>
In-preview HTML editing with undo/redo sync replaces Agent patch auto-save; Plaza runs on local Mac via Cloudflare Tunnel with embed height and CSP fixes.
Co-authored-by: Cursor <cursoragent@cursor.com>