Home/Projects/Haq/Rule packs and reviews
Read in your language

हिन्दीবাংলাEspañolFrançaisDeutschMore languages

Opens Google Translate, which sends this page's text to Google. The English is the reference. The Haq app itself has Hindi, Bengali, Spanish, French and German built in, offline.

Rule packs and reviews

How Haq's rule packs are written, reviewed, labelled and kept up to date.

Legal information, not legal advice Haq shows what the law says and where to go. Only the police and courts decide what an offence is. Check every result and act at your own discretion.

Everything Haq says comes from rule packs: plain JSON files in the packs/ folder that anyone can read.

Folder Module Example
packs/compliance/ Compliance gdpr.json, dpdp.json
packs/report/ Report india.json: incidents, laws, routes, legal aid
packs/platforms/ Report uber.json, linkedin.json: a platform's rules, report steps, grievance contact
packs/map/ Compliance map world.json: laws and standards by industry and region, each with its official source and dates, plus the security checklist. Written by scripts/make_map_pack.py, with Hindi and Bengali in scripts/map_i18n.py and Spanish, French and German in scripts/map_i18n_eu.py
packs/awareness/ Did you know? india.json: facts about Indian laws; global.json: facts about laws that reach businesses across borders (EU, UK, US, and India's outsourcing carve-out). Each fact has a title, text and example in all six languages, its law and its official source, and may carry from/until dates. Each pack needs at least 14 facts on any day.

Proof and what each law needs (Report)#

Every law in packs/report/india.json has a needs line: what the police will want to use it, in plain words, written from the official text. Report shows it under the law as The police will want:. The validator refuses a law without it.

The proof list drives the checklist and the shield on Report. Each item:

{
  "id": "screens",
  "text": "Screenshots showing the date, time and the other person's profile or number",
  "when": {"where": ["online"]},
  "auto": "files"
}
Field Required Meaning
id yes Unique, short. Saved in the visit's answers when ticked.
text yes The line shown in the checklist, in English. Translations go in the text blocks of the i18n files.
how no Steps shown under the item. The ticket item uses the platform's own report steps instead.
when no Same matcher as incidents (where, what, who, kinds). Leave it out to show the item for every case.
auto no Ticks the item by itself: files when a file is added, field:d-ticket when that field has text, field:d-link:url when it holds a web address.

The shield fills with the share of shown items that are ticked, by the person or by auto: under a third is Needs more proof, under two thirds Getting stronger, then Strong. Missing screenshots for online harm keep it at Getting stronger at most, because the red note says the case needs them. It never blocks sending.

Reporting deadlines (Compliance map)#

Map entries may carry deadlines: who must be told after an incident, and by when. They drive the reporting clock at the top of Compliance and appear in the downloaded checklist.

"deadlines": [
  {"hours": 6, "to": "CERT-In", "do": "Report the cyber incident, if it is a listed type."},
  {"now": true, "to": "Affected people", "do": "Tell them without undue delay if the risk to them is high."},
  {"after": "One month after the notification", "to": "Your CSIRT or authority", "do": "Send the final report."},
  {"hours": 72, "to": "Data Protection Board", "do": "Send the detailed report.", "from": "2027-05-13"}
]
Field Meaning
hours or days Counted from when the business found out.
now Without delay; shown first.
after The clock starts at a later step; shown apart, without a time.
to, do Who to tell, and what to send. Both need all six languages.
from The duty starts on this date; before it, the row is greyed.

Write them in DEADLINES in scripts/make_map_pack.py, translations in scripts/map_i18n.py (UI) and scripts/map_i18n_eu.py. tests/test_map.mjs checks the order, the 6-hour CERT-In clock, the DPDP start date and the calendar file.

Documents and auditor evidence#

Schemes in packs/benefits/india.json list docs; Schemes shows them as The office will ask for: with a tick per document (kept on the device, haq.draft.docs). Compliance map entries may carry evidence: what an auditor or regulator will ask to see. It is shown on the card and in the downloaded checklist, and needs all six languages (EVIDENCE in scripts/map_i18n.py, TEXT in scripts/map_i18n_eu.py).

Compliance map entries#

Each entry in packs/map/world.json looks like this:

{
  "id": "eu-cra",
  "name": "Cyber Resilience Act (Regulation (EU) 2024/2847)",
  "kind": "law",
  "regions": ["eu"],
  "industries": ["tech", "ai", "manufacturing", "telecom", "energy"],
  "what": "Security by design, vulnerability handling and security updates for hardware and software products sold in the EU.",
  "applies": "You make, import or sell products with digital elements ... on the EU market.",
  "dates": "Reporting ... since 11 September 2026; most other duties from 11 December 2027.",
  "status": "phased",
  "source": "https://eur-lex.europa.eu/eli/reg/2024/2847/oj"
}

kind is law or standard. status is in-force, phased or proposed; phased and proposed entries must give their dates. industries can be ["all"]. The validator checks every field, every region and industry, and that each source uses https; the tests check that every line has Hindi and Bengali. The watcher checks each source and watch page every week. To change an entry, edit scripts/make_map_pack.py and run it.

Each region also has a client_note: why its laws can reach a company based somewhere else, shown when a person picks that region under Your clients or users are in. rules holds cases that change what applies for a company and its clients, such as India's outsourcing carve-out:

{
  "id": "in-outsourcing",
  "home": "in",
  "clients_outside": "in",
  "item": "in-dpdp",
  "text": "Based in India and working for clients abroad? Most of the DPDP Act does not apply ...",
  "source": "https://www.indiacode.nic.in/handle/123456789/22037"
}

A rule shows when the company is in home and at least one client region is not clients_outside; item puts the note on that entry's card. The validator checks that every region has a client_note and that each rule names real regions, a real entry and an https source. Translations: Hindi and Bengali in scripts/map_i18n.py, Spanish, French and German in scripts/map_i18n_eu.py.

The review field#

Every pack says who reviewed it and when:

"status": "community-draft",
"review": {
  "reviewed_by": "Haq maintainers",
  "reviewer_type": "self",
  "credential": "",
  "date": "2026-12-04"
}
Field Values
reviewer_type self, community, lawyer, legal-aid
credential Free text, for example a Bar Council enrolment number
status community-draft, or verified (only allowed when reviewer_type is lawyer or legal-aid)

The app shows this on every page. Until a lawyer or legal aid service reviews a pack, it reads Written from official sources; not yet reviewed by a lawyer (last checked 2026-12-04). After such a review it names the reviewer, for example Reviewed by Adv. R. Sen (lawyer), 2027-01-15.

How packs stay up to date#

  1. Every Monday at 11:00 IST, a GitHub Action checks the official pages each pack lists under watch.
  2. If a page changed, it opens an issue listing the affected packs.
  3. A person reads the change and updates the pack in a pull request.
  4. Tests and pack validation run automatically. The owner must approve every pack change.
  5. After merging, the site rebuilds and deploys on its own, and every app picks up the new packs the next time it is opened.

Nothing about the law changes in Haq without a person approving it.

Haq is free to use. © Abhisek Goswami, all rights reserved. Suggestions, translations, legal reviews and feedback are welcome.

Still need help?

Email me directly and I'll reply myself, usually within two working days. Please don't include personal details of your case.