Skip to content

Agent Run Commit Attribution - #3991

Open
michaeljguarino wants to merge 16 commits into
masterfrom
agent-run-commit-attribution
Open

Agent Run Commit Attribution#3991
michaeljguarino wants to merge 16 commits into
masterfrom
agent-run-commit-attribution

Conversation

@michaeljguarino

@michaeljguarino michaeljguarino commented Aug 10, 2026

Copy link
Copy Markdown
Member

Noticed the agent run initiator isn't getting marked as committer currently, this hopefully fixes.

Test Plan

Test environment: https://console.plrldemo.onplural.sh/cd/clusters/a1748282-ce8b-48ab-ae7e-326e74fce04e/services/f3f89a54-d1a7-4bc8-9152-daa07ede918d/components

Checklist

  • I have added a meaningful title and summary to convey the impact of this PR to a user.
  • If required, I have updated the Plural documentation accordingly.
  • I have added tests to cover my changes.
  • I have deployed the agent to a test environment and verified that it works as expected (required only when changing agent code).

Plural Flow: console

@michaeljguarino
michaeljguarino requested a review from a team August 10, 2026 19:56
@michaeljguarino michaeljguarino added the enhancement New feature or request label Aug 10, 2026
@soffi-ai

soffi-ai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Soffi AI Summary

This PR bundles a diverse set of improvements across the AI workbench, agent run pipeline, CI/CD infrastructure, and frontend UX. The headline fix is correcting commit attribution for agent runs — the initiating user was not being marked as the committer, which this PR addresses. Beyond that, the changes expand AI workbench capabilities (project-level AI disablement, skill autodiscovery, mode/model selection on reprompts, "babysit mode" improvements, cost recommendation surfacing, exec activity type, and command exec UI), improve responsiveness of the agent/workbench feedback loop via PubSub-driven polling, add cloud connection management UI, implement SCM credential refresh, and revert a Blacksmith CI migration in favor of standard GitHub Actions runners with GHA caching across all CD workflows.

Commits

Commit Summary
132b9de Fix agent run commit attribution so the run initiator is correctly recorded as the committer when the agent commits changes.
2801cce Add project-level toggle to disable AI features, allowing operators to turn off AI capabilities on a per-project basis.
38613cc Fix a database migration issue related to the AI/project feature changes.
4981dbb Enrich the workbench UI with explanatory annotations for function call and Kubernetes update events.
5f8a951 Allow users to update the AI mode and model when issuing reprompts in an agent run, giving more control over re-execution.
8c1cbd1 Implement automatic SCM credential refresh so stale tokens are renewed without manual intervention.
3c903aa Extend mode/model selection to the reprompt dialog so users can switch AI providers mid-session.
437d4d3 Add an in-UI cloud connection management interface, enabling operators to create and configure cloud connections directly from the Console.
0270481 Introduce an 'exec' activity type to the agent run model, enabling the system to track and surface shell command execution as a distinct event in the activity feed.
1c09f4b Use PubSub to push activity and agent run poll success events rather than relying on polling intervals, dramatically improving UI responsiveness during agent runs.
65eaada Add frontend UI components for displaying and interacting with command execution output in the workbench.
b8984aa Improve pod exec responsiveness — likely tightening timeouts or switching to a more event-driven approach for shell sessions in the workbench.
d6d2f6f Implement skill autodiscovery so the workbench agent can automatically detect and register available tools/skills without manual configuration.
6f98105 Revert the Blacksmith CI migration across all CD/CI workflows, replacing Blacksmith-specific runners and build actions with standard GitHub Actions runners (ubuntu-latest) and docker/build-push-action@v6 with GHA layer caching.
de0240a Improve 'babysit mode' in the agent workbench — likely refining how the system monitors and intervenes in long-running or stuck agent tasks.
e395845 Surface cost recommendations inside the workbench, giving the AI agent (and users) visibility into cost optimization suggestions alongside infrastructure management tasks.

Deploy in Soffi


Updated: 2026-08-13 17:39 UTC

@greptile-apps

greptile-apps Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR propagates an agent run's initiating user into the harness and uses that identity for repository-local Git commit attribution, while retaining the existing service-account and SCM fallbacks.

  • Adds the initiating user to the harness AgentRun representation and fragment mapping.
  • Resolves commit identity before handling either existing or newly cloned repositories.
  • Adds unit coverage for user propagation and identity fallback behavior.

Confidence Score: 5/5

The PR appears safe to merge, with no concrete regressions identified in the commit-attribution flow.

The AgentRun query already selects the initiating user, the mapping handles a nullable user safely, and both repository setup paths receive an identity while preserving established fallbacks.

Important Files Changed

