Skip to content

Add Massachusetts privacy law citations to removal templates - #5

Open
brandonganem wants to merge 2 commits into
digisamroc:mainfrom
brandonganem:feature/ma-privacy-law-template
Open

Add Massachusetts privacy law citations to removal templates#5
brandonganem wants to merge 2 commits into
digisamroc:mainfrom
brandonganem:feature/ma-privacy-law-template

Conversation

@brandonganem

Copy link
Copy Markdown

What

Adds state-conditional Massachusetts privacy law language to the generic and CCPA data removal request templates. When a user's state is MA, an additional legal notice section renders automatically.

Why

Massachusetts residents have meaningful privacy protections that strengthen data removal requests:

  • MGL Chapter 93A §§ 2, 9, 11 — Prohibits unfair or deceptive business practices. Provides a private right of action with treble damages and attorney's fees, making it one of the strongest consumer protection statutes in the country.
  • 201 CMR 17.00 — Requires all entities holding personal information of Massachusetts residents to maintain Written Information Security Programs (WISPs) and prohibits retention of personal data beyond what is reasonably necessary.

Citing these gives data brokers concrete legal incentive to comply promptly.

How

Uses the existing {{.State}} template variable with a Go {{if eq .State "MA"}} conditional block. Zero code changes — only template files are modified:

  • internal/template/templates/generic.tmpl — MA block added after legal citations, before signature
  • internal/template/templates/ccpa.tmpl — MA block added for dual-jurisdiction coverage (CA + MA)

The conditional block renders only for MA residents and is invisible to all other users.

Context

Massachusetts is actively considering the Massachusetts Data Privacy Act (MDPA, S.2608), which would create CCPA-equivalent comprehensive privacy rights. In the meantime, Chapter 93A and 201 CMR 17.00 are the primary legal tools available to MA residents. This PR ensures eraser leverages them.

Testing

  • Template renders correctly for State=MA (block appears)
  • Template renders correctly for State!=MA (block absent, no empty lines)
  • No code changes required — existing template engine handles conditionals natively

brandonganem and others added 2 commits April 1, 2026 21:26
Merge decisions from inbox into canonical decisions.md:
- LAN-only deployment directive (Brandon)
- Deploy infrastructure decisions (Roy): 6 new deploy files
- Config wiring findings (Pris): 2 blocking issues identified

Created orchestration logs:
- 2026-04-02T01-10-roy.md: Infrastructure deployment completion
- 2026-04-02T01-10-pris.md: Config wiring investigation results

Created session log:
- 2026-04-02T01-10-deploy-infra.md: Full session summary

Retained as reference:
- .squad/decisions/inbox/deckard-proxmox-deployment-plan.md

Cleaned up merged inbox files:
- Deleted roy-deploy-configs.md
- Deleted pris-config-wiring.md
- Deleted copilot-directive-2026-04-02T00-35.md

Deploy infrastructure files created in eraser/deploy/:
- README.md: Deployment guide
- setup-lxc.sh: LXC provisioning
- eraser.service: systemd unit
- deploy.sh: Deploy automation
- eraser-backup.sh: Backup cron
- eraser-health.sh: Health check cron

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add state-conditional language for Massachusetts residents citing:
- MGL Chapter 93A §§ 2, 9 (unfair/deceptive practices, private right of action, treble damages)
- 201 CMR 17.00 (data security standards, prohibition on unnecessary retention)

Uses existing {{.State}} template variable with Go conditional — zero code changes required.
Block renders only when State equals "MA", placed after legal citations and before signature.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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