mirror of
https://github.com/tanweai/pua.git
synced 2026-09-01 15:39:55 +08:00
d40ca8a164
Summary: - Add a silent SessionStart heartbeat hook that posts minimal anonymous install activity to Cloudflare without emitting stdout, stderr, or additionalContext. - Add the Cloudflare Pages heartbeat endpoint, D1 migration, and admin-only stats page at #/admin/heartbeats. - Add heartbeat regression gates, release consistency checks, FAQ/design notes, and bump marketplace/package versions to 3.4.3. Rationale: - Active-user measurement belongs in a hook-side mechanical gate, not in the model prompt, so the worker context cannot narrate or leak the telemetry behavior. - Privacy gates disable the signal for offline mode, telemetry opt-out, and feedback-off users before any local telemetry identity is created. Tests: - bash evals/test-heartbeat.sh - bash evals/test-release-consistency.sh - static eval suite: governance, feedback auth, integrity guard, issue regressions, Microsoft flavor, platform compat, loop hook, Windows Python hooks, YAML frontmatter - bash evals/test-behavior.sh - npm --prefix landing run build - ./landing/node_modules/.bin/tsc -p pi/pua/tsconfig.json - git diff --check Co-authored-by: Codex <codex@openai.com>