Skip to main content

AVS Framework

Audit • Validation • Security — open-source statistical engine for auditing AI-driven employment decision systems.

CI PyPI Python 3.10+ License: MIT

Developed by Safeer Ahmad, M.S., SHRM-CP, MLSecOps — Principal, Nauta Research Labs


What this is

Automated screening is effectively universal in large-employer hiring: 99% of Fortune 500 companies use an applicant tracking system, and 88% of employers surveyed acknowledge that their system filters out qualified candidates whose resumes do not match exact job-description criteria.1

Independent verification has not kept pace. When Cornell researchers audited compliance with New York City Local Law 144 — the first law anywhere to mandate bias audits for automated employment decision tools — they found that of 391 employers surveyed, only 18 had posted an audit report, and only 11 posted both an audit report and a transparency notice meeting the law's requirements.2

The AVS Framework is a governance methodology that evaluates AI employment tools across four pillars:

Pillar Question it answers Standard
Audit Does the tool produce discriminatory outcomes across protected groups? Uniform Guidelines (29 C.F.R. 1607), NYC LL144, EEOC
Validation Does the tool actually measure job-relevant characteristics? Uniform Guidelines, SIOP Principles, Griggs v. Duke Power
Security Can the tool be manipulated, poisoned, or exploited? NIST AI RMF 1.0 / AI 600-1, OWASP ML Top 10
Governance Does the organization have oversight to sustain compliance over time? NIST AI RMF GOVERN, OFCCP guidance

This repository contains the open-source (MIT) code for the Audit and Security pillars — the statistical and testing engine, not the full consulting methodology. It runs against exports from any ATS (Workday, Greenhouse, iCIMS, Lever, BambooHR) without needing vendor source code or API access to the underlying model.

For the full four-pillar assessment methodology, validation study protocols, and engagement services, see nautaresearchlabs.com.

Install

pip install avs-framework

Quickstart

import pandas as pd
from avs_framework import AVSAdverseImpactAudit

data = pd.read_csv("applicant_flow.csv")  # applicant_id, race, sex, selected, ...

audit = AVSAdverseImpactAudit(data, demographic_cols=["race", "sex"])
audit.run_full_audit()
print(audit.generate_report())

Sample output on a screening tool with confirmed adverse impact (reproduce with python examples/quickstart.py):

   Group Reference  N Applicants  N Selected Selection Rate Reference Rate Impact Ratio 4/5 Pass  Z-Score  p-value Stat Sig  Severity
   Asian     White           891         100          11.2%          14.6%        0.768     FAIL  -2.5590 0.010496      YES CONFIRMED
   Black     White          1241          99           8.0%          14.6%        0.546     FAIL  -5.8779 0.000000      YES CONFIRMED
Hispanic     White          1523         213          14.0%          14.6%        0.957     PASS  -0.5620 0.574095       no      NONE

An impact ratio below 0.80 with a statistically significant p-value (< 0.05) is a confirmed adverse impact finding under the Uniform Guidelines — it triggers a root-cause and validation-study obligation to defend continued use of the tool on business-necessity grounds.

What's included

AVSAdverseImpactAudit — adverse impact analysis

Four-fifths rule per 29 C.F.R. 1607.4D, comparing each group against the highest-selected group, combined with a pooled two-proportion Z-test. Where the smallest expected cell count in the 2×2 table falls below 5 under the pooled null, the framework automatically substitutes Fisher's exact test rather than relying on the normal approximation.

Findings are classified on four severity levels, because practical and statistical significance diverge in opposite directions at different sample sizes:

Severity 4/5 rule Statistically significant Interpretation
CONFIRMED Fails Yes Adverse impact indicated on both criteria
INDICATED Fails No Practical disparity; sample too small to confirm
MONITOR Passes Yes Statistically detectable but below the practical threshold
NONE Passes No No indication of adverse impact

The INDICATED and MONITOR cases are the ones single-criterion audits miss.

AVSNameSwapTest — name-swap bias testing

Black-box test for name-based bias in resume screening. Submits resumes that are byte-identical except for the applicant name and measures score variance across name-associated demographic groups. Methodology follows Wilson & Caliskan (University of Washington, 2024). Uses synthetic resumes only — no real applicant data is required or accepted.

AVSDriftDetector — drift detection

