Auto Loan: Origination Through First Payment

A full four-component chain with two Actions

The scenario

Auto Finance Co originates a 60-month, 4.5% APR loan of 25,000 USD to a borrower, disburses it, accrues the first month's interest of 95.89 USD, expects a first scheduled payment of 466.08 USD, and receives it on time.

How FORAY models it

The Arrangement records the loan agreement — parties (F5), effective date (F11), and amount (F7). The loan's mechanical terms (rate, term, monthly payment) are scenario residue in the element's F25. The Accrual computes month-one interest through the formula block; the Anticipation expects the scheduled payment with its date (F27) and probability factor (F28); two Actions record disbursement and the received payment, the latter allocating its amount to the Anticipation it settles.

What to observe in the record

  • The disbursement Action has an empty allocations story — it settles no prior expectation; the payment Action allocates in full with a stated remaining balance of 0.
  • The accounting entry and fiscal period ride in residue: information about the record’s bookkeeping, not Root facts.
  • Document titles ride in residue too — artifact references (F29) are reserved for digest-identified artifacts.

Wire 4.2 record

This record is a teaching example, emitted by the FORAY generator (template auto-loan) — not hand-written. No blockchain anchoring has occurred or is implied; anchor-related fields are placeholders. Parties, amounts, and dates are illustrative. Wire keys are catalog codes (F-codes); the readable names used in the prose above are the implementer register, which never appears in hashed bytes.

{
  "F1": "AUTO_LOAN_2026_Q1_JOHN_DOE",
  "F2": "AUTO_LOAN_2026_Q1_JOHN_DOE",
  "F3": "Auto Finance Co",
  "F7": 25000,
  "F8": "USD",
  "F15": "active",
  "F25": {
    "compliance_flags": [
      "Consumer_Credit",
      "Truth_in_Lending_Act",
      "Reg_Z"
    ]
  },
  "F26": "auto_loan",
  "schema_version": "4.2",
  "timestamp": "2026-01-23T15:00:00Z",
  "arrangements": [
    {
      "F4": "auto_loan",
      "F5": [
        {
          "jurisdiction": "US",
          "name": "Auto Finance Co",
          "role": "lender"
        },
        {
          "jurisdiction": "US",
          "name": "John Doe",
          "role": "borrower"
        }
      ],
      "F7": 25000,
      "F11": "2026-01-23T00:00:00Z",
      "F25": {
        "description": "60-month auto loan at 4.5% APR",
        "interest_rate": 0.045,
        "legal_documents": [
          "Auto Loan Agreement",
          "Truth in Lending Disclosure"
        ],
        "monthly_payment": 466.08,
        "principal_amount": 25000,
        "term_months": 60
      },
      "id": "ARR_AUTO_LOAN_AGREEMENT"
    }
  ],
  "accruals": [
    {
      "F4": "interest_expense",
      "F17": "Calculated",
      "F18": "hash_1a9c4e7f2b5d80361927c4e7a0b3d6f9",
      "F19": {
        "annual_rate": 0.045,
        "days_in_month": 31,
        "principal": 25000
      },
      "F20": 95.89,
      "F22": [
        "ARR_AUTO_LOAN_AGREEMENT"
      ],
      "F25": {
        "accounting_entry": {
          "credit": {
            "account": "2200-Interest Payable",
            "amount": 95.89
          },
          "debit": {
            "account": "7100-Interest Expense",
            "amount": 95.89
          }
        },
        "description": "Interest accrual month 1 at 4.5% APR",
        "fiscal_period": {
          "month": 1,
          "quarter": 1,
          "year": 2026
        }
      },
      "id": "ACC_INTEREST_MONTH_1"
    }
  ],
  "anticipations": [
    {
      "F4": "scheduled_payment",
      "F10": 466.08,
      "F22": [
        "ARR_AUTO_LOAN_AGREEMENT"
      ],
      "F23": [
        "ACC_INTEREST_MONTH_1"
      ],
      "F25": {
        "assumptions": {
          "interest_portion": 95.89,
          "principal_portion": 370.19
        },
        "description": "Expected payment 1: 466.08 USD"
      },
      "F27": "2026-02-23",
      "F28": 0.95,
      "id": "ANT_PAYMENT_1"
    }
  ],
  "actions": [
    {
      "F4": "loan_disbursement",
      "F6": "John Doe",
      "F9": 25000,
      "F12": "2026-01-23T10:00:00Z",
      "F15": "completed",
      "F16": "wire",
      "F22": [
        "ARR_AUTO_LOAN_AGREEMENT"
      ],
      "F23": [],
      "F24": [],
      "F25": {
        "description": "Initial loan disbursement",
        "vehicle": {
          "make": "Honda",
          "model": "Accord",
          "vin": "1HGBH41JXMN109186",
          "year": 2024
        }
      },
      "id": "ACT_LOAN_ORIGINATION"
    },
    {
      "F4": "loan_payment",
      "F6": "John Doe",
      "F9": 466.08,
      "F12": "2026-02-23T09:15:00Z",
      "F15": "completed",
      "F16": "ach",
      "F21": [
        {
          "allocation_type": "full",
          "amount": 466.08,
          "currency": "USD",
          "ref": "ANT_PAYMENT_1",
          "ref_type": "anticipation",
          "remaining_balance": 0
        }
      ],
      "F22": [
        "ARR_AUTO_LOAN_AGREEMENT"
      ],
      "F23": [
        "ACC_INTEREST_MONTH_1"
      ],
      "F24": [
        "ANT_PAYMENT_1"
      ],
      "F25": {
        "breakdown": {
          "interest_applied": 95.89,
          "principal_applied": 370.19
        },
        "description": "First monthly payment received",
        "variance": {
          "actual": 466.08,
          "difference": 0,
          "expected": 466.08
        }
      },
      "id": "ACT_PAYMENT_1"
    }
  ],
  "component_hashes": {
    "accruals": "sha256:PLACEHOLDER",
    "actions": "sha256:PLACEHOLDER",
    "anticipations": "sha256:PLACEHOLDER",
    "arrangements": "sha256:PLACEHOLDER"
  },
  "merkle_root": "sha256:PLACEHOLDER",
  "blockchain_anchor": {
    "anchored_at": null,
    "block_height": null,
    "confirmation_time_ms": null,
    "kaspa_tx_id": null
  }
}

