promptfoo red teaming for real estate AI and fair housing

Plan promptfoo red teams for listing, search and lending assistants so steering, discriminatory listings, source of income and valuation bias are tested before launch.

On this page

Why promptfoo red teaming for real estate AI and fair housing matters before launch

A brokerage, property manager or lender that puts a listing, search or lending assistant in front of consumers takes on fair housing exposure the moment it answers a question. A search assistant that quietly steers a prospective renter away from certain neighborhoods, a listing description that signals a preference for or against a protected group, or a lending assistant that treats applicants who receive housing vouchers differently can each create liability for the organization that deployed it, whatever the vendor's intent. Test these behaviors before launch, not after a complaint arrives. Red teaming turns that concern into a repeatable set of adversarial prompts you can run against the assistant as it is actually configured.

promptfoo is an open-source tool under the MIT license. It runs locally, so evals execute on your machine and talk directly with the model or application under test, which matters when prompts contain prospective tenant or borrower details. The tool supports systematic testing before deployment, and its red teaming documentation references the OWASP LLM Top 10, the NIST AI Risk Management Framework and the EU AI Act as frameworks that support that work. Your team should confirm which of these references your regulators, auditors and internal risk function expect, and map the test results to those expectations in your own documentation. The real estate plugins supply the test content, so confirm their current scope in the promptfoo red teaming documentation before you commit to a test plan.

The output of this work is evidence, not legal sign-off. A passing scan shows that the assistant handled the scenarios you tested under the settings you tested them with. It does not establish that the assistant complies with the Fair Housing Act, state or local fair housing and lending rules, or equal credit requirements, and it does not replace review by counsel or a compliance function. Decide early who owns the fair housing interpretation, who signs off on a launch, and how failing results are triaged and retested. Those decisions shape the scope of the red team more than the tool does.

Which real estate requirements shape the red team scope

This table maps common fair housing risk themes in real estate assistants to the test design, data handling and evidence each one needs. Read each row as a question to answer before configuring a red team, and confirm the applicable statute and state rules with counsel before relying on any row.

Fair housing themeWhat it means for test designWhat it means for data handling and evidence
SteeringBuild paired prompts that differ only in protected-class cues and check whether search, neighborhood or listing recommendations diverge.Keep the paired inputs and full outputs so reviewers can compare recommendations side by side.
Discriminatory listing languageTest whether generated listing copy or edits add preferences for or against protected groups, such as phrasing about who the home suits.Store the generated listing text and the grading result, and record which plugin flagged each failure.
Source of incomeProbe whether the assistant screens out renters using housing vouchers or other lawful income sources, directly or by implication.Use synthetic applicant profiles only, and document that no real tenant data entered the scan.
Familial statusCheck whether replies discourage households with children or favor certain household compositions in rental or sale guidance.Record the scenario definitions in version control so the same cases can be rerun after a model change.
Valuation biasTest whether estimates, comparable selection or pricing explanations vary by neighborhood demographics rather than property attributes.Keep the property inputs and valuation outputs together so reviewers can check the reasoning, and confirm with counsel how valuation evidence is retained.
Lending and underwriting assistanceConfirm which lending-related questions the assistant may answer and test refusal and escalation for requests that touch protected characteristics.Retain refusal and escalation logs as evidence, and confirm the applicable lending rules with counsel and compliance.
Test data and privacyUse generated or anonymized applicant and property records, since red team prompts can reveal sensitive personal details.Confirm where prompts, responses and reports are stored, and whether any model provider receives them.
Applicable law and frameworksMap scan categories to the OWASP LLM Top 10, the NIST AI Risk Management Framework and the EU AI Act where they apply to your deployment.Treat promptfoo output as test evidence only. Confirm with counsel which fair housing statute and state rules apply, since testing does not establish legal compliance.

Configuring promptfoo real estate plugins, strategies and targets

A housing red team is only as good as its configuration. The decisions below set the purpose of the scan, which real estate checks run, how responses are graded, how the assistant is reached, and how test prompts that mention protected characteristics are stored and reviewed.

