Skip to content

System Architecture

Sinbad Adjuik edited this page Apr 6, 2026 · 1 revision

System Architecture

Core Components

The application is centered around:

  • src/main.py
  • src/validation.py

Main Processing Model

The GUI chooses a workflow and then runs one shared batch pipeline.

Shared concepts:

  • folder discovery
  • pre-flight validation
  • CSV reporting
  • output-only packaging
  • post-processing validation
  • reconciliation reporting

Photo Workflow Path

Photo runs:

  1. discover photo sets
  2. pair images with XML metadata
  3. convert the current asset to TIFF inside an output-side scratch workspace
  4. package TIFF + XML + manifest.ini
  5. clean the scratch workspace

Patent Workflow Path

Patent runs:

  1. discover patent batch directories
  2. validate the shared manifest structure
  3. extract IID and normalized document ID from XML
  4. locate the matching PDF locally or through fallback roots
  5. package PDF + XML + manifest.ini

Output Strategy

The current system is non-mutating:

  • source folders are read only
  • staging output goes to staging_output/
  • production output goes to output/
  • scratch work lives under .work/ inside the active output root

Validation Layer

Validation is workflow-aware and checks:

  • output counts
  • ZIP structure
  • reconciliation totals

User Interface

The GUI has been refreshed to reflect the current system:

  • workflow-first selection
  • folder readiness summary
  • run-settings dialog
  • garnet-and-gold theme

Last updated: April 6, 2026

Clone this wiki locally