Skip to main content
Loading navigation

Build a Procurement Bidder Credential Expiry and Watchlist Auditor — implementation

Prompt source

implementation109 lines11 sectionsNo variables1 code block
## Build
Cross-reference public tender award records in OCDS format against supplier registries and watchlists. Flag expired vendor licenses and screening hits before final procurement sign-off.

## User
Public procurement integrity officer

## Workflow
1. Ingest public procurement tender and award packages formatted according to OCDS release schema specs.
2. Extract winning bidder parties, identifiers, and associated licensing credentials.
3. Check bidder tax and operational credentials against expiry schedules using local Frictionless metadata.
4. Screen bidders against FollowTheMoney watchlists and assemble an integrity audit sign-off card.

## Interface
Dashboard showing tender award cards, credential expiry alerts, watchlist match badges, and audit export buttons.

## Data
Generate 25 synthetic OCDS release packages combined with mock supplier credential registers.
Starter examples below are synthetic. They are not downloaded records.

## Source
[Open Contracting Data Standard](https://standard.open-contracting.org/latest/en/schema/reference/)
Adheres to the Open Contracting Data Standard release schema for parties, awards, and tender blocks.

## Tools
crewai, pydantic, fastapi.
CrewAI coordinates distinct specialist agent personas for schema extraction, credential audit, and sanctions triage.
Hosted generalist LLM for multi-agent reasoning over procurement tender data.

## Deliverables
Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.

## Acceptance
- Extracts party and award blocks from valid OCDS JSON releases.
- Detects supplier credential expiration against the procurement award date.
- Generates an immutable audit sign-off artifact recording credential validity and watchlist status.

## Starter Examples
```json
[
  {
    "input": {
      "ocid": "ocds-213kz-0091",
      "release_id": "REL-9102",
      "date": "2024-04-10T10:00:00Z",
      "tag": [
        "award"
      ],
      "awards": [
        {
          "id": "AWD-1",
          "suppliers": [
            {
              "id": "SUP-882",
              "name": "Borealis Infrastructure Corp"
            }
          ]
        }
      ],
      "supplier_registry": {
        "SUP-882": {
          "tax_clearance_expiry": "2024-03-01",
          "operating_license_expiry": "2025-01-01",
          "watchlist_hit": false
        }
      }
    },
    "expected_output": {
      "ocid": "ocds-213kz-0091",
      "award_id": "AWD-1",
      "supplier_name": "Borealis Infrastructure Corp",
      "compliance_verdict": "NON_COMPLIANT",
      "findings": [
        "Tax clearance certificate expired prior to award date (expired 2024-03-01)."
      ],
      "integrity_sign_off": "BLOCKED_PENDING_RECERTIFICATION"
    }
  },
  {
    "input": {
      "ocid": "ocds-213kz-0092",
      "release_id": "REL-9103",
      "date": "2024-04-12T14:00:00Z",
      "tag": [
        "award"
      ],
      "awards": [
        {
          "id": "AWD-2",
          "suppliers": [
            {
              "id": "SUP-101",
              "name": "Vanguard Public Works Ltd"
            }
          ]
        }
      ],
      "supplier_registry": {
        "SUP-101": {
          "tax_clearance_expiry": "2024-12-31",
          "operating_license_expiry": "2025-06-30",
          "watchlist_hit": false
        }
      }
    },
    "expected_output": {
      "ocid": "ocds-213kz-0092",
      "award_id": "AWD-2",
      "supplier_name": "Vanguard Public Works Ltd",
      "compliance_verdict": "COMPLIANT",
      "findings": [],
      "integrity_sign_off": "APPROVED"
    }
  }
]
```

## Safety
Operates as a pre-award administrative audit pipeline; does not disburse public funds or bind procurement contracts.
Use mock external writes. Require human review before any real deployment.