{
  "nbformat": 4,
  "nbformat_minor": 5,
  "metadata": {
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "language_info": {
      "name": "python",
      "version": "3.13.0"
    },
    "blog_metadata": {
      "topic": "What Microsoft’s New Copilot Pages Features Mean for Decision Workflows",
      "slug": "what-microsoft-s-new-copilot-pages-features-mean-for-decisio",
      "generated_by": "LinkedIn Post Generator + Azure OpenAI",
      "generated_at": "2026-11-19T20:35:14.896Z"
    }
  },
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "# What Microsoft’s New Copilot Pages Features Mean for Decision Workflows\n",
        "\n",
        "This notebook turns the blog post into a hands-on validation workbook. It focuses on the core claim: Copilot Pages should be treated as decision infrastructure, not just drafting convenience, because shared AI artifacts can quickly gain social authority before evidence and ownership are clear.\n",
        "\n",
        "The exercises below model decision records, readiness scoring, action extraction, and audit trails so you can test governance patterns such as named owners, evidence capture, and a three-state approval model."
      ]
    },
    {
      "cell_type": "code",
      "metadata": {},
      "source": [
        "%pip install pandas networkx matplotlib"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "metadata": {},
      "source": [
        "from dataclasses import dataclass, asdict\n",
        "from datetime import datetime, timedelta, timezone\n",
        "import json\n",
        "import pandas as pd\n",
        "import networkx as nx\n",
        "import matplotlib.pyplot as plt"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Workflow map: from prompt to audit trail\n",
        "\n",
        "The blog argues that Copilot Pages changes workflow design because generated content lands directly in a shared work surface. This example recreates the decision flow as a graph so you can inspect the required stages and see where governance gaps appear.\n",
        "\n",
        "Key idea: if a team skips evidence capture or owner assignment, the artifact may look collaborative but still fail as a decision workflow."
      ]
    },
    {
      "cell_type": "code",
      "metadata": {},
      "source": [
        "steps = [\n",
        "    \"Copilot Pages prompt\",\n",
        "    \"Shared page draft\",\n",
        "    \"Evidence captured\",\n",
        "    \"Decision options compared\",\n",
        "    \"Owner assigned\",\n",
        "    \"Action items synced\",\n",
        "    \"Decision workflow audit trail\",\n",
        "]\n",
        "\n",
        "edges = list(zip(steps[:-1], steps[1:]))\n",
        "G = nx.DiGraph()\n",
        "G.add_nodes_from(steps)\n",
        "G.add_edges_from(edges)\n",
        "\n",
        "print(\"Workflow steps:\")\n",
        "for i, step in enumerate(steps, start=1):\n",
        "    print(f\"{i}. {step}\")\n",
        "\n",
        "critical_controls = {\"Evidence captured\", \"Owner assigned\"}\n",
        "missing_controls = [s for s in critical_controls if s not in G.nodes]\n",
        "print(\"\\nCritical controls present:\", len(missing_controls) == 0)\n",
        "\n",
        "plt.figure(figsize=(12, 3))\n",
        "pos = {step: (i, 0) for i, step in enumerate(steps)}\n",
        "node_colors = [\"#ffcc80\" if s in critical_controls else \"#90caf9\" for s in steps]\n",
        "nx.draw(G, pos, with_labels=True, node_color=node_colors, node_size=3500, arrows=True, font_size=9)\n",
        "plt.title(\"Copilot Pages Decision Workflow\")\n",
        "plt.axis(\"off\")\n",
        "plt.show()"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Model a decision record as structured data\n",
        "\n",
        "A central theme in the post is that shared AI content needs explicit ownership and status. This example creates a structured decision record so the page behaves more like governed workflow state than informal text.\n",
        "\n",
        "You can adapt the fields to match your own operating model, such as adding provenance, reviewer, or escalation metadata."
      ]
    },
    {
      "cell_type": "code",
      "metadata": {},
      "source": [
        "from dataclasses import dataclass, asdict\n",
        "from datetime import datetime, timezone\n",
        "import json\n",
        "\n",
        "@dataclass\n",
        "class DecisionRecord:\n",
        "    page_id: str\n",
        "    topic: str\n",
        "    owner: str\n",
        "    status: str\n",
        "    rationale: str\n",
        "    updated_utc: str\n",
        "\n",
        "record = DecisionRecord(\n",
        "    page_id=\"page-142\",\n",
        "    topic=\"Approve Q4 pricing change\",\n",
        "    owner=\"alex@contoso.com\",\n",
        "    status=\"Needs Review\",\n",
        "    rationale=\"Copilot summarized customer impact and margin tradeoffs.\",\n",
        "    updated_utc=datetime.now(timezone.utc).isoformat()\n",
        ")\n",
        "\n",
        "print(json.dumps(asdict(record), indent=2))"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Score decision readiness from workflow signals\n",
        "\n",
        "The post warns that visibility is not approval. This example converts that idea into a simple readiness score using signals like sources, owner, due date, and risks.\n",
        "\n",
        "Use this pattern to test whether your team is promoting AI-generated content too early into operational use."
      ]
    },
    {
      "cell_type": "code",
      "metadata": {},
      "source": [
        "signals = {\n",
        "    \"has_summary\": True,\n",
        "    \"has_sources\": True,\n",
        "    \"has_owner\": True,\n",
        "    \"has_due_date\": False,\n",
        "    \"has_risks\": True,\n",
        "}\n",
        "\n",
        "weights = {\n",
        "    \"has_summary\": 20,\n",
        "    \"has_sources\": 25,\n",
        "    \"has_owner\": 20,\n",
        "    \"has_due_date\": 15,\n",
        "    \"has_risks\": 20,\n",
        "}\n",
        "\n",
        "score = sum(weights[k] for k, v in signals.items() if v)\n",
        "status = \"Ready\" if score >= 80 else \"Draft\"\n",
        "\n",
        "print({\"readiness_score\": score, \"workflow_status\": status})"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Convert a Copilot-style page into action items\n",
        "\n",
        "The blog’s workflow sequence ends with action items synced and an audit trail. This example takes a page-like structure and turns it into executable task lines, making the transition from discussion artifact to operational follow-through explicit.\n",
        "\n",
        "This is useful for validating whether approved decisions are actually assignable and trackable."
      ]
    },
    {
      "cell_type": "code",
      "metadata": {},
      "source": [
        "page = {\n",
        "    \"title\": \"Approve Q4 pricing change\",\n",
        "    \"decision\": \"Pilot in two regions\",\n",
        "    \"owner\": \"alex@contoso.com\",\n",
        "    \"tasks\": [\n",
        "        {\"task\": \"Review legal constraints\", \"owner\": \"legal@contoso.com\"},\n",
        "        {\"task\": \"Update sales enablement\", \"owner\": \"salesops@contoso.com\"},\n",
        "    ],\n",
        "}\n",
        "\n",
        "actions = [\n",
        "    f\"{item['owner']} -> {item['task']} ({page['decision']})\"\n",
        "    for item in page[\"tasks\"]\n",
        "]\n",
        "\n",
        "for action in actions:\n",
        "    print(action)"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Build an audit trail for decision evolution\n",
        "\n",
        "The post emphasizes that once AI content becomes a working record, the enterprise question becomes who owns the decision. An audit trail helps answer that by showing how the page changed, who intervened, and when approval happened.\n",
        "\n",
        "This example creates a minimal event log you can extend with reviewer comments, source checks, and escalation events."
      ]
    },
    {
      "cell_type": "code",
      "metadata": {},
      "source": [
        "events = [\n",
        "    {\"time\": \"2026-11-19T09:00:00Z\", \"actor\": \"Copilot\", \"event\": \"Generated summary\"},\n",
        "    {\"time\": \"2026-11-19T09:15:00Z\", \"actor\": \"Reviewer\", \"event\": \"Requested source validation\"},\n",
        "    {\"time\": \"2026-11-19T10:00:00Z\", \"actor\": \"Owner\", \"event\": \"Approved pilot rollout\"},\n",
        "]\n",
        "\n",
        "audit_lines = [\n",
        "    f\"{e['time']} | {e['actor']}: {e['event']}\"\n",
        "    for e in events\n",
        "]\n",
        "\n",
        "print(\"\\n\".join(audit_lines))"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Validate the three-state model\n",
        "\n",
        "One of the strongest recommendations in the blog is to separate content into three states: AI-proposed, human-reviewed working content, and formally approved operational content. This example checks whether records stay within that model and flags invalid or ambiguous states.\n",
        "\n",
        "This is a practical way to prevent teams from collapsing visibility and approval into the same status."
      ]
    },
    {
      "cell_type": "code",
      "metadata": {},
      "source": [
        "allowed_states = [\n",
        "    \"AI-proposed\",\n",
        "    \"Human-reviewed working content\",\n",
        "    \"Formally approved operational content\",\n",
        "]\n",
        "\n",
        "pages = [\n",
        "    {\"page_id\": \"page-201\", \"state\": \"AI-proposed\", \"visible_to_team\": True},\n",
        "    {\"page_id\": \"page-202\", \"state\": \"Human-reviewed working content\", \"visible_to_team\": True},\n",
        "    {\"page_id\": \"page-203\", \"state\": \"Formally approved operational content\", \"visible_to_team\": True},\n",
        "    {\"page_id\": \"page-204\", \"state\": \"Shared and assumed approved\", \"visible_to_team\": True},\n",
        "]\n",
        "\n",
        "for p in pages:\n",
        "    valid = p[\"state\"] in allowed_states\n",
        "    print({\n",
        "        \"page_id\": p[\"page_id\"],\n",
        "        \"state\": p[\"state\"],\n",
        "        \"valid_state\": valid,\n",
        "        \"warning\": None if valid else \"Visibility is not approval; state is outside the approved model.\"\n",
        "    })"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Check role coverage for accountability\n",
        "\n",
        "The blog recommends named roles at minimum: decision owner, content editor, data steward, reviewer, and workflow owner. This example validates whether a page has all required roles assigned.\n",
        "\n",
        "Use it to test whether your shared AI artifacts are creating a blame vacuum or a clear accountability structure."
      ]
    },
    {
      "cell_type": "code",
      "metadata": {},
      "source": [
        "required_roles = [\n",
        "    \"decision_owner\",\n",
        "    \"content_editor\",\n",
        "    \"data_steward\",\n",
        "    \"reviewer\",\n",
        "    \"workflow_owner\",\n",
        "]\n",
        "\n",
        "assignment = {\n",
        "    \"decision_owner\": \"alex@contoso.com\",\n",
        "    \"content_editor\": \"morgan@contoso.com\",\n",
        "    \"data_steward\": \"priya@contoso.com\",\n",
        "    \"reviewer\": \"jamie@contoso.com\",\n",
        "    \"workflow_owner\": None,\n",
        "}\n",
        "\n",
        "missing = [role for role in required_roles if not assignment.get(role)]\n",
        "print(\"Assignments:\")\n",
        "print(json.dumps(assignment, indent=2))\n",
        "print(\"\\nMissing roles:\", missing if missing else \"None\")"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Simulate the pricing-team failure mode from the post\n",
        "\n",
        "The blog gives a concrete example: an AI-generated margin summary entered a weekly decision pack before anyone noticed that two enterprise segments were excluded. This example recreates that scenario with simple tabular data to show how a plausible summary can still be wrong.\n",
        "\n",
        "The goal is to validate why evidence capture and source stewardship must come before operational decisions."
      ]
    },
    {
      "cell_type": "code",
      "metadata": {},
      "source": [
        "full_data = pd.DataFrame([\n",
        "    {\"segment\": \"SMB\", \"margin\": 0.22},\n",
        "    {\"segment\": \"Mid-Market\", \"margin\": 0.27},\n",
        "    {\"segment\": \"Enterprise A\", \"margin\": 0.11},\n",
        "    {\"segment\": \"Enterprise B\", \"margin\": 0.09},\n",
        "])\n",
        "\n",
        "partial_data = full_data[~full_data[\"segment\"].isin([\"Enterprise A\", \"Enterprise B\"])]\n",
        "\n",
        "full_avg = full_data[\"margin\"].mean()\n",
        "partial_avg = partial_data[\"margin\"].mean()\n",
        "\n",
        "print(\"Full source table:\")\n",
        "print(full_data)\n",
        "print(\"\\nAI-visible subset used in draft summary:\")\n",
        "print(partial_data)\n",
        "print(\"\\nComparison:\")\n",
        "print({\n",
        "    \"avg_margin_full\": round(full_avg, 3),\n",
        "    \"avg_margin_partial\": round(partial_avg, 3),\n",
        "    \"difference\": round(partial_avg - full_avg, 3),\n",
        "    \"risk\": \"Decision pack may overstate margin if enterprise segments are excluded.\"\n",
        "})"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Evaluate governance checkpoints before scale\n",
        "\n",
        "The post says leaders should settle five things before scaling: versioning, provenance, access boundaries, operational truth, and escalation. This example turns those into a checklist and computes a simple governance completeness score.\n",
        "\n",
        "You can use the output as a lightweight readiness gate before enabling broader Copilot Pages usage."
      ]
    },
    {
      "cell_type": "code",
      "metadata": {},
      "source": [
        "governance = {\n",
        "    \"versioning\": True,\n",
        "    \"provenance\": True,\n",
        "    \"access_boundaries\": False,\n",
        "    \"operational_truth\": True,\n",
        "    \"escalation\": False,\n",
        "}\n",
        "\n",
        "completeness = round(sum(governance.values()) / len(governance) * 100, 1)\n",
        "missing = [k for k, v in governance.items() if not v]\n",
        "\n",
        "print({\n",
        "    \"governance_completeness_pct\": completeness,\n",
        "    \"missing_controls\": missing,\n",
        "    \"recommendation\": \"Do not scale shared decision workflows until missing controls are defined.\"\n",
        "})"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Summary\n",
        "\n",
        "This notebook operationalized the blog’s main argument: Copilot Pages should be evaluated as decision infrastructure because shared AI-generated content can quickly become socially authoritative before it is actually validated. The examples showed how to structure decision records, score readiness, enforce role coverage, preserve a three-state model, and build auditability around evidence and approval.\n",
        "\n",
        "## Next Steps\n",
        "\n",
        "1. Adapt the decision record schema to your own workflow fields.\n",
        "2. Add source-level provenance checks and reviewer sign-off rules.\n",
        "3. Connect readiness scoring to your approval gates.\n",
        "4. Test stale-page detection and escalation logic in your environment.\n",
        "5. Decide which governance rule is non-negotiable: three-state separation, named decision owner, or the rule that shared visibility never counts as approval."
      ]
    }
  ]
}