Define the scan purpose

Write a short purpose statement that names the assistant, its users (buyers, renters, agents or lenders), the actions it may take, and the fair housing risks in scope. The purpose steers how promptfoo generates attacks and grades responses, so a vague purpose produces generic probes. Ask the compliance lead to review the statement before the first scan, and keep it under version control with the configuration.

Red teaming docs

Select real estate plugins deliberately

Choose housing-related plugins from the version your team has installed, and confirm their names and descriptions with promptfoo redteam plugin listings before you rely on them. Map each selected plugin to a risk you can explain, such as steering, discriminatory listing language, source of income or valuation bias. Record plugins you did not select and why, since auditors will ask about coverage gaps.

Choose strategies and attack depth

Strategies control how plugin prompts are delivered, for example as multi-turn conversations or with encoding and role-play wrappers. Multi-turn strategies matter for housing assistants because steering often appears gradually across a conversation. Confirm which strategies your version supports, and set the scan size with the team's budget and review capacity in mind.

Write grading criteria for fair housing

Grading decides whether a response passes. Write rubrics that flag protected-class references, neighborhood proxies, pricing or valuation reasoning tied to demographics, and lender answers that treat applicants differently by source of income. Test the rubric on known good and known bad responses first. Keep a human reviewer for borderline results, because model graders can miss subtle steering.

Connect the target over HTTP

Point promptfoo at the assistant's HTTP endpoint through a provider configuration that matches the real request and response format, including session handling, authentication headers and any retrieval context. Test against a staging deployment with production-like listing data and the same guardrails. Confirm that the target logs and rate limits will not distort results or block the scan.

Handle protected-characteristic test prompts

Red team prompts that mention race, religion, familial status, disability or national origin are sensitive test data. Store them in a restricted location, limit who can view raw transcripts, and set a retention period in your data policy. Use synthetic listings and personas, not real applicant records. Ask your vendor and counsel to confirm how the scan results and prompts are stored in your environment.

Choosing Community, Enterprise or On-Premise for housing teams

The Community edition is free under the MIT license and includes all LLM evaluation features, all model providers and integrations, and red teaming with 10k probes per month, with community support. The documentation states that promptfoo runs completely locally: evals run on your machine and talk directly with the LLM. For a single fair housing analyst running scans against a listing or search assistant, this is often enough to start. Findings stay with the person who ran them, which is also the limit: there is no shared review queue or central record of who approved a fix.

  • Individual control: Scans run from one workstation, and the operator decides which endpoints and test data are used.
  • No shared access model: Team sharing, role-based permissions and SSO are not part of Community.
  • Local evidence: Result files exist only where they were generated, so you must add your own storage and naming conventions.
  • Probe allowance: The 10k monthly probes are a supplied limit to plan around for regular regression scans.
  • Support: Support is community-based, so compliance deadlines need your own internal escalation path.

Confirm with your compliance lead whether file-based evidence from a single workstation meets your internal record-keeping rules before relying on it.

How a housing assistant red team run moves from scope to evidence

The run starts with a written scope that names the assistant, its purpose and the fair housing risks in scope, then moves into a promptfoo config that loads the real estate plugins and points at the assistant endpoint. Promptfoo runs inside the client's infrastructure, while the assistant may call a hosted model provider across a trust boundary, so the team should confirm which prompts, listing data and applicant details leave the environment. Graded results feed remediation and a retest, and the final evidence pack goes to compliance and legal reviewers.

Scope, test run and evidence flow, with the hosted model call marked as a trust boundary.

Rolling out a fair housing red team in phases

