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
//! Embedded default agents & skills for trusty-code (#2895).
//!
//! Why: A fresh project has no `.claude/agents/` or `.claude/skills/` yet, so
//! `tcode` would otherwise start with zero agents and zero skills — a cold,
//! unusable default. Bundling a working default set at compile time (mirroring
//! the embed pattern `trusty-mpm` uses in `crates/trusty-mpm/src/core/bundle.rs`,
//! but without trusty-mpm's disk-materialize install step — these are parsed
//! in-memory only) gives every project a usable harness out of the box while
//! disk-based `.claude/agents/` and `.claude/skills/` always take precedence
//! when present (see `agents::load_all_agents` and
//! `skills::discover_skill_metadata`'s embedded-fallback branches).
//! What: [`EmbeddedAgent`]/[`DEFAULT_AGENTS`] — the 34-agent dispatchable
//! roster (Slice E3, #2958, plus `pm` added for #3437, `ticketing` for
//! #4027, and the four delivery-workflow agents for #8129): tcode's own 8
//! `Direct` defaults (`engineer`, `qa-agent`, `code-reviewer`, `pm`,
//! `ticketing`, `version-control`, `local-ops`, `documentation` — no
//! `extends:` chain, projected via
//! `agents::md_loader::project_embedded_md`) plus the 26 tm agents (`extends:`-chained
//! through the 5 `BASE-*` templates — projected via
//! `agents::md_loader::project_embedded_md_with_extends`, which resolves
//! against [`tm_agent_sources`]). Authored as Markdown+frontmatter
//! (`.md`) as of #2897 Slice C (previously native TOML; Slice D subsequently
//! retired the TOML loader for USER `.claude/agents/*.toml` configs entirely
//! — see `agents::mod`'s docs). Both projection paths share one
//! frontmatter->`AgentConfig` mapping with the disk `.md` loader
//! (`agents::md_loader::load_md_agent`) — see that module's docs.
//! [`EmbeddedSkill`]/[`DEFAULT_SKILLS`] — trusty-mpm's universal skill set
//! (format-identical `SKILL.md` files), reused verbatim per Bob's reuse
//! directive; the `tm-*` orchestration skills are excluded because they drive
//! trusty-mpm MCP tools tcode does not have.
//!
//! ## Tools-restriction deviation (Slice E3, #2958, Bob's 2026-07-18 ruling)
//!
//! Four of the 26 roster agents — `qa`, `code-critic`, `code-analyzer`,
//! `web-qa` — carry an explicit restrictive `tools:` override in their tcode
//! FORK (`assets/agents/{qa,code-critic,code-analyzer,web-qa}.md`) that is NOT
//! present in the shared agent they were derived from (`content/agents`,
//! read at runtime since #9011). These four are the only agent `.md` files
//! trusty-code still embeds a second copy of: every other roster agent is read
//! from instructional content through [`tm_agent_sources`], so it cannot
//! drift. (#8129's four
//! delivery-workflow agents also live in `assets/agents/`, but they are
//! tcode-AUTHORED, not copies — see the "Delivery-workflow agents" section
//! below.) This is a
//! deliberate, Bob-approved deviation, not drift: those four are
//! reviewer-intent agents and get
//! the same read-only tool allowlist tcode's own `code-reviewer` default uses
//! (no `write_file`/`edit`/`bash`). `research` stays byte-identical and
//! unrestricted per Bob's explicit ruling — it builds research reports, not
//! verdicts. `documentation` was covered by that same ruling until #8129,
//! which replaced the shared body with a tcode-native one carrying its own
//! `tcode_tools:` grant; see the "Delivery-workflow agents" section below for
//! its real status — that grant is strictly WIDER than the reviewer-intent
//! four get, so it is not a reversal of the ruling. NOTE for the file itself: the
//! shared frontmatter parser
//! (`trusty_agents_common::agents::builder::split_frontmatter`) does NOT
//! tolerate `#`-comment lines inside a frontmatter block (verified
//! empirically — a bare `#`-prefixed line there is a hard `FrontmatterParse`
//! error, not a tolerated comment), so no inline marker could be added to
//! those four files without breaking the compose step; this doc comment is
//! the marker of record. The deferred E4 CI staleness guard (diffing tcode's
//! copies against trusty-mpm's source) MUST whitelist the `tools:` line in
//! exactly these four files rather than flagging them as drift.
//!
//! ## Prose deviation follow-up (Slice E3 review round, #3041)
//!
//! Adding the `tools:` override alone left three of the four files
//! internally contradictory: their prose still instructed write/bash actions
//! the new allowlist denies (`web-qa.md`'s "Technical Testing Protocol" told
//! the agent to create test scripts, run `CI=true npm test`, and shell out to
//! `ps aux`; `qa.md`'s methodology told it to "Implement"/"Execute" test
//! suites directly; `code-analyzer.md`'s "Large-Volume Analysis" told it to
//! generate-and-run a Python script). A code-critic review of PR #3041 (WARN,
//! two HIGH + one MEDIUM findings) caught this. `web-qa.md`, `qa.md`, and
//! `code-analyzer.md` were reworded in the SAME PR to a genuinely read-only
//! frame: findings plus concrete, ready-to-run recommendations (drafted
//! scenarios, specified test cases, recommended commands) handed off to an
//! engineer/ops/CI to execute, never executed by the agent itself.
//! `code-critic.md` needed no prose change at the time — its review-only body
//! had no execute-oriented instructions. This is an ADDITIONAL deviation from
//! trusty-mpm byte-parity beyond the `tools:` line alone; the deferred E4
//! staleness guard must whitelist the reworded prose sections in these three
//! files too, not just the `tools:` line.
//!
//! `code-critic.md` gained its own reworded section later (owner ruling
//! 2026-08-12, PR #5596): trusty-mpm's upstream copy started instructing the
//! agent to post its verdict via `gh pr review --comment` directly. tcode's
//! copy has no `bash`/`gh` tool, so the "Posting the Verdict" section was
//! reworded to the same read-only frame as the three files above — it
//! specifies the exact command for the caller to run, never runs it itself.
//! `code-critic.md` now joins `web-qa.md`/`qa.md`/`code-analyzer.md` as a
//! four-of-four reworded-prose deviation, not three-of-four; the E4 staleness
//! guard whitelists it the same way (pinned-hash reconciliation, not
//! byte-parity).
//!
//! ## Non-coding cross-product roster addition (#4027, epic #4021)
//!
//! `ticketing` joined this roster (same treatment `research` got) so
//! trusty-agents' widened `dispatch_task` bridge (#4026) can reach ONE roster
//! instead of growing a second dispatch leg into trusty-mpm — the owner's OQ-4
//! ruling. It was embedded directly from the shared crate until #8129, which
//! replaced the body with a tcode-native one declaring its own `tcode_tools:`;
//! the dispatch NAME the bridge resolves is unchanged, which is all #4026
//! depends on. Its non-coding property is enforced where the
//! owner's OQ-7 ruling put enforcement — the BRIDGE's fail-closed
//! `NON_CODING_TARGETS` floor in
//! `crates/trusty-agents/src/tools/cross_product.rs` — not by an asset-level
//! allowlist that a direct `tcode run-task` invocation would bypass anyway.
//!
//! ## Delivery-workflow agents (#8129, epic #8127)
//!
//! `ticketing`, `version-control`, `local-ops` and `documentation` are the
//! four roles trusty-mpm's PM delegates the issue -> branch -> build -> PR
//! -> changelog steps to. tcode's PM could not reach any of them: three
//! (`ticketing`, `local-ops`, `documentation`) were `Composed` entries
//! sourced byte-identically from the shared crate, and `version-control` was
//! absent from the roster entirely. The shared bodies are written for
//! trusty-mpm's harness (`Skill(...)`, `tm` CLI verbs, MCP servers tcode does
//! not host) and their `tools:` frontmatter names Claude Code's vocabulary,
//! which this runtime ignores (#7683) — so each one projected to
//! `tools.allowed == None`, i.e. EVERY tool allowed, the opposite of the
//! grant its author wrote.
//!
//! All four are therefore tcode-NATIVE [`EmbeddedAgent::Direct`] agents in
//! `assets/agents/`, authored the way `pm.md`/`engineer.md` are: a short body
//! scoped to tcode's actual tool surface, with an explicit `tcode_tools:`
//! allowlist that carries `bash` (for `git`/`gh`/`cargo`) and `finish_task`.
//! They are NOT forks of the same-named shared assets and are NOT pinned
//! deviations — there is no upstream content to reconcile against, only an
//! upstream ROLE. `scripts/check_agent_assets.sh` therefore lists them in
//! `$TCODE_ONLY`, never in `$DEVIATED_FILES`. The three shared sources they
//! replace are absent from [`SHARED_TM_AGENT_FILES`], so no caller can compose
//! the trusty-mpm body under the same dispatch name.
//!
//! ## E4 guard (issue #2958, `scripts/check_agent_assets.sh`)
//!
//! The byte-parity half of this gate is gone because what it compared is gone:
//! 30 duplicated `.md` files became one shared copy each (`content/agents`
//! since #9011), and a file cannot drift from itself. What the gate still checks is what the compiler cannot
//! see — it pins the 4 deviated files' SHARED source hash
//! (`scripts/agent-asset-pins.tsv`) so an edit behind one of them fails for
//! deliberate reconciliation, and it rejects any `.md` appearing in this
//! directory that is neither a pinned deviation nor a declared tcode-only
//! default, which is how a deleted duplicate stays deleted. See that script's
//! header and `.github/workflows/agent-assets.yml`.
//!
//! Test: `assets::tests::*` — every embedded agent `.md` parses and projects
//! to a field-identical `AgentConfig` vs. the retired TOML fixtures (the
//! original 3), every roster name resolves through the extends composer with
//! no BASE template dispatchable and no name collision, the four restricted
//! agents' composed `AgentConfig` carries the read-only tool list, and
//! `documentation`/`research` remain unrestricted. Every skill name is unique
//! and every skill's frontmatter `name:` matches its table key.
//!
//! [`EmbeddedAgent`]: crate::assets::EmbeddedAgent
//! [`EmbeddedAgent::Direct`]: crate::assets::EmbeddedAgent::Direct
//! [`DEFAULT_AGENTS`]: crate::assets::DEFAULT_AGENTS
//! [`tm_agent_sources`]: crate::assets::tm_agent_sources
//! [`SHARED_TM_AGENT_FILES`]: crate::assets::SHARED_TM_AGENT_FILES
//! [`EmbeddedSkill`]: crate::assets::EmbeddedSkill
//! [`DEFAULT_SKILLS`]: crate::assets::DEFAULT_SKILLS
/// One embedded default agent: either self-contained (tcode's own 3
/// defaults, no `extends:` chain) or a roster agent whose `extends:` chain is
/// resolved at load time against [`tm_agent_sources`] (Slice E3,
/// #2958).
///
/// Why: `agents::mod`'s embedded-fallback needs a single ordered table
/// ([`DEFAULT_AGENTS`]) covering both projection strategies tcode's embedded
/// agents need: tcode's own 3 defaults are flat `.md` strings with no
/// inheritance (projected via `agents::md_loader::project_embedded_md`); the
/// 28 tm roster agents inherit from `BASE-*` templates and must be composed
/// in-memory (`agents::md_loader::project_embedded_md_with_extends`) before
/// projection. One enum keeps both variants in the same ordered slice rather
/// than two parallel tables that could silently drift out of sync in count
/// or ordering.
/// What: [`EmbeddedAgent::Direct`] carries the dispatch name and the raw
/// `.md` source (frontmatter fence + prose body) verbatim. [`EmbeddedAgent::Composed`]
/// carries only the dispatch name — its content is resolved from
/// [`tm_agent_sources`] at load time, since the whole point of the
/// in-memory composer is that no second copy of the raw bytes is needed here.
/// [`EmbeddedAgent::name`] reads the name back out of either variant.
/// Test: `assets::tests::default_agents_parse_and_names_match`.
/// One embedded default skill: its catalog name and raw `SKILL.md` source.
///
/// Why: `skills::mod`'s embedded-fallback needs both the name (for the
/// `SkillMetadata` catalog) and the raw Markdown (frontmatter + body, parsed
/// the same way a disk-based `SKILL.md` is).
/// What: `name` matches the frontmatter `name:` inside `skill_md`; `skill_md`
/// is the verbatim embedded file contents (frontmatter fence + body).
/// Test: `assets::tests::default_skills_names_are_unique`.
const ENGINEER_MD: &str = include_str!;
const QA_AGENT_MD: &str = include_str!;
const CODE_REVIEWER_MD: &str = include_str!;
const PM_MD: &str = include_str!;
// #8129: the four delivery-workflow agents. tcode-NATIVE, not forks of the
// shared roster's same-named files — see this module's "Delivery-workflow
// agents" doc section.
/// Opening marker of `pm.md`'s contiguous agent-routing block (#8287).
///
/// Why: DOC-75 §4b row 3 ([#8293](https://github.com/bobmatnyc/trusty-tools/issues/8293))
/// will lift the routing table out of this crate into one shared source neither
/// product crate owns, behind a drift check. A marked, contiguous block is what
/// makes that a move rather than a rewrite, and it is also the span the routing
/// tests parse — so the lift boundary and the test boundary can never disagree.
/// What: the exact Markdown-comment line opening the block. Matched literally,
/// with no trailing prose on the marker line, so [`pm_routing_block`] needs no
/// line-scanning heuristic.
/// Test: `assets::tests::pm_routing_block_names_only_delegable_roster_agents`.
pub const PM_ROUTING_BLOCK_BEGIN: &str = "<!-- pm-routing-table:begin -->";
/// Closing marker of `pm.md`'s routing block.
///
/// Why/What/Test: as [`PM_ROUTING_BLOCK_BEGIN`].
pub const PM_ROUTING_BLOCK_END: &str = "<!-- pm-routing-table:end -->";
/// The delegation targets a delegate-mode coding task passes through, in order
/// (#8287).
///
/// Why: DOC-75 §1's delegate run is "research, then engineer, then qa" — the
/// ORDER is the behaviour, not just the membership, so it is declared here
/// rather than re-read from the card's prose by each test. `qa-agent` and not
/// `qa` because DOC-75 §6 requires real test output in the transcript and
/// tcode's `qa` fork carries no `bash` (see this module's "Tools-restriction
/// deviation" section) — it recommends commands it cannot run.
/// What: three roster names, each an [`EmbeddedAgent`] entry in
/// [`DEFAULT_AGENTS`], in the order the card's routing block must name them.
/// Test: `assets::tests::pm_routing_block_names_only_delegable_roster_agents`.
pub const PM_ROUTING_ORDER: & = &;
/// `pm.md`'s size before #8287 added the routing block, in bytes.
///
/// Why: DOC-75 §4b caps tcode's resident PM prompt at 2x its 2026-09-19 size —
/// token budget is a first-class axis for tcode. A hardcoded baseline is what
/// lets a test enforce that cap; deriving it from `PM_MD.len()` would make the
/// assertion vacuous.
/// What: `wc -c` of `crates/trusty-code/src/assets/agents/pm.md` at commit
/// `3473119`, the tip of `main` when #8287 landed.
/// Test: `assets::tests::pm_card_stays_within_the_doc_75_size_cap`.
pub const PM_CARD_BASELINE_BYTES: usize = 2863;
/// The routing block's inner text, or `None` when the markers are absent.
///
/// Why: two callers need the same span — the routing tests, and
/// [#8293](https://github.com/bobmatnyc/trusty-tools/issues/8293)'s shared-source
/// lift, which has to read the block out of whichever card it is migrating.
/// Returning `None` rather than the whole prompt is deliberate: a card that
/// lost its markers must fail the routing test, not silently pass by matching
/// agent names elsewhere in the body.
/// What: the text between [`PM_ROUTING_BLOCK_BEGIN`] and
/// [`PM_ROUTING_BLOCK_END`], exclusive of both markers, trimmed. `None` when
/// either marker is missing or they appear out of order.
/// Test: `assets::tests::pm_routing_block_names_only_delegable_roster_agents`,
/// `prompt::tests::delegate_mode_prompt_carries_the_routing_table`.
const TICKETING_MD: &str = include_str!;
const VERSION_CONTROL_MD: &str = include_str!;
const LOCAL_OPS_MD: &str = include_str!;
const DOCUMENTATION_MD: &str = include_str!;
/// The 34-agent dispatchable default roster, embedded at compile time
/// (Slice E3, #2958, plus `pm` added for #3437, `ticketing` for #4027, and
/// the four #8129 delivery-workflow agents):
/// tcode's 8 own `Direct` defaults plus the 26 tm roster agents. The 5
/// `BASE-*` extends templates in [`tm_agent_sources`] are
/// deliberately NOT entries here — they are extends-sources only, never
/// dispatchable — and trusty-mpm's own `engineer` agent is excluded from the
/// roster upstream (#2958's roster decision) precisely because it would
/// collide with tcode's `engineer` below;
/// `assets::tests::no_name_collisions_across_the_33_agent_roster` pins that
/// no collision exists in the final table.
///
/// Why: gives `agents::load_all_agents`'s embedded-fallback branch a fixed,
/// ordered table to parse when the disk `.claude/agents/` directory is empty
/// or absent. `pm` specifically fixes #3437: `task::protocol::task_run`
/// defaults an omitted `agent_name` to the literal `"pm"`
/// (`task/protocol.rs`), which resolved against NEITHER a disk
/// `~/.claude/agents/pm.md` NOR this table before #3437 — so every
/// daemon-default (including every GUI-initiated, agent-name-omitting) run
/// failed agent resolution before a single turn executed.
/// What: `engineer` (general implementation, full read/write tool set),
/// `qa-agent` (verification — read/inspect/run only, no `write_file`/`edit`,
/// hands bugs back to the engineer rather than fixing them), `code-reviewer`
/// (adversarial, read-only review, no `bash`), `pm` (orchestrator/default —
/// delegates when `delegate_to_agent` is available, executes directly
/// otherwise; see `assets/agents/pm.md`), plus the four #8129
/// delivery-workflow agents `ticketing` (issues via `gh`), `version-control`
/// (branch/commit/push/PR via `git`+`gh`), `local-ops` (build, test, version
/// bump, changelog) and `documentation` (prose) — all eight
/// [`EmbeddedAgent::Direct`], interleaved alphabetically from
/// `documentation` onward. Then the 26 [`EmbeddedAgent::Composed`] roster
/// agents, alphabetical, matching [`tm_agent_sources`]'s roster
/// ordering. Four of them (`qa`, `code-critic`, `code-analyzer`, `web-qa`)
/// carry a tcode-only restrictive `tcode_tools:` override in their `.md`
/// source — see this module's "Tools-restriction deviation" doc section above.
/// Test: `assets::tests::default_agents_parse_and_names_match`,
/// `assets::tests::base_templates_are_never_dispatchable`,
/// `assets::tests::no_name_collisions_across_the_34_agent_roster`,
/// `assets::tests::ticketing_is_dispatchable_for_cross_product_delegation`,
/// `assets::tests::restricted_reviewer_agents_carry_read_only_tools`,
/// `assets::tests::delivery_workflow_agents_are_dispatchable_with_bash`,
/// `assets::tests::research_remains_unrestricted`,
/// `assets::tests::default_task_run_agent_resolves_against_default_agents`,
/// `assets::tests::every_embedded_agent_model_normalizes_to_a_valid_slug`.
pub const DEFAULT_AGENTS: & = &;
// -- Slice E2 (#2958): embedded tm agent catalog, for `md_loader`'s in-memory
// extends-composer. Slice E3 wires the 26 roster names above into
// `DEFAULT_AGENTS` as `EmbeddedAgent::Composed` entries; this table remains
// their content source, resolved at load time via
// `agents::md_loader::project_embedded_md_with_extends`. --
/// The 5 `BASE-*` extends-template names — composition bases only, never
/// meant to be dispatched directly (issue #3465 follow-up: the Agents
/// catalog listing was surfacing these to end users).
///
/// Why: single source of truth for "is this name a composition base"
/// (issue #3449's `agents.list`) instead of a scattered `starts_with`
/// check re-implemented per call site — `assets::tests::
/// base_templates_are_never_dispatchable` (this table never leaks into
/// [`DEFAULT_AGENTS`]) and `agents::protocol::is_base_agent` (the disk-tier
/// catalog listing never surfaces one of these names even when a project's
/// `.claude/agents/` dir has real `BASE-*.md` files on disk, as trusty-mpm's
/// own bundle installs them — see `crates/trusty-mpm/src/core/bundle_all.rs`)
/// both key off this list rather than duplicating it. Matched
/// case-insensitively against a lowercased candidate — the on-disk filename
/// convention is `BASE-QA.md` while frontmatter `name:`/`extends:` values
/// are lowercase `base-qa`.
/// Test: `assets::tests::base_templates_are_never_dispatchable`,
/// `agents::protocol::tests::list_excludes_base_agents_but_resolve_agent_still_finds_them`.
pub const BASE_AGENT_NAMES: & = &;
const CODE_ANALYZER_MD: &str = include_str!;
const CODE_CRITIC_MD: &str = include_str!;
const QA_MD: &str = include_str!;
const WEB_QA_MD: &str = include_str!;
/// The 27 shared agent files tcode composes from: the 5 `BASE-*` extends
/// templates plus 22 roster agents (#9011).
///
/// Why: these texts are instructional content (ADR-0064), read at runtime
/// from the same source trusty-mpm reads — a trusty-tools checkout, else the
/// bundle `tm content install` pinned — instead of being compiled in.
/// Keyed by each file's name in `agents/` (`"BASE-QA.md"`,
/// `"rust-engineer.md"`), which
/// `trusty_agents_common::agents::builder_in_memory::InMemorySources::insert`
/// lowercases and strips, so `extends: base-qa` resolves with no extra work.
/// What: file names only; [`tm_agent_sources`] reads them from a roster.
/// Test: `assets::tests::embedded_tm_agent_sources_has_31_entries_and_unique_keys`.
pub const SHARED_TM_AGENT_FILES: & = &;
/// tcode's 4 read-only forks of shared roster agents, still embedded until
/// PHASE_4 (#8390) — see this module's "Tools-restriction deviation" section.
pub const LOCAL_TM_AGENT_FORKS: & = &;
/// The 31-entry tm agent catalog the extends-composer resolves against: every
/// [`SHARED_TM_AGENT_FILES`] entry read from `roster`, then
/// [`LOCAL_TM_AGENT_FORKS`].
///
/// Why: `agents::md_loader` and the roster deploy need one batch source of
/// `(file name, markdown)` pairs, as the compiled-in table used to be.
/// What: `Err(AgentContentError::Missing)` when `roster` lacks a shared file,
/// so a partial catalog never composes.
/// Test: `assets::tests::embedded_tm_agent_sources_has_31_entries_and_unique_keys`.
/// [`tm_agent_sources`] over the roster resolved for this process: the
/// trusty-tools checkout above the cwd, else the installed content bundle.
/// Every failure names `tm content install` or `tm content update`.
const API_DESIGN_PATTERNS_SKILL: &str = include_str!;
const API_DOCUMENTATION_SKILL: &str = include_str!;
const ARTIFACTS_BUILDER_SKILL: &str = include_str!;
const BRAINSTORMING_SKILL: &str = include_str!;
const CODE_PRODUCTION_PROCESS_SKILL: &str = include_str!;
const CODE_REVIEW_STANDARDS_SKILL: &str = include_str!;
const CONDITION_BASED_WAITING_SKILL: &str = include_str!;
const CONTRACT_DRIVEN_TESTING_SKILL: &str = include_str!;
const DATABASE_MIGRATION_SKILL: &str = include_str!;
const DOCUMENTATION_STYLE_SKILL: &str = include_str!;
const ENV_MANAGER_SKILL: &str = include_str!;
const GIT_WORKFLOW_SKILL: &str = include_str!;
const INTERNAL_COMMS_SKILL: &str = include_str!;
const JSON_DATA_HANDLING_SKILL: &str = include_str!;
const MODEL_CONTEXT_BUILDER_SKILL: &str = include_str!;
const REQUESTING_CODE_REVIEW_SKILL: &str = include_str!;
const ROOT_CAUSE_TRACING_SKILL: &str = include_str!;
const SECURITY_SCANNING_SKILL: &str = include_str!;
const SOFTWARE_PATTERNS_SKILL: &str = include_str!;
const SYSTEMATIC_DEBUGGING_SKILL: &str = include_str!;
const TEST_DRIVEN_DEVELOPMENT_SKILL: &str = include_str!;
const TEST_QUALITY_INSPECTOR_SKILL: &str = include_str!;
const TESTING_ANTI_PATTERNS_SKILL: &str = include_str!;
const VERIFICATION_BEFORE_COMPLETION_SKILL: &str =
include_str!;
const WEB_PERFORMANCE_OPTIMIZATION_SKILL: &str =
include_str!;
const WEBAPP_TESTING_SKILL: &str = include_str!;
const WRITING_PLANS_SKILL: &str = include_str!;
const XLSX_SKILL: &str = include_str!;
/// trusty-mpm's universal skill set, embedded at compile time (`tm-*`
/// orchestration skills excluded — see module docs).
///
/// Why: gives `skills::discover_skill_metadata`'s embedded-fallback branch a
/// fixed, ordered table to build a `SkillMetadata` catalog from when the disk
/// `.claude/skills/` directory is empty or absent.
/// What: 28 skills, sorted by name, each an `EmbeddedSkill { name, skill_md }`.
/// Test: `assets::tests::default_skills_names_are_unique`.
pub const DEFAULT_SKILLS: & = &;
// -- Tests --------------------------------------------------------------------
// Split into `tests.rs` (not inlined) to keep this include-table file thin;
// see `tests.rs` module docs.