Repository navigation
Add weekly agent-facing OpenTelemetry reference workflow - #74598
Conversation
Maintain .github/aw/otel.md from emitted telemetry and the existing observability specification. Scope generated PRs and protected-file exclusions to the reference and optional TypeSpec artifacts. Co-authored-by: Copilot App <[email protected]>
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully!
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
What this change does: This adds a weekly/manual workflow that inventories OpenTelemetry source and asks an agent to maintain an agent-facing guide, with optional TypeSpec output and a guarded draft PR.
Should fix:
-
Redundant source inventory (
.github/workflows/weekly-otel-reference.md:L47-64)- What this is: A pre-agent grep writes a candidate-file list for the agent.
- Problem: The prompt still requires a full-checkout scan and admits the list is not proof of completeness, so every run must redo discovery.
- Fix: Remove the inventory step and handoff, or make the inventory authoritative.
- If we skip it: The workflow keeps carrying shell and temporary-file machinery that does not reduce the agent work.
-
Optional TypeSpec has mandatory setup (
.github/workflows/weekly-otel-reference.md:L40-45)- What this is: Every invocation sets up Node and installs the TypeSpec compiler.
- Problem: The task allows no TypeSpec when no stable shapes exist, but the base workflow still pays for that tooling.
- Fix: Make compiler setup conditional on the optional artifact, or remove this optional path.
- If we skip it: The workflow retains a mandatory toolchain for an output it may not produce.
Verdict: fix 1 and 2 first.
Not checked: correctness, security, performance, and the generated lock file, per the review scope.
Lean: -23 lines possible.
Generated by ✂️ Ponytail Reviewer for #74598 · codex · routed: gpt56 max · ~4 AIC · ⌖ ~1 AIC · ⊞ 118
Comment /ponytail to run again
There was a problem hiding this comment.
The workflow has a trust-boundary issue: it removes the generated agent reference from protected-file review while sourcing evidence from untrusted repository and PR content.
Findings
- Keep
.github/aw/otel.mdbehind therequest-reviewprotection (or equivalent required review) before it becomes authoritative context for future agents.
The existing prompt-injection concern on the source-reading instruction was already reported by another reviewer; I did not duplicate it.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
🟡 Changes recommended
Dependency lifecycle scripts could compromise later credential-bearing setup, and creating the guide without updating required companion lists would fail synchronization tests.
3 open issues
What changed in this PR
Adds weekly and manually triggered automation to maintain gh-aw’s agent-facing OpenTelemetry reference from source implementations and the existing observability specification. The guide itself will be generated by a later workflow run.
Changes:
- Inventories telemetry emitters and documents measurement semantics, correlation, aggregation, and query recipes.
- Optionally maintains informative TypeSpec contracts validated with a pinned compiler.
- Limits publication to one draft PR, skips existing open reference PRs, and restricts editable paths.
| File | Description |
|---|---|
.github/workflows/weekly-otel-reference.md |
Defines discovery, documentation, validation, and constrained publication. |
.github/workflows/weekly-otel-reference.lock.yml |
Provides the generated GitHub Actions jobs and execution safeguards. |
Review effort: Max (auto)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /grill-with-docs and /tdd to this new workflow. Requesting changes on two items: a review gate that the exclusion removes, and an install step that is only partly pinned.
📋 Key Themes & Highlights
Key Themes
- Review gate removed for agent-facing guide:
/.github/aw/otel.mdis excluded fromprotected-files, so its changes skip therequest-reviewgate that future agents rely on. - Partial supply-chain pin:
@typespec/[email protected]is pinned, but--no-save --package-lock=falselets transitive dependencies resolve fresh on each run, and install scripts run by default.
Verified
- ✅ Lock file matches source: compiled the PR head
4b5c895with the repo's own compiler and saw no drift. - ✅ Leading-slash
excludeentries are parsed as root-relative path exclusions, as the workflow intends. - ✅
skip-if-matchdepends on thegh-aw-workflow-idmarker, which thecreate_pull_requestfooter emits.
Not Covered
- The PR head was checked out by SHA from the local clone, because the remote fetch failed on TLS. The diff itself came from the pre-fetched patch.
- I did not duplicate the open
github-advanced-securitycomment on line 82. The workflow already tells the agent to treat repo and PR text as evidence, not instructions.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~1 AIC · ⊞ 5.4K
Comment /matt to run again
|
Note The pull request was not created — a fallback review issue was created instead due to protected file changes: #74631 PR FinisherSubmitted for publication (not yet confirmed pushed): merged Validation: Sous-chef work: Update this branch with the latest Address 10 unresolved reviews regarding prompt injection risks, redundant source inventory, conditional TypeSpec setup, protected file review gates, and dependency lifecycle script security.
|
Keep generated guidance under protected-file review, constrain untrusted source text, and remove redundant inventory and unconditional TypeSpec downloads. Seed the source-grounded guide and synchronize its skill and fallback registrations. Co-authored-by: Copilot App <[email protected]>
|
Regarding this completion notice: no additional code change is requested. The associated protected-guidance finding is addressed in its inline thread. |
|
Regarding this status-only result: no architecture change or ADR is requested here. This batch addresses the actionable inline findings rather than treating the no-op report as proof of completion. |
|
Regarding this completion notice: no separate code change is needed for the notice itself. The protected-guide and TypeSpec setup findings are addressed individually in their inline threads. |
|
Regarding this completion notice: no separate code change is requested. The redundant inventory and mandatory optional-tooling findings are addressed in their inline threads. |
|
Regarding this status-only result: no additional test change is requested here. Focused checks for the guide registration, compiled workflow, and publication protections are handled as part of this batch. |
|
Regarding this managed memory, accepted the associated trust-boundary finding: the generated guide now remains protected by request-review, with tighter content-handling rules. The managed comment is left unchanged; the actual finding is answered in its inline thread. |
|
Partially accepted this handoff: implemented the actionable hardening, seeded and registered the guide, and regenerated the lock directly on this PR branch, superseding the unpublished fallback work. A base-branch merge was not needed for these fixes, so this batch avoids that unrelated change and does not rely on the prior no-op or publication report. |
|
Note The pull request was not created — a fallback review issue was created instead due to protected file changes: #74636 PR Finisher pass: changes submitted for publication (not confirmed pushed).
Sous-chef head: 4b5c895
|
| "multi-agent-research.md", | ||
| "network.md", | ||
| "optimize-agentic-workflow.md", | ||
| "otel.md", |
|
🎉 This pull request is included in a new release. Release: |


Summary
.github/aw/otel.md, teaching agents all available OTel measurements, their semantics, types, units, availability, correlation, aggregation, and query recipes.specs/otel-observability-spec.md, distinguishing implemented behavior from optional or planned requirements and documenting discrepancies without changing the existing specification.protected-filesexceptions for the guide and README; other protections remain in place.Validation
make recompile: all 356 workflows compiled. Unrelated existing lock-file container-pin drift was restored rather than included.No live workflow was dispatched. The guide itself will be produced by the workflow's first run after merge.