Every decision is traceable, auditable, and built for trust.
DIP (Decision Infrastructure Platform) is a deterministic decision system that converts inputs into enforceable decisions with full auditability and explainability.
Input β Rules β Decision β Enforcement β Execution Intent β Audit
- No execution side effects
- No AI-driven decisions
- Fully deterministic
- β Deterministic (same input + rules β same output)
- β No runtime mutation
- β Full audit logging
- β Explainable decisions (trace)
- β No side effects (execution is external)
dip-system/
βββ dip-core/
β βββ engine.js β Decision engine (evaluate)
βββ rules/ β Rule definitions
βββ service.js β Orchestration layer
βββ enforce.js β Enforcement logic
βββ audit.js β Audit write
βββ auditService.js β Audit read + analytics
βββ server.js β API layer
βββ db.js β Supabase client
βββ public/ β Static UI (optional)
evaluate(input, rules){
"status": "ALLOW | BLOCK | REQUIRE_OVERRIDE",
"violations": [],
"reason": "...",
"meta": {
"trace": []
}
}Each rule evaluation is recorded:
{
"rule_id": "no-user-delete",
"when_match": true,
"if_match": true,
"result": "VIOLATION"
}| State | Meaning |
|---|---|
| SKIPPED | Rule not applicable |
| PASSED | Rule checked but not violated |
| VIOLATION | Rule triggered |
Rules are defined as JSON:
{
"id": "no-user-delete",
"when": { "action.type": "delete" },
"if": { "context.role": { "equals": "user" } },
"then": {
"enforcement": "BLOCK",
"message": "Users cannot delete"
}
}whenβ applicabilityifβ violation conditionthen.enforcementβ action
Evaluate a decision and return execution intent.
{
"orgId": "org_1",
"systemId": "repo",
"action": { "type": "delete" },
"context": { "role": "user" }
}{
"success": true,
"requestId": "...",
"execution_intent": {}
}Record execution outcome.
{
"requestId": "...",
"status": "SUCCESS | FAILED",
"result": {},
"error": null
}Fetch recent audit logs.
Fetch a specific audit record.
Aggregated decision intelligence.
{
"success": true,
"data": {
"total_requests": 100,
"status_breakdown": {
"ALLOW": 40,
"BLOCK": 40,
"REQUIRE_OVERRIDE": 20
},
"rule_stats": {
"no-user-delete": {
"violations": 25,
"passes": 10,
"skipped": 65
}
}
}
}Every request logs:
- input
- decision
- execution_input
- result
- status
- error
- timestamp
DIP provides:
- π Trace β Why a decision happened
- π Summary β System-wide patterns
- β No changes to decision logic
- β No execution inside system
- β No API contract changes
- β No side effects
- β Audit logging mandatory
Same input + same rules β same decision
- β Deterministic decision engine
- β Rule enforcement system
- β Audit logging
- β Explainability (trace)
- β
Analytics layer (
/audit/summary)
- Rule heatmaps
- Decision graph visualization
- Risk panels
- Override tracking
Intent is a claim. System evaluation is truth.