
> urban-jellyfish-legalforge-engine@0.4.0 demo:evidence
> node examples/evidence-demo.js

{
  "engine": "LegalForge v4 Evidence-Aware",
  "intent": "eviction_defense",
  "exhibitIndex": [
    {
      "label": "Exhibit A",
      "title": "Receipt proving June rent was paid.",
      "source_file": "june-rent-receipt.txt",
      "type": "payment_proof",
      "summary": "Receipt proving June rent was paid.",
      "dates": [
        "06/01/2026"
      ],
      "needs_manual_review": false
    },
    {
      "label": "Exhibit B",
      "title": "Notice claiming nonpayment of June rent.",
      "source_file": "notice-to-pay.txt",
      "type": "notice",
      "summary": "Notice claiming nonpayment of June rent.",
      "dates": [
        "06/08/2026"
      ],
      "needs_manual_review": false
    }
  ],
  "factLinks": [
    {
      "fact_number": 1,
      "fact": "Tenant paid June rent on June 1, 2026.",
      "best_exhibit": {
        "exhibit_label": "Exhibit A",
        "file_name": "june-rent-receipt.txt",
        "score": 1,
        "reason": "Keyword/context overlap with fact."
      },
      "candidates": [
        {
          "exhibit_label": "Exhibit A",
          "file_name": "june-rent-receipt.txt",
          "score": 1,
          "reason": "Keyword/context overlap with fact."
        },
        {
          "exhibit_label": "Exhibit B",
          "file_name": "notice-to-pay.txt",
          "score": 0.6,
          "reason": "Keyword/context overlap with fact."
        }
      ],
      "support_status": "supported",
      "review_note": "Potentially supported by Exhibit A."
    },
    {
      "fact_number": 2,
      "fact": "Landlord later served a notice alleging June rent was unpaid.",
      "best_exhibit": {
        "exhibit_label": "Exhibit B",
        "file_name": "notice-to-pay.txt",
        "score": 0.5,
        "reason": "Keyword/context overlap with fact."
      },
      "candidates": [
        {
          "exhibit_label": "Exhibit B",
          "file_name": "notice-to-pay.txt",
          "score": 0.5,
          "reason": "Keyword/context overlap with fact."
        },
        {
          "exhibit_label": "Exhibit A",
          "file_name": "june-rent-receipt.txt",
          "score": 0.25,
          "reason": "Keyword/context overlap with fact."
        }
      ],
      "support_status": "supported",
      "review_note": "Potentially supported by Exhibit B."
    }
  ],
  "draftPreview": "SUPERIOR COURT OF THE STATE OF CALIFORNIA\nCOUNTY OF SHASTA\n\n[PLAINTIFF/PETITIONER],\n    Plaintiff/Petitioner,\n\nv.\n\n[DEFENDANT/RESPONDENT],\n    Defendant/Respondent.\n\nCase No.: [CASE NUMBER]\n\nDEFENDANT'S RESPONSE TO UNLAWFUL DETAINER / EVICTION DEFENSE PACKET\n\nDefendant's Response to Unlawful Detainer / Eviction Defense Packet\n\nNOTICE / DRAFTING LIMITATION\nThis draft is generated from user-provided information. It must be reviewed for accuracy, jurisdiction-specific requirements, required forms, filing deadlines, and proof-of-service rules.\n\nI. PURPOSE\nPrimary goal: challenge_or_delay_eviction.\nRecommended packet: eviction_response, tenant_declaration, exhibit_list, proof_of_service, hearing_prep_notes.\nVerification needed: response_deadline, mandatory_court_forms, local_court_rules, fee_waiver_eligibility.\n\nII. FACTS\n1. Tenant paid June rent on June 1, 2026.\n\n2. Landlord later served a notice alleging June rent was unpaid.\n\nIII. EVIDENCE / EXHIBITS\nExhibit A - Receipt proving June rent was paid. (payment_proof)\nExhibit B - Notice claiming nonpayment of June rent. (notice)\n\nEXHIBIT INDEX\nExhibit A: Receipt proving June rent was paid. (payment_proof)\nExhibit B: Notice claiming nonpay"
}
