How ruthvikgoud16/cube-round3-pod works
This repository integrates five commerce-stage agents into a single evidence-backed unit workflow. A case enters the orchestration API; the orchestrator applies routing, invokes Receiving, Prep, Pack, Returns and Recovery as applicable, validates and stores each evidence record, then rolls the evidence chain into workflow state and a final outcome. Agents share a contract and may run in-process or over HTTP. Receiving has a richer observation-and-policy implementation; the other sampled stage agents are organiser stubs. The README documents stage order and orchestration ownership; some internal orchestration and agent details were not sampled.
Main entry points: records.py Evidence records · orchestrator.py Workflow engine · clients.py Agent clients · app.py Receiving agent
Components 23
Workflow entry
- Workflow API
orchestration/api.py
Orchestration
- Workflow engine
orchestration/orchestrator.py - Agent clients
orchestration/clients.py - Demo overrides
orchestration/demo_overrides.py - Workflow evidence store
orchestration/store.py - Outcome rollup
orchestration/rollup.py
Commerce stages
- Receiving agent
agents/receiving/app.py - Image observer
agents/receiving/observer.py - Receiving policy
agents/receiving/policy.py - Image quality gate
agents/receiving/quality_gate.py - Observation schema
agents/receiving/schema.py - Shot selection
agents/receiving/shots.py - Prep agent
agents/prep/app.py - Pack agent
agents/pack/app.py - Returns agent
agents/returns/app.py - Recovery agent
agents/recovery/app.py
Shared contracts
- Agent HTTP server
shared/utils/server.py - Evidence records
shared/utils/records.py - Contract validation
shared/utils/schema.py - Evidence hashing
shared/utils/hashing.py - Sample data
shared/utils/sample_data.py - Stub helpers
shared/utils/stubs.py
Other components
- Case initiator
Connections 33
- Case initiator → Workflow API: submits case
README.md - Workflow API → Workflow engine: starts workflow
orchestration/api.py - Workflow engine → Agent clients: dispatches agent
orchestration/orchestrator.py - Workflow engine → Demo overrides: checks override
orchestration/orchestrator.py - Workflow engine → Workflow evidence store: persists state
orchestration/orchestrator.py - Workflow engine → Outcome rollup: rolls up outcome
orchestration/orchestrator.py - Agent clients → Receiving agent: invokes stage
README.md - Agent clients → Prep agent: invokes stage
README.md - Agent clients → Pack agent: invokes stage
README.md - Agent clients → Returns agent: invokes stage
README.md - Agent clients → Recovery agent: invokes stage
README.md - Receiving agent → Image observer: observes images
agents/receiving/app.py - Receiving agent → Receiving policy: evaluates checks
agents/receiving/app.py - Receiving agent → Image quality gate: screens frames
agents/receiving/app.py - Image observer → Observation schema: validates observation
agents/receiving/observer.py - Receiving policy → Shot selection: uses shot rules
agents/receiving/policy.py - Receiving agent → Evidence records: builds evidence
agents/receiving/app.py - Prep agent → Evidence records: builds evidence
agents/prep/app.py - Pack agent → Evidence records: builds evidence
agents/pack/app.py - Returns agent → Evidence records: builds evidence
agents/returns/app.py - Recovery agent → Evidence records: builds evidence
agents/recovery/app.py - Workflow engine → Contract validation: validates output
orchestration/orchestrator.py - Evidence records → Evidence hashing: seals records
shared/utils/records.py - Agent HTTP server → Contract validation: checks input
shared/utils/server.py - Agent HTTP server → Evidence records: returns pending output
shared/utils/server.py - Prep agent → Sample data: reads sample row
agents/prep/app.py - Pack agent → Sample data: reads sample data
agents/pack/app.py - Returns agent → Sample data: reads sample data
agents/returns/app.py - Recovery agent → Sample data: reads fee data
agents/recovery/app.py - Prep agent → Stub helpers: uses stub helpers
agents/prep/app.py - Pack agent → Stub helpers: uses stub helpers
agents/pack/app.py - Returns agent → Stub helpers: uses stub helpers
agents/returns/app.py - Recovery agent → Stub helpers: uses stub helpers
agents/recovery/app.py