← Back to backlog

AGY-007

Turning a federal solicitation into a compliance matrix takes days

Upload an RFP or RFI and get every requirement extracted into a traceable compliance matrix.

Problem

Government contractors responding to an RFP have to find every requirement ("shall", "must", "will provide") spread across Sections C, L and M and the attachments, then track each one into the proposal. It's usually done by hand in a spreadsheet, and missing one can disqualify a bid.

What I built

A local tool, with a web UI and a CLI. You upload a solicitation PDF, and it returns a compliance matrix with one row per requirement: an ID tied to its source (C.3.4-02), the verbatim text, section, page, category, who it binds (offeror, contractor or government), a confidence level, review notes and an empty Proposal Section column. You review the flagged rows in the browser, mark each one Keep or Drop, and export to .xlsx or CSV. Dropped rows stay in the export, struck through, so there's a record of what was decided.

I tested it on a real solicitation from SAM.gov: the FAA's NEST Screening Information Request (693KA9-26-R-00003), 108 pages, Sections B through M.

How AI was used

The PDF parsing is plain code. It strips running headers and follows the section numbering (C.3.2, L.4, M.5.1), so every line knows its section and page. Claude (Sonnet 5.5 by default, structured JSON output) reads the text in page-aligned chunks and returns each requirement with a category, a confidence level and a reason whenever confidence isn't high.

Then plain code checks the model's work against the PDF:

  • Verbatim check: the text has to appear on the cited page. Paraphrased or invented rows get flagged.
  • Section check: the cited section has to exist on that page.
  • Coverage check: any sentence with "shall", "must" or "will provide" that no row covers is added as a possible miss. Requirements the model drops show up for review instead of disappearing.

Where it over-extracted: protest procedures, "the FAA may…" reservations of rights, definitions and boilerplate clause text. It marked most of those medium or low, so they go to the review queue instead of straight into the matrix. On the full document that's 310 of 930 rows to review.

Where it went wrong in a less obvious way: the first version pulled list bullets out on their own ("Report Title;", "Proposed Change Management") and dropped the lead-in sentence that made them binding. The coverage check caught 21 of those lead-ins. I added a field that carries the lead-in with each bullet, and possible misses fell to 11, most of them definitions a reviewer can drop in one click.

Where the model beat the keyword search: page 9 has 15 task bullets that are binding only because of a "The Contractor must…" sentence on the page before. A keyword search finds nothing there. The model got all 15.

Where judgment stays human: deciding whether boilerplate clause text belongs in the matrix at all, catching requirements that are only implied by the evaluation criteria in Section M, and reading tables. Requirements inside tables come out garbled or get missed. The coverage check caught "travel must not exceed $10,000" inside a pricing table, and it now also flags any deadline or email address no row covers, which is how the proposal due date and the Contracting Officer's address surfaced. It still won't catch everything.

Result

On the FAA solicitation:

  • Whole document, Opus 5.5: 930 rows in under 4 minutes, about $3 in API cost (estimated).
  • Sections C, L and M, Opus 5.5: 388 rows in 2.4 minutes, $1.20 (measured).
  • Sections C, L and M, Sonnet 5.5: 318 rows in 1.3 minutes, $0.46 (measured).
  • Sections C, L and M, Sonnet 5.5 with the table rule: 331 rows in 2 minutes, $0.47 (measured).
  • Sections C, L and M, Haiku 5.5: 331 rows in 1.6 minutes, $0.04 (measured).

The first test cost more than I expected, so I compared cheaper models. Haiku was nearly free but often returned a list's lead-in ("At a minimum, please address the following:") instead of the items under it, missing 32 requirements Opus found. Sonnet matched Opus on every list I checked. Most of the rows it skipped were boilerplate Opus had marked low-confidence anyway, so it left fewer rows to review (95 vs 127). Its real misses were the due date in a table and the Contracting Officer's email. Sonnet is now the default, with a prompt rule for tables and submission details plus the deadline-and-email check. On a second run it captured both the due date and the email word for word. That run skipped the Section M.4 evaluation weights, which Opus and the first Sonnet run both extracted. Results vary from run to run, which is one more reason a person still reads Section M.

I hand-checked two dense pages against the PDF. Every "shall" and "must" was captured, and the extra rows were flagged.

Build time was about 40 minutes of agent-assisted coding, plus seven test runs. It's still in progress: nobody has reviewed the 310 flagged rows yet, it hasn't been tried on a second solicitation, and scanned PDFs (which need OCR) aren't supported.