# AAAS ORDIN 278/2005 — historical AVAS firms — handoff

State at 2026-05-11:
- `aaas.firme`: 11 firms, all `aaas_status='active_holding'` (current state
  shareholdings from the live portfolio page).
- The Ordin 278/2005 historical list (~500-800 firms managed by AAAS
  predecessor AVAS/APAPS) is NOT on aaas.gov.ro.

## Why deferred

- Source uncertainty: the PDF needs to be located via Monitorul Oficial or
  via Google scholar searches; current aaas.gov.ro nav doesn't expose it.
- Schema implication: would add new `aaas_status='historical_avas'` enum
  value (text column, no DDL needed) — but the PR to add it didn't fit in
  budget without first locating the actual PDF.

## Recommended approach (~3-4h)

1. **Locate PDF**: search
   `site:monitorul-oficial.ro "ORDIN 278/2005" AVAS lista societati`
   or try `legex.ro`, `lege5.ro`, `legislatie.just.ro` searches.
2. **Extract**: `pdftotext -layout` then regex
   `^(\d+\.\s+)?([A-ZĂÂÎȘȚ"' \-]+ (S\.?A|S\.?R\.?L\.?))\s+(\d{6,9})$`
   for name + CUI rows.
3. **Fuzzy-match to firms.entities**: use
   `firms.normalize_company_name` + `pg_trgm` similarity ≥ 0.9 to
   resolve names → CUIs where the PDF lacks them.
4. **Insert** with `aaas_status='historical_avas'` (text value, no schema
   migration).
5. **Verify**: union with current 11 active firms; expected total 500-800.

## Defer reason

Source location uncertain, work could easily blow past 4h if the PDF
turns out to be image-only (would need OCR). Lower ROI vs. fixing the
WSP cron (which was completely broken).