Chi-square test for demographic composition shift, two-sample Kolmogorov-Smirnov test for score distribution shift, and per-group selection-rate drift between a baseline and a current period. A model that passed its audit at deployment can fail silently as the applicant pool or the model changes; a single-point-in-time audit will not catch that.

Privacy

The framework operates on de-identified, aggregate data only: anonymized applicant ID, protected-category codes, AI score or decision, and hiring outcome. It never requires names, SSNs, or other PII. It makes no network requests. The security tests use synthetic resumes rather than real applicant data — so there is nothing to leak and no vendor system to reverse-engineer.

Audit findings and drift results are plain JSON-serializable Python values, suitable for direct inclusion in a compliance report:

import json
from dataclasses import asdict

findings = audit.run_audit("race")
print(json.dumps([asdict(f) for f in findings], indent=2))

Development

git clone https://github.com/SafeerAhmad211/avs-framework.git
cd avs-framework
pip install -e ".[dev]"

ruff check .
pytest --cov=avs_framework --cov-report=term-missing

CI runs against Python 3.10–3.13 and enforces a minimum of 80% coverage.

Contributions are welcome, particularly methodological review from I-O psychologists, statisticians, and employment attorneys — see CONTRIBUTING.md. You do not need to write code to correct a statistical method.

Citation

If you use this in research, cite it via the repository's Cite this repository button, or directly:

@software{ahmad_avs_framework_2026,
  author  = {Ahmad, Safeer},
  title   = {{AVS Framework: Audit, Validation, Security for AI Employment
             Decision Systems}},
  year    = {2026},
  version = {0.1.0},
  url     = {https://github.com/SafeerAhmad211/avs-framework},
  license = {MIT}
}

Limitations

  • Adverse impact analysis identifies disparities, not causes. A confirmed finding is the start of a root-cause investigation, not a conclusion about intent or legal liability.
  • The four-fifths rule is a rule of thumb from 29 C.F.R. 1607.4D, not a legal safe harbor. Courts and the EEOC also consider statistical significance, practical significance, and sample size.
  • This library implements the Audit and Security pillars only. A defensible compliance posture also requires validation evidence that the tool measures job-relevant characteristics — the Validation pillar, which is out of scope here.
  • Nothing in this repository is legal advice.

License

Code in this repository is released under the MIT License. The broader AVS Framework methodology (job analysis protocols, validation study design, governance maturity scoring, engagement deliverables) is proprietary to Nauta Research Labs.

  1. Fuller, J. B., Raman, M., et al. (2021). Hidden Workers: Untapped Talent. Harvard Business School Project on Managing the Future of Work and Accenture. Survey of 8,000 workers and 2,250 executives across the U.S., U.K., and Germany. https://www.hbs.edu/managing-the-future-of-work/research/Pages/hidden-workers-untapped-talent.aspx

  2. Wright, L., et al. (2024). Null Compliance: NYC Local Law 144 and the Challenges of Algorithm Accountability. Proceedings of the 2024 ACM Conference on Fairness, Accountability, and Transparency (FAccT '24). https://doi.org/10.1145/3630106.3658998

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

avs_framework-0.1.0.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

avs_framework-0.1.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file avs_framework-0.1.0.tar.gz.

File metadata

  • Download URL: avs_framework-0.1.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for avs_framework-0.1.0.tar.gz
Algorithm Hash digest
SHA256 986661c53d545f40cb3a90ca47e3c55b87ed0bce67685a2d005a7c63dcf384de
MD5 84c3b0c4a91044d4c9b8dc1bd6e6d80b
BLAKE2b-256 c16746d905cfbae37d4e458193e50cdade282d405b133fd357f5e2b12247b9b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for avs_framework-0.1.0.tar.gz:

Publisher: publish.yml on SafeerAhmad211/avs-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file avs_framework-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: avs_framework-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for avs_framework-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bc868f4faff3c0af85f5ce12812310717e9fce68b46eaa3dabb00fed8e6cec0
MD5 ab13d9f39e9aa92d16f4639f2a7f3c95
BLAKE2b-256 c46b463957eb2ae1349be4da96454e5efc99bbccced415b1f8b06bf5843fd515

See more details on using hashes here.

Provenance

The following attestation bundles were made for avs_framework-0.1.0-py3-none-any.whl:

Publisher: publish.yml on SafeerAhmad211/avs-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page