docs(#843): document event_payload for run-to-PR correlation - #846
Open
fullsend-ai-coder[bot] wants to merge 1 commit into
Open
docs(#843): document event_payload for run-to-PR correlation#846fullsend-ai-coder[bot] wants to merge 1 commit into
fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
Add a "Correlating dispatch-repo runs to source-repo PRs" subsection to the "Reading agent logs and artifacts" section in the retro-analysis skill. This documents that dispatch-repo run logs contain event_payload JSON with pull_request.head.sha, pull_request.number, and pull_request.base.ref — fields that provide direct run-to-PR/commit mapping without timestamp heuristics or branch-name grep workarounds. Includes a gh run view CLI example for extracting the payload. Complementary to PR #834, which uses event_payload within the new flapping-detection section — this covers the general tracing guidance used by all retro tasks. Closes #843
|
🤖 Finished Review · ✅ Success · Started 1:07 PM UTC · Completed 1:18 PM UTC Commit: |
ReviewFindingsMedium
Low
Labels: PR is a documentation-only change to a skill file |
| - `pull_request.number` — the source-repo PR number | ||
| - `pull_request.base.ref` — the target branch of the PR | ||
|
|
||
| ```bash |
There was a problem hiding this comment.
[low] edge-case
The grep -o 'event_payload.*' command captures from event_payload to end-of-line only. If the event_payload JSON in the log is spread across multiple lines, only the first line would be captured. GitHub Actions structured logs typically use single-line entries, making this unlikely in practice.
Suggested fix: Consider adding a note that the command assumes single-line JSON log entries, or suggest jq for structured extraction if multi-line output is possible.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
skills/retro-analysis/SKILL.mdevent_payloadJSON withpull_request.head.sha,pull_request.number, andpull_request.base.reffor direct run-to-PR/commit mappinggh run viewCLI example for extracting the payloadContext
PR #540 spent 7 review rounds building increasingly complex timestamp-based and branch-name-grep workarounds for run-to-PR correlation, only to discover in round 7 that
event_payloadprovides the mapping directly. This change documents that method in the general tracing section so future agents and skill authors find it upfront.Complementary to PR #834, which adds
event_payloadusage within the new flapping-detection section — this covers the general log-reading guidance used by all retro tasks.Testing
hack/lint-agent-docs) passesCloses #843
Post-script verification
agent/843-document-event-payload)1a3086f5512b3700ab8e081c689cc7586c9af20f..HEAD)