# Architecture template: governed reporting and benchmarking pipeline

Version 1.0. MetaModel, a product of Skill Pilot Advisory Sdn Bhd.

## 1. Objective

Replace copy-and-paste reporting with a pipeline in which every figure is calculated in code and can be traced to its source row.

## 2. Data contract (input)

```json
{
  "report_period": "YYYY-MM",
  "market_region": "APAC | GLOBAL",
  "currency": "USD",
  "metrics": [
    {"entity_id": "string", "metric_name": "string", "current_val": 0.0, "prior_val": 0.0}
  ]
}
```

## 3. Rules

1. No model arithmetic. Code calculates all percentages, rankings, and totals before any prompt runs.
2. Source reference. Every claim names an `entity_id` from the validated table.
3. Human sign-off. Output stays in draft until a named owner approves it.

## 4. System prompt for the synthesis agent

> You are an enterprise strategy analyst. Use only the verified JSON dataset below. Write a three-bullet executive summary of the top variance drivers. Do not extrapolate beyond the figures provided. List any missing entity_id records under the heading "Audit exceptions".

## 5. Before you use it

Test the pipeline on a past period with a known result. Compare every figure before you rely on the output.