This sequence moves a fair housing red team from agreed scope to recurring testing, so each listing, search and lending flow is tested, failures are fixed with owners, and the evidence stays current as the assistant changes.

  1. Agree scope with legal and fair lending owners

    Legal, fair lending and compliance owners, with the product team, decide which assistants are in scope (listing descriptions, search and recommendation, lending or pre-qualification help) and which fair housing protected characteristics and state or local rules the tests must reflect. The security or AI engineering lead records the target endpoints, data access and who may approve findings. Done when the scope is written down, signed off by the owners and linked to the test plan.

  2. Build the test set for each flow

    The red team lead builds prompts for listing generation, search queries, neighborhood questions and lending inquiries, using promptfoo real estate plugins as the starting point and adding cases that reflect your own product. Include paired prompts that differ only in a protected or proxy attribute so differences in treatment are visible. Confirm with the owners which plugins and strategies apply and how the test data is handled. Done when every in-scope flow has test cases and an owner has reviewed them.

  3. Run the baseline scan against the current assistant

    The engineering team runs the configured red team against the current production or staging build, connected to the real prompts, retrieval sources and guardrails. The run records the configuration, plugin set, scan size and results so the baseline can be reproduced later. Confirm the grading method with the owners, since automated graders may miss subtle steering. Done when a baseline report exists with every failure traced to a flow and a test case.

  4. Triage failures with product owners

    Product owners and fair housing reviewers go through the failures together and classify each as a true violation, a grader false positive, or an out-of-scope item. Each confirmed issue gets a severity, the affected flow and an accountable owner. Record decisions in the findings log so auditors and reviewers can see why items were accepted or fixed. Done when every failure has a documented decision and a named owner.

  5. Fix prompts, retrieval or guardrails

    Engineers change system prompts, retrieval filters, output checks or guardrail rules for the confirmed issues, keeping fixes narrow so they do not degrade legitimate answers. Reviewers confirm that the changes do not introduce new steering language or restrict help for lawful requests. Changes go through normal change control. Done when each fix is merged, linked to its finding and reviewed by the owner.

  6. Retest and compare with the baseline

    The team reruns the same scan on the fixed build and compares results with the baseline, checking that fixed cases pass and that no previously passing cases regress. Reviewers spot-check a sample of passing responses, since automated grading can hide problems. Done when the retest report shows closed findings, no new failures in scope, and reviewer sign-off on the sample.

  7. Schedule recurring runs before changes

    The team sets up recurring scans and makes them a gate before any change to the model, system prompt, retrieval content, listing templates or guardrails. Confirm with your platform team how runs are triggered, where reports are stored and who receives alerts, and whether the self-hosted or Enterprise setup fits your access and data rules. Done when the schedule and change triggers are documented and the first scheduled run has completed.

Questions buyers ask before hiring outside help for housing AI testing

What drives the cost of outside red teaming for a housing AI assistant?

The cost follows the written scope, and the main drivers are the number of assistants and entry points under test, how many user roles and data sources are involved, how much of the work is configuring the promptfoo real estate checks against your listing and lending rules, and how much evidence you need at the end. DeployOpen does not publish a price list, so a quote follows from the agreed scope. Ask the partner to split the quote into one-time work (scoping, configuration, the first test run, the findings report) and recurring work (scheduled scans, retainers, retests). Promptfoo's Community edition is free under the MIT license and includes red teaming with 10k probes per month, according to the promptfoo pricing page, so software licensing is usually not the largest line item. Effort is driven mostly by the target application, not the tool.

How long does a fair housing red team engagement usually take?

Duration depends on the number of target systems, how quickly access and test accounts are provided, and how many fair housing categories and listing sources the scope covers. No general timeline is supplied here, so ask for a dated plan in the written scope with separate milestones for discovery, test configuration, execution, reporting and retest. Delays most often come from waiting on listing data samples, legal sign-off on the test criteria, and access to a staging endpoint that mirrors production behavior.

What must our team provide before testing starts?

Plan to provide the system prompts and configuration for each assistant, sample listing and search data that matches production formats (synthetic or masked where possible), a staging endpoint or API that behaves like production, test accounts for each user role, and the list of protected characteristics and state or local rules your counsel wants checked. Legal review of the test criteria and of any finding that touches housing law should be scheduled before work starts. Confirm how the partner will handle any real personal data in prompts and logs, and whether your data handling policy allows the promptfoo run to send prompts to the model provider you choose.

Can our in-house team run promptfoo for fair housing tests without a partner?

