Skip to content
Habitable
Back to your case file

How it works

AI proposes, code disposes.

A vision model is good at saying “that looks like a leak.” It is not allowed to say what the law requires. In Habitable the AI only names the problem, and a small, cited table of NYC housing-code rules decides the hazard class and the correction window — the same answer every time, with a source you can click.

1The flow

  1. Your photoFingerprinted and dated on your phone. Location stripped.
  2. AI picks one of 7Leak, mold, heat, pests, lock, paint — or not covered. Plus how sure.
    AI stops here
  3. Rules tablePlain data. Every row cites the NYC code and an HPD source.
  4. BClass + window + citationStamped A, B or C, the correction window, the section.
  5. Your timelineDay counter, countdown, follow-ups, receipts.
  6. The noticeA dated PDF for your landlord, EN or ES.
Violet is the AI's pencil — a guess you can correct. Marker and ink are the code — the same answer every time, with a source.

2Who does what

The AI proposes

Picks exactly one of seven answers, says how sure it is and why in one sentence. If it's unsure, it asks you one question.

It never sees the law and never sets a class or a deadline. You can always correct it.

The code disposes

The rules table is plain data. Each row carries the code section, an HPD or 311 source, the official wording and a plain-English line.

If a rule needs a fact the photo can't show — mold size, a child under 6 — it asks you.

Set by codenot the AI

You keep the record

Photo, capture time, a SHA-256 fingerprint, a signed server receipt and dated follow-ups — on your phone, ready for a notice, 311, or housing court.

3The full rules table

Rules are checked top to bottom; the first row whose conditions hold wins. Verified against HPD and NYC311 pages and the enacted local laws. Table version 2026-10-24.

No heat / hot water

HPD311
  • If

    What's missing? → Hot water or Both

    Class C

    No time — immediately

  • If

    What's missing? → Heat

    Heat season (Oct 1 – May 31): yes — from the date

    Class C

    No time — immediately

  • If

    What's missing? → Heat

    Heat season (Oct 1 – May 31): no — from the date

    no class

    Heat is only required from October 1 to May 31, so there's no heat violation outside heat season. Hot water is required all year.

Broken lock / door

HPD311

Anything else

No class. You can pick one of the six yourself, or log it as a dated note — it still gets a fingerprint and a receipt.

HPD's classes, in its own words

ClassMeaningWindow
ANon-hazardous90 days from date of service
BHazardous30 days from date of service
CImmediately hazardous — lead-based paint, window guards, mold, mice/cockroaches, rats21 days from date of service
CImmediately hazardous — self-closing doors14 days from date of service
CImmediately hazardous — heat and hot waterNo time
CImmediately hazardous — all other24 hours from date of service

Source: HPD — Clear Violations

4What the countdown means

The legal clock isn't yours to start. HPD correction windows run from service of an HPD Notice of Violation, not from a tenant's photo or letter. HPD considers a mailed notice served five days after mailing; heat and hot water notices are served at inspection.

So Habitable's countdown is the repair-by date your notice requests: the day you first documented the problem plus the window HPD would give for that class. It's a fair, specific ask that mirrors the law — not a legal deadline.

For heat and hot water HPD gives no time at all, so the notice asks for a repair within 24 hours. Heat is only required October 1 to May 31; hot water all year.

Example · Class B leak

Documented Oct 24 → repair-by Nov 23

30d 00h 00m

Requested repair-by date · mirrors HPD's 30-day window.

5Privacy

6Limits — and not legal advice

Habitable documents and cites; it doesn't give legal advice or represent you. An HPD inspector decides the actual class of a violation — where that's a judgment call (leaks, locks, plaster), the card says so and shows how HPD has classed similar cases.

NYC only, six problem types for photos, plus a heat log, a landlord track record, Ask the law (quote-checked answers) and a message coach — each with the same split: the AI proposes, code decides. For what usually comes after the notice (311, Housing Court, free legal help, your rights as a tenant), see next steps & your rights. To file a complaint now, call 311 or go to portal.311.nyc.gov.

7Data sources

Built with the Devpost Learn skill pack — see the planning docs in the repo.