{
  "synthetic": true,
  "capability": "margin-trend-review",
  "status": "available",
  "scenario": "Revenue grew in July, but gross profit declined.",
  "sourceTable": {
    "columns": [
      "Period",
      "Revenue",
      "Direct costs",
      "Gross profit",
      "Margin"
    ],
    "rows": [
      [
        "June",
        "$100,000",
        "$60,000",
        "$40,000",
        "40%"
      ],
      [
        "July",
        "$110,000",
        "$71,500",
        "$38,500",
        "35%"
      ]
    ]
  },
  "deterministicRule": "Recompute gross margin by period and flag a movement of 3 percentage points or more.",
  "flaggedFinding": "Margin fell 5 percentage points and gross profit declined $1,500 despite 10% revenue growth.",
  "possibleReasons": "The arithmetic shows deterioration, not the cause. Labor overruns, pricing, materials, callbacks, and job mix all require investigation.",
  "humanReviewQuestions": [
    "Which jobs drove the cost increase?",
    "Did labor hours exceed estimate?",
    "Did price or job mix change?"
  ],
  "operatingDecision": "Review job-level margin and isolate the jobs or cost categories responsible for the decline."
}
