Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

Correct telemetry data disclosure (#387)

Priyanshu Agrawal362eb38dfea6
diff --git a/AGENTS.md b/AGENTS.md
index 10766edf3..7b95a02fb 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -92,6 +92,8 @@ This keeps the skill discoverable in each plugin while preserving install-time p
Edit `shared/telemetry/` first, then refresh every adopting plugin's copied `scripts/lib/telemetry/lib` directory in the same change so the canonical source and bundled plugin content stay in sync.
+`eventInfo` is a dynamic escape hatch whose nested keys are not enforced by `FIELD_TYPES`. Follow the approved schema in `shared/telemetry/README.md`; do not add nested fields or arbitrary payloads without privacy review and coordinated disclosure, schema, and test updates.
+
**Never reuse another plugin's instrumentation key or event stream.** When adopting telemetry in a new plugin, copy only the routing-agnostic library (`shared/telemetry/lib` → `plugins/<plugin>/scripts/lib/telemetry/lib`) — do **not** copy an existing adopter's real `ikey.json` (or its `resolver.js`). Each plugin's `ikey.json` carries that plugin's own instrumentation key(s), collector routing, and `event_stream_name`; start from the placeholder `shared/telemetry/ikey.json` (every region key is `PLACEHOLDER_REPLACE_BEFORE_SHIPPING` and it ships `disabled: true`) and provision a fresh, plugin-specific key before shipping. Copying a key already committed to another plugin (e.g. lifting `power-pages`'s `ikey.json` wholesale) mis-attributes the new plugin's events to the other plugin's Kusto stream and pollutes it — the copy step must bring over library code only, never another plugin's provisioned `ikey.json`/`resolver.js`.
This invariant is CI-enforced: `node scripts/validate-telemetry-ikeys.js` (wired into the `validate-repository-metadata` workflow) scans every `plugins/*/**/ikey.json`, ignores placeholder/empty values, and fails if the same instrumentation key or `event_stream_name` appears under two different plugins. A single plugin reusing one key across regions is allowed; only cross-plugin reuse fails. Run it locally after touching any plugin's `ikey.json`.
diff --git a/README.md b/README.md
index f30ca3fdf..f2a0071f3 100644
--- a/README.md
+++ b/README.md
@@ -269,4 +269,6 @@ Any use of third-party trademarks or logos are subject to those third-party's po
## Telemetry
-Plugins that ship 1DS telemetry (currently: `power-pages`) gather anonymous usage signals. Telemetry is default-on; users opt out per-plugin via the `/<plugin>:telemetry off` command (e.g. `/power-pages:telemetry off`), stored in `~/.power-platform-skills/config.json`. For automation/CI, each adopting plugin also honors a per-plugin opt-out environment variable `POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT` (e.g. `POWER_PLATFORM_SKILLS_TELEMETRY_POWER_PAGES_OPTOUT=1`); when set it disables transmission with the highest precedence, overriding any `/<plugin>:telemetry` choice. See `shared/telemetry/README.md`.
+Power Pages and Model Apps ship 1DS telemetry code, but their committed configurations have different states. Power Pages telemetry is enabled and default-on; its usage events can include Dataverse organization and Entra tenant GUIDs when PAC is signed in, plus the signed-in user's Entra object ID when PAC exposes it. Model Apps ships hard-disabled (`disabled: true`), so it currently transmits no events and writes no local telemetry mirror. If Model Apps is enabled later, its events can include organization and tenant GUIDs but exclude the signed-in user's Entra object ID.
+
+For an enabled plugin, users opt out of transmission via `/<plugin>:telemetry off` (for example, `/power-pages:telemetry off`), stored in `~/.power-platform-skills/config.json`. The local diagnostic mirror is still written after this transmission-only opt-out. Each adopting plugin also honors `POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT` for automation and CI. The environment variable has highest precedence and disables transmission regardless of the saved command choice. See `shared/telemetry/README.md` for the full field list, kill-switch semantics, and local-mirror behavior.
diff --git a/plugins/model-apps/AGENTS.md b/plugins/model-apps/AGENTS.md
index c7815d417..28ba2c8e9 100644
--- a/plugins/model-apps/AGENTS.md
+++ b/plugins/model-apps/AGENTS.md
@@ -462,7 +462,7 @@ skills/
| `/genpage` | Build and deploy generative pages for a model-driven Power App |
| `/app-builder` | **(Preview)** Build and edit a whole model-driven app — tables, columns, relationships, adaptive forms, views, Choice-column charts, generative pages, app + sitemap, sample data, and admin-gated AI features — from a natural-language intent, via the vendored `cds-maker-sdk` |
| `/report-issue` | File a bug/issue about the model-apps plugin to the GitHub repository |
-| `/telemetry` | Enable/disable/check anonymous usage telemetry (`on \| off \| status`) |
+| `/telemetry` | Enable, disable, or check usage telemetry (`on \| off \| status`) |
## Agents
@@ -617,7 +617,10 @@ repo-root `shared/telemetry/`; `scripts/lib/telemetry/lib` is a **physical copy*
(CI-enforced: `node scripts/validate-telemetry-ikeys.js`).
- **Emission:** `hooks/run-skill-pretool-telemetry.js` (PreToolUse Skill) and
`hooks/run-user-prompt-telemetry.js` (UserPromptSubmit `/model-apps:<skill>`).
-- **Privacy:** anonymous, default-on. Users opt out of transmission via
+- **Privacy:** default-on usage telemetry. Events include Dataverse organization
+ and Entra tenant GUIDs when PAC is signed in, but Model Apps excludes the
+ signed-in user's Entra object ID. The local diagnostic mirror retains the same
+ event fields. Users opt out of transmission via
`/model-apps:telemetry off`; the local diagnostic mirror
(`~/.power-platform-skills/telemetry/model-apps/sessions/<id>/events.jsonl`) is
still written. CI/automation opt out via
diff --git a/plugins/model-apps/README.md b/plugins/model-apps/README.md
index a7e6f345a..1c69905c3 100644
--- a/plugins/model-apps/README.md
+++ b/plugins/model-apps/README.md
@@ -175,7 +175,7 @@ validator blocks a single tool call (the agent reworks it) — never the whole s
| Write-safety | before Write/Edit/MultiEdit | **Flags (non-blocking)** writes outside the cwd — only during a model-apps authoring session (a `genpage-plan.md`, `app-spec.json`, or `model-app-plan.md` at/under cwd, so it covers both `/genpage` and `/app-builder`). Never blocks; silent in unrelated projects. |
| Icon validator | after a generated `.tsx` write | Blocks `@fluentui/react-icons` imports that aren't in the verified list. Fires for both skills (gated on the `export default GeneratedComponent` marker, or a sibling `genpage-plan.md` / `model-app-plan.md`). |
| Skill validator | after a skill runs | Runs the skill's `validate*.js` if it has one. |
-| Telemetry | on skill start / prompt | Emits anonymous `skill_started` (see [Telemetry](#telemetry)). |
+| Telemetry | on skill start / prompt | Emits `skill_started` usage telemetry (see [Telemetry](#telemetry)). |
**Escape hatches** (environment variables — set to `1` or `true`):
@@ -196,19 +196,21 @@ export MODEL_APPS_DISABLE_HOOKS=1
## Telemetry
-model-apps ships anonymous, opt-out usage telemetry (1DS). The committed config ships
+model-apps ships opt-out usage telemetry (1DS). The committed config ships
**disabled** (`disabled: true`) — it emits nothing until go-live, even though it now
carries the provisioned model-apps key + stream (staged, not yet enabled). `disabled:
true` is the active guard; the placeholder-key check is only a secondary guard for
un-provisioned copies. Once enabled it is **on by default** (you opt out).
-- **What's collected:** skill name, plugin/PAC/agent versions, OS/Node versions, and
- Dataverse org/tenant GUIDs when signed in. **Never** file paths, prompts, tool
- inputs, entity/table names, URLs, credentials, usernames, hostnames, or any
- user-level identifier (no Entra object id).
+- **What's collected:** skill name, plugin/PAC/agent versions, OS/Node versions,
+ session/correlation IDs, and Dataverse organization and Entra tenant GUIDs when
+ PAC is signed in. Model Apps excludes the signed-in user's Entra object ID.
+ Events do not include file paths, prompts, tool inputs, entity/table names, URLs,
+ credentials, usernames, or hostnames.
- **Local diagnostic mirror:** every event is also written to
`~/.power-platform-skills/telemetry/model-apps/sessions/<id>/events.jsonl` (even
- when you've opted out of transmission) — hand over that one file when filing an issue.
+ when you've opted out of transmission) and retains the same event fields.
+ Hand over that one file when filing an issue.
- **Opt out** per-user with `/model-apps:telemetry off` (re-enable with `on`, check
with `status`), or for CI/automation set
`POWER_PLATFORM_SKILLS_TELEMETRY_MODEL_APPS_OPTOUT=1` (highest precedence).
diff --git a/plugins/model-apps/hooks/hooks.json b/plugins/model-apps/hooks/hooks.json
index c1663c4f4..871f0e04c 100644
--- a/plugins/model-apps/hooks/hooks.json
+++ b/plugins/model-apps/hooks/hooks.json
@@ -1,5 +1,5 @@
{
- "_comment": "PreToolUse: write-safety FLAGS (non-blocking, exit 1) Write/Edit/MultiEdit outside the cwd only during an active model-apps authoring session (a genpage-plan.md, app-spec.json, or model-app-plan.md marker at/under cwd — covering both /genpage and /app-builder); skill-pretool-telemetry emits anonymous skill_started (ships disabled until provisioned). PostToolUse: per-skill validator + on every code write validate @fluentui/react-icons imports against references/verified-icons.txt. UserPromptSubmit: emit skill_started for /model-apps:<skill> slash commands. Tracked skills are derived from skills/*/SKILL.md, so a new skill is picked up automatically. All telemetry is fail-closed and default-off in ikey.json. Run the host from the target project folder (or pass it as cwd).",
+ "_comment": "PreToolUse: write-safety FLAGS (non-blocking, exit 1) Write/Edit/MultiEdit outside the cwd only during an active model-apps authoring session (a genpage-plan.md, app-spec.json, or model-app-plan.md marker at/under cwd — covering both /genpage and /app-builder); skill-pretool-telemetry emits skill_started usage telemetry (ships disabled until provisioned). PostToolUse: per-skill validator + on every code write validate @fluentui/react-icons imports against references/verified-icons.txt. UserPromptSubmit: emit skill_started for /model-apps:<skill> slash commands. Tracked skills are derived from skills/*/SKILL.md, so a new skill is picked up automatically. All telemetry is fail-closed and default-off in ikey.json. Run the host from the target project folder (or pass it as cwd).",
"hooks": {
"PreToolUse": [
{
diff --git a/plugins/model-apps/hooks/run-skill-pretool-telemetry.js b/plugins/model-apps/hooks/run-skill-pretool-telemetry.js
index f85310753..48fb8bf11 100644
--- a/plugins/model-apps/hooks/run-skill-pretool-telemetry.js
+++ b/plugins/model-apps/hooks/run-skill-pretool-telemetry.js
@@ -4,7 +4,7 @@
/**
* PreToolUse(Skill) telemetry hook for the model-apps plugin.
*
- * Emits an anonymous `skill_started` event when a tracked model-apps skill is
+ * Emits a `skill_started` usage event when a tracked model-apps skill is
* invoked via the Skill tool. Uses the shared 1DS library copied into this plugin
* at scripts/lib/telemetry/lib. Mirrors the power-pages pretool hook — the only
* plugin-specific bits are the pluginName ("model-apps"), the hook-utils import,
diff --git a/plugins/model-apps/scripts/lib/telemetry/lib/emit-dispatcher.js b/plugins/model-apps/scripts/lib/telemetry/lib/emit-dispatcher.js
index 3984b8230..1d0d14e2d 100644
--- a/plugins/model-apps/scripts/lib/telemetry/lib/emit-dispatcher.js
+++ b/plugins/model-apps/scripts/lib/telemetry/lib/emit-dispatcher.js
@@ -30,7 +30,7 @@ function localConfigDir() {
return CONFIG_DIR_ENV || DEFAULT_LOCAL_DIR;
}
-// Anonymous telemetry is default-on. The user opt-out is per-plugin and lives in
+// Usage telemetry is default-on. The user opt-out is per-plugin and lives in
// config.json (telemetry[<pluginName>] === "off"), written by the telemetry skill.
// It suppresses TRANSMISSION only; the local mirror is written before this gate.
function isUserOptedOut(pluginName) {
diff --git a/plugins/model-apps/scripts/lib/telemetry/lib/events.js b/plugins/model-apps/scripts/lib/telemetry/lib/events.js
index be29c6832..13f35c3ac 100644
--- a/plugins/model-apps/scripts/lib/telemetry/lib/events.js
+++ b/plugins/model-apps/scripts/lib/telemetry/lib/events.js
@@ -34,7 +34,9 @@ const FIELD_TYPES = {
pacCliVersion: "string",
aiAgentName: "string",
aiAgentVersion: "string",
- // Common — caller-supplied dynamic JSON
+ // Common — caller-supplied dynamic JSON. This validates only the container,
+ // not nested keys. Callers must follow shared/telemetry/README.md's approved
+ // eventInfo schema; arbitrary nested payloads can bypass the top-level allowlist.
eventInfo: "object",
// Skill
skillName: "string",
diff --git a/plugins/model-apps/scripts/lib/telemetry/lib/telemetry-config.js b/plugins/model-apps/scripts/lib/telemetry/lib/telemetry-config.js
index 7b13e16f4..073b7cfd0 100644
--- a/plugins/model-apps/scripts/lib/telemetry/lib/telemetry-config.js
+++ b/plugins/model-apps/scripts/lib/telemetry/lib/telemetry-config.js
@@ -7,12 +7,26 @@ const path = require("node:path");
const { setTelemetryChoice, effectiveTelemetryChoice } = require("./user-config");
const { pluginLogDir, latestSessionLog } = require("./local-log");
-const ANONYMITY =
- "ℹ️ No personal data is collected. Telemetry is anonymous — it records only\n" +
- " operational fields like skill name, plugin version, OS/Node versions,\n" +
- " PAC CLI and agent versions, and Dataverse org/tenant IDs when available.\n" +
- " It never includes file paths, prompts, tool inputs, site names, URLs,\n" +
- " credentials, usernames, or hostnames.";
+function dataDisclosure(plugin) {
+ const pluginSpecific =
+ plugin === "power-pages"
+ ? " Power Pages can also record the signed-in user's Entra object ID as\n" +
+ " eventInfo.aadObjectId when PAC exposes it.\n"
+ : plugin === "model-apps"
+ ? " Model Apps excludes the signed-in user's Entra object ID.\n"
+ : "";
+ return (
+ "ℹ️ Usage telemetry records skill, plugin, PAC, agent, OS, Node, session,\n" +
+ " and correlation fields, plus Dataverse organization and Entra tenant IDs\n" +
+ " when PAC is signed in.\n" +
+ pluginSpecific +
+ " When plugin telemetry is enabled, the local diagnostic log retains the same\n" +
+ " fields even when transmission is off. A plugin whose committed telemetry\n" +
+ " config has disabled: true is hard-disabled and writes no log.\n" +
+ " Events do not include file paths, prompts, tool inputs, site names,\n" +
+ " Dataverse URLs, credentials, usernames, or hostnames."
+ );
+}
function getArg(name) {
const i = process.argv.indexOf(`--${name}`);
@@ -74,14 +88,14 @@ function main() {
const on = effectiveTelemetryChoice(dir, plugin) !== "off"; // default ON; honors env override when no stored choice
if (on) {
out(`Telemetry (${plugin}): ON`);
- out(ANONYMITY);
+ out(dataDisclosure(plugin));
emitLogLocations(dir, plugin);
} else {
out(`Telemetry (${plugin}): OFF — nothing is transmitted.`);
out(`The local diagnostic log is kept whenever telemetry is enabled for this plugin, even when transmission is OFF (opt-out stops transmission only).`);
emitLogLocations(dir, plugin);
out(`Re-enable with /${plugin}:telemetry on (an environment opt-out, if set, takes precedence and this command cannot override it).`);
- out(ANONYMITY);
+ out(dataDisclosure(plugin));
}
process.exit(0);
}
@@ -103,7 +117,7 @@ function main() {
} else {
out(`Telemetry (${plugin}): ON`);
}
- out(ANONYMITY);
+ out(dataDisclosure(plugin));
process.exit(0);
}
diff --git a/plugins/model-apps/skills/telemetry/SKILL.md b/plugins/model-apps/skills/telemetry/SKILL.md
index 16e4b4c5a..65b201269 100644
--- a/plugins/model-apps/skills/telemetry/SKILL.md
+++ b/plugins/model-apps/skills/telemetry/SKILL.md
@@ -2,7 +2,7 @@
name: telemetry
description: >
Use this skill when the user wants to enable, disable, turn on or off, opt out
- of, opt in to, or check the status of model-apps telemetry / anonymous usage
+ of, opt in to, or check the status of model-apps telemetry or its usage
data. Triggers: "disable telemetry", "turn off telemetry", "opt out of
telemetry", "stop collecting usage data", "enable telemetry", "telemetry status".
user-invocable: true
diff --git a/plugins/model-apps/skills/telemetry/telemetry-workflow.md b/plugins/model-apps/skills/telemetry/telemetry-workflow.md
index 6845a76b3..ecb094f48 100644
--- a/plugins/model-apps/skills/telemetry/telemetry-workflow.md
+++ b/plugins/model-apps/skills/telemetry/telemetry-workflow.md
@@ -1,7 +1,7 @@
# Telemetry control workflow
-The user invoked `/model-apps:telemetry [on | off | status]` to control anonymous
-usage telemetry for this plugin. Default to `status` when no argument is given.
+The user invoked `/<plugin>:telemetry [on | off | status]` to control usage
+telemetry for this plugin. Default to `status` when no argument is given.
## Steps
@@ -20,19 +20,20 @@ usage telemetry for this plugin. Default to `status` when no argument is given.
- `off` stops transmission to Microsoft. **Nothing leaves the machine.**
- `on` re-enables transmission. The choice is **per-user and per-plugin** and
takes effect on the next event (no restart).
-- **Anonymous — no personal data.** It records operational fields only: skill name,
- plugin/PAC/agent versions, OS/Node versions, and Dataverse org/tenant GUIDs when
- signed in. It never includes file paths, prompts, tool inputs, entity/table names,
- URLs, credentials, usernames, hostnames, or any user-level identifier (no Entra
- object id).
-- Once telemetry is enabled (provisioned), the local diagnostic mirror is written
- for every event — even when you've opted out of transmission — at
- `~/.power-platform-skills/telemetry/model-apps/sessions/<sessionId>/events.jsonl`.
- While telemetry ships disabled (`disabled: true`), nothing is written. `status`
- prints the mirror's location so you can hand over one self-contained file when
- filing an issue.
+- Events include skill name, plugin/PAC/agent versions, OS/Node versions, session
+ and correlation IDs, and Dataverse organization and Entra tenant GUIDs when PAC
+ is signed in.
+ Power Pages can also include the signed-in user's Entra object ID as
+ `eventInfo.aadObjectId` when PAC exposes it; Model Apps excludes it.
+ When plugin telemetry is enabled, the local diagnostic mirror retains the same
+ event fields even when transmission is off.
+ A plugin whose committed telemetry config has `disabled: true` writes no mirror.
+- Events do not include file paths, prompts, tool inputs, site names, Dataverse
+ URLs, credentials, usernames, or hostnames.
- **Automation/CI** can disable telemetry by setting the opt-out env var
- `POWER_PLATFORM_SKILLS_TELEMETRY_MODEL_APPS_OPTOUT` to `1` or `true` (the dotnet
- `*_TELEMETRY_OPTOUT` convention) instead of running this command. This opt-out
- has the highest precedence — it overrides a saved choice from this command and
- even `on`. It suppresses transmission only, like `off`.
+ `POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT=1` instead of running this
+ command. The value can be `1` or `true` (the dotnet `*_TELEMETRY_OPTOUT`
+ convention).
+ `<PLUGIN>` is the plugin name uppercased with non-alphanumerics collapsed to `_`.
+ This opt-out has the highest precedence — it overrides a saved choice from this
+ command and even `on`. It suppresses transmission only, like `off`.
diff --git a/plugins/power-pages/AGENTS.md b/plugins/power-pages/AGENTS.md
index 5fbf766f2..c4059c47c 100644
--- a/plugins/power-pages/AGENTS.md
+++ b/plugins/power-pages/AGENTS.md
@@ -435,7 +435,7 @@ This plugin ships 1DS telemetry for skill-run and script-run signals. The canoni
- **`scripts/lib/telemetry/lib` is copied** from the repo-root `shared/telemetry/lib` — edit `shared/telemetry/lib/` first, then refresh this plugin's copy in the same change. The real files next to the copy are `ikey.json` (this plugin's config) and `resolver.js` (the resolver contract implementation). **Posture:** the committed `ikey.json` ships `disabled: false` — transmission is enabled for power-pages (the tenant-side Kusto stream + annotation for `PagesAIPluginEvent` are provisioned). Set `disabled: true` to hard-off (no POST, no local log) if you need to suppress all telemetry at the source.
- **Region routing (Artemis geo + cloud stamp)** lives in `scripts/lib/telemetry/region/` and is wired through `scripts/lib/telemetry/resolver.js`, which implements the resolver contract (`resolve({ event, cfg, cloud, configDir })` / `isProvisioned(cfg)`). The shared dispatcher is routing-agnostic — it auto-discovers `resolver.js` by convention (sibling of `ikey.json`) and calls it; the `region/` implementation is entirely plugin-owned and never referenced by the shared library.
-- **Privacy posture:** anonymous telemetry is **default-on**. There is no consent prompt in skills. Users opt out via `/power-pages:telemetry off`, which stores a per-plugin choice in `~/.power-platform-skills/config.json` (`telemetry["power-pages"] = "off"`). Opting out stops transmission only; the local diagnostic mirror is still written. Re-enable with `/power-pages:telemetry on`. Automation/CI can disable transmission by setting `POWER_PLATFORM_SKILLS_TELEMETRY_POWER_PAGES_OPTOUT=1` (or `true`); this opt-out has the **highest precedence** — it overrides both a persisted `/power-pages:telemetry` choice and `/power-pages:telemetry on`. Transmission-only suppression — the local mirror is still written.
+- **Privacy posture:** usage telemetry is **default-on**. When PAC is signed in, events include the Dataverse organization GUID (`orgId`) and Entra tenant GUID (`tenantId`). Power Pages also includes the signed-in user's Entra object ID (`eventInfo.aadObjectId`) when PAC exposes it; otherwise that field is omitted. The local diagnostic mirror retains the same fields. Events do not include file paths, prompts, tool inputs, site names, Dataverse URLs, credentials, usernames, or hostnames. There is no consent prompt in skills. Users opt out via `/power-pages:telemetry off`, which stores a per-plugin choice in `~/.power-platform-skills/config.json` (`telemetry["power-pages"] = "off"`). Opting out stops transmission only; the local diagnostic mirror is still written. Re-enable with `/power-pages:telemetry on`. Automation/CI can disable transmission by setting `POWER_PLATFORM_SKILLS_TELEMETRY_POWER_PAGES_OPTOUT=1` (or `true`); this opt-out has the **highest precedence** and overrides both a persisted `/power-pages:telemetry` choice and `/power-pages:telemetry on`.
- **Strict allowlist:** `shared/telemetry/lib/events.js` enforces exactly the fields listed in the spec. Never add a field to a builder without first adding it to the allowlist and documenting it in the design doc.
- **Fail closed:** telemetry code must never change a script's exit code or break a skill run. Emission is fire-and-forget via a detached dispatcher child, so the hook or script returns before the HTTPS POST completes.
diff --git a/plugins/power-pages/README.md b/plugins/power-pages/README.md
index 705bcd0f6..d559a81a1 100644
--- a/plugins/power-pages/README.md
+++ b/plugins/power-pages/README.md
@@ -404,12 +404,12 @@ Collects context about the current session and opens a pre-filled GitHub issue a
> "Turn off telemetry" · "Disable telemetry" · "Telemetry status"
-Enables, disables, or checks the status of anonymous usage telemetry. Per-user and per-plugin; the choice is stored in `~/.power-platform-skills/config.json`. See [Telemetry & privacy](#telemetry--privacy) below.
+Enables, disables, or checks the status of usage telemetry. Per-user and per-plugin; the choice is stored in `~/.power-platform-skills/config.json`. See [Telemetry & privacy](#telemetry--privacy) below.
- `/power-pages:telemetry status` — show the current setting
- `/power-pages:telemetry off` — stop sending telemetry (nothing leaves your machine)
- `/power-pages:telemetry on` — resume sending telemetry
-- No personal data is ever collected (anonymous: skill name, plugin version, OS, Node version)
+- When PAC is signed in, events include organization and tenant IDs; they can also include the signed-in user's Entra object ID when PAC exposes it
- Automation/CI: set `POWER_PLATFORM_SKILLS_TELEMETRY_POWER_PAGES_OPTOUT=1` to disable (highest precedence — overrides any saved choice)
## Agents
@@ -524,10 +524,10 @@ This Dataverse relationship check is intended for local validation only and shou
## Telemetry & privacy
-This plugin sends **anonymous** usage telemetry by default to help Microsoft
-improve it. **No personal data is ever collected** — only things like skill name,
-plugin version, OS, and Node version. It never includes file paths, prompts, tool
-inputs, site names, URLs, credentials, usernames, or hostnames.
+This plugin sends usage telemetry by default to help Microsoft improve it.
+Events include skill name, plugin/PAC/agent versions, OS/Node versions, session and correlation IDs, and, when PAC is signed in, the Dataverse organization GUID and Entra tenant GUID.
+When PAC exposes the signed-in user's Entra object ID, Power Pages stores it under `eventInfo.aadObjectId`; otherwise that field is omitted.
+Events do not include file paths, prompts, tool inputs, site names, Dataverse URLs, credentials, usernames, or hostnames.
**Turn it on or off (per-user, applies to every project):**
@@ -537,7 +537,8 @@ inputs, site names, URLs, credentials, usernames, or hostnames.
/power-pages:telemetry on # resume sending telemetry
```
-When **off**, nothing leaves your machine. A local diagnostic copy of each event
+When **off**, nothing leaves your machine. A local diagnostic copy containing the
+same event fields, including available organization, tenant, and Entra object IDs,
is still written under
`~/.power-platform-skills/telemetry/power-pages/sessions/<sessionId>/events.jsonl`
so you can see exactly what would have been sent; delete it anytime. Run
diff --git a/plugins/power-pages/scripts/lib/telemetry/lib/emit-dispatcher.js b/plugins/power-pages/scripts/lib/telemetry/lib/emit-dispatcher.js
index 3984b8230..1d0d14e2d 100644
--- a/plugins/power-pages/scripts/lib/telemetry/lib/emit-dispatcher.js
+++ b/plugins/power-pages/scripts/lib/telemetry/lib/emit-dispatcher.js
@@ -30,7 +30,7 @@ function localConfigDir() {
return CONFIG_DIR_ENV || DEFAULT_LOCAL_DIR;
}
-// Anonymous telemetry is default-on. The user opt-out is per-plugin and lives in
+// Usage telemetry is default-on. The user opt-out is per-plugin and lives in
// config.json (telemetry[<pluginName>] === "off"), written by the telemetry skill.
// It suppresses TRANSMISSION only; the local mirror is written before this gate.
function isUserOptedOut(pluginName) {
diff --git a/plugins/power-pages/scripts/lib/telemetry/lib/events.js b/plugins/power-pages/scripts/lib/telemetry/lib/events.js
index be29c6832..13f35c3ac 100644
--- a/plugins/power-pages/scripts/lib/telemetry/lib/events.js
+++ b/plugins/power-pages/scripts/lib/telemetry/lib/events.js
@@ -34,7 +34,9 @@ const FIELD_TYPES = {
pacCliVersion: "string",
aiAgentName: "string",
aiAgentVersion: "string",
- // Common — caller-supplied dynamic JSON
+ // Common — caller-supplied dynamic JSON. This validates only the container,
+ // not nested keys. Callers must follow shared/telemetry/README.md's approved
+ // eventInfo schema; arbitrary nested payloads can bypass the top-level allowlist.
eventInfo: "object",
// Skill
skillName: "string",
diff --git a/plugins/power-pages/scripts/lib/telemetry/lib/telemetry-config.js b/plugins/power-pages/scripts/lib/telemetry/lib/telemetry-config.js
index 7b13e16f4..073b7cfd0 100644
--- a/plugins/power-pages/scripts/lib/telemetry/lib/telemetry-config.js
+++ b/plugins/power-pages/scripts/lib/telemetry/lib/telemetry-config.js
@@ -7,12 +7,26 @@ const path = require("node:path");
const { setTelemetryChoice, effectiveTelemetryChoice } = require("./user-config");
const { pluginLogDir, latestSessionLog } = require("./local-log");
-const ANONYMITY =
- "ℹ️ No personal data is collected. Telemetry is anonymous — it records only\n" +
- " operational fields like skill name, plugin version, OS/Node versions,\n" +
- " PAC CLI and agent versions, and Dataverse org/tenant IDs when available.\n" +
- " It never includes file paths, prompts, tool inputs, site names, URLs,\n" +
- " credentials, usernames, or hostnames.";
+function dataDisclosure(plugin) {
+ const pluginSpecific =
+ plugin === "power-pages"
+ ? " Power Pages can also record the signed-in user's Entra object ID as\n" +
+ " eventInfo.aadObjectId when PAC exposes it.\n"
+ : plugin === "model-apps"
+ ? " Model Apps excludes the signed-in user's Entra object ID.\n"
+ : "";
+ return (
+ "ℹ️ Usage telemetry records skill, plugin, PAC, agent, OS, Node, session,\n" +
+ " and correlation fields, plus Dataverse organization and Entra tenant IDs\n" +
+ " when PAC is signed in.\n" +
+ pluginSpecific +
+ " When plugin telemetry is enabled, the local diagnostic log retains the same\n" +
+ " fields even when transmission is off. A plugin whose committed telemetry\n" +
+ " config has disabled: true is hard-disabled and writes no log.\n" +
+ " Events do not include file paths, prompts, tool inputs, site names,\n" +
+ " Dataverse URLs, credentials, usernames, or hostnames."
+ );
+}
function getArg(name) {
const i = process.argv.indexOf(`--${name}`);
@@ -74,14 +88,14 @@ function main() {
const on = effectiveTelemetryChoice(dir, plugin) !== "off"; // default ON; honors env override when no stored choice
if (on) {
out(`Telemetry (${plugin}): ON`);
- out(ANONYMITY);
+ out(dataDisclosure(plugin));
emitLogLocations(dir, plugin);
} else {
out(`Telemetry (${plugin}): OFF — nothing is transmitted.`);
out(`The local diagnostic log is kept whenever telemetry is enabled for this plugin, even when transmission is OFF (opt-out stops transmission only).`);
emitLogLocations(dir, plugin);
out(`Re-enable with /${plugin}:telemetry on (an environment opt-out, if set, takes precedence and this command cannot override it).`);
- out(ANONYMITY);
+ out(dataDisclosure(plugin));
}
process.exit(0);
}
@@ -103,7 +117,7 @@ function main() {
} else {
out(`Telemetry (${plugin}): ON`);
}
- out(ANONYMITY);
+ out(dataDisclosure(plugin));
process.exit(0);
}
diff --git a/plugins/power-pages/skills/telemetry/SKILL.md b/plugins/power-pages/skills/telemetry/SKILL.md
index 321e6a3aa..af66ed011 100644
--- a/plugins/power-pages/skills/telemetry/SKILL.md
+++ b/plugins/power-pages/skills/telemetry/SKILL.md
@@ -2,7 +2,7 @@
name: telemetry
description: >
Use this skill when the user wants to enable, disable, turn on or off, opt out
- of, opt in to, or check the status of power-pages telemetry / anonymous usage
+ of, opt in to, or check the status of power-pages telemetry or its usage
data. Triggers: "disable telemetry", "turn off telemetry", "opt out of
telemetry", "stop collecting usage data", "enable telemetry", "telemetry status".
user-invocable: true
diff --git a/plugins/power-pages/skills/telemetry/telemetry-workflow.md b/plugins/power-pages/skills/telemetry/telemetry-workflow.md
index 7fed7f370..7183c52e2 100644
--- a/plugins/power-pages/skills/telemetry/telemetry-workflow.md
+++ b/plugins/power-pages/skills/telemetry/telemetry-workflow.md
@@ -1,7 +1,7 @@
# Telemetry control workflow
-The user invoked `/<plugin>:telemetry [on | off | status]` to control anonymous
-usage telemetry for this plugin. Default to `status` when no argument is given.
+The user invoked `/<plugin>:telemetry [on | off | status]` to control usage
+telemetry for this plugin. Default to `status` when no argument is given.
## Steps
@@ -17,17 +17,23 @@ usage telemetry for this plugin. Default to `status` when no argument is given.
## What to know (for answering follow-ups)
-- `off` stops transmission to Microsoft. **Nothing leaves the machine.**.
+- `off` stops transmission to Microsoft. **Nothing leaves the machine.**
- `on` re-enables transmission. The choice is **per-user and per-plugin** and
takes effect on the next event (no restart).
-- **No personal data is ever collected.** Telemetry is anonymous: it records only
- things like skill name, plugin version, OS, and Node version. It never includes
- file paths, prompts, tool inputs, site names, URLs, credentials, usernames, or
- hostnames.
+- Events include skill name, plugin/PAC/agent versions, OS/Node versions, session
+ and correlation IDs, and Dataverse organization and Entra tenant GUIDs when PAC
+ is signed in.
+ Power Pages can also include the signed-in user's Entra object ID as
+ `eventInfo.aadObjectId` when PAC exposes it; Model Apps excludes it.
+ When plugin telemetry is enabled, the local diagnostic mirror retains the same
+ event fields even when transmission is off.
+ A plugin whose committed telemetry config has `disabled: true` writes no mirror.
+- Events do not include file paths, prompts, tool inputs, site names, Dataverse
+ URLs, credentials, usernames, or hostnames.
- **Automation/CI** can disable telemetry by setting the opt-out env var
- `POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT` (e.g.
- `POWER_PLATFORM_SKILLS_TELEMETRY_POWER_PAGES_OPTOUT=1`) instead of running this
- command. Set it to `1` or `true` (the dotnet `*_TELEMETRY_OPTOUT` convention).
+ `POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT=1` instead of running this
+ command. The value can be `1` or `true` (the dotnet `*_TELEMETRY_OPTOUT`
+ convention).
`<PLUGIN>` is the plugin name uppercased with non-alphanumerics collapsed to `_`.
This opt-out has the highest precedence — it overrides a saved choice from this
command and even `on`. It suppresses transmission only, like `off`.
diff --git a/shared/skills/telemetry/SKILL.template.md b/shared/skills/telemetry/SKILL.template.md
index ac4294acc..be48c1050 100644
--- a/shared/skills/telemetry/SKILL.template.md
+++ b/shared/skills/telemetry/SKILL.template.md
@@ -2,8 +2,8 @@
name: telemetry
description: >
Use this skill when the user wants to enable, disable, turn on or off, opt out
- of, opt in to, or check the status of {{PLUGIN_NAME}} telemetry / anonymous
- usage data. Triggers: "disable telemetry", "turn off telemetry", "opt out of
+ of, opt in to, or check the status of {{PLUGIN_NAME}} telemetry or its usage
+ data. Triggers: "disable telemetry", "turn off telemetry", "opt out of
telemetry", "stop collecting usage data", "enable telemetry", "telemetry status".
user-invocable: true
argument-hint: "on | off | status"
diff --git a/shared/skills/telemetry/telemetry-workflow.md b/shared/skills/telemetry/telemetry-workflow.md
index 7fed7f370..7183c52e2 100644
--- a/shared/skills/telemetry/telemetry-workflow.md
+++ b/shared/skills/telemetry/telemetry-workflow.md
@@ -1,7 +1,7 @@
# Telemetry control workflow
-The user invoked `/<plugin>:telemetry [on | off | status]` to control anonymous
-usage telemetry for this plugin. Default to `status` when no argument is given.
+The user invoked `/<plugin>:telemetry [on | off | status]` to control usage
+telemetry for this plugin. Default to `status` when no argument is given.
## Steps
@@ -17,17 +17,23 @@ usage telemetry for this plugin. Default to `status` when no argument is given.
## What to know (for answering follow-ups)
-- `off` stops transmission to Microsoft. **Nothing leaves the machine.**.
+- `off` stops transmission to Microsoft. **Nothing leaves the machine.**
- `on` re-enables transmission. The choice is **per-user and per-plugin** and
takes effect on the next event (no restart).
-- **No personal data is ever collected.** Telemetry is anonymous: it records only
- things like skill name, plugin version, OS, and Node version. It never includes
- file paths, prompts, tool inputs, site names, URLs, credentials, usernames, or
- hostnames.
+- Events include skill name, plugin/PAC/agent versions, OS/Node versions, session
+ and correlation IDs, and Dataverse organization and Entra tenant GUIDs when PAC
+ is signed in.
+ Power Pages can also include the signed-in user's Entra object ID as
+ `eventInfo.aadObjectId` when PAC exposes it; Model Apps excludes it.
+ When plugin telemetry is enabled, the local diagnostic mirror retains the same
+ event fields even when transmission is off.
+ A plugin whose committed telemetry config has `disabled: true` writes no mirror.
+- Events do not include file paths, prompts, tool inputs, site names, Dataverse
+ URLs, credentials, usernames, or hostnames.
- **Automation/CI** can disable telemetry by setting the opt-out env var
- `POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT` (e.g.
- `POWER_PLATFORM_SKILLS_TELEMETRY_POWER_PAGES_OPTOUT=1`) instead of running this
- command. Set it to `1` or `true` (the dotnet `*_TELEMETRY_OPTOUT` convention).
+ `POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT=1` instead of running this
+ command. The value can be `1` or `true` (the dotnet `*_TELEMETRY_OPTOUT`
+ convention).
`<PLUGIN>` is the plugin name uppercased with non-alphanumerics collapsed to `_`.
This opt-out has the highest precedence — it overrides a saved choice from this
command and even `on`. It suppresses transmission only, like `off`.
diff --git a/shared/telemetry/README.md b/shared/telemetry/README.md
index e19f0e3ef..854294e15 100644
--- a/shared/telemetry/README.md
+++ b/shared/telemetry/README.md
@@ -10,7 +10,7 @@ Zero npm dependencies. Node stdlib only.
## What it does
-Anonymous `skill_started` telemetry over the 1DS Common Schema 4.0 envelope. A detached dispatcher child resolves the destination iKey + collector URL (env override → plugin `resolver.js` → static key in `ikey.json`), then POSTs the event; the hook that emitted it returns before the POST happens.
+`skill_started` usage telemetry over the 1DS Common Schema 4.0 envelope. A detached dispatcher child resolves the destination iKey + collector URL (env override → plugin `resolver.js` → static key in `ikey.json`), then POSTs the event; the hook that emitted it returns before the POST happens.
```
hook (~5ms when disabled, ~3-5s otherwise — incl. when the user opted out)
@@ -92,17 +92,20 @@ Every event carries a fixed allowlist enforced by `lib/events.js`. Field names m
**Per-event:**
- `skillName` (on every event)
-- `eventInfo` — caller-supplied JSON object (dynamic Kusto column). The caller is responsible for not putting PII in this payload. Power Pages populates it with `aadObjectId` (the signed-in user's Entra ID / AAD directory object id, parsed from `pac auth who`) when available; the field is omitted when `pac auth who` doesn't surface an object id. On the wire it is sent as a JSON **string** (re-serialized by `emit-dispatcher.js`, not the local mirror) because the tenant-side field mapping flattens `data.<key>` to a single `data_<key>` leaf and does not recurse into nested objects — the Kusto side must `parse_json()` / `todynamic()` it back into a dynamic value.
+- `eventInfo` — caller-supplied JSON object (dynamic Kusto column). Power Pages populates it with `aadObjectId`, the signed-in user's stable Entra ID / AAD directory object ID parsed from `pac auth who`, when available. The field is omitted when `pac auth who` does not surface an object ID. On the wire it is sent as a JSON **string** (re-serialized by `emit-dispatcher.js`, not the local mirror) because the tenant-side field mapping flattens `data.<key>` to a single `data_<key>` leaf and does not recurse into nested objects. The Kusto side must `parse_json()` / `todynamic()` it back into a dynamic value.
+
+ `FIELD_TYPES` enforces only that `eventInfo` is a structured JSON value; it does **not** enforce nested keys. Callers **MUST** restrict it to the documented schema. The only approved nested field is currently Power Pages `aadObjectId` as a string. Callers **MUST NOT** add other personal data, prompts, project or site identifiers, paths, URLs, credentials, or arbitrary caller payloads. Any proposed expansion requires review and approval, plus updates to this privacy disclosure, the documented event schema, and tests before code emits the new field.
## What is NEVER sent
File paths, cwd, env vars, site names, Dataverse URLs, stack traces, `err.message` text, skill arguments, tool inputs, prompt text, usernames, hostnames.
-The dispatcher runs a defense-in-depth allowlist filter against `FIELD_TYPES` before serializing, so any field that bypasses the builders is dropped before it reaches the wire.
+The dispatcher runs a defense-in-depth allowlist filter against `FIELD_TYPES` before serializing, so any top-level field that bypasses the builders is dropped before it reaches the wire. This filter does not inspect nested `eventInfo` keys; the caller restriction above is part of the telemetry contract.
## Privacy posture
-- **Default-on.** Anonymous telemetry is enabled by default. No first-run prompt.
+- **Default-on.** Usage telemetry is enabled by default. No first-run prompt.
+- **Identifiers.** When PAC is signed in, events can include the Dataverse organization GUID (`orgId`), Entra tenant GUID (`tenantId`), and, for Power Pages, the signed-in user's Entra object ID (`eventInfo.aadObjectId`). The local diagnostic mirror retains the same fields.
- **Opt out of transmission** via `/<plugin>:telemetry off` (per-user, per-plugin). This writes `telemetry[<plugin>] = "off"` into `~/.power-platform-skills/config.json` and stops the network POST to the collector — **nothing leaves the machine** — but the local diagnostic mirror (a per-session `events.jsonl`) is still written so the user/developer can see exactly what would have been sent. It is therefore an opt-out of *transmission*, not of local logging. CI/headless can opt out by writing that file directly. Re-enable with `/<plugin>:telemetry on`.
- **Opt out for automation** via the per-plugin opt-out env var
`POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT` (e.g.
diff --git a/shared/telemetry/lib/emit-dispatcher.js b/shared/telemetry/lib/emit-dispatcher.js
index 3984b8230..1d0d14e2d 100644
--- a/shared/telemetry/lib/emit-dispatcher.js
+++ b/shared/telemetry/lib/emit-dispatcher.js
@@ -30,7 +30,7 @@ function localConfigDir() {
return CONFIG_DIR_ENV || DEFAULT_LOCAL_DIR;
}
-// Anonymous telemetry is default-on. The user opt-out is per-plugin and lives in
+// Usage telemetry is default-on. The user opt-out is per-plugin and lives in
// config.json (telemetry[<pluginName>] === "off"), written by the telemetry skill.
// It suppresses TRANSMISSION only; the local mirror is written before this gate.
function isUserOptedOut(pluginName) {
diff --git a/shared/telemetry/lib/events.js b/shared/telemetry/lib/events.js
index be29c6832..13f35c3ac 100644
--- a/shared/telemetry/lib/events.js
+++ b/shared/telemetry/lib/events.js
@@ -34,7 +34,9 @@ const FIELD_TYPES = {
pacCliVersion: "string",
aiAgentName: "string",
aiAgentVersion: "string",
- // Common — caller-supplied dynamic JSON
+ // Common — caller-supplied dynamic JSON. This validates only the container,
+ // not nested keys. Callers must follow shared/telemetry/README.md's approved
+ // eventInfo schema; arbitrary nested payloads can bypass the top-level allowlist.
eventInfo: "object",
// Skill
skillName: "string",
diff --git a/shared/telemetry/lib/telemetry-config.js b/shared/telemetry/lib/telemetry-config.js
index 7b13e16f4..073b7cfd0 100644
--- a/shared/telemetry/lib/telemetry-config.js
+++ b/shared/telemetry/lib/telemetry-config.js
@@ -7,12 +7,26 @@ const path = require("node:path");
const { setTelemetryChoice, effectiveTelemetryChoice } = require("./user-config");
const { pluginLogDir, latestSessionLog } = require("./local-log");
-const ANONYMITY =
- "ℹ️ No personal data is collected. Telemetry is anonymous — it records only\n" +
- " operational fields like skill name, plugin version, OS/Node versions,\n" +
- " PAC CLI and agent versions, and Dataverse org/tenant IDs when available.\n" +
- " It never includes file paths, prompts, tool inputs, site names, URLs,\n" +
- " credentials, usernames, or hostnames.";
+function dataDisclosure(plugin) {
+ const pluginSpecific =
+ plugin === "power-pages"
+ ? " Power Pages can also record the signed-in user's Entra object ID as\n" +
+ " eventInfo.aadObjectId when PAC exposes it.\n"
+ : plugin === "model-apps"
+ ? " Model Apps excludes the signed-in user's Entra object ID.\n"
+ : "";
+ return (
+ "ℹ️ Usage telemetry records skill, plugin, PAC, agent, OS, Node, session,\n" +
+ " and correlation fields, plus Dataverse organization and Entra tenant IDs\n" +
+ " when PAC is signed in.\n" +
+ pluginSpecific +
+ " When plugin telemetry is enabled, the local diagnostic log retains the same\n" +
+ " fields even when transmission is off. A plugin whose committed telemetry\n" +
+ " config has disabled: true is hard-disabled and writes no log.\n" +
+ " Events do not include file paths, prompts, tool inputs, site names,\n" +
+ " Dataverse URLs, credentials, usernames, or hostnames."
+ );
+}
function getArg(name) {
const i = process.argv.indexOf(`--${name}`);
@@ -74,14 +88,14 @@ function main() {
const on = effectiveTelemetryChoice(dir, plugin) !== "off"; // default ON; honors env override when no stored choice
if (on) {
out(`Telemetry (${plugin}): ON`);
- out(ANONYMITY);
+ out(dataDisclosure(plugin));
emitLogLocations(dir, plugin);
} else {
out(`Telemetry (${plugin}): OFF — nothing is transmitted.`);
out(`The local diagnostic log is kept whenever telemetry is enabled for this plugin, even when transmission is OFF (opt-out stops transmission only).`);
emitLogLocations(dir, plugin);
out(`Re-enable with /${plugin}:telemetry on (an environment opt-out, if set, takes precedence and this command cannot override it).`);
- out(ANONYMITY);
+ out(dataDisclosure(plugin));
}
process.exit(0);
}
@@ -103,7 +117,7 @@ function main() {
} else {
out(`Telemetry (${plugin}): ON`);
}
- out(ANONYMITY);
+ out(dataDisclosure(plugin));
process.exit(0);
}
diff --git a/shared/telemetry/tests/telemetry-config.test.js b/shared/telemetry/tests/telemetry-config.test.js
index 5a388a5dd..df7d65dd7 100644
--- a/shared/telemetry/tests/telemetry-config.test.js
+++ b/shared/telemetry/tests/telemetry-config.test.js
@@ -29,7 +29,13 @@ test("off writes the per-plugin opt-out and confirms", () => {
const { status, stdout } = run(["--action", "off", "--plugin", "power-pages"], dir);
assert.equal(status, 0);
assert.match(stdout, /OFF/);
- assert.match(stdout, /No personal data is collected/);
+ assert.match(stdout, /Dataverse organization and Entra tenant IDs/);
+ assert.match(stdout, /eventInfo\.aadObjectId/);
+ assert.match(stdout, /when PAC exposes it/);
+ assert.match(stdout, /When plugin telemetry is enabled/);
+ assert.match(stdout, /committed telemetry\s+config has disabled: true/);
+ assert.match(stdout, /hard-disabled and writes no log/);
+ assert.doesNotMatch(stdout, /anonymous/i);
const cfg = JSON.parse(fs.readFileSync(path.join(dir, "config.json"), "utf8"));
assert.equal(cfg.telemetry["power-pages"], "off");
});
@@ -65,7 +71,22 @@ test("status reports ON by default and never reads ikey.json", () => {
const { status, stdout } = run(["--action", "status", "--plugin", "power-pages"], dir);
assert.equal(status, 0);
assert.match(stdout, /Telemetry \(power-pages\): ON/);
- assert.match(stdout, /No personal data is collected/);
+ assert.match(stdout, /Dataverse organization and Entra tenant IDs/);
+ assert.match(stdout, /eventInfo\.aadObjectId/);
+ assert.match(stdout, /when PAC exposes it/);
+ assert.match(stdout, /When plugin telemetry is enabled/);
+ assert.match(stdout, /committed telemetry\s+config has disabled: true/);
+ assert.match(stdout, /hard-disabled and writes no log/);
+ assert.doesNotMatch(stdout, /anonymous/i);
+});
+
+test("status discloses Model Apps identifiers without claiming an Entra user object ID", () => {
+ const dir = mkTmp();
+ const { status, stdout } = run(["--action", "status", "--plugin", "model-apps"], dir);
+ assert.equal(status, 0);
+ assert.match(stdout, /Dataverse organization and Entra tenant IDs/);
+ assert.match(stdout, /Model Apps excludes the signed-in user's Entra object ID/);
+ assert.doesNotMatch(stdout, /anonymous/i);
});
test("status reports OFF after opt-out", () => {