# What PolicyGrain does

PolicyGrain generates ten cited DPDP Act, IT (SPDI), Consumer Protection Act, and CERT-In documents from plain answers, serves a 4.94 KB gzipped equal-choice consent banner, verifies installs in headless Chromium, and seals consent receipts in SHA-256 hash chains with daily Ed25519 Merkle roots.

## Platform modules

1. Cited Notices (modules/legal-corpus & modules/documents): 10 document kinds assembled deterministically from pinned legal-sources with inline statutory citations (s.5(1), r.3), in English today; Hindi and the other Eighth Schedule languages are rolling out next.
2. Hosted Pages (modules/hosted-docs): publish approved versions to pages.policygrain.com with zero JavaScript and zero cookies.
3. Consent Banner v2 (modules/sites & browser/banner): 4.94 KB gzipped loader (12.70 KB total), DPDP s.6(4) equal-choice Accept/Reject, all 7 Google Consent Mode v2 signals, synchronous returning-visitor restore, native Global Privacy Control, and Shadow DOM click-to-load iframe blocking.
4. Evidence Ledger (modules/evidence & modules/usage): HMAC-SHA256 IP hashing, insert-only DB role, per-site SHA-256 hash chain, daily Ed25519 Merkle roots (evidence.evidence_roots), limit-aware JSON/CSV export with formula neutralization, and a 10,000 monthly free-tier counter that never blocks ingest.
5. CheckMyDPDP Scanner & Verification (modules/scanner & modules/verify): isolated 3-pass headless Chromium checks across 11 evidence-backed observations, plus a 100% local Chrome MV3 Inspector extension.
6. Ecosystem Plugins & Coding Agents: GTM Community Template, WordPress Plugin, Shopify Theme App Extension, @policygrain/react & Next.js SDK, @policygrain/mcp (16 tools), @policygrain/cli, and SKILL.md v0.9.

## Reading these docs with an agent

- Fetch /llms.txt for the structured index, or /llms-full.txt for the complete concatenated Markdown corpus.
- Append .md to any documentation path (or /index.md for this page) for clean Markdown.
- Fetch /openapi.json (or https://api.policygrain.com/v1/openapi.json) for the merged OpenAPI 3.1.0 contract.
- Fetch /SKILL.md for the v0.9 coding-agent operational playbook.
