Add docs directory
Browse files- docs/architecture.md +13 -0
docs/architecture.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Architecture
|
| 2 |
+
|
| 3 |
+
## Agent Pipeline
|
| 4 |
+
Inspector → OCR → Editor → Annotator → Validator → Exporter
|
| 5 |
+
|
| 6 |
+
## Data Flow
|
| 7 |
+
Every stage writes a new intermediate file to the job folder.
|
| 8 |
+
The orchestrator manages routing, logging, and error propagation.
|
| 9 |
+
The export agent copies the final validated PDF to the user-selected output folder.
|
| 10 |
+
|
| 11 |
+
## Logging
|
| 12 |
+
Structured JSONL log per job: `<output_dir>/job-<id>/pipeline.jsonl`
|
| 13 |
+
Manifest JSON per job: `<output_dir>/manifest.json`
|