Acme Marketing Architecture

Dynamic — Publish a report, then supersede it on restatement

Dynamic — Publish a report, then supersede it on restatement

Diagram type: Dynamic (C4 supporting diagram) Scope: one report definition run for one period: generation from pinned Gold versions, sign-off, delivery; then a restatement that produces a superseding revision. Audience: Marketing Operations and Finance (approvers), recipients' integration owners, auditors. Structurizr view: Dynamic-PublishAndRestate in structurizr/workspace.dsl

Overview

A published figure must be explainable and reproducible. The report generator reads Gold at pinned Delta versions and records them in a publication manifest (steps 1–3); nothing leaves without a recorded sign-off (steps 4–5); the delivery adapter sends the file over the recipient's contracted channel and records evidence (steps 6–8). When a later reload moves a closed day beyond tolerance, a metrics.restated event triggers re-publication: a new revision with supersedes set, a change summary, fresh sign-off, delivery flagged as a revision; the original stays retrievable (steps 9–14). Reports are never overwritten.

Diagram

C4Dynamic
    title Dynamic diagram - Publish and restate
    Container(orch, "Orchestrator", "Fabric pipelines")
    Container(reportgen, "Report generator", "Fabric notebook, Python")
    ContainerDb(gold, "lh_gold", "Fabric Lakehouse; Files/publications")
    ContainerDb(silver, "lh_silver and control", "publication_log")
    Container(approval, "Approval workflow", "Power Automate, Teams")
    Container(delivery, "Delivery adapter", "Azure Functions")
    System_Ext(recipient, "Report recipients", "SFTP, API, mailbox")
    ContainerDb(state, "Adapter state store", "delivery evidence")
    Container(goldjob, "Gold jobs", "Fabric notebooks")
    Container(act, "Activator", "Fabric Real-Time Intelligence")

    Rel(orch, reportgen, "Run report definition v3 for period P on its cadence", "notebook activity")
    Rel(reportgen, gold, "Read Gold at pinned Delta versions; write the file to Files/publications", "Delta time travel")
    Rel(reportgen, silver, "Write publication manifest: definition v3, period P, Gold versions, status generated", "Delta")
    Rel(orch, approval, "Request sign-off from the named approver", "Power Automate trigger")
    Rel(approval, orch, "Approved by Marketing Operations lead at time T", "Fabric REST")
    Rel(orch, delivery, "Deliver publication 2026-P-v1", "HTTPS")
    Rel(delivery, recipient, "Send over the contracted channel, flagged original", "SFTP or API")
    Rel(delivery, state, "Record delivery evidence (file hash, channel response, time)", "Table Storage")
    Rel(goldjob, gold, "Later: a trailing-window reload moves a closed day; metrics.restated emitted", "Delta")
    Rel(act, orch, "Trigger re-publication for the affected period", "Fabric item action")
    Rel(orch, reportgen, "Regenerate period P as revision v2 with supersedes=v1; v1 retained", "notebook activity")
    Rel(orch, approval, "Request sign-off for the revision with the change summary", "Power Automate trigger")
    Rel(orch, delivery, "Deliver 2026-P-v2 flagged revision", "HTTPS")
    Rel(delivery, recipient, "Send the revision; the original stays retrievable", "SFTP or API")

Legend

Elements

Element Type Technology Responsibility in this flow
Orchestrator Container Fabric pipelines Runs definitions on cadence; routes sign-off; invokes delivery; reacts to restatement triggers
Report generator Container Fabric notebook, Python Pins Gold versions; renders the file; writes the manifest
lh_gold ContainerDb Fabric Lakehouse Star schema at pinned versions; Files/publications
lh_silver and control ContainerDb Fabric Lakehouse publication_log with manifest, approval and supersedes chain
Approval workflow Container Power Automate, Teams Records the decision with who and when
Delivery adapter Container Azure Functions Contracted channel; evidence
Report recipients External system Client or partner system Receives original and revision
Adapter state store ContainerDb Table Storage Delivery evidence
Gold jobs Container Fabric notebooks Emit metrics.restated when a closed day moves
Activator Container Fabric Real-Time Intelligence Turns the event into a re-publication run

Key relationships

See the numbered arrows; container-level relationships are in 02-container.md. Publication manifest and log schema: control tables.

Notable architectural decisions

Assumptions