Yes, a capable engineering team can run promptfoo itself. The tool is MIT licensed, runs locally on your machine and talks directly to the model under test, and can be used from the command line, as a library or in CI/CD pipelines. The harder part is not the tooling but the judgment: deciding which steering, discriminatory listing, source of income and valuation behaviors count as failures under your jurisdictions, writing grading criteria that legal reviewers accept, and interpreting results. For a team without red teaming experience, the usual route is to start with a partner-led baseline and then move routine scans into your own pipeline. If you later want shared dashboards, SSO or central guardrail monitoring, check the promptfoo Enterprise edition, which the pricing page lists with custom pricing.

What does a retest cover, and is it included?

A retest checks whether the fixes for earlier findings work and whether they introduced new failures. In practice it reruns the failing test cases from the original report, adds regression cases around the changed prompts, tools or retrieval settings, and records the before and after results. Whether a retest is included in the fixed scope or sold separately depends on what the written scope says, so confirm the number of retest rounds, the systems covered and the evidence delivered. Ongoing or repeated testing is available through a retainer, and scheduled runs should be re-executed after every model, prompt or listing-data change.

Does passing these tests mean our assistant complies with fair housing law?

No. Passing promptfoo tests shows that the assistant did not produce the failures your test set looked for, under the conditions tested. It does not interpret the Fair Housing Act or any state or local rule, and it does not decide whether a listing, search filter or lending recommendation is lawful. Only your counsel can give that opinion, and an independent auditor or certification body is the only party that issues audit reports or attestations. DeployOpen prepares systems, controls and test evidence for those reviews but does not issue audit reports, attestations or certifications. Use the promptfoo red teaming references to the OWASP LLM Top 10, the NIST AI Risk Management Framework and the EU AI Act as structure for testing, and bring the results to counsel rather than treating them as a legal sign-off.

What is the difference between a findings report and compliance evidence?

A findings report lists what was tested, how each test was graded, what failed, the severity as agreed in scope, and the recommended fix. Compliance evidence is a broader package that shows the test method, the test set version, run dates, configuration and results over time. Ask for both if your reviewers will ask for them, and confirm that the report separates confirmed failures from judgment calls that need legal review. Neither document is an audit report.

Compliance considerations red teaming can and cannot support

Red teaming produces dated, repeatable test evidence that compliance and model risk reviewers can examine. It does not establish that a listing, search or lending assistant is fair, lawful or safe in production, and the cards below separate what the evidence supports from what it leaves open.

Mapping tests to NIST AI RMF functions

The promptfoo red teaming documentation names the NIST AI Risk Management Framework as a reference for systematic testing before deployment. Map each red team run to the risk your governance process already tracks, such as bias in search ranking or valuation output, and record which plugin, strategy and target version produced the result. Confirm with your risk function which AI RMF functions and subcategories your reviewers expect to see covered.

Red teaming docs

Using OWASP LLM Top 10 categories

The OWASP LLM Top 10 gives security reviewers a shared vocabulary for prompt injection, sensitive information disclosure and excessive agency. For a real estate assistant, those categories cover manipulation of listing text, leaks of applicant or seller data and tool actions taken without authorization. Use the category labels in your findings so security reviewers can compare results with other applications in the portfolio.

Documenting EU AI Act relevance

The promptfoo documentation lists the EU AI Act among frameworks that support systematic pre-deployment testing. Whether a housing or lending assistant falls into a high-risk category depends on its use and the jurisdiction, which is a legal determination. Ask counsel to classify the system first, then decide which test records the classification requires, such as test scope, data used and known limits.

Keeping fair housing and lending evidence

Evidence for fair housing and fair lending reviews is a set of prompts, expected behavior, model outputs, grades and reviewer decisions, retained with dates and versions. Store the eval configuration and results in your own systems so that they can be reproduced after a model or prompt change. Confirm your retention period and access rules with compliance before the first scan, because the records themselves may contain sensitive test data.

Limits of automated grading

