This page defines the configuration, JSON state, and schema contracts the automation depends on. Treat these contracts as production interfaces, not optional metadata.
amir2000_config.pyRuntime behavior is driven by Python config blocks and environment overrides. There is no YAML source-of-truth layer.
PATHS - local staging, incoming, archive, and website-root mappings.PUBLISH - remote base path, public URL base, table names, and publish options.MYSQL / FTP_CONFIG - connectivity and credential contract for publish.OLLAMA - local model endpoint, selected model, retries/timeouts.WEBSITE_V2 - mapping to website storage roots and URL behavior.data/| File | Type | Contract role |
|---|---|---|
folder_map.json | object | Folder key to display/title mapping contract. |
location_list.json | array[string] | Location suggestion source for UI and normalization. |
autofix_dict.json | object | Token correction map used in text cleanup. |
spellcheck_exceptions.json | array[string] | Domain-specific allowlist to reduce false fixes. |
new_taxonomy_log.json | array[object] | Append-style record of taxonomy additions. |
used_filenames.json | array[string] | Global filename reservation ledger. |
ui_state.json | object | UI/editor state persistence (layout and session context). |
prefill_qc_last.json | object | Last prefill QC summary and flagged row identifiers. |
docs/review_queue.sql and data/init/review_queue.sql - queue schema contract.docs/photos_info_revamp.sql and data/init/photos_info_revamp.sql - publish mirror schema contract.data/init/*.sql is the bootstrap source used by init_db.py.used_filenames.json as critical state, not disposable cache.