How santosh-sankranthi/gic works
GIC is a FEEL/DMN business-rules engine with a CLI, HTTP-backed interactive studio, WASM/TypeScript runtime, formal verification, and agent-facing MCP tools. The main workflow is author rules, parse and compile them to executable IR, verify them, then evaluate decisions and inspect traces. The studio also supports AI-assisted drafting and document ingestion, while project workspaces and DMN import/export support adjacent workflows. Edges use README statements and the supplied source index/excerpts; unsampled implementation details are not assumed.
Main entry points: main.go CLI · service.go HTTP API · engine.go Engine facade · mcp.go MCP tools
Components 26
Rule authoring
- DSL parser
internal/dsl/dsl.go - Rule model
internal/model/model.go - AI rule ingestion
internal/service/ingest.go
Compile and execute
- Compiler
internal/compiler/compiler.go - Executable IR
internal/ir/ir.go - Engine facade
internal/engine/engine.go - Decision VM
internal/vm/vm.go - Model loader
internal/loader/loader.go
Analysis and inspection
- Formal verifier
internal/verify/verify.go - SMT prover
internal/smt/smt.go - Claim checker
internal/check/check.go - DRG graph
internal/graph/graph.go - Execution explain
internal/explain/explain.go
User interfaces
- CLI
cmd/feelc/main.go - HTTP API
internal/service/service.go - Interactive studio
internal/service/web/app.js - MCP tools
internal/mcp/mcp.go - WASM runtime
cmd/feelc-wasm/main_wasm.go - TypeScript engine
packages/engine/src/engine.ts
Projects and integrations
- LLM providers
internal/genai/genai.go - Project workspace
internal/project/project.go - DMN interchange
internal/dmnxml/import.go
Other components
- Rule author
- Studio user
- MCP agent
- LLM service
Connections 39
- Rule author → CLI: authors rules
README.md - CLI → DSL parser: parses rules
cmd/feelc/main.go - DSL parser → Rule model: produces model
internal/dsl/dsl.go - Rule model → Compiler: compiles model
internal/compiler/compiler.go - Compiler → Executable IR: lowers to IR
internal/compiler/compiler.go - Engine facade → DSL parser: parses source
internal/engine/engine.go - Engine facade → Compiler: compiles model
internal/engine/engine.go - Engine facade → Decision VM: evaluates decisions
internal/engine/engine.go - Model loader → DSL parser: parses rules
internal/loader/loader.go - Model loader → Compiler: compiles model
internal/loader/loader.go - Model loader → Formal verifier: verifies model
internal/loader/loader.go - Formal verifier → SMT prover: proves properties
internal/verify/verify.go - CLI → Formal verifier: verifies rules
README.md - CLI → Engine facade: runs decision
README.md - CLI → HTTP API: starts server
README.md - HTTP API → Engine facade: evaluates request
internal/service/service.go - HTTP API → Formal verifier: verifies request
internal/service/service.go - HTTP API → DRG graph: builds graph
README.md - HTTP API → Claim checker: checks claims
internal/service/service.go - HTTP API → Execution explain: explains result
internal/service/service.go - Studio user → Interactive studio: uses studio
README.md - Interactive studio → HTTP API: calls API
- HTTP API → AI rule ingestion: handles ingestion
README.md - AI rule ingestion → LLM providers: requests drafting
internal/service/ingest.go - AI rule ingestion → Formal verifier: verifies draft
internal/service/ingest.go - AI rule ingestion → Claim checker: checks claims
internal/service/ingest.go - LLM providers → LLM service: calls provider
README.md - CLI → MCP tools: starts MCP
README.md - MCP agent → MCP tools: uses tools
README.md - MCP tools → Engine facade: runs decisions
internal/mcp/mcp.go - MCP tools → Formal verifier: verifies models
internal/mcp/mcp.go - MCP tools → DRG graph: builds graph
internal/mcp/mcp.go - MCP tools → Claim checker: checks claims
internal/mcp/mcp.go - CLI → DMN interchange: imports DMN
cmd/feelc/main.go - CLI → Project workspace: manages workspace
cmd/feelc/main.go - Project workspace → Model loader: loads modules
internal/project/project.go - WASM runtime → Engine facade: runs engine
cmd/feelc-wasm/main_wasm.go - WASM runtime → DRG graph: generates graph
cmd/feelc-wasm/main_wasm.go - TypeScript engine → WASM runtime: loads runtime
packages/engine/src/engine.ts