Filename Overview
go/deployment-operator/pkg/agentrun-harness/agentrun/v1/types.go Adds a nullable initiating-user representation and safely maps it from the existing GraphQL fragment.
go/deployment-operator/pkg/agentrun-harness/agentrun/v1/types_test.go Verifies that the initiating user's name and email are copied into the harness model.
go/deployment-operator/pkg/agentrun-harness/environment/environment.go Centralizes Git identity resolution and applies it consistently to existing and newly cloned repositories.
go/deployment-operator/pkg/agentrun-harness/environment/environment_test.go Covers preference for the initiating user and fallback to SCM credentials and the default email.

Reviews (1): Last reviewed commit: "Agent Run Commit Attribution" | Re-trigger Greptile

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch from 4f24efb to 8555560 Compare August 10, 2026 20:54
@blacksmith-sh

This comment has been minimized.

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch from 8555560 to 3c8b0c8 Compare August 10, 2026 21:07
@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@plural-copilot

Copy link
Copy Markdown
Contributor

Deployment GitOps PR: https://github.com/pluralsh/plrl-up-demos/pull/2572

Promotes the console image to sha-a449881, built from source head a44988186549da6c2fe2aac6673c5a868b504b30.

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch from e966823 to 6b5a35e Compare August 11, 2026 13:53
@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@plural-copilot

Copy link
Copy Markdown
Contributor

Deployment PR created: https://github.com/pluralsh/plrl-up-demos/pull/2573 — pins the demo console image to sha-6b5a35e and is annotated with Plural Service: mgmt/apps.

@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@plural-copilot

Copy link
Copy Markdown
Contributor

Requested GitOps deployment PR created: https://github.com/pluralsh/plrl-up-demos/pull/2574

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch from 4b954a4 to db4e98c Compare August 11, 2026 16:09
@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@plural-copilot

Copy link
Copy Markdown
Contributor

Created the GitOps deployment PR for this request: https://github.com/pluralsh/plrl-up-demos/pull/2575 (console image tag: sha-db4e98c).

Triggered by: #3991 (comment)

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch 2 times, most recently from 19b4e24 to 453e11f Compare August 11, 2026 18:16
@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@plural-copilot

Copy link
Copy Markdown
Contributor

Deployment GitOps PR has been created: https://github.com/pluralsh/plrl-up-demos/pull/2578

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch from 453e11f to d2f2b7d Compare August 11, 2026 18:59
@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch from d2f2b7d to b4ba938 Compare August 11, 2026 19:04
@plural-copilot

Copy link
Copy Markdown
Contributor

Deployment PR: https://github.com/pluralsh/plrl-up-demos/pull/2579

This deploys sha-d2f2b7d from commit d2f2b7da4e86512df72caf1e79a8dcb390c4f29f; reconciliation is associated with mgmt/apps.

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch 2 times, most recently from ff3c0b6 to 1639400 Compare August 11, 2026 20:00
@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@plural-copilot

Copy link
Copy Markdown
Contributor

Deployment GitOps PR: https://github.com/pluralsh/plrl-up-demos/pull/2580

Pins the demo console deployment to sha-1639400.

Triggered by: #3991 (comment)

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch from 97a2054 to d6d2f6f Compare August 13, 2026 12:59
@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@plural-copilot

Copy link
Copy Markdown
Contributor

Deployment GitOps PR: https://github.com/pluralsh/plrl-up-demos/pull/2593 — pins the demo console image to sha-d6d2f6f.

Restore GitHub-hosted runners and Docker build actions after Blacksmith introduced compatibility issues.
@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch from c6ba0a1 to de0240a Compare August 13, 2026 16:00
@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@plural-copilot

Copy link
Copy Markdown
Contributor

Deployment GitOps PR has been created: https://github.com/pluralsh/plrl-up-demos/pull/2599

Image tag: sha-de0240a
Annotation: Plural Service: mgmt/apps

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch from 3a35e59 to 4401dc3 Compare August 13, 2026 16:43
@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@plural-copilot

Copy link
Copy Markdown
Contributor

Deployment PR created: https://github.com/pluralsh/plrl-up-demos/pull/2600 — pins console to sha-4401dc3 and annotates Plural Service: mgmt/apps.

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch from 4401dc3 to b01a4b4 Compare August 13, 2026 17:15
@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@plural-copilot

Copy link
Copy Markdown
Contributor

Deployment PR: https://github.com/pluralsh/plrl-up-demos/pull/2601 — updates the demo console image to sha-b01a4b4. Attributed to Plural Service: mgmt/apps.

@michaeljguarino
michaeljguarino force-pushed the agent-run-commit-attribution branch from b01a4b4 to e395845 Compare August 13, 2026 17:39
@michaeljguarino

Copy link
Copy Markdown
Member Author

plural deploy this

@plural-copilot

Copy link
Copy Markdown
Contributor

The deployment GitOps PR has been created: https://github.com/pluralsh/plrl-up-demos/pull/2602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants