Mechanism Design for AI Token Allocation
A dynamic, incentive-compatible allocation protocol operating across multiple AI accounts. Replaces static priority scoring with reputation-driven budgets, cross-account deduplication, and formally verified invariants.
Current token allocation relies on static priority scoring that ignores feedback, value translation, and cross-account dynamics. Three fundamental failure modes emerge.
TokenGov adapts classical mechanism design to a non-monetary, repeated-game setting where AI agents compete for token budgets.
Three Elixir structs form the backbone: accounts model provider capacity, reputation tracks agent performance, and decisions record per-period allocations.
| Module | Description |
|---|---|
| TokenAccount | Provider account record — quota, owner, efficiency prior. |
| ReputationLedger | Agent reputation score, history, and capability envelope. |
| AllocationDecision | Per-period allocation record with yoneme registry and budget map. |
| TokenGov.PIIVault | Tokenization and PII classification — raw PAN/PII never reach AI agents. |
| TokenGov.AMLMonitor | CTR/structuring/velocity rules, SAR SLA, IVMS-101 Travel Rule. |
| TokenGov.HumanReviewQueue | Mandatory HITL gate with SLA tracking for AML and adverse decisions. |
| TokenGov.DataRetentionEngine | Policy-driven retention: 6yr (FINRA), 5yr (BSA), 3yr (SEC), 12mo (PCI). |
| TokenGov.RegulatoryExportAPI | Search/retrieve records for regulator production with HMAC integrity verification. |
| TokenGov.NormfallAlert | Regulatory norm monitor — tracks struck/active norms, surfaces normfall conditions before advice synthesis. Phase 5 |
%TokenAccount{ id: account_id, provider: :anthropic | :openai, owner: :personal | :legalengine, quota_remaining: non_neg_integer(), efficiency_prior: float() }
%ReputationLedger{ agent_id: agent_id, score: float(), # r ∈ [0, 1] history: [%TaskOutcome{}], capability_envelope: %CapabilityEnvelope{} }
%AllocationDecision{ period: period_id, budgets: %{agent_id => budget}, yoneme_registry: %{task_hash => account_id}, total_allocated: non_neg_integer() }
Six phases per allocation period. Each step feeds forward into the next, creating a closed-loop feedback system.
TokenGov unifies four separate AI accounts under a single allocation protocol, eliminating silos and enabling optimal resource distribution.
| Claude Max 20× | OpenAI Codex | |
|---|---|---|
| Personal | personal_claude | personal_codex |
| LegalEngine | legalengine_claude | legalengine_codex |
Eight invariants formally stated in Lean 4 and checked against the Elixir implementation. Together they guarantee safety, liveness, and normative integrity of the allocation protocol.
All invariants stated in Lean 4 and checked against the Elixir implementation.
6 compliance modules built into TokenGov's governance layer. 388 tests total. Covers BSA/AML, GDPR, PII protection, human-in-the-loop controls, regulatory production, and normative integrity monitoring.
TokenGov monitors for divergence between its internal deontic model and the external regulatory corpus. When a norm that was active in the model is suspended or struck externally — a normfall condition — synthesis is halted before any advice proceeds.
| Norm ID | Status | Severity |
|---|---|---|
| DOL_FIDUCIARY_RULE_2024 | struck | critical |
| SEC_AI_GOVERNANCE_2026 | active | high |
| FINRA_AGENTIC_AI_2026 | active | high |
check(domain)
check_all()
norm_status(norm_id)
authorise/2 time. If struck norms are active in the scope's domains, synthesis is halted before it begins.licensed_entity — firm accepting fiduciary responsibilityauthorised_action_set — explicit autonomous action listescalation_contact — email/webhook for haltsjurisdiction — governing regulatory regimenormfall_domains — domains to monitorliability_acceptance_hash — SHA-256 of signed documentcheck_normfall/1 calls TokenGov.NormfallAlert.check_all/0 at every authorise/2 invocation.
DOL_FIDUCIARY_RULE_2024 until the deontic model is updated. The stack does not silently produce non-compliant advice.# Check before advice synthesis in retirement domain case TokenGov.NormfallAlert.check("retirement_advice") do {:ok, :no_normfall} -> proceed_with_synthesis() {:halt, :normfall_detected, alerts} -> surface_normfall_alert(alerts) # DOL_FIDUCIARY_RULE_2024 struck 2026-03-18 — halt synthesis end
Coined terms for concepts that don't have standard names. Each captures a precise operational meaning within the TokenGov protocol.
TokenGov is one layer in a formally verified AI governance architecture. Each system handles a distinct concern.