fairwire-mobile-devices 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (unreleased)
4
+
5
+ - First version (Fairwire ver 1).
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kurt Francisco
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,226 @@
1
- # Temporary Holding Version
1
+ # Fairwire Mobile Devices
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Mobile device inventory from Intune, Jamf or any MDM export: devices that stopped checking in, old operating systems, no encryption or passcode, jailbroken or rooted devices, devices of people who left and devices with no owner. Names masked for the model. Drafts notes; never wipes or locks a device.
4
+
5
+ Part of **Fairwire**, the IT and network family of [Mythos Machines](https://fair-agents.com) agents. The software is free (MIT); you pay a fixed price for the setup on your files. It reads files your IT team exports, on your own computer, and drafts notes. Every change to a live device, firewall, DNS zone, directory or cloud account stays one named person's click.
6
+
7
+ ## What it checks
8
+
9
+ | Finding | What it means |
10
+ |---|---|
11
+ | `jailbroken` | A jailbroken or rooted device (its security controls cannot be trusted). |
12
+ | `leaver_device` | A device still enrolled to someone who has left. |
13
+ | `no_passcode_or_encryption` | A device with no passcode or no storage encryption. |
14
+ | `stale_check_in` | A device that has not checked in with device management for longer than your limit (lost, wiped by the user, or switched off). |
15
+ | `old_os` | A device on an operating system older than the minimum you set for its platform. |
16
+ | `noncompliant` | A device your device management marks as not compliant for another reason. |
17
+ | `no_owner` | A company device with nobody assigned to it. |
18
+
19
+ Findings come back worst first (high, medium, low). A finding a named person has reviewed can be accepted as known, with a reason and a date to look again; it then moves to "Accepted as known" instead of counting as open.
20
+
21
+ ## Settings
22
+
23
+ Pass a settings file with `settings`. Every setting is optional; a misspelt setting is refused by name.
24
+
25
+ | Setting | What it does |
26
+ |---|---|
27
+ | `stale_days` | Days without a check-in after which a device is flagged (default 30) |
28
+ | `min_os` | Lowest OS version per platform, e.g. {"iOS": "17.0", "Android": "13"} (no check for platforms not listed) |
29
+
30
+ ## What it never does
31
+
32
+ - `mdm_wipe_device` is refused: Fairwire Mobile Devices never wipes, locks or retires a device.
33
+ - `mdm_change_policy` is refused: Fairwire Mobile Devices never changes a compliance or configuration policy.
34
+ - `mobile_request_send` waits for one named person's click, even in Auto (`binding_send`).
35
+ - `mobile_accept_learning` waits for one named person's click, even in Auto (`accept_learning`).
36
+ - `mobile_retire_memory` waits for one named person's click, even in Auto (`accept_learning`).
37
+ - `mdm_wipe_device` waits for one named person's click, even in Auto (`delete_personal_data`).
38
+ - `mdm_change_policy` waits for one named person's click, even in Auto (`production_deploy`).
39
+
40
+ <!-- generated:start -->
41
+
42
+ ## A demo run
43
+
44
+ `npx -y fairwire-mobile-devices demo` runs the agent on the fictional files in [`fixtures/`](fixtures) in a temporary folder. Captured output:
45
+
46
+ ```text
47
+ Fairwire Mobile Devices demo (fictional data) in a temporary folder, Auto on for the draft only
48
+
49
+ ▶ Check the exported files
50
+ status: executed decision: allow
51
+ 8 device(s), 2 personal: 8 open finding(s), 3 high.
52
+ high jailbroken android
53
+ high leaver_device ios
54
+ high no_passcode_or_encryption android
55
+ medium old_os android
56
+ medium old_os ios
57
+ medium stale_check_in ios
58
+ low no_owner ipados
59
+ low noncompliant android
60
+
61
+ ▶ Explain one finding
62
+ status: executed decision: allow
63
+ high jailbroken: AND-103 (Android, USR-59cdaf43) is reported jailbroken or rooted. Fix: Block it from company data and ask the person to restore the device or use another.
64
+ high no_passcode_or_encryption: AND-104 (USR-ffb496cf) has no encryption. Fix: Enforce a passcode and encryption policy; block access until the device complies.
65
+ medium old_os: AND-104 runs Android 12, under your minimum of 13. Fix: Ask the person to update; replace devices that cannot.
66
+ low noncompliant: AND-108 (USR-dcf16c64) is marked not compliant by device management. Fix: Check which policy it fails in the device management console.
67
+
68
+ ▶ Write the worklist
69
+ status: executed decision: allow
70
+ Mobile device inventory written: 8 device(s), 2 personal: 8 open finding(s), 3 high.
71
+
72
+ ▶ Draft the note for a person
73
+ status: executed decision: allow (auto)
74
+ device note 2026-11-18 drafted with 1 open marker(s) ([TO CONFIRM endpoint and device management team]). Nothing was sent.
75
+
76
+ ▶ Auto: approving it still waits for one named person
77
+ status: needs_approval decision: ask
78
+ reason: binding_send stays one-click, even in Auto
79
+
80
+ ▶ The agent tries to change the live system itself
81
+ status: blocked decision: block
82
+ reason: Fairwire Mobile Devices never wipes, locks or retires a device.
83
+ ```
84
+
85
+ ## Tools
86
+
87
+ | Tool | What it does | Policy |
88
+ |---|---|---|
89
+ | `mobile_check` | Review the device management export and list jailbroken, leaver, unprotected, silent, outdated, non-compliant and unassigned devices. | runs |
90
+ | `mobile_explain` | Every finding for one device or platform. | runs |
91
+ | `mobile_write_report` | Write mobile-devices.csv (one row per finding, with blank owner and decision columns) and mobile-devices.html into out_dir (default fairwire-out/mobile). | runs |
92
+ | `mobile_draft_device_note` | Write drafts/device_note-<date>.md: the open findings at or above min_severity (default medium), each with what to do, addressed to endpoint and device management team. | asks first (Auto can be opted in) |
93
+ | `mobile_request_send` | After one named human click (even in Auto), record that the reviewed device note draft is approved in device_note-requests.csv. | one named click, even in Auto (`binding_send`) |
94
+ | `mobile_recall` | Search this agent's own memory of the customer's setup: accepted facts (in use) and facts waiting for a person. | runs |
95
+ | `mobile_learn` | Propose one fact about the customer's setup for this agent to remember. | runs |
96
+ | `mobile_accept_learning` | A named person accepts or rejects a fact waiting in this agent's memory. | one named click, even in Auto (`accept_learning`) |
97
+ | `mobile_retire_memory` | A named person stops an accepted fact from applying. | one named click, even in Auto (`accept_learning`) |
98
+ | `mdm_wipe_device` | Fairwire Mobile Devices never wipes, locks or retires a device. | refused |
99
+ | `mdm_change_policy` | Fairwire Mobile Devices never changes a compliance or configuration policy. | refused |
100
+
101
+ Any tool name not in this table is blocked, including names a model invents. `refused` tools are listed so a model can see they exist and are refused.
102
+
103
+ ## Columns it reads
104
+
105
+ Table inputs can be CSV, TSV, semicolon- or pipe-separated text, Excel `.xlsx`, JSON or JSONL. Columns are matched by the agent's own name, then by the English names below, then by their names in German, French, Spanish, Portuguese, Italian, Japanese, Chinese and Korean. Dates become `YYYY-MM-DD`; amounts and counts are read with either decimal mark. Every result lists under `sources` how each file was read.
106
+
107
+ ### Mobile devices (`devices`)
108
+
109
+ | Column | Type | Also read as | For example, in other languages |
110
+ |---|---|---|---|
111
+ | `device` (required) | text | Device name, Device, Name, Device ID | Gerät, Appareil, デバイス, 设备 |
112
+ | `user` | text | Primary user UPN, User, Assigned User, Owner, User principal name, Email | Benutzer, Utilisateur, ユーザー, 用户 |
113
+ | `platform` | text | OS, Platform, Operating System | Betriebssystem, Système d’exploitation, OS, 操作系统 |
114
+ | `os_version` | text | OS version, OS Version, Version | Betriebssystemversion, Version du système, OSバージョン, 操作系统版本 |
115
+ | `ownership` | text | Ownership, Owner Type, Device Ownership, Managed By | - |
116
+ | `last_check_in` | date and time | Last check-in, Last Check-in, Last Sync, Last Contact, Last Inventory | Letzte Synchronisierung, Dernière synchronisation, 最終チェックイン, 最后签入 |
117
+ | `encrypted` | text | Encrypted, Encryption, Storage Encrypted, FileVault | Verschlüsselt, Chiffré, 暗号化, 已加密 |
118
+ | `passcode` | text | Passcode, Passcode Present, Screen Lock, PIN Set | - |
119
+ | `jailbroken` | text | Jailbroken, Rooted, Jailbroken/Rooted, Compromised | - |
120
+ | `compliance` | text | Compliance, Compliance State, Compliant | Konformität, Conformité, 準拠状態, 合规状态 |
121
+ | `imei` | text | IMEI, Serial number, Serial, MEID | - |
122
+
123
+ Named exports recognised by their column names:
124
+
125
+ | System | Export | Recognised by | Layout checked against vendor docs |
126
+ |---|---|---|---|
127
+ | Microsoft Intune | All devices list exported to CSV | Device name, OS, OS version, Compliance, Last check-in | no |
128
+
129
+ Where a layout says "checked", its column names were compared with the vendor's documentation on that date. The other layouts were written from knowledge of the export and were not checked. None was tested against a live account.
130
+
131
+ ### Leavers (`leavers`)
132
+
133
+ | Column | Type | Also read as | For example, in other languages |
134
+ |---|---|---|---|
135
+ | `user` (required) | text | User, UPN, Email, Login | Benutzer, Utilisateur, ユーザー, 用户 |
136
+ | `end_date` (required) | date | End Date, Last Day, Termination Date, Leaving Date | Austrittsdatum, Date de sortie, 退職日, 离职日期 |
137
+
138
+ ### Files from other countries
139
+
140
+ A German export in Windows-1252 with semicolons, `1.234,56` and `03.11.2026`, or a Japanese one in Shift_JIS with `2026/11/03`, is read the same way as the English file. [`fixtures/intl/`](fixtures/intl) has both versions of the demo data, and the eval cases `intl-de-*` and `intl-ja-*` require the same results as the English case. Columns named differently? Run `npx fairwire-mobile-devices inspect <file>` (names and shapes only, never values) and name them in `fairwire-sources.json`:
141
+
142
+ ```json
143
+ { "files": { "exports/devices.csv": { "columns": { "host": "Gerätename" }, "date_order": "dmy" } } }
144
+ ```
145
+
146
+ ## Memory
147
+
148
+ fairwire-mobile-devices can remember facts about your setup so the next run does not have to be told again. `mobile_learn` only proposes a fact; it changes nothing until a named person accepts it with `mobile_accept_learning`, which is one click even in Auto. Facts live in one hash-chained file per agent under `.fairwire/memory/`; if the chain does not verify, no fact is used. Credentials, personal identifiers and text that reads like instructions to an AI are refused. Run without memory with `--no-memory`.
149
+
150
+ | Kind | What an accepted fact changes |
151
+ |---|---|
152
+ | `known_exception` | that finding is listed under "Accepted as known" instead of as open, until review_by (when given) has passed. |
153
+ | `note` | nothing (shown by recall only) |
154
+
155
+ ```bash
156
+ fairwire-mobile-devices memory list
157
+ fairwire-mobile-devices memory accept MEM-1a2b3c4d5e6f --as "Your Name"
158
+ fairwire-mobile-devices memory retire MEM-1a2b3c4d5e6f --as "Your Name" --reason "rule removed"
159
+ ```
160
+
161
+ ## Install
162
+
163
+ Node 20 or newer. No other dependencies.
164
+
165
+ ```bash
166
+ npx -y fairwire-mobile-devices demo
167
+ npx -y fairwire-mobile-devices mcp --root /path/to/your/files
168
+ ```
169
+
170
+ Claude Desktop, Cursor and other MCP hosts:
171
+
172
+ ```json
173
+ {
174
+ "mcpServers": {
175
+ "fairwire-mobile-devices": {
176
+ "command": "npx",
177
+ "args": [
178
+ "-y",
179
+ "fairwire-mobile-devices",
180
+ "mcp",
181
+ "--root",
182
+ "/path/to/your/files"
183
+ ]
184
+ }
185
+ }
186
+ }
187
+ ```
188
+
189
+ Claude Code: `claude mcp add fairwire-mobile-devices -- npx -y fairwire-mobile-devices mcp --root .`, or install the `fairwire-mobile-devices` plugin from this repository's marketplace.
190
+
191
+ ## Modes and approvals
192
+
193
+ - **Review** (`--mode review`): reads and reports only.
194
+ - **Assist** (default): the policy above. A tool that asks returns an `approval_id`; a person approves it once with `fairwire-mobile-devices approve <id> --as "Your Name"` (or on the local approvals page, `fairwire-mobile-devices approvals`), and the same call is repeated.
195
+ - **Auto** (`--mode auto --auto <tool,...>`): opt-in per tool, with step caps and a kill switch (`fairwire-mobile-devices kill`). Paying, sending, posting to a ledger or a live system and accepting a learned fact stay **one named click even in Auto**; an approval is tied to the sha256 of the reviewed draft, so a changed draft needs a new click.
196
+
197
+ ## CLI
198
+
199
+ ```bash
200
+ fairwire-mobile-devices tools # every tool, its policy and arguments
201
+ fairwire-mobile-devices sources # the columns each input is read from
202
+ fairwire-mobile-devices inspect <file> # how a file would be read (names and shapes, never values)
203
+ fairwire-mobile-devices call mobile_check '{"devices":"<devices>"}'
204
+ fairwire-mobile-devices eval # the private eval cases on the fictional fixtures
205
+ fairwire-mobile-devices demo
206
+ ```
207
+
208
+ ## Audit log and data
209
+
210
+ Every call is written to `.fairwire/audit.jsonl` under the root: hash-chained JSON lines, with arguments stored as a hash, signed with an Ed25519 key when you configure one. Everything runs on your machine on files you choose. No network calls, no telemetry, no credentials. The bundled fixtures are fictional.
211
+
212
+ <!-- generated:end -->
213
+
214
+ ## Limits
215
+
216
+ - Reads only the files you export and give it. It does not log in to a firewall, switch, controller, cloud console, identity provider or any other live system.
217
+ - Jailbreak, encryption and passcode states are what the device last reported to device management; a device that stopped checking in may have changed since.
218
+ - Personal devices are judged on company data only; nothing here asks for a full wipe of a personal phone.
219
+ - Thresholds are working defaults in a settings file you control; they are not a vendor rule, a requirement of any standard or a security guarantee.
220
+ - Results returned to the AI model have the names of people, sign-in names, e-mail addresses, phone numbers and client addresses masked. The files written here keep the real values: keep them in a secure folder.
221
+ - It changes nothing on a live device, firewall, DNS zone, directory or cloud account. Every change it suggests is a draft that one named person applies.
222
+ - Export layouts were written from knowledge of common exports and have not been tested on live customer accounts. Run `inspect` on a new export and name columns in `fairwire-sources.json` when they differ.
223
+
224
+ ## Licence
225
+
226
+ MIT. Fictional data only in `fixtures/`.
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { fileURLToPath } from 'node:url';
3
+ import { main } from 'fairwire-core';
4
+ import { manifest } from '../src/manifest.js';
5
+ import { demo } from '../src/demo.js';
6
+
7
+ main(manifest, { bin: 'fairwire-mobile-devices', demo, evalFile: fileURLToPath(new URL('../evals/cases.json', import.meta.url)) });
@@ -0,0 +1,356 @@
1
+ {
2
+ "suite": "fairwire-mobile-devices",
3
+ "root": "..",
4
+ "data_note": "Fictional mobile devices in ../fixtures, as of 2026-11-18. No model is called.",
5
+ "cases": [
6
+ {
7
+ "id": "check-totals",
8
+ "tool": "mobile_check",
9
+ "args": {
10
+ "devices": "fixtures/devices.csv",
11
+ "leavers": "fixtures/leavers.csv",
12
+ "settings": "fixtures/settings.json",
13
+ "as_of": "2026-11-18"
14
+ },
15
+ "expect": {
16
+ "equals": {
17
+ "result.devices": 8,
18
+ "result.personal": 2,
19
+ "result.open": 8,
20
+ "result.high": 3
21
+ }
22
+ }
23
+ },
24
+ {
25
+ "id": "every-planted-issue",
26
+ "tool": "mobile_check",
27
+ "args": {
28
+ "devices": "fixtures/devices.csv",
29
+ "leavers": "fixtures/leavers.csv",
30
+ "settings": "fixtures/settings.json",
31
+ "as_of": "2026-11-18"
32
+ },
33
+ "expect": {
34
+ "contains": [
35
+ "jailbroken",
36
+ "AND-103",
37
+ "leaver_device",
38
+ "IPH-106",
39
+ "no_passcode_or_encryption",
40
+ "no encryption",
41
+ "stale_check_in",
42
+ "2026-09-20",
43
+ "old_os",
44
+ "16.7.2",
45
+ "no_owner",
46
+ "IPD-107",
47
+ "noncompliant",
48
+ "AND-108"
49
+ ],
50
+ "not_contains": [
51
+ "IPH-101"
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "id": "users-and-imeis-masked",
57
+ "tool": "mobile_check",
58
+ "args": {
59
+ "devices": "fixtures/devices.csv",
60
+ "leavers": "fixtures/leavers.csv",
61
+ "as_of": "2026-11-18"
62
+ },
63
+ "expect": {
64
+ "not_contains": [
65
+ "corp.example",
66
+ "350000000000"
67
+ ],
68
+ "matches": [
69
+ "USR-[0-9a-f]{8}"
70
+ ]
71
+ }
72
+ },
73
+ {
74
+ "id": "no-minimum-os",
75
+ "tool": "mobile_check",
76
+ "args": {
77
+ "devices": "fixtures/devices.csv",
78
+ "as_of": "2026-11-18"
79
+ },
80
+ "expect": {
81
+ "equals": {
82
+ "result.open": 6,
83
+ "result.high": 2
84
+ },
85
+ "not_contains": [
86
+ "old_os",
87
+ "leaver_device"
88
+ ]
89
+ }
90
+ },
91
+ {
92
+ "id": "explain-android",
93
+ "tool": "mobile_explain",
94
+ "args": {
95
+ "devices": "fixtures/devices.csv",
96
+ "leavers": "fixtures/leavers.csv",
97
+ "settings": "fixtures/settings.json",
98
+ "as_of": "2026-11-18",
99
+ "device": "android"
100
+ },
101
+ "expect": {
102
+ "contains": [
103
+ "jailbroken",
104
+ "no_passcode_or_encryption",
105
+ "old_os",
106
+ "noncompliant"
107
+ ],
108
+ "equals": {
109
+ "result.findings": 4
110
+ }
111
+ }
112
+ },
113
+ {
114
+ "id": "draft-after-approval",
115
+ "tool": "mobile_draft_device_note",
116
+ "approve": "Pat Example",
117
+ "args": {
118
+ "devices": "fixtures/devices.csv",
119
+ "leavers": "fixtures/leavers.csv",
120
+ "settings": "fixtures/settings.json",
121
+ "as_of": "2026-11-18"
122
+ },
123
+ "expect": {
124
+ "status": "executed",
125
+ "contains": [
126
+ "Nothing was sent"
127
+ ],
128
+ "equals": {
129
+ "result.items": 6,
130
+ "result.open_markers": 1
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "id": "review-mode-still-reads",
136
+ "tool": "mobile_check",
137
+ "mode": "review",
138
+ "args": {
139
+ "devices": "fixtures/devices.csv",
140
+ "leavers": "fixtures/leavers.csv",
141
+ "settings": "fixtures/settings.json",
142
+ "as_of": "2026-11-18"
143
+ },
144
+ "expect": {
145
+ "status": "executed",
146
+ "equals": {
147
+ "result.devices": 8,
148
+ "result.personal": 2,
149
+ "result.open": 8,
150
+ "result.high": 3
151
+ }
152
+ },
153
+ "generated": true
154
+ },
155
+ {
156
+ "id": "severity-filter",
157
+ "tool": "mobile_check",
158
+ "args": {
159
+ "devices": "fixtures/devices.csv",
160
+ "leavers": "fixtures/leavers.csv",
161
+ "settings": "fixtures/settings.json",
162
+ "as_of": "2026-11-18",
163
+ "severity": "high"
164
+ },
165
+ "expect": {
166
+ "status": "executed",
167
+ "equals": {
168
+ "result.findings": 3
169
+ }
170
+ },
171
+ "generated": true
172
+ },
173
+ {
174
+ "id": "missing-argument-named",
175
+ "tool": "mobile_check",
176
+ "args": {},
177
+ "expect": {
178
+ "status": "error",
179
+ "contains": [
180
+ "devices"
181
+ ]
182
+ },
183
+ "generated": true
184
+ },
185
+ {
186
+ "id": "file-outside-root-refused",
187
+ "tool": "mobile_check",
188
+ "args": {
189
+ "devices": "../../../outside.csv",
190
+ "leavers": "fixtures/leavers.csv",
191
+ "settings": "fixtures/settings.json",
192
+ "as_of": "2026-11-18"
193
+ },
194
+ "expect": {
195
+ "status": "error",
196
+ "contains": [
197
+ "outside"
198
+ ]
199
+ },
200
+ "generated": true
201
+ },
202
+ {
203
+ "id": "invented-tool-name-refused",
204
+ "tool": "mobile_apply_every_fix_now",
205
+ "args": {},
206
+ "expect": {
207
+ "status": "blocked"
208
+ },
209
+ "generated": true
210
+ },
211
+ {
212
+ "id": "write-report-writes-files",
213
+ "tool": "mobile_write_report",
214
+ "args": {
215
+ "devices": "fixtures/devices.csv",
216
+ "leavers": "fixtures/leavers.csv",
217
+ "settings": "fixtures/settings.json",
218
+ "as_of": "2026-11-18"
219
+ },
220
+ "expect": {
221
+ "status": "executed",
222
+ "contains": [
223
+ "mobile-devices.csv",
224
+ "mobile-devices.html"
225
+ ]
226
+ },
227
+ "generated": true
228
+ },
229
+ {
230
+ "id": "recall-memory-starts-empty",
231
+ "tool": "mobile_recall",
232
+ "args": {},
233
+ "expect": {
234
+ "status": "executed",
235
+ "contains": [
236
+ "memory is empty"
237
+ ]
238
+ },
239
+ "generated": true
240
+ },
241
+ {
242
+ "id": "accept-learning-stays-one-click",
243
+ "tool": "mobile_accept_learning",
244
+ "mode": "auto",
245
+ "args": {
246
+ "id": "MEM-000000000000",
247
+ "decision": "accept"
248
+ },
249
+ "expect": {
250
+ "status": "needs_approval"
251
+ },
252
+ "generated": true
253
+ },
254
+ {
255
+ "id": "never-mdm-wipe-device",
256
+ "tool": "mdm_wipe_device",
257
+ "mode": "auto",
258
+ "args": {},
259
+ "expect": {
260
+ "status": "blocked"
261
+ },
262
+ "generated": true
263
+ },
264
+ {
265
+ "id": "never-mdm-change-policy",
266
+ "tool": "mdm_change_policy",
267
+ "mode": "auto",
268
+ "args": {},
269
+ "expect": {
270
+ "status": "blocked"
271
+ },
272
+ "generated": true
273
+ },
274
+ {
275
+ "id": "draft-waits-for-a-person",
276
+ "tool": "mobile_draft_device_note",
277
+ "args": {
278
+ "devices": "fixtures/devices.csv",
279
+ "leavers": "fixtures/leavers.csv",
280
+ "settings": "fixtures/settings.json",
281
+ "as_of": "2026-11-18"
282
+ },
283
+ "expect": {
284
+ "status": "needs_approval",
285
+ "decision": "ask"
286
+ },
287
+ "generated": true
288
+ },
289
+ {
290
+ "id": "review-mode-drafts-nothing",
291
+ "tool": "mobile_draft_device_note",
292
+ "mode": "review",
293
+ "args": {
294
+ "devices": "fixtures/devices.csv",
295
+ "leavers": "fixtures/leavers.csv",
296
+ "settings": "fixtures/settings.json",
297
+ "as_of": "2026-11-18"
298
+ },
299
+ "expect": {
300
+ "status": "blocked"
301
+ },
302
+ "generated": true
303
+ },
304
+ {
305
+ "id": "request-stays-one-click",
306
+ "tool": "mobile_request_send",
307
+ "mode": "auto",
308
+ "args": {
309
+ "draft": "fixtures/README.md",
310
+ "draft_sha256": "0000000000000000000000000000000000000000000000000000000000000000"
311
+ },
312
+ "expect": {
313
+ "status": "needs_approval"
314
+ },
315
+ "generated": true
316
+ },
317
+ {
318
+ "id": "intl-de-check-totals",
319
+ "tool": "mobile_check",
320
+ "args": {
321
+ "devices": "fixtures/intl/de/devices.csv",
322
+ "leavers": "fixtures/intl/de/leavers.csv",
323
+ "settings": "fixtures/settings.json",
324
+ "as_of": "2026-11-18"
325
+ },
326
+ "expect": {
327
+ "equals": {
328
+ "result.devices": 8,
329
+ "result.personal": 2,
330
+ "result.open": 8,
331
+ "result.high": 3
332
+ }
333
+ },
334
+ "note": "German export of the same data (fixtures/intl/de); must match the English case \"check-totals\"."
335
+ },
336
+ {
337
+ "id": "intl-ja-check-totals",
338
+ "tool": "mobile_check",
339
+ "args": {
340
+ "devices": "fixtures/intl/ja/devices.csv",
341
+ "leavers": "fixtures/intl/ja/leavers.csv",
342
+ "settings": "fixtures/settings.json",
343
+ "as_of": "2026-11-18"
344
+ },
345
+ "expect": {
346
+ "equals": {
347
+ "result.devices": 8,
348
+ "result.personal": 2,
349
+ "result.open": 8,
350
+ "result.high": 3
351
+ }
352
+ },
353
+ "note": "Japanese export of the same data (fixtures/intl/ja); must match the English case \"check-totals\"."
354
+ }
355
+ ]
356
+ }
@@ -0,0 +1,7 @@
1
+ # Fairwire Mobile Devices fixtures
2
+
3
+ Fictional mobile devices for corp.example (made-up IMEIs).
4
+
5
+ - `devices.csv`: 8 devices. IPH-102 runs iOS 16.7; AND-103 is rooted; AND-104 is a personal phone with no encryption on Android 12; IPH-105 last checked in on 20 September; IPH-106 belongs to someone who left on 31 October; the iPad has no owner; AND-108 is non-compliant for another reason.
6
+ - `leavers.csv`: one leaver.
7
+ - `settings.json`: 30 days without check-in; minimum iOS 17 and Android 13.
@@ -0,0 +1,9 @@
1
+ device,user,platform,os_version,ownership,last_check_in,encrypted,passcode,jailbroken,compliance,imei
2
+ IPH-101,aortiz@corp.example,iOS,18.1,Corporate,2026-11-17 08:00:00,yes,yes,no,Compliant,350000000000101
3
+ IPH-102,bkim@corp.example,iOS,16.7.2,Corporate,2026-11-17 08:00:00,yes,yes,no,Noncompliant,350000000000102
4
+ AND-103,cdiaz@corp.example,Android,14,Personal,2026-11-16 08:00:00,yes,yes,yes,Noncompliant,350000000000103
5
+ AND-104,dlee@corp.example,Android,12,Personal,2026-11-16 08:00:00,no,yes,no,Noncompliant,350000000000104
6
+ IPH-105,emoss@corp.example,iOS,18.1,Corporate,2026-09-20 08:00:00,yes,yes,no,Compliant,350000000000105
7
+ IPH-106,fnunez@corp.example,iOS,18.0,Corporate,2026-11-15 08:00:00,yes,yes,no,Compliant,350000000000106
8
+ IPD-107,,iPadOS,18.1,Corporate,2026-11-17 08:00:00,yes,yes,no,Compliant,350000000000107
9
+ AND-108,gpark@corp.example,Android,15,Corporate,2026-11-17 08:00:00,yes,yes,no,Noncompliant,350000000000108
@@ -0,0 +1,12 @@
1
+ # Fixtures from other countries
2
+
3
+ Generated by `node scripts/make-intl-fixtures.mjs` from the English fixtures one
4
+ folder up. The same fictional data, written the way a local export writes it:
5
+
6
+ - `de/`: German column names, Windows-1252 text, semicolons, comma decimals
7
+ (1.234,56), day-first dotted dates (03.11.2026), kilograms and kilometres.
8
+ - `ja/`: Japanese column names, Shift_JIS text, year-first dates (2026/11/03),
9
+ kilograms and kilometres.
10
+
11
+ Values (names, codes, charge wording) stay in English. The eval cases
12
+ `intl-de-*` and `intl-ja-*` expect exactly the same results as the English case.
@@ -0,0 +1,9 @@
1
+ Ger�t;Benutzer;Betriebssystem;Betriebssystemversion;ownership;Letzte Synchronisierung;Verschl�sselt;passcode;jailbroken;Konformit�t;imei
2
+ IPH-101;aortiz@corp.example;iOS;18.1;Corporate;17.11.2026 08:00:00;yes;yes;no;Compliant;350000000000101
3
+ IPH-102;bkim@corp.example;iOS;16.7.2;Corporate;17.11.2026 08:00:00;yes;yes;no;Noncompliant;350000000000102
4
+ AND-103;cdiaz@corp.example;Android;14;Personal;16.11.2026 08:00:00;yes;yes;yes;Noncompliant;350000000000103
5
+ AND-104;dlee@corp.example;Android;12;Personal;16.11.2026 08:00:00;no;yes;no;Noncompliant;350000000000104
6
+ IPH-105;emoss@corp.example;iOS;18.1;Corporate;20.09.2026 08:00:00;yes;yes;no;Compliant;350000000000105
7
+ IPH-106;fnunez@corp.example;iOS;18.0;Corporate;15.11.2026 08:00:00;yes;yes;no;Compliant;350000000000106
8
+ IPD-107;;iPadOS;18.1;Corporate;17.11.2026 08:00:00;yes;yes;no;Compliant;350000000000107
9
+ AND-108;gpark@corp.example;Android;15;Corporate;17.11.2026 08:00:00;yes;yes;no;Noncompliant;350000000000108
@@ -0,0 +1,2 @@
1
+ Benutzer;Austrittsdatum
2
+ fnunez@corp.example;31.10.2026
@@ -0,0 +1,9 @@
1
+ �f�o�C�X,���[�U�[,�I�y���[�e�B���O�V�X�e��,OS�o�[�W����,ownership,�ŏI�`�F�b�N�C��,�Í���,passcode,jailbroken,�������,imei
2
+ IPH-101,aortiz@corp.example,iOS,18.1,Corporate,2026/11/17 08:00:00,yes,yes,no,Compliant,350000000000101
3
+ IPH-102,bkim@corp.example,iOS,16.7.2,Corporate,2026/11/17 08:00:00,yes,yes,no,Noncompliant,350000000000102
4
+ AND-103,cdiaz@corp.example,Android,14,Personal,2026/11/16 08:00:00,yes,yes,yes,Noncompliant,350000000000103
5
+ AND-104,dlee@corp.example,Android,12,Personal,2026/11/16 08:00:00,no,yes,no,Noncompliant,350000000000104
6
+ IPH-105,emoss@corp.example,iOS,18.1,Corporate,2026/09/20 08:00:00,yes,yes,no,Compliant,350000000000105
7
+ IPH-106,fnunez@corp.example,iOS,18.0,Corporate,2026/11/15 08:00:00,yes,yes,no,Compliant,350000000000106
8
+ IPD-107,,iPadOS,18.1,Corporate,2026/11/17 08:00:00,yes,yes,no,Compliant,350000000000107
9
+ AND-108,gpark@corp.example,Android,15,Corporate,2026/11/17 08:00:00,yes,yes,no,Noncompliant,350000000000108
@@ -0,0 +1,2 @@
1
+ ���[�U�[,�ސE��
2
+ fnunez@corp.example,2026/10/31
@@ -0,0 +1,2 @@
1
+ user,end_date
2
+ fnunez@corp.example,2026-10-31
@@ -0,0 +1,4 @@
1
+ {
2
+ "stale_days": 30,
3
+ "min_os": { "iOS": "17.0", "Android": "13" }
4
+ }
package/package.json CHANGED
@@ -1,6 +1,59 @@
1
1
  {
2
2
  "name": "fairwire-mobile-devices",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "mcpName": "io.github.fpavia111-creator/fairwire-mobile-devices",
5
+ "description": "Fairwire Mobile Devices: Mobile device inventory from Intune, Jamf or any MDM export: devices that stopped checking in, old operating systems, no encryption or passcode, jailbroken or rooted devices, devices of people who left and devices with no owner. Names masked for the model. Drafts notes; never wipes or locks a device.",
6
+ "type": "module",
7
+ "license": "MIT",
8
+ "author": "Kurt Francisco",
9
+ "engines": {
10
+ "node": ">=20"
11
+ },
12
+ "main": "src/index.js",
13
+ "exports": {
14
+ ".": "./src/index.js",
15
+ "./package.json": "./package.json"
16
+ },
17
+ "bin": {
18
+ "fairwire-mobile-devices": "bin/fairwire-mobile-devices.js"
19
+ },
20
+ "files": [
21
+ "src",
22
+ "bin",
23
+ "fixtures",
24
+ "evals",
25
+ "README.md",
26
+ "CHANGELOG.md",
27
+ "LICENSE",
28
+ "server.json"
29
+ ],
30
+ "scripts": {
31
+ "test": "node scripts/run-tests.cjs",
32
+ "demo": "node bin/fairwire-mobile-devices.js demo",
33
+ "eval": "node bin/fairwire-mobile-devices.js eval"
34
+ },
35
+ "dependencies": {
36
+ "fairwire-core": "^0.1.0"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/fpavia111-creator/fairwire-agents.git",
41
+ "directory": "packages/fairwire-mobile-devices"
42
+ },
43
+ "homepage": "https://github.com/fpavia111-creator/fairwire-agents/tree/master/packages/fairwire-mobile-devices#readme",
44
+ "bugs": {
45
+ "url": "https://github.com/fpavia111-creator/fairwire-agents/issues"
46
+ },
47
+ "keywords": [
48
+ "mcp",
49
+ "mcp-server",
50
+ "it-operations",
51
+ "network",
52
+ "fairwire",
53
+ "mdm",
54
+ "intune",
55
+ "jamf",
56
+ "mobile-devices",
57
+ "byod"
58
+ ]
59
+ }
package/server.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "io.github.fpavia111-creator/fairwire-mobile-devices",
4
+ "title": "Fairwire Mobile Devices",
5
+ "description": "Fairwire Mobile Devices: Mobile device inventory from Intune, Jamf or any MDM export: devices that…",
6
+ "version": "0.1.0",
7
+ "repository": {
8
+ "url": "https://github.com/fpavia111-creator/fairwire-agents",
9
+ "source": "github",
10
+ "subfolder": "packages/fairwire-mobile-devices"
11
+ },
12
+ "websiteUrl": "https://fair-agents.com/fairwire.html",
13
+ "packages": [
14
+ {
15
+ "registryType": "npm",
16
+ "identifier": "fairwire-mobile-devices",
17
+ "version": "0.1.0",
18
+ "transport": {
19
+ "type": "stdio"
20
+ },
21
+ "packageArguments": [
22
+ {
23
+ "type": "positional",
24
+ "value": "mcp"
25
+ },
26
+ {
27
+ "type": "named",
28
+ "name": "--root",
29
+ "description": "Folder holding the exports this agent may read and write (it cannot reach outside it)",
30
+ "isRequired": true,
31
+ "format": "filepath",
32
+ "valueHint": "exports_folder"
33
+ }
34
+ ]
35
+ }
36
+ ]
37
+ }
package/src/demo.js ADDED
@@ -0,0 +1,19 @@
1
+ import { fileURLToPath } from 'node:url';
2
+ import { readFileSync } from 'node:fs';
3
+ import { standardDemo } from 'fairwire-core';
4
+
5
+ // The demo runs the eval case "check-totals" and the agent's draft on the fictional fixtures.
6
+ const cases = JSON.parse(readFileSync(new URL('../evals/cases.json', import.meta.url), 'utf8')).cases;
7
+ const base = cases.find((c) => c.id === 'check-totals');
8
+ const explain = cases.find((c) => /_explain$/.test(c.tool) && !c.expect.status);
9
+ const draft = cases.find((c) => /_draft_/.test(c.tool) && c.approve);
10
+
11
+ export async function demo(manifest) {
12
+ const refused = manifest.tools.filter((t) => (manifest.policy.rules.find((r) => r.tool === t.name) || {}).decision === 'block')[0];
13
+ await standardDemo(manifest, fileURLToPath(new URL('../fixtures', import.meta.url)), {
14
+ title: 'Fairwire Mobile Devices demo', args: base.args,
15
+ explain: explain ? { label: 'Explain one finding', args: explain.args } : null,
16
+ draft: draft ? { label: 'Draft the note for a person', args: draft.args } : null,
17
+ refused: refused ? refused.name : null,
18
+ });
19
+ }
package/src/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { manifest } from './manifest.js';
2
+ export * from './logic.js';
package/src/logic.js ADDED
@@ -0,0 +1,59 @@
1
+ // Fairwire Mobile Devices: mobile device inventory from an MDM export. Pure functions.
2
+ import { str, low, yes, isoDate, daysBetween, versionCompare, finding } from 'fairwire-core';
3
+
4
+ export const CHECKS = Object.freeze({
5
+ jailbroken: 'A jailbroken or rooted device (its security controls cannot be trusted).',
6
+ leaver_device: 'A device still enrolled to someone who has left.',
7
+ no_passcode_or_encryption: 'A device with no passcode or no storage encryption.',
8
+ stale_check_in: 'A device that has not checked in with device management for longer than your limit (lost, wiped by the user, or switched off).',
9
+ old_os: 'A device on an operating system older than the minimum you set for its platform.',
10
+ noncompliant: 'A device your device management marks as not compliant for another reason.',
11
+ no_owner: 'A company device with nobody assigned to it.',
12
+ });
13
+
14
+ export const DEVICE_FIELDS = Object.freeze({
15
+ device: { aliases: ['Device name', 'Device', 'Name', 'Device ID'], required: true },
16
+ user: { aliases: ['Primary user UPN', 'User', 'Assigned User', 'Owner', 'User principal name', 'Email'], pii: 'user' },
17
+ platform: { aliases: ['OS', 'Platform', 'Operating System'] },
18
+ os_version: { aliases: ['OS version', 'OS Version', 'Version'] },
19
+ ownership: { aliases: ['Ownership', 'Owner Type', 'Device Ownership', 'Managed By'] },
20
+ last_check_in: { type: 'datetime', aliases: ['Last check-in', 'Last Check-in', 'Last Sync', 'Last Contact', 'Last Inventory'] },
21
+ encrypted: { aliases: ['Encrypted', 'Encryption', 'Storage Encrypted', 'FileVault'] },
22
+ passcode: { aliases: ['Passcode', 'Passcode Present', 'Screen Lock', 'PIN Set'] },
23
+ jailbroken: { aliases: ['Jailbroken', 'Rooted', 'Jailbroken/Rooted', 'Compromised'] },
24
+ compliance: { aliases: ['Compliance', 'Compliance State', 'Compliant'] },
25
+ imei: { aliases: ['IMEI', 'Serial number', 'Serial', 'MEID'], pii: 'device_id' },
26
+ });
27
+ export const LEAVER_FIELDS = Object.freeze({
28
+ user: { aliases: ['User', 'UPN', 'Email', 'Login'], required: true, pii: 'user' },
29
+ end_date: { type: 'date', aliases: ['End Date', 'Last Day', 'Termination Date', 'Leaving Date'], required: true },
30
+ });
31
+
32
+ export const SETTINGS_SCHEMA = { type: 'object', additionalProperties: false, properties: {
33
+ stale_days: { type: 'integer', minimum: 1, description: 'Days without a check-in after which a device is flagged (default 30)' },
34
+ min_os: { type: 'object', additionalProperties: { type: 'string' }, description: 'Lowest OS version per platform, e.g. {"iOS": "17.0", "Android": "13"} (no check for platforms not listed)' },
35
+ } };
36
+ export const DEFAULTS = Object.freeze({ stale_days: 30, min_os: {} });
37
+
38
+ const platformKey = (p) => { const t = low(p); return /ipad/.test(t) ? 'ipados' : /ios|iphone/.test(t) ? 'ios' : /android/.test(t) ? 'android' : /mac/.test(t) ? 'macos' : /win/.test(t) ? 'windows' : t; };
39
+
40
+ export function reviewMobiles(rows, leaverRows = [], settings = {}, asOf) {
41
+ const s = { ...DEFAULTS, ...settings };
42
+ const ds = rows.filter((r) => str(r.device)).map((r) => ({ device: str(r.device), user: str(r.user), platform: str(r.platform), pk: platformKey(r.platform), os: str(r.os_version), personal: /personal|byod|employee/i.test(str(r.ownership)), seen: isoDate(r.last_check_in), enc: yes(r.encrypted), pass: yes(r.passcode), jb: yes(r.jailbroken) === true, comp: low(r.compliance) }));
43
+ const leavers = new Map(leaverRows.filter((r) => str(r.user) && isoDate(r.end_date)).map((r) => [low(r.user), isoDate(r.end_date)]));
44
+ const minOs = Object.fromEntries(Object.entries(s.min_os).map(([k, v]) => [platformKey(k), v]));
45
+ const items = [];
46
+ for (const d of ds) {
47
+ const who = d.user || 'nobody';
48
+ if (d.jb) items.push(finding('jailbroken', 'high', d.device, `${d.device} (${d.platform}, ${who}) is reported jailbroken or rooted.`, 'Block it from company data and ask the person to restore the device or use another.', { subject: d.pk }));
49
+ const end = d.user && leavers.get(low(d.user)); if (end) items.push(finding('leaver_device', 'high', d.device, `${d.device} is still enrolled to ${d.user}, who left on ${end}.`, d.personal ? 'Remove company data from the device (selective wipe) and retire it from management.' : 'Collect the device, or wipe and re-issue it.', { subject: d.pk }));
50
+ if (d.pass === false || d.enc === false) items.push(finding('no_passcode_or_encryption', 'high', d.device, `${d.device} (${who}) has ${d.pass === false && d.enc === false ? 'no passcode and no encryption' : d.pass === false ? 'no passcode' : 'no encryption'}.`, 'Enforce a passcode and encryption policy; block access until the device complies.', { subject: d.pk }));
51
+ if (d.seen && asOf && daysBetween(d.seen, asOf) > s.stale_days) items.push(finding('stale_check_in', 'medium', d.device, `${d.device} (${who}) last checked in on ${d.seen}.`, 'Contact the person; if the device is lost, retire it and remove its access.', { subject: d.pk }));
52
+ const oldOs = !!(minOs[d.pk] && d.os && versionCompare(d.os, minOs[d.pk]) < 0);
53
+ if (oldOs) items.push(finding('old_os', 'medium', d.device, `${d.device} runs ${d.platform} ${d.os}, under your minimum of ${minOs[d.pk]}.`, 'Ask the person to update; replace devices that cannot.', { subject: d.pk }));
54
+ if (/non|not/.test(d.comp) && !d.jb && !oldOs && d.pass !== false && d.enc !== false) items.push(finding('noncompliant', 'low', d.device, `${d.device} (${who}) is marked not compliant by device management.`, 'Check which policy it fails in the device management console.', { subject: d.pk }));
55
+ if (!d.user && !d.personal) items.push(finding('no_owner', 'low', d.device, `Company device ${d.device} has nobody assigned.`, 'Assign it to a person, or retire it if it is spare.', { subject: d.pk }));
56
+ }
57
+ const plats = {}; for (const d of ds) { const e = plats[d.pk || 'unknown'] || (plats[d.pk || 'unknown'] = { platform: d.pk || 'unknown', devices: 0, personal: 0 }); e.devices++; if (d.personal) e.personal++; }
58
+ return { devices: ds.length, personal: ds.filter((d) => d.personal).length, by_platform: Object.values(plats).sort((a, b) => (a.platform < b.platform ? -1 : 1)), items };
59
+ }
@@ -0,0 +1,36 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { wireAgent, fileArg, SETTINGS_ARG, AS_OF_ARG, settingsFrom, LIMITS, exportProfile, today } from 'fairwire-core';
3
+ import { DEVICE_FIELDS, LEAVER_FIELDS, SETTINGS_SCHEMA, DEFAULTS, reviewMobiles } from './logic.js';
4
+
5
+ const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
6
+ const args = {
7
+ devices: fileArg('Mobile device export under --root (Intune, Jamf, Workspace ONE, Kandji or any CSV, Excel or JSON): one row per device with user, platform, OS version, ownership, last check-in, encryption, passcode, jailbreak and compliance state'),
8
+ leavers: fileArg('Optional list of people who left, with their last day'),
9
+ settings: SETTINGS_ARG('stale_days, min_os'),
10
+ as_of: AS_OF_ARG,
11
+ };
12
+
13
+ export const manifest = wireAgent({
14
+ // Columns the "value is missing" checks depend on: an export without the column skips the check instead of flagging every row.
15
+ needs: { no_owner: ['user'] },
16
+ pkg, prefix: 'mobile', title: 'Fairwire Mobile Devices',
17
+ description: 'Reviews a mobile device export from device management: jailbroken or rooted devices, devices of people who left, no passcode or encryption, devices that stopped checking in, operating systems under your minimum, other non-compliance and company devices with no owner. Users and device ids are masked for the model. Drafts notes; never wipes or locks a device.',
18
+ args, required: ['devices'],
19
+ sources: { devices: { label: 'Mobile devices', args: ['devices'], fields: DEVICE_FIELDS, profiles: [exportProfile('intune_devices', { device: 'Device name', platform: 'OS', os_version: 'OS version', compliance: 'Compliance', last_check_in: 'Last check-in', user: 'Primary user UPN', ownership: 'Ownership' })] }, leavers: { label: 'Leavers', args: ['leavers'], fields: LEAVER_FIELDS } },
20
+ configSchemas: { mobile_settings: SETTINGS_SCHEMA },
21
+ run: (a, ctx) => reviewMobiles(ctx.records(a.devices, 'devices'), a.leavers ? ctx.records(a.leavers, 'leavers') : [], settingsFrom(a, ctx, 'mobile_settings', DEFAULTS), a.as_of || today()),
22
+ summary: (o) => `${o.devices} device(s), ${o.personal} personal: ${o.open} open finding(s), ${o.high} high.`,
23
+ check: { title: 'Review mobile devices', description: 'Review the device management export and list jailbroken, leaver, unprotected, silent, outdated, non-compliant and unassigned devices.' },
24
+ explain: { arg: 'device', argSchema: { type: 'string', maxLength: 200, description: 'Device name or platform from mobile_check' }, title: 'Explain one device or platform', description: 'Every finding for one device or platform.', match: (i, v) => i.key === v || i.subject === String(v).toLowerCase() },
25
+ report: {
26
+ title: 'Mobile device inventory', base: 'mobile-devices',
27
+ sections: (o) => [{ title: 'By platform', rows: o.by_platform, columns: ['platform', 'devices', 'personal'] }],
28
+ limits: [LIMITS.files, 'Jailbreak, encryption and passcode states are what the device last reported to device management; a device that stopped checking in may have changed since.', 'Personal devices are judged on company data only; nothing here asks for a full wipe of a personal phone.', LIMITS.defaults, LIMITS.pii, LIMITS.live],
29
+ },
30
+ note: { noun: 'device_note', verb: 'send', category: 'binding_send', actor: 'the device management owner', to: 'endpoint and device management team', subject: 'Mobile devices to act on', ask: 'Please handle jailbroken and leaver devices today; contact each person before any wipe.' },
31
+ refused: [
32
+ { name: 'mdm_wipe_device', category: 'delete_personal_data', description: 'Fairwire Mobile Devices never wipes, locks or retires a device.' },
33
+ { name: 'mdm_change_policy', category: 'production_deploy', description: 'Fairwire Mobile Devices never changes a compliance or configuration policy.' },
34
+ ],
35
+ prompt: { title: 'Review mobile devices', description: 'Walks the host model through a mobile device review with Fairwire Mobile Devices.', text: 'You are helping an endpoint lead review mobile devices with fairwire-mobile-devices. Users are pseudonyms. 1. Call mobile_check; lead with jailbroken devices and devices of leavers. 2. Use mobile_explain for a device. 3. Call mobile_write_report (the file has real names). 4. Offer mobile_draft_device_note; mobile_request_send waits for one named click.' },
36
+ });