# SBIR and STTR Eligibility Gate (free sample)

**Six company and PI rules for NSF SBIR and STTR, each answered PASS, FAIL or UNVERIFIED from documents you can show. Run it before anyone writes a pitch.**

Version 1.0, 2026-11-03. By PaperChaseWebb Inc. Works with Grok Bot, Claude Code, Codex and Hermes, or on its own. Python 3.8 or newer, no installs. Figures checked on 2026-11-03 against https://www.nsf.gov/funding/opportunities/small-business-innovation-research-small-business-technology/nsf26-510/solicitation and https://www.sbir.gov/sites/default/files/elig_size_compliance_guide.pdf.

## How to use it

1. Answer the six questions in `answers.csv`. Each answer needs the document that shows it and the date you looked.
2. Run `python3 eligibility_gate.py answers.csv`.
3. Fix every FAIL before you write a word of a pitch. Chase down every UNVERIFIED: a gate you believe but cannot show is not a pass.

The sample file is a made-up company with one FAIL (the US-owned share) and two UNVERIFIED (no evidence for the headcount, and a PI check older than 90 days). With `--today 2026-11-03` it prints 3 pass, 1 fail, 2 unverified.

This covers NSF's company and PI rules only. Other agencies run their own SBIR and STTR solicitations, and rules change: check the current solicitation before you rely on any figure. This is a planning aid, not legal advice.

## The six gates

| Code | Rule |
| --- | --- |
| E1 | Organized for profit |
| E2 | Place of business in the US |
| E3 | More than 50% owned and controlled by US citizens or permanent residents |
| E4 | 500 employees or fewer, affiliates included |
| E5 | PI at least 51% employed by the company |
| E6 | PI has a legal right to work for the company in the US |

Unpack: save this page as FREE-SAMPLE.md and run `python3 extract_from_pack.py FREE-SAMPLE.md sbir-gate`. Then `python3 sbir-gate/mini/eligibility_gate.py sbir-gate/mini/answers.csv --today 2026-11-03`.

## The full gate

The SBIR and STTR Fit Gate ($24) adds the work-split rules for SBIR and STTR, the fundable-object test, Fast-Track checks, your pitch-limit tracker with the two-deadline invitation window, registration checks, NSF's four-section Project Pitch skeleton with a checker, your fingerprinted yes on the pitch, cited sources and a worked example. If you would rather work through it with us, book a call at paperchasewebb.ai or write to mgmt@paperchasewebb.com.

## Files

#### file: extract_from_pack.py
~~~~python
#!/usr/bin/env python3
"""Unpack every '#### file: PATH' block from pack.md (or FREE-SAMPLE.md) into a folder."""
import os, re, sys
src, dst = sys.argv[1], sys.argv[2]
t = open(src, encoding="utf-8").read()
n = 0
for m in re.finditer(r"^#### file: (\S+)\n~~~~[a-z]*\n(.*?)\n~~~~$", t, re.S | re.M):
    p = os.path.join(dst, m.group(1))
    os.makedirs(os.path.dirname(p) or ".", exist_ok=True)
    open(p, "w", encoding="utf-8").write(m.group(2) + "\n")
    n += 1
print(n, "files")
~~~~

#### file: mini/eligibility_gate.py
~~~~python
#!/usr/bin/env python3
"""SBIR and STTR Eligibility Gate (free sample). Read-only.

  python3 eligibility_gate.py answers.csv [--today YYYY-MM-DD]

Six company and PI gates for NSF SBIR/STTR, each PASS, FAIL or UNVERIFIED.
An answer with no evidence, or checked more than 90 days ago, is UNVERIFIED.
Figures checked 2026-11-03 against NSF 26-510 and the SBA eligibility guide.
Planning aid, not legal advice. Confirm the current solicitation before you rely on it.
Exit 0 all pass, 10 any fail, 11 any unverified.
"""
import csv, datetime as dt, sys

SOURCES = {
    "nsf": "https://www.nsf.gov/funding/opportunities/small-business-innovation-research-small-business-technology/nsf26-510/solicitation",
    "sba": "https://www.sbir.gov/sites/default/files/elig_size_compliance_guide.pdf",
}
GATES = [
    ("E1", "for_profit", "For-profit company", lambda v: v == "yes", "the company must be organized for profit", "sba"),
    ("E2", "us_place_of_business", "Place of business in the US", lambda v: v == "yes", "a US place of business is required", "sba"),
    ("E3", "us_owned_controlled_pct", "More than 50% owned and controlled by US citizens or permanent residents", lambda v: float(v) > 50, "50% or less. Some agencies accept majority stakes held by venture, hedge or private equity funds; read the SBA guide", "sba"),
    ("E4", "employees_incl_affiliates", "500 employees or fewer, affiliates included", lambda v: int(v) <= 500, "over 500 with affiliates", "nsf"),
    ("E5", "pi_employment_pct", "PI at least 51% employed by the company", lambda v: float(v) >= 51, "the PI's primary employment must be with the company", "nsf"),
    ("E6", "pi_us_work_right", "PI has the right to work in the US", lambda v: v == "yes", "the PI needs a legal right to work for the company in the US", "nsf"),
]


def run(path, today):
    with open(path, newline="", encoding="utf-8") as f:
        rows = {r["question"].strip(): {k: (v or "").strip() for k, v in r.items() if k} for r in csv.DictReader(f)}
    out = []
    for code, key, name, test, why, src in GATES:
        r = rows.get(key)
        if not r or not r.get("answer"):
            out.append((code, name, "UNVERIFIED", "no answer for " + key))
            continue
        if not r.get("evidence"):
            out.append((code, name, "UNVERIFIED", "name the document that shows it"))
            continue
        try:
            age = (today - dt.date.fromisoformat(r.get("checked_on", ""))).days
        except ValueError:
            out.append((code, name, "UNVERIFIED", "checked_on must be YYYY-MM-DD"))
            continue
        if age > 90 or age < 0:
            out.append((code, name, "UNVERIFIED", "checked %d days ago; check again" % age))
            continue
        try:
            ok = test(r["answer"].lower())
        except ValueError:
            out.append((code, name, "UNVERIFIED", "answer must be a number"))
            continue
        out.append((code, name, "PASS" if ok else "FAIL", "" if ok else why + " (" + SOURCES[src] + ")"))
    return out


def main(argv=None):
    argv = list(sys.argv[1:] if argv is None else argv)
    today = dt.date.today()
    if "--today" in argv:
        i = argv.index("--today")
        today = dt.date.fromisoformat(argv[i + 1])
        del argv[i:i + 2]
    if len(argv) != 1:
        print(__doc__)
        return 2
    out = run(argv[0], today)
    for code, name, st, why in out:
        print("%-10s %s %s%s" % (st, code, name, ("  -> " + why) if why else ""))
    st = [o[2] for o in out]
    print("%d pass, %d fail, %d unverified" % (st.count("PASS"), st.count("FAIL"), st.count("UNVERIFIED")))
    return 10 if "FAIL" in st else 11 if "UNVERIFIED" in st else 0


if __name__ == "__main__":
    sys.exit(main())
~~~~

#### file: mini/answers.csv
~~~~csv
question,answer,evidence,checked_on
for_profit,yes,Articles of incorporation,2026-10-20
us_place_of_business,yes,Office lease,2026-10-20
us_owned_controlled_pct,45,Cap table: an overseas investor holds 55%,2026-10-20
employees_incl_affiliates,12,,2026-10-20
pi_employment_pct,60,Offer letter,2026-04-01
pi_us_work_right,yes,Passport on file,2026-10-20
~~~~
