Repository navigation
feat(github): Credit all run actors as Co-Authored-By on commits - #789
Merged
Merged
Conversation
When a run has multiple instruction actors (one user asks, another steers mid-run), commits made through the GitHub plugin previously credited only the run actor (git author) and Junior's agent trailer. Thread run.actors into the beforeToolExecute plugin hook as a live projection of committed instruction provenance, and have the GitHub plugin compose a Co-Authored-By trailer for each additional actor. Attribution is fail-closed and attribution-only: actors without a resolvable name and email are omitted rather than blocking the commit, trailers dedupe by identity ids and resolved email (excluding the git author and bot identities), and run.actors never influences which credentials commit or push. The prepare-commit-msg hook now appends all missing trailers as one contiguous block so git and GitHub parse every co-author, with Junior's agent trailer last. Fixes GH-777 Co-Authored-By: Claude Sonnet 5 <[email protected]> Co-Authored-By: Claude Fable 5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
force-pushed
the
feat/commit-coauthor-run-actors
branch
from
July 8, 2026 19:39
1f56fc0 to
a7864a7
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a7864a7. Configure here.
dcramer
force-pushed
the
feat/commit-coauthor-run-actors
branch
from
July 8, 2026 19:47
a7864a7 to
e4b0985
Compare
Overwrite actor coauthor trailer env on every commit command so model-supplied values cannot survive when no run actors resolve to trailers. When an existing commit message already ends with Junior's bot trailer, insert missing actor trailers before that bot trailer so the agent coauthor remains last. Co-Authored-By: GPT-5 Codex <[email protected]>
dcramer
force-pushed
the
feat/commit-coauthor-run-actors
branch
from
July 8, 2026 20:14
e4b0985 to
4850f7e
Compare
dcramer
added a commit
that referenced
this pull request
Jul 9, 2026
Resolve the agent/index.ts import conflict: the run-actor credit change (#789) imports instructionActors/instructionProvenanceFor, which stay in state/session-log on this branch, while the runtime recorders moved to conversations/projection in the SQL cutover. Co-Authored-By: Claude Fable 5 <[email protected]>
This branch was successfully deployed
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.

Commits made through the GitHub plugin now carry a
Co-Authored-Bytrailer for every actor who contributed instructions to the run, not just the run actor. When Alice asks for a change and Bob steers mid-run, the resulting commit credits both, followed by Junior's agent trailer.The run loop maintains a live projection of committed instruction provenance — seeded from the resumed session record's provenance (or the fresh turn's instruction provenance, mirroring what the turn session record commits) and extended as steering messages drain — and exposes it to plugins as a new optional
actorsfield onBeforeToolExecuteHookContext, derived via the existinginstructionActorsprojection fromspecs/multi-actor-runs.md. The GitHub plugin composes trailers from it and injects them asJUNIOR_GIT_ACTOR_COAUTHOR_TRAILERS; the sandboxprepare-commit-msghook appends all missing trailers as one contiguous block so git and GitHub parse every co-author (blank-line-separated trailers are only recognized in the final paragraph).Resolutions for the issue's open questions, now recorded in
specs/security-policy.md:run.actorsis attribution only: it selects trailer text and never influences which credentials commit or push.Review order:
packages/junior-github/src/index.ts(trailer composition and the reworked hook script), then the runtime threading (agent/index.ts→agent/tools.ts→plugins/agent-hooks.ts→junior-plugin-api), then the specs. The new integration test proves the actors getter grows as steering drains through a realexecuteAgentRun; the hook script's block placement and idempotency are exercised by executing the generated bash against real message files.Fixes #777
🤖 Generated with Claude Code