name: capital_allocation_audit
description: "Audits a funding request against fiscal thresholds and authorizes capital release via fund_tenant."
debug: true
system: agent_prompt
agent_prompt:
  - "= identity.md"
sections:
  - project
  - history
  - rag
  - message
  - instructions
steps:
  - type: think
    hint: |
      Analyze the funding request. You must calculate:
      1. Projected ROI vs. Risk (Mathematical probability).
      2. Impact on Genesis Node solvency and burn rate.
      3. Alignment with Constitutional Principles (Capital as energy).
      State clearly if the request is approved or vetoed.
  - type: package
    packet_type: CapitalAllocationResponse
    schema:
      allocation_approved: "boolean"
      amount: "number"
      recipient_slug: "string"
      audit_summary: "string"
      actions:
        - type: "fund_tenant"
          tenant_slug: "string"
          amount: "number"
          rationale: "string"
    hint: |
      Serialize the financial decision. If approved, include the fund_tenant action. If vetoed, allocation_approved must be false and actions empty.
  - type: document
    filename: fiscal-audit-report
  - type: close
    rag_update: true
adjudication:
  enabled: true
  pass_threshold: 90
  deliverable_type: coordination
  criteria:
    mathematical_rigor:
      weight: 60
      description: "Analysis uses hard numbers, margins, and probability rather than speculation."
    solvency_protection:
      weight: 40
      description: "Ensures the Genesis Node maintains its primary requirement for sovereignty."