Skip to content

Commit d263d13

Browse files
docs(agents): correct architecture tree and template marker path examples (#343)
* Initial plan * docs: fix architecture tree and template marker path docs Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/c8870770-28be-4e40-a346-f1aaa77106ef Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
1 parent 8efb5fb commit d263d13

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

AGENTS.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Alongside the correctly generated pipeline yaml, an agent file is generated from
2828
│ │ ├── common.rs # Shared helpers across targets
2929
│ │ ├── standalone.rs # Standalone pipeline compiler
3030
│ │ ├── onees.rs # 1ES Pipeline Template compiler
31+
│ │ ├── gitattributes.rs # .gitattributes management for compiled pipelines
3132
│ │ ├── extensions/ # CompilerExtension trait and infrastructure extensions
3233
│ │ │ ├── mod.rs # Trait, Extension enum, collect_extensions(), re-exports
3334
│ │ │ ├── github.rs # Always-on GitHub MCP extension
@@ -797,16 +798,20 @@ This is used for the `workingDirectory` property of the copilot task.
797798
## {{ source_path }}
798799

799800
Should be replaced with the path to the agent markdown source file for Stage 3 execution. The path is relative to the workspace and depends on the effective workspace setting (see `{{ working_directory }}` for resolution logic):
800-
- `root`: `$(Build.SourcesDirectory)/agents/<filename>.md`
801-
- `repo`: `$(Build.SourcesDirectory)/$(Build.Repository.Name)/agents/<filename>.md`
801+
- `root`: `$(Build.SourcesDirectory)/<filename>.md`
802+
- `repo`: `$(Build.SourcesDirectory)/$(Build.Repository.Name)/<filename>.md`
803+
804+
The path mirrors the relative path used at compile time — if compiled as `agents/my-agent.md`, the runtime path is `$(Build.SourcesDirectory)/agents/my-agent.md` (or the equivalent under `$(Build.Repository.Name)` for the `repo` workspace).
802805

803806
Used by the execute command's --source parameter.
804807

805808
## {{ pipeline_path }}
806809

807-
Should be replaced with the path to the compiled pipeline YAML file for runtime integrity checking. The path is derived from the output path's filename and uses `{{ working_directory }}` as the base (which gets resolved before this placeholder):
808-
- `root`: `$(Build.SourcesDirectory)/<filename>.yml`
809-
- `repo`: `$(Build.SourcesDirectory)/$(Build.Repository.Name)/<filename>.yml`
810+
Should be replaced with the path to the compiled pipeline YAML file for runtime integrity checking. The path is derived from the output path (preserving any directory structure) and uses `{{ working_directory }}` as the base (which gets resolved before this placeholder):
811+
- `root`: `$(Build.SourcesDirectory)/<relative-path>.yml`
812+
- `repo`: `$(Build.SourcesDirectory)/$(Build.Repository.Name)/<relative-path>.yml`
813+
814+
For example, an output path of `pipelines/production/review.lock.yml` resolves to `$(Build.SourcesDirectory)/pipelines/production/review.lock.yml` under the `root` workspace.
810815

811816
Used by the pipeline's integrity check step to verify the pipeline hasn't been modified outside the compilation process.
812817

0 commit comments

Comments
 (0)