Electrical · AI Weekly Report

AI weekly report — structured output, zero fabrication

Vercel AI SDK + Zod schema whitelist — the model is structurally forced to cite real metrics only.

Auto-generated week-over-week trend comparison — the standard input for Monday review meetings.

Generation flow

  1. 1

    Weekly snapshot

    End of week: capture a full snapshot of MC/Punch/PAT/FAT/RFCC (text + metrics only)

  2. 2

    Zod schema constraint

    Whitelist variables map 1:1 with the schema — the model can only fill whitelisted fields

  3. 3

    generateObject call

    Vercel AI SDK structured output — no free-form text allowed

  4. 4

    Week-over-week diff

    Auto-compare to last week's snapshot, generate trend sentences

  5. 5

    Markdown export

    Structured Markdown, ready to paste into email or export to Word

Core capabilities

Zod schema whitelist

The schema lives in code; the model can only reference whitelisted fields — fabrication is physically impossible.

generateObject mode

Vercel AI SDK structured output — the output shape is hard-constrained.

Week-over-week trends

Auto-compares to last week's snapshot, generates sentences like 'MC completion rate +5.2% w/w'.

Snapshot archive

Every week's snapshot archived (text + metrics; attachments via OSS links). Any past week is recoverable.

Fixed template

v4.3 dropped template-pack management — one high-quality template, polished hard.

AI weekly report — structured output, zero fabrication

Real product screenshot · from H588 NORSE WIND project (v4.3)

Whitelist variables (excerpt)

Fields the schema allows the model to reference. Anything outside the whitelist is unreachable.

FieldDescriptionNote
mc.completionRateWeekly MC completion rate (%)number
mc.cleanPassRateWeekly MC clean pass rate (%)number
punch.openCountOpen Punch countnumber
punch.aClassOpenOpen A-class countnumber
rfcc.readyCountRFCC READY subsystem countnumber
rfcc.atRiskCountAT RISK subsystem count (14-day window)number
trend.weekOverWeekWeek-over-week trend textderived