How jairogelpi/erp_skills works
ERP Agent OS is a control plane for AI agents that propose ERP operations: deterministic skill contracts, validation, policy, approval and runtime checks govern execution, followed by independent verification and audit evidence. The repository also includes a comparative A/B/C demo and a synthetic-benchmark research workflow. The principal workflow follows the README; source excerpts confirm selected demo, retrieval, handler and provider details. Unsampled implementation links are omitted or marked unverified rather than inferred as direct calls.
Main entry points: runtime.py Deterministic Runtime · policy.py Policy Decision · handlers.py Skill Handlers · demo_service.py Demo Service
Components 24
Request Interpretation
- Language Interpretation
src/erp_agent_os/llm_client.py - Skill Retrieval
src/erp_agent_os/retrieval.py - Skill Contracts
src/erp_agent_os/catalog.py
Governance Runtime
- Schema Validation
src/erp_agent_os/validation.py - Policy Decision
src/erp_agent_os/policy.py - Human Approval
src/erp_agent_os/approval.py - Deterministic Runtime
src/erp_agent_os/runtime.py - Postcondition Checks
src/erp_agent_os/postconditions.py - Audit Evidence
src/erp_agent_os/audit.py
ERP Execution
- Skill Handlers
src/erp_agent_os/handlers.py - Fake ERP Adapter
src/erp_agent_os/adapters.py - Odoo Integration
src/erp_agent_os/odoo_client.py
Research Evaluation
- Benchmark Dataset
src/erp_agent_os/dataset.py - Benchmark Generation
src/erp_agent_os/bench_generator.py - Experiment Runner
src/erp_agent_os/experiment_v2_1.py - Research Metrics
src/erp_agent_os/metrics.py
Comparative Demo
- Demo Service
src/erp_agent_os/demo_service.py - Demo API Client
demo-ui/src/api/client.ts - Demo Interface
demo-ui/src/App.tsx - Evidence Panels
demo-ui/src/components/EvidencePanel.tsx - Demo Data Types
demo-ui/src/types/demo.ts
Other components
- ERP User
- Approver
- LLM Provider
Connections 24
- ERP User → Language Interpretation: submits request
README.md - Language Interpretation → Skill Retrieval: proposes intent
README.md - Skill Retrieval → Skill Contracts: selects skill
README.md - Skill Contracts → Schema Validation: supplies contract
README.md - Schema Validation → Policy Decision: validated arguments
README.md - Policy Decision → Human Approval: requires approval
README.md - Approver → Human Approval: grants approval
README.md - Policy Decision → Deterministic Runtime: authorizes action
README.md - Human Approval → Deterministic Runtime: permits execution
README.md - Deterministic Runtime → Skill Handlers: dispatches handler
README.md - Skill Handlers → Fake ERP Adapter: reads and writes
src/erp_agent_os/handlers.py - Skill Handlers → Odoo Integration: optional integration
- Deterministic Runtime → Postcondition Checks: verifies result
README.md - Postcondition Checks → Audit Evidence: records evidence
README.md - LLM Provider → Language Interpretation: provides proposals
- Benchmark Generation → Benchmark Dataset: generates cases
src/erp_agent_os/bench_generator.py - Experiment Runner → Benchmark Dataset: consumes cases
- Experiment Runner → Research Metrics: evaluates runs
- Demo Interface → Demo API Client: requests demo data
demo-ui/src/App.tsx - Demo API Client → Demo Service: calls demo endpoints
README.md - Demo Service → Fake ERP Adapter: runs comparative demo
src/erp_agent_os/demo_service.py - Demo Service → Evidence Panels: serves evidence
- Demo API Client → Demo Data Types: uses response types
demo-ui/src/api/client.ts - Evidence Panels → Demo Data Types: renders evidence data
demo-ui/src/components/EvidencePanel.tsx