You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explicit markings are embedded in these templates that the compiler is allowed to replace e.g. `{{ engine_run }}` denotes the full engine invocation command. The compiler should not replace sections denoted by `${{ some content }}`. What follows is a mapping of markings to responsibilities (primarily for the standalone template).
13
15
@@ -495,3 +497,54 @@ Should be replaced with the domain the AWF-sandboxed agent uses to reach MCPG on
495
497
The 1ES target uses the same template markers as standalone, plus the 1ES-specific `extends:` / `stages:` / `templateContext` wrapping. The 1ES template includes `templateContext.type: buildJob` for all jobs, and the pool is specified at the top-level `parameters.pool` rather than per-job.
496
498
497
499
Both targets share the same execution model (Copilot CLI + AWF + MCPG) and the same set of template markers.
500
+
501
+
## Job/Stage Template Markers
502
+
503
+
The `target: job` and `target: stage` targets use `job-base.yml` and `stage-base.yml`
504
+
respectively. Both include all the standard AWF/MCPG markers above, plus the two
505
+
template-specific markers below.
506
+
507
+
### {{ stage_prefix }}
508
+
509
+
Replaced with a PascalCase ADO-safe identifier derived from the agent `name:` front
510
+
matter field. Used to prefix the three job names so that including multiple templates
511
+
in the same pipeline produces unique job identifiers.
512
+
513
+
Derivation rules:
514
+
515
+
- Non-ASCII-alphanumeric characters are treated as word separators (they are not
516
+
included in the output).
517
+
- Each word is capitalised and the words are concatenated: `"daily code review"`→
518
+
`"DailyCodeReview"`.
519
+
- An empty result (all characters stripped) falls back to `"Agent"`.
520
+
- A result starting with a digit is prefixed with `_`: `"123start"`→ `"_123start"`.
521
+
- Names containing non-ASCII alphanumeric characters (e.g. `"über-agent"`) produce a
522
+
compiler warning because those characters are silently dropped.
523
+
524
+
Example job names produced for `name: Daily Code Review`:
0 commit comments