How soumaditya777/potionlabs-dispatch-gate works
Dispatch Gate Brief Compiler turns factory interviews and register data into a traceable, schema-validated requirements brief. The main workflow loads plant configuration and inputs, extracts interview claims (optionally via an LLM), verifies claims and combines them with deterministic register analysis, then validates and writes the result. The graph includes the principal input, analysis, and assembly stages. Some subsystem links rely on the SOURCE INDEX and README; unsampled implementation details are not inferred.
Main entry points: cli.py Command-line entry · brief.py Verification and assembly · dataset.py Register loader · config.py Plant configuration
Components 14
Inputs and configuration
- Plant configuration
src/gatepass/config.py - Gate register
data/register.json - Interview transcript
data/interviews.json - Output schema
data/output_schema.json
Evidence analysis
- Register loader
src/gatepass/dataset.py - Register analysis
src/gatepass/register.py - Interview grounding
src/gatepass/interviews.py - Claim extraction
src/gatepass/llm.py
Brief compilation
- Command-line entry
src/gatepass/cli.py - Verification and assembly
src/gatepass/brief.py
Validated output
- Schema validation
src/gatepass/schema.py - Compiled brief
output/result.json
Other components
- Operator
- Model providers
Connections 19
- Operator → Command-line entry: runs
README.md - Command-line entry → Plant configuration: loads
src/gatepass/cli.py - Command-line entry → Register loader: loads register
src/gatepass/cli.py - Gate register → Register loader: provides rows
README.md - Register loader → Plant configuration: reads mapping
src/gatepass/dataset.py - Command-line entry → Interview grounding: loads transcript
src/gatepass/cli.py - Interview transcript → Interview grounding: provides utterances
README.md - Command-line entry → Schema validation: loads schema
src/gatepass/cli.py - Output schema → Schema validation: defines rules
README.md - Command-line entry → Verification and assembly: builds brief
src/gatepass/cli.py - Verification and assembly → Claim extraction: extracts claims
src/gatepass/brief.py - Claim extraction → Model providers: requests completion
README.md - Verification and assembly → Register analysis: analyses register
src/gatepass/brief.py - Register analysis → Register loader: analyses movements
src/gatepass/register.py - Register analysis → Plant configuration: uses thresholds
src/gatepass/register.py - Verification and assembly → Interview grounding: verifies citations
src/gatepass/brief.py - Verification and assembly → Plant configuration: assembles plan
src/gatepass/brief.py - Verification and assembly → Schema validation: validates result
src/gatepass/brief.py - Command-line entry → Compiled brief: writes result
src/gatepass/cli.py