Canonical form — the hashed bytes

The canonical byte form is a single line: F-coded members in ascending numeric order, envelope members in their ruled enumeration, one legal spelling per number. The hash below is computed over exactly the bytes shown — copy the line into any SHA-256 tool to reproduce it.

{"F1":"AUTO_LOAN_2026_Q1_JOHN_DOE","F2":"AUTO_LOAN_2026_Q1_JOHN_DOE","F3":"Auto Finance Co","F7":25000,"F8":"USD","F15":"active","F25":{"compliance_flags":["Consumer_Credit","Truth_in_Lending_Act","Reg_Z"]},"F26":"auto_loan","schema_version":"4.2","timestamp":"2026-01-23T15:00:00Z","arrangements":[{"F4":"auto_loan","F5":[{"jurisdiction":"US","name":"Auto Finance Co","role":"lender"},{"jurisdiction":"US","name":"John Doe","role":"borrower"}],"F7":25000,"F11":"2026-01-23T00:00:00Z","F25":{"description":"60-month auto loan at 4.5% APR","interest_rate":0.045,"legal_documents":["Auto Loan Agreement","Truth in Lending Disclosure"],"monthly_payment":466.08,"principal_amount":25000,"term_months":60},"id":"ARR_AUTO_LOAN_AGREEMENT"}],"accruals":[{"F4":"interest_expense","F17":"Calculated","F18":"hash_1a9c4e7f2b5d80361927c4e7a0b3d6f9","F19":{"annual_rate":0.045,"days_in_month":31,"principal":25000},"F20":95.89,"F22":["ARR_AUTO_LOAN_AGREEMENT"],"F25":{"accounting_entry":{"credit":{"account":"2200-Interest Payable","amount":95.89},"debit":{"account":"7100-Interest Expense","amount":95.89}},"description":"Interest accrual month 1 at 4.5% APR","fiscal_period":{"month":1,"quarter":1,"year":2026}},"id":"ACC_INTEREST_MONTH_1"}],"anticipations":[{"F4":"scheduled_payment","F10":466.08,"F22":["ARR_AUTO_LOAN_AGREEMENT"],"F23":["ACC_INTEREST_MONTH_1"],"F25":{"assumptions":{"interest_portion":95.89,"principal_portion":370.19},"description":"Expected payment 1: 466.08 USD"},"F27":"2026-02-23","F28":0.95,"id":"ANT_PAYMENT_1"}],"actions":[{"F4":"loan_disbursement","F6":"John Doe","F9":25000,"F12":"2026-01-23T10:00:00Z","F15":"completed","F16":"wire","F22":["ARR_AUTO_LOAN_AGREEMENT"],"F23":[],"F24":[],"F25":{"description":"Initial loan disbursement","vehicle":{"make":"Honda","model":"Accord","vin":"1HGBH41JXMN109186","year":2024}},"id":"ACT_LOAN_ORIGINATION"},{"F4":"loan_payment","F6":"John Doe","F9":466.08,"F12":"2026-02-23T09:15:00Z","F15":"completed","F16":"ach","F21":[{"allocation_type":"full","amount":466.08,"currency":"USD","ref":"ANT_PAYMENT_1","ref_type":"anticipation","remaining_balance":0}],"F22":["ARR_AUTO_LOAN_AGREEMENT"],"F23":["ACC_INTEREST_MONTH_1"],"F24":["ANT_PAYMENT_1"],"F25":{"breakdown":{"interest_applied":95.89,"principal_applied":370.19},"description":"First monthly payment received","variance":{"actual":466.08,"difference":0,"expected":466.08}},"id":"ACT_PAYMENT_1"}],"component_hashes":{"accruals":"sha256:PLACEHOLDER","actions":"sha256:PLACEHOLDER","anticipations":"sha256:PLACEHOLDER","arrangements":"sha256:PLACEHOLDER"},"merkle_root":"sha256:PLACEHOLDER","blockchain_anchor":{"anchored_at":null,"block_height":null,"confirmation_time_ms":null,"kaspa_tx_id":null}}

Canonical-bytes SHA-256: a5bb63f076cfcb4cd3bd902ff2d51214e68fe12ef8121b9ba04bdd93febaab17

Validated against the live validator (POST /api/validate-foray): 0 errors, 0 warnings.