agentnative 0.4.0

The agent-native CLI linter — check whether your CLI follows agent-readiness principles
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
{
  "schema_version": "1.0",
  "generated_by": "anc generate coverage-matrix",
  "rows": [
    {
      "id": "p1-must-env-var",
      "principle": 1,
      "level": "must",
      "summary": "Every flag settable via environment variable (falsey-value parser for booleans).",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p1-env-hints",
          "layer": "behavioral"
        },
        {
          "check_id": "p1-env-flags-source",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p1-must-no-interactive",
      "principle": 1,
      "level": "must",
      "summary": "When stdin is not a TTY or `--no-interactive` is set, every blocking-input surface (prompt libraries, read-line, TUI init) resolves from defaults/stdin or exits with an actionable error.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p1-non-interactive",
          "layer": "behavioral"
        },
        {
          "check_id": "p1-flag-existence",
          "layer": "behavioral"
        },
        {
          "check_id": "p1-non-interactive-source",
          "layer": "project"
        }
      ]
    },
    {
      "id": "p1-must-no-browser",
      "principle": 1,
      "level": "must",
      "summary": "Headless authentication path (`--no-browser` / OAuth Device Authorization Grant).",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI authenticates against a remote service"
      },
      "verifiers": [
        {
          "check_id": "p1-headless-auth",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p1-must-secret-non-leaky-path",
      "principle": 1,
      "level": "must",
      "summary": "Sensitive inputs are readable via stdin or a `--*-file` flag; flag-value and env-var inputs MAY exist for convenience but MUST NOT be the only path.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI accepts secret material (tokens, passwords, keys) as input"
      },
      "verifiers": [
        {
          "check_id": "p1-secret-non-leaky-path",
          "layer": "behavioral"
        }
      ]
    },
    {
      "id": "p1-should-tty-detection",
      "principle": 1,
      "level": "should",
      "summary": "Auto-detect non-interactive context via TTY detection; suppress prompts when stderr is not a terminal.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p1-tty-detection-source",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p1-should-defaults-in-help",
      "principle": 1,
      "level": "should",
      "summary": "Document default values for prompted inputs in `--help` output.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p1-may-rich-tui",
      "principle": 1,
      "level": "may",
      "summary": "Rich interactive experiences (spinners, progress bars, menus) when TTY is detected and `--no-interactive` is not set.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p2-must-output-flag",
      "principle": 2,
      "level": "must",
      "summary": "`--output` flag selects format with `json` and `jsonl` as canonical machine-readable values; `text` is the default human-facing form.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p2-json-output",
          "layer": "behavioral"
        },
        {
          "check_id": "p2-structured-output",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p2-must-stdout-stderr-split",
      "principle": 2,
      "level": "must",
      "summary": "Data goes to stdout; diagnostics/progress/warnings go to stderr, never interleaved.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p2-output-module",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p2-must-exit-codes",
      "principle": 2,
      "level": "must",
      "summary": "Exit codes are structured and documented (0 success, 1 general, 2 usage, 77 auth, 78 config).",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p2-must-json-errors",
      "principle": 2,
      "level": "must",
      "summary": "When `--output json` is active, errors are emitted as JSON (to stderr) with at least `error`, `kind`, and `message` fields.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p2-must-schema-print",
      "principle": 2,
      "level": "must",
      "summary": "CLIs that emit structured output expose the output schema via a `schema` subcommand or `--schema` flag: runtime-discoverable, with a documented format identifier.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI emits structured output"
      },
      "verifiers": [
        {
          "check_id": "p2-schema-print",
          "layer": "behavioral"
        }
      ]
    },
    {
      "id": "p2-should-consistent-envelope",
      "principle": 2,
      "level": "should",
      "summary": "JSON output uses a consistent envelope (a top-level object with predictable keys) across every command.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p2-should-schema-file",
      "principle": 2,
      "level": "should",
      "summary": "Output schemas are also exported to a stable file path (e.g., `schema/<command>.json`) so CI/static-analysis consumers pin without invoking the tool.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI emits structured output"
      },
      "verifiers": [
        {
          "check_id": "p2-schema-file",
          "layer": "project"
        }
      ]
    },
    {
      "id": "p2-should-json-aliases",
      "principle": 2,
      "level": "should",
      "summary": "`--json` and `--jsonl` are accepted as aliases for `--output json` and `--output jsonl`; the short forms work alongside the canonical enum.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p2-json-aliases",
          "layer": "behavioral"
        }
      ]
    },
    {
      "id": "p2-may-more-formats",
      "principle": 2,
      "level": "may",
      "summary": "Additional output formats (CSV, TSV, YAML) beyond the core three.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p2-may-raw-flag",
      "principle": 2,
      "level": "may",
      "summary": "`--raw` flag for unformatted output suitable for piping to other tools.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p3-must-subcommand-examples",
      "principle": 3,
      "level": "must",
      "summary": "Every subcommand ships at least one concrete invocation example (`after_help` in clap).",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI uses subcommands"
      },
      "verifiers": []
    },
    {
      "id": "p3-must-top-level-examples",
      "principle": 3,
      "level": "must",
      "summary": "The top-level command ships 2–3 examples covering the primary use cases.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p3-help",
          "layer": "behavioral"
        }
      ]
    },
    {
      "id": "p3-should-paired-examples",
      "principle": 3,
      "level": "should",
      "summary": "Examples show human and agent invocations side by side (text then `--output json` equivalent).",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p3-should-about-long-about",
      "principle": 3,
      "level": "should",
      "summary": "Short `about` for command-list summaries; `long_about` reserved for detailed descriptions visible with `--help`.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p3-may-examples-subcommand",
      "principle": 3,
      "level": "may",
      "summary": "Dedicated `examples` subcommand or `--examples` flag for curated usage patterns.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p4-must-try-parse",
      "principle": 4,
      "level": "must",
      "summary": "Parse arguments with `try_parse()` instead of `parse()` so `--output json` can emit JSON parse errors.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p4-try-parse",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p4-must-exit-code-mapping",
      "principle": 4,
      "level": "must",
      "summary": "Error types map to distinct exit codes (0, 1, 2, 77, 78).",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p4-bad-args",
          "layer": "behavioral"
        },
        {
          "check_id": "p4-exit-codes",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p4-must-actionable-errors",
      "principle": 4,
      "level": "must",
      "summary": "Every error message names the failure, the cause, and a concrete remediation (a command or a value, not a hint to consult docs).",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p4-should-structured-enum",
      "principle": 4,
      "level": "should",
      "summary": "Error types use a structured enum (via `thiserror` in Rust) with variant-to-kind mapping for JSON serialization.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p4-error-module",
          "layer": "project"
        },
        {
          "check_id": "p4-error-types",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p4-should-gating-before-network",
      "principle": 4,
      "level": "should",
      "summary": "Config and auth validation happen before any network call, failing at the earliest possible point.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI makes network calls"
      },
      "verifiers": []
    },
    {
      "id": "p4-should-json-error-output",
      "principle": 4,
      "level": "should",
      "summary": "Error output respects `--output json`: JSON-formatted errors go to stderr when JSON output is selected.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p4-should-enumerate-valid-set",
      "principle": 4,
      "level": "should",
      "summary": "When rejecting input against an enum or fixed-allowed-values set, the error message includes the valid set.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI rejects input against a closed set"
      },
      "verifiers": [
        {
          "check_id": "p4-enumerate-valid-set",
          "layer": "source"
        },
        {
          "check_id": "p4-enumerate-valid-set",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p5-must-force-yes",
      "principle": 5,
      "level": "must",
      "summary": "Destructive operations (delete, overwrite, bulk modify) require an explicit `--force` or `--yes` flag.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI has destructive operations"
      },
      "verifiers": []
    },
    {
      "id": "p5-must-read-write-distinction",
      "principle": 5,
      "level": "must",
      "summary": "The distinction between read and write commands is clear from the command name and help text alone.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI has both read and write operations"
      },
      "verifiers": []
    },
    {
      "id": "p5-must-dry-run",
      "principle": 5,
      "level": "must",
      "summary": "A `--dry-run` flag is present on every write command; dry-run output respects `--output json`.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI has write operations"
      },
      "verifiers": [
        {
          "check_id": "p5-dry-run",
          "layer": "project"
        }
      ]
    },
    {
      "id": "p5-should-idempotency",
      "principle": 5,
      "level": "should",
      "summary": "Write operations are idempotent where the domain allows it: running the same command twice produces the same result.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI has write operations"
      },
      "verifiers": []
    },
    {
      "id": "p6-must-sigpipe",
      "principle": 6,
      "level": "must",
      "summary": "SIGPIPE is handled so piping to `head`/`tail` does not crash the process (Rust example below; Python/Go/Node have language-specific equivalents).",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p6-sigpipe",
          "layer": "behavioral"
        }
      ]
    },
    {
      "id": "p6-must-sigterm",
      "principle": 6,
      "level": "must",
      "summary": "Long-running operations handle SIGTERM gracefully: flush or roll back partial writes, release locks, exit non-zero within a bounded window. Next invocation succeeds without manual cleanup.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI has long-running operations"
      },
      "verifiers": [
        {
          "check_id": "p6-sigterm",
          "layer": "source"
        },
        {
          "check_id": "p6-sigterm",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p6-must-no-color",
      "principle": 6,
      "level": "must",
      "summary": "TTY detection plus support for `NO_COLOR` and `TERM=dumb`: color codes suppressed when stdout/stderr is not a terminal.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p6-no-color-behavioral",
          "layer": "behavioral"
        },
        {
          "check_id": "p6-no-color",
          "layer": "source"
        },
        {
          "check_id": "p6-no-color",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p6-must-completions",
      "principle": 6,
      "level": "must",
      "summary": "Shell completions available via a `completions` subcommand (Tier 1 meta-command, needs no config/auth/network).",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p6-completions",
          "layer": "project"
        }
      ]
    },
    {
      "id": "p6-must-timeout-network",
      "principle": 6,
      "level": "must",
      "summary": "Network CLIs ship a `--timeout` flag with a sensible default (e.g., 30 seconds).",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI makes network calls"
      },
      "verifiers": [
        {
          "check_id": "p6-timeout",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p6-must-no-pager",
      "principle": 6,
      "level": "must",
      "summary": "If the CLI uses a pager (`less`, `more`, `$PAGER`), it supports `--no-pager` or respects `PAGER=\"\"`.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI invokes a pager for output"
      },
      "verifiers": [
        {
          "check_id": "p6-no-pager-behavioral",
          "layer": "behavioral"
        },
        {
          "check_id": "p6-no-pager",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p6-must-global-flags",
      "principle": 6,
      "level": "must",
      "summary": "Agentic flags (`--output`, `--quiet`, `--no-interactive`, `--timeout`) propagate to every subcommand (e.g., `global = true` in clap).",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI uses subcommands"
      },
      "verifiers": [
        {
          "check_id": "p6-global-flags",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p6-should-stdin-input",
      "principle": 6,
      "level": "should",
      "summary": "Commands that accept input read from stdin when no file argument is provided.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI has commands that accept input data"
      },
      "verifiers": []
    },
    {
      "id": "p6-should-consistent-naming",
      "principle": 6,
      "level": "should",
      "summary": "Subcommand naming follows a consistent `noun verb` or `verb noun` convention throughout the tool.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI uses subcommands"
      },
      "verifiers": []
    },
    {
      "id": "p6-should-tier-gating",
      "principle": 6,
      "level": "should",
      "summary": "Three-tier dependency gating: Tier 1 (meta) needs nothing, Tier 2 (local) needs config, Tier 3 (network) needs config + auth.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p6-should-subcommand-operations",
      "principle": 6,
      "level": "should",
      "summary": "Operations are modeled as subcommands, not flags (`tool search \"q\"`, not `tool --search \"q\"`).",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI performs multiple distinct operations"
      },
      "verifiers": []
    },
    {
      "id": "p6-may-color-flag",
      "principle": 6,
      "level": "may",
      "summary": "`--color auto|always|never` flag for explicit color control beyond TTY auto-detection.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p6-may-standard-names",
      "principle": 6,
      "level": "may",
      "summary": "Subcommand verbs MAY follow community-standard names (`get`/`list`/`create`/`update`/`delete`); flag spellings MAY follow widely-used canonical forms (`--force`, `--yes`, `--limit`, `--quiet`, `--verbose`).",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI uses subcommands"
      },
      "verifiers": [
        {
          "check_id": "p6-standard-names",
          "layer": "behavioral"
        }
      ]
    },
    {
      "id": "p7-must-quiet",
      "principle": 7,
      "level": "must",
      "summary": "A `--quiet` flag suppresses non-essential output; only requested data and errors appear.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p7-quiet",
          "layer": "behavioral"
        }
      ]
    },
    {
      "id": "p7-must-list-clamping",
      "principle": 7,
      "level": "must",
      "summary": "List operations clamp to a documented default maximum; when truncated, indicate it (`\"truncated\": true` in JSON, stderr note in text).",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI has list-style commands"
      },
      "verifiers": [
        {
          "check_id": "p7-output-clamping",
          "layer": "source"
        }
      ]
    },
    {
      "id": "p7-should-verbose",
      "principle": 7,
      "level": "should",
      "summary": "A `--verbose` flag (or `-v` / `-vv`) escalates diagnostic detail when agents need to debug failures.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p7-should-limit",
      "principle": 7,
      "level": "should",
      "summary": "A `--limit` or `--max-results` flag lets callers request exactly the number of items they want.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI has list-style commands"
      },
      "verifiers": []
    },
    {
      "id": "p7-should-timeout",
      "principle": 7,
      "level": "should",
      "summary": "A `--timeout` flag bounds execution time so agents are not blocked indefinitely.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p7-may-cursor-pagination",
      "principle": 7,
      "level": "may",
      "summary": "Cursor-based pagination flags (`--after`, `--before`) for efficient traversal of large result sets.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI returns paginated results"
      },
      "verifiers": []
    },
    {
      "id": "p7-may-auto-verbosity",
      "principle": 7,
      "level": "may",
      "summary": "Automatic verbosity reduction in non-TTY contexts (same behavior `--quiet` explicitly requests).",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": []
    },
    {
      "id": "p8-must-bundle-install",
      "principle": 8,
      "level": "must",
      "summary": "When a skill bundle exists, the CLI provides an install path (`tool skill install [<host>]`) that registers the bundle with installed agent runtimes.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI ships an agent skill bundle"
      },
      "verifiers": [
        {
          "check_id": "p8-bundle-install",
          "layer": "behavioral"
        }
      ]
    },
    {
      "id": "p8-should-bundle-exists",
      "principle": 8,
      "level": "should",
      "summary": "CLIs ship a top-level agent-discoverable markdown bundle (`AGENTS.md`, `SKILL.md`, or equivalent) with YAML frontmatter naming the tool and capability summary.",
      "applicability": {
        "kind": "universal"
      },
      "verifiers": [
        {
          "check_id": "p8-bundle-exists",
          "layer": "project"
        }
      ]
    },
    {
      "id": "p8-may-install-all",
      "principle": 8,
      "level": "may",
      "summary": "An `--all` mode auto-detects installed runtimes (Claude Code, Cursor, Codex, OpenCode, etc.) and installs across all.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI ships an agent skill bundle"
      },
      "verifiers": [
        {
          "check_id": "p8-install-all",
          "layer": "behavioral"
        }
      ]
    },
    {
      "id": "p8-may-bundle-update",
      "principle": 8,
      "level": "may",
      "summary": "An update/upgrade subcommand (`tool skill update`) pulls the latest bundle version.",
      "applicability": {
        "kind": "conditional",
        "condition": "CLI ships an agent skill bundle"
      },
      "verifiers": [
        {
          "check_id": "p8-bundle-update",
          "layer": "behavioral"
        }
      ]
    }
  ],
  "summary": {
    "total": 57,
    "covered": 30,
    "uncovered": 27,
    "dual_layer": 9,
    "must": {
      "total": 27,
      "covered": 21
    },
    "should": {
      "total": 20,
      "covered": 6
    },
    "may": {
      "total": 10,
      "covered": 3
    }
  },
  "audit_profiles": [
    {
      "name": "human-tui",
      "description": "TUI-by-design tools (lazygit, k9s, btop). Interactive-prompt MUSTs suppressed; the TTY-driving contract is out of scope for verification.",
      "suppresses": [
        "p1-non-interactive",
        "p1-flag-existence",
        "p1-non-interactive-source",
        "p1-tty-detection-source",
        "p6-sigpipe",
        "p6-sigterm"
      ]
    },
    {
      "name": "file-traversal",
      "description": "File-traversal utilities (fd, find). Subcommand-structure SHOULDs relaxed; these tools have no subcommands by design.",
      "suppresses": []
    },
    {
      "name": "posix-utility",
      "description": "POSIX utilities (cat, sed, awk). Stdin-as-primary-input is their contract; P1 interactive-prompt MUSTs satisfied vacuously.",
      "suppresses": [
        "p1-non-interactive",
        "p1-flag-existence",
        "p1-non-interactive-source"
      ]
    },
    {
      "name": "diagnostic-only",
      "description": "Diagnostic tools (nvidia-smi, vmstat). No write operations, so the P5 mutation-boundary MUSTs do not apply.",
      "suppresses": [
        "p5-dry-run"
      ]
    }
  ]
}