Add session summary to agent workflow#14
Merged
Conversation
Co-authored-by: kenorb <kenorb@users.noreply.github.com>
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the cogni-ai-agent GitHub Actions workflow to grant read access to Actions data and append a new, always-running session summary step that invokes the shared summary action with the appropriate GitHub token. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Member
|
/co Add as a separate job as per example. |
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider pinning
Cogni-AI-OU/cogni-ai-agent-action/ai-inference/summaryto a specific tag or commit SHA instead of@mainto avoid unexpected behavior from upstream changes. - You can use the built-in
${{ github.token }}instead ofsecrets.GITHUB_TOKENforgithub_tokento align with current GitHub Actions best practices and keep the config slightly clearer.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider pinning `Cogni-AI-OU/cogni-ai-agent-action/ai-inference/summary` to a specific tag or commit SHA instead of `@main` to avoid unexpected behavior from upstream changes.
- You can use the built-in `${{ github.token }}` instead of `secrets.GITHUB_TOKEN` for `github_token` to align with current GitHub Actions best practices and keep the config slightly clearer.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Co-authored-by: kenorb <kenorb@users.noreply.github.com>
Contributor
Author
|
I have updated the Changes Summary:
The session summary will now be generated in a separate job, making the workflow more robust and easier to monitor. |
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.

I have updated the
cogni-ai-agent.ymlworkflow to include a session summary step, following the pattern specified in thecogni-ai-agent-actionrepository.Changes Made:
actions: readpermission: Updated thecogni-ai-agentjob permissions to allow the summary action to retrieve job logs.Generate Session Summarystep:Cogni-AI-OU/cogni-ai-agent-action/ai-inference/summary@main.if: always()to ensure a summary (including failure analysis) is generated even if the agent execution fails.github_token.Verification:
actionlintviapre-commit.yamllintviapre-commit.The summary action will now automatically generate a human-readable execution summary and visual audit report in the GitHub Actions job summary after each agent run.
Triggered by workflow_dispatch
opencode session | github run