How omarxhero/tasdiq works
Tasdiq is a telecom-verified fraud decision service for instant payments. A bank submits a transaction to the API; the decision engine verifies the bank policy, gathers CAMARA signals in progressive phases, combines them with behavioral risk, and returns an approve/escalate/decline result with step-up constraints. The API also records decisions and invokes an inline tripwire; separate async endpoints support explanations, bilingual reports, and cluster investigations. The graph reflects documented calls and README-described capabilities; some async wiring and external integrations are documented but not fully shown in the excerpts.
Main entry points: main.py Decision API · decide.py Progressive engine · tools.py Sealed tool belt · nac.py CAMARA client
Components 15
Decision rail
- Decision API
app/main.py - Progressive engine
app/engine/decide.py - Risk scoring
app/engine/weighting.py - CAMARA client
app/signals/nac.py - Runtime config
app/config.py
Policy and audit
- Signed policies
app/policy.py - Dual audit ledger
app/ledger.py - Cluster tripwire
app/tripwire.py
AI investigation
- Async AI agent
app/ai/agent.py - Sealed tool belt
app/ai/tools.py - PII vault
app/ai/tools.py
External services
- Nokia NaC
- Guide-listed model
- Timestamp authority
Other components
- Bank client
Connections 20
- Bank client → Decision API: submits transaction
README.md - Decision API → Progressive engine: calls decision
app/main.py - Progressive engine → Signed policies: verifies bundle
app/engine/decide.py - Progressive engine → CAMARA client: fetches signals
app/engine/decide.py - Progressive engine → Risk scoring: evaluates signals
app/engine/decide.py - Progressive engine → Decision API: returns decision
app/engine/decide.py - Decision API → Bank client: returns outcome
README.md - CAMARA client → Nokia NaC: queries CAMARA
README.md - CAMARA client → Runtime config: reads settings
app/signals/nac.py - Decision API → Dual audit ledger: appends decision
app/main.py - Decision API → Cluster tripwire: records declines
app/main.py - Decision API → Async AI agent: runs async tasks
app/main.py - Decision API → Dual audit ledger: appends agent record
app/main.py - Async AI agent → Sealed tool belt: requests probes
app/ai/agent.py - Sealed tool belt → PII vault: resolves identifiers
app/ai/tools.py - Sealed tool belt → CAMARA client: re-queries CAMARA
app/ai/tools.py - Sealed tool belt → Dual audit ledger: logs investigation
app/ai/tools.py - Async AI agent → Guide-listed model: generates drafts
README.md - Dual audit ledger → Timestamp authority: anchors chain
README.md - Cluster tripwire → Async AI agent: prompts investigation
README.md