← All projects

Python · PDF parsing · SQLite · Hash-chained audit log

County Surplus-List Pipeline with Audit Trail

Technical demonstration: retrieves official county excess-funds lists live, imports them, flags duplicates and missing values, keeps a tamper-evident evidence log, and blocks every case until current funds are verified.

PythonpypdfSQLiteSHA-256ReportLab
pipeline.example.com/casesSample dataCasesSourcesVerifyAudit logReportsImported cases3 official sources · 351 casesAllBlockedCustodian-listedFlaggedSearch parcelParcelJurisdictionReported excessFunds gate5123-004-017County A, CA$18,420.50Blocked: unverified118-221-09County B, NV$41,288.10Blocked: unverified07 112 03 045County C, GA$2,970.00Held: custodian-listed07 114 01 009County C, GA$925.40Held: possible estate5123-009-002County A, CA$7,310.00Blocked: unverifiedSAMPLE-0001Test (synthetic)$10,137.00Verified (test)
Imported cases with flags and gate result
pipeline.example.com/admin/pipelineSample dataRetrieval, import and auditCollecting never decides; the gate decides1Official county pagespublished lists2Retrievaldownload, hash, log source3Parsersper-source layouts3 sources4Case storeduplicates flagged5Funds gateblocked until verifiedStrict6Audit logtamper-evident hash chainIntact
Retrieval, import and audit pipeline
pipeline.example.com/acceptanceSample dataCasesSourcesVerifyAudit logReportsAcceptance resultsDemonstration run on official sourcesLatest runChecks passed32 / 32all passCases imported3513 sourcesCleared by gate0unverifiedRows imported per source136List A30List B174List C11List DChecks by groupFunds gate9AI case analysis6Retrieval and import5Evidence log5Duplicates4
Acceptance results: 32 of 32 checks

Illustrative screens with sample data. Client data is confidential, so none is shown.

Overview

What it is

A working demonstration built for a surplus-funds recovery firm that was evaluating developers. It downloads the excess-funds lists that counties publish, imports them, and records exactly where each row came from. It was built from public records and synthetic test data only, with no client data. It is a technical demonstration, not a delivered client system.

The problem

Why it was needed

County surplus lists are published as PDFs and spreadsheets in different layouts. Teams chase leads that were already paid or transferred, because a list shows the amount at sale, not what is still held, and there is rarely a trail showing who checked what and when.

3official county sources retrieved live
351cases imported, all blocked until funds are verified
32 / 32acceptance checks passed, with limits stated

Features

What We Built

Live retrieval with provenance

Each file is downloaded from the official page and stored under its hash, with the source link, retrieval time and size recorded.

Import without silent merging

Exact duplicates are skipped and logged; the same parcel sold on different dates is flagged on both sides and kept separate.

Missing values stay visible

A blank surplus or case number is flagged as missing and never turned into zero.

Current-funds gate

A case passes only with a custodian, a confirmed held status, a balance, a source link, an evidence hash and a fresh timestamp.

Tamper-evident audit log

Each entry stores the hash of the one before it, so a forged or edited entry is detected.

Heir and age flags

Owner names containing ESTATE are flagged for research without assuming death, and sale dates are placed in age bands.

Evidence-labelled analysis

Facts are marked verified, unverified or unavailable, and a rule-based GO or HOLD conclusion never turns green on missing proof.

Architecture

How It Fits Together

  1. Official county pagespublished PDF lists
  2. Retrievaldownload, hash, record provenance
  3. Parsersper-source layouts
  4. Case storeSQLite, duplicates flagged
  5. Funds gateblocked until verified
  6. Audit log and reportshash chain, CSV, PDF

Retrieval and parsing only collect and describe; a separate gate decides whether a case can move forward, so a published number is never mistaken for money that is still held.

Roadmap

From Idea to Launch

A typical delivery roadmap for a project of this kind.

  1. 1

    Source triage

    1 week
    • List each county source and check what it actually publishes
    • Classify each as machine-readable, staff-assisted or unresolved
    • Agree which sources to automate first
  2. 2

    Connectors

    2-3 weeks
    • Retrieval and parsing for each machine-readable source
    • Row-count checks against the source
    • Change detection between retrievals
  3. 3

    Matching and audit

    1-2 weeks
    • Duplicate and conflict handling
    • Hash-chained evidence log and exports
    • Missing-value flags
  4. 4

    Verification gate

    2 weeks
    • Custodian confirmation workflow for staff
    • Queues for transfers, holds and estates
    • Evidence analysis with a review step
  5. 5

    Sync and launch

    1-2 weeks
    • Push cases and tasks into the client CRM by API
    • Monitoring for broken sources
    • Handover and documentation

Want something like this?

Tell us what it should do and we'll come back with a stack, a scope and a timeline.