{
  "id": "m365-live-sensitivity-label-apply-guard",
  "name": "M365 Live Sensitivity Label Apply Guard",
  "type": "skill",
  "provider": "microsoft",
  "harnesses": ["codex", "claude-code", "cursor", "gemini", "kiro", "other"],
  "summary": "Mutating-runtime live-guard for applying ONE Microsoft Purview sensitivity label to ONE specified driveItem via the Microsoft Graph assignSensitivityLabel action. One item, one label. Requires explicit written human approval token referencing exact item, proposed label, and blast-radius. PREFLIGHT reads current label before any write. Fully reversible — prior label captured; re-apply prior label is the rollback. Gate-only; never auto-dispatched. Phase B mutating-runtime.",
  "source_type": "original",
  "official_docs": [
    "https://learn.microsoft.com/graph/api/driveitem-assignsensitivitylabel?view=graph-rest-1.0",
    "https://learn.microsoft.com/graph/permissions-reference",
    "https://learn.microsoft.com/microsoft-365/compliance/sensitivity-labels",
    "https://learn.microsoft.com/graph/metered-api-overview",
    "https://learn.microsoft.com/entra/identity-platform/app-only-access-primer"
  ],
  "security_notes": "Mutating-runtime Phase B. Narrowest label-apply Graph permission scopes only (InformationProtectionPolicy.Read.All + Sites.Selected or equivalent — verify against Graph permissions reference). Directory.ReadWrite.All, Sites.FullControl.All, Files.ReadWrite.All (broad), InformationProtectionPolicy.ReadWrite.All, and bulk labeling are all explicitly denied. Requires written human approval token referencing exact item + label + blast-radius. PREFLIGHT current-label capture required before any write. Prior label retained for ROLLBACK re-apply. Output signed with idempotency key and audit-logged.",
  "last_verified": "2026-06-17",
  "path": "skills/microsoft/m365-live-sensitivity-label-apply-guard",
  "author": "github: VincentChuWaiChow",
  "version": "0.1.0",
  "companion_agents": ["m365-live-sensitivity-label-apply-guard-agent"]
}
