How jeevanreddy29/cube-round3-pod works
This repository integrates five commerce-stage agents into a single evidence-backed workflow. A client submits a case through the workflow API or runner; the orchestrator routes applicable stages, supplies prior evidence, validates and records outputs, handles retries and overrides, then derives workflow status and a final commerce outcome. Agents can run in-process or over HTTP. The graph preserves each distinct stage rather than implying agents call one another. Source excerpts are incomplete, so only documented or indexed relationships are shown.
Main entry points: orchestrator.py Workflow orchestrator · clients.py Agent clients · receiving/app.py Receiving · prep/app.py Prep
Components 20
Workflow entry
- Workflow API
orchestration/api.py - Workflow runner
orchestration/run.py
Orchestration
- Workflow orchestrator
orchestration/orchestrator.py - Agent clients
orchestration/clients.py - Outcome rollup
orchestration/rollup.py
Commerce stages
Evidence contracts
- Sample data
shared/utils/sample_data.py - Stub helpers
shared/utils/stubs.py - Evidence records
shared/utils/records.py - Schema validation
shared/utils/schema.py - Agent HTTP server
shared/utils/server.py
Workflow state
- State and evidence store
orchestration/store.py - Workflow state
- Evidence records
- Final outcome
Other components
- Workflow caller
Connections 35
- Workflow caller → Workflow API: submits case
README.md - Workflow caller → Workflow runner: runs case
README.md - Workflow API → Workflow orchestrator: starts workflow
orchestration/api.py - Workflow runner → Workflow orchestrator: runs workflow
orchestration/run.py - Workflow API → State and evidence store: loads and saves
orchestration/api.py - Workflow orchestrator → Agent clients: dispatches stages
orchestration/orchestrator.py - Agent clients → Receiving: invokes agent
README.md - Agent clients → Prep: invokes agent
README.md - Agent clients → Pack: invokes agent
README.md - Agent clients → Returns: invokes agent
README.md - Agent clients → Recovery: invokes agent
README.md - Workflow orchestrator → Schema validation: validates output
orchestration/orchestrator.py - Workflow orchestrator → State and evidence store: reads and writes
orchestration/orchestrator.py - Workflow orchestrator → Outcome rollup: derives outcome
orchestration/orchestrator.py - Workflow orchestrator → Workflow state: updates state
README.md - Workflow orchestrator → Evidence records: records evidence
README.md - Workflow orchestrator → Final outcome: derives outcome
README.md - Receiving → Evidence records: builds evidence
agents/receiving/app.py - Prep → Evidence records: builds evidence
agents/prep/app.py - Pack → Evidence records: builds evidence
agents/pack/app.py - Returns → Evidence records: builds evidence
agents/returns/app.py - Recovery → Evidence records: builds evidence
agents/recovery/app.py - Receiving → Sample data: reads sample rows
agents/receiving/app.py - Prep → Sample data: reads sample rows
agents/prep/app.py - Pack → Sample data: reads sample rows
agents/pack/app.py - Recovery → Sample data: reads fee lines
agents/recovery/app.py - Receiving → Stub helpers: uses stub helpers
agents/receiving/app.py - Prep → Stub helpers: uses stub helpers
agents/prep/app.py - Pack → Stub helpers: uses stub helpers
agents/pack/app.py - Recovery → Stub helpers: uses stub helpers
agents/recovery/app.py - Receiving → Agent HTTP server: exposes endpoints
agents/receiving/app.py - Prep → Agent HTTP server: exposes endpoints
agents/prep/app.py - Pack → Agent HTTP server: exposes endpoints
agents/pack/app.py - Returns → Agent HTTP server: exposes endpoints
agents/returns/app.py - Recovery → Agent HTTP server: exposes endpoints
agents/recovery/app.py