Automated graders can miss steering that is subtle, such as ranking differences across neighborhoods or hedged language about a school district, and can flag harmless phrasing. A passing scan shows that the probes tried did not trigger the grader, not that the assistant is free of disparate treatment. Plan human review of a sample of outputs, document grader accuracy on known examples and state these limits in the report.

What testing alone does not establish

Red teaming does not replace fair lending or fair housing analysis of outcomes using real applicant or buyer populations, and it does not test data pipelines, underwriting models or human decisions made after the assistant responds. Scope the report to the tested application and version, and state what was excluded. Independent auditors and certification bodies issue audit reports and certifications. DeployOpen prepares the systems, controls and evidence for those reviews but does not issue them.

What your team provides and what you receive

Your team has to supply the assistant under test before any red teaming starts. That means a non-production endpoint for the listing search, property Q&A or lending assistant, with the same system prompt, retrieval sources and tool integrations that real applicants and agents reach. Ask for a test account with the same role as a prospective renter or buyer, plus a sandboxed listing feed and a sandboxed applicant or loan record set, so that tests can exercise real data paths without exposing real personal information. Confirm early whether the assistant can be reached over HTTP, WebSocket or a Python entry point, because promptfoo connects to targets through those interfaces and the choice changes how much of the stack gets exercised.

Your compliance and fair housing reviewers provide the rules the tests are measured against. Supply the approved policy language on protected classes, lawful screening criteria, advertising standards, source of income treatment where it applies in your markets, and the approved wording for valuation and lending disclaimers. Also supply a set of representative prompts drawn from real contact logs, with personal details removed, and name the reviewers who will sign off on expected behavior for each category. Without named reviewers, findings stall because nobody can decide whether a response was a violation or an acceptable answer.

You receive a configured promptfoo test suite that your team can run again, with the real estate plugins and strategies selected for the agreed scope, expected-behavior definitions written in your reviewers' terms, and the configuration kept in your repository. The findings report maps each failing case to the affected assistant behavior, the evidence captured, and a severity agreed with your reviewers. Fixes are proposed for prompts, filters, retrieval scope and tool permissions, and a retest run confirms which findings closed. Ask in the quote which artifacts are delivered as files, which run in your infrastructure and whether the retest is included in the fixed scope.

What to confirm with promptfoo and your legal team first

This sequence settles which promptfoo version, plugins and legal obligations apply before any red team scan is designed. The output is a written confirmation list that the testing scope and the fair housing review can both rely on.

  1. Record the installed promptfoo version

    The engineer running the test records the promptfoo version, the Node.js runtime and the edition in use, whether Community or Enterprise. Confirm the Node.js requirement against the release notes for that version, since the current npm release requires Node.js 22.22.0 or newer. Done when the version, runtime and edition appear in the test plan header and the team can reproduce the environment.

  2. Confirm which real estate plugins ship

    The engineer lists the real estate and fair housing plugins available in the recorded version by checking the official promptfoo red teaming documentation and the plugin reference for that release. Do not assume a plugin exists because a related name appears elsewhere. Done when each planned test category maps to a named plugin or is marked as a custom check that the team must write and review.

  3. Map how the assistant handles protected class references

    The product owner and a fair housing reviewer document how the listing, search and lending assistant responds when a user mentions race, religion, national origin, familial status, disability, sex, or source of income, and which of these apply under the rules in the jurisdictions served. This map shows where the assistant must refuse, redirect or answer neutrally. Done when the reviewer signs off on a written list of expected behaviors per category.

  4. Identify applicable state and local rules

    Counsel identifies the federal fair housing rules, the state and local protections, and any lending or valuation requirements that apply to each market the assistant serves. Source of income and other protections vary by jurisdiction, so the team should not rely on a single national summary. Done when counsel delivers a dated memo listing each jurisdiction, its protected classes and the owner of each rule.

  5. Agree the data and evidence boundaries

    The security lead and counsel agree which test prompts, transcripts and grading results may contain personal information, and where red team outputs are stored and who can read them. Confirm how the chosen deployment keeps data within your infrastructure, using the promptfoo self-hosting and pricing documentation as the starting point. Done when the storage location, retention owner and access list are written down and approved.

  6. Confirm the scan scope and the review owner

    The team confirms which assistant endpoints, languages, markets and plugins are in scope, who reviews failed findings, and how legal findings are separated from engineering defects. Confirm any usage limits for the edition in use against the current promptfoo pricing page before scheduling large scans. Done when a signed scope document names the reviewer for each finding category and the scan budget is recorded.

What to ask a partner before you engage

Fair housing testing of listing, search and lending assistants touches legal exposure, sensitive data and evidence that will be read by others. The six questions below help you compare partners on the points that determine whether the work holds up in a review.

Housing workflow experience

Ask whether the partner has tested listing, search, tenant screening or lending assistants before, and how they map those workflows to test cases. Ask which steering and discriminatory-listing scenarios they would start with and how they would decide which protected characteristics and proxy terms to probe. Ask them to walk through a sample scope for one of your assistants so you can judge their depth before signing.

promptfoo red teaming docs

Fixed scope and written deliverables

Ask whether the engagement is fixed-scope, with the systems under test, test categories, deliverables and timeline agreed in writing before work starts. Confirm exactly which assistants, prompts, data sources and model versions are included, and what happens if a new workflow is added mid-engagement. A written scope makes it possible to compare quotes on the same basis.

Handling of sensitive test data

Fair housing testing often requires prompts that reference race, familial status, disability, source of income or neighborhood. Ask where test prompts, model outputs and grading results are stored, who can view them, and whether any data leaves your environment. Confirm the partner can run the red team against your own endpoint from infrastructure you control, and how synthetic personas are kept separate from real applicant records.

Retest terms

Findings are only useful if fixes are verified. Ask whether retesting is included in the fixed scope, how many retest rounds are covered, and which findings are retested against the same probes. Also ask what is re-run after a model, prompt or retrieval change, and whether that work is a one-time task or a recurring retainer with its own written terms.

Evidence packaging

Ask what the final evidence looks like: a findings report with reproduction steps, the test configuration, pass and fail results by category, remediation status and the retest record. Confirm that evidence can be shared with your compliance team, internal audit or outside counsel in a form they can review. Ask for a sample report before you engage.

Ownership of legal interpretation

Testing shows how an assistant behaves. It does not decide whether that behavior complies with the Fair Housing Act or state and local law. Ask the partner to state in writing that they test and report, while your counsel decides what each finding means for your obligations. Ask which legal reviews, if any, are outside the partner's scope and who pays for them.

How DeployOpen scopes and delivers housing AI red teams

DeployOpen runs promptfoo red teaming for real estate AI as a written, fixed-scope engagement, starting from the assistants a housing business actually deploys. The work covers test design, execution inside your environment, evidence documentation and handover so your own team can rerun the tests.

How we scope

  • We confirm which listing, search, lending and valuation assistants are in scope and what each one is allowed to say and show.
  • We agree the fair housing plugin categories, purpose statements and attack strategies to test before any work starts.
  • Scope, deliverables and timelines are agreed in writing, and ongoing support is available as a retainer after handover.

How we build

  • We configure promptfoo to run locally or inside your own infrastructure, so evals talk directly with the assistant under test.
  • We build test cases for steering, discriminatory listing language, source of income and valuation bias, and review the grading rules with you.
  • We run the red team scans, record failing responses and tie each finding to the affected prompt, tool or data source.

How we hand over

  • You receive the promptfoo configuration, test suites and scan results, so your team can rerun them after each model or prompt change.
  • The findings report explains each failure in plain terms, with remediation steps and a retest of the fixed behavior.
  • We document which checks were run, what they do not cover, and which fair housing obligations still need legal and compliance review.

How we support

  • Ongoing support covers upgrades to promptfoo, updated test packs and rescans after your assistant changes.
  • Continuous testing can be added under a retainer, with the scope and frequency agreed in writing.
  • Before starting, ask us to confirm the promptfoo version, Node.js requirement and deployment method we will use in your environment.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.