Skip to content

feat: add privacy policy consistency checker#67

Open
gbasin wants to merge 4 commits intomasterfrom
feat/privacy-policy-consistency-checker-v2
Open

feat: add privacy policy consistency checker#67
gbasin wants to merge 4 commits intomasterfrom
feat/privacy-policy-consistency-checker-v2

Conversation

@gbasin
Copy link
Owner

@gbasin gbasin commented Feb 16, 2026

Summary

  • add docs/privacy-policy.md with machine-stable claim IDs (PP-001..PP-005)
  • add static checker core at src/server/privacyPolicyChecker.ts and CLI bun run privacy:check
  • integrate privacy check into scripts/test-runner.ts so it runs in standard bun run test
  • add rule-focused tests in src/server/__tests__/privacyPolicyChecker.test.ts
  • document usage in README.md

Enforced Claims

  • PP-001: denylisted telemetry/analytics dependencies are rejected in package.json
  • PP-002: runtime fetch() targets in src/client and src/server must be local-relative
  • PP-003: /api/paste-image must assign /tmp path, perform a write operation, and return { path: filepath }
  • PP-004: persisted Zustand stores across all runtime src/client files must use createJSONStorage(() => safeStorage); safeStorage must include in-memory fallback for unavailable/throwing localStorage
  • PP-005: default DB/log paths must resolve under ~/.agentboard

Limitations

  • static analysis only; this does not prove full runtime or legal/privacy compliance

Validation

  • bun run lint && bun run typecheck && bun run test

gbasin and others added 4 commits February 15, 2026 21:51
Add server-side Bun WebSocket keepalive (idleTimeout: 40, sendPings: true)
and application-level ping/pong heartbeat to prevent iOS Safari from
throttling idle connections over Tailscale. Adds profile logging to the
session switch path (client and server) to diagnose latency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Nightshift-Task: privacy-policy

Nightshift-Ref: https://github.com/marcus/nightshift
Base automatically changed from feat/ws-keepalive-profiling to master February 16, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant