Repository navigation
Closed
Labels
agent-readyMaintainer-approved for the Tale agent fleetfeatNew featureservice: platformPlatform service
Description
Summary
When a Tale agent pushes work to a repository, GitHub shows a person: the name of the account that owns the stored token, or the name of whoever owned the session. The contributor should be Tale, with its own name and its own image, so a repository's history reads as the agent's work and not as the token owner's.
Current behavior
Verified in code; not yet reproduced against a live repository (the first acceptance item).
- The push credential is a personal access token. The GitHub connector authenticates with a bearer PAT (
configs/platform/system/connectors/github/connector.yml, lines 1-3). The sandbox broker exposes it asGITHUB_TOKEN/GH_TOKEN(backend/core/node_only/sandbox/session_credentials.ts:47-52), andservices/sandbox-runtime/tale-git-credentialhands it to git. Everything done through the API with that token is attributed by GitHub to the account that owns it: the connector'screate_pull_request,merge_pull_request,create_pull_request_review,create_issue_comment,update_issue, andghinside the sandbox. This is the "name of the token". - The git author is a person, when there is one. For a session created by a platform user, the broker injects
user.name/user.emailfrom that user's profile (session_credentials.ts:165-184,getSessionOwnerIdentityinbackend/domains/sandbox/shim.ts:390-410). Improvement: provision git author identity in sandbox sessions #2586 added this so a fresh container'sgit commitdoes not fail with "Author identity unknown". It also writes the person's real email address into the history of whatever repository the agent pushes to. - An agent's own run gets no identity at all. A project agent runs in its standing session, created by
system:task-agent, and an automation agent in one created bysystem:automation(backend/core/node_only/sandbox/agent_session.ts:37,48); the task lane resolves its turn env against that session (backend/core/tasks/agent_run_host.ts:1487). A synthetic owner matches no user row, so the resolver returns null and "the broker then injects no git author identity" (shim.ts:402-404). Nothing in the platform names the agent: whatever name a commit carries comes from outside it, an identity the agent sets itself or the token owner's account when GitHub attributes an API write. - The docs say otherwise.
docs/en/platform/projects/project-agents.md:68(and its de/fr translations) andservices/sandbox-runtime/README.md:22promise that credentialed turns use "the workspace owner's Git author name and email". For a project agent's standing session the code does not do that; reconcile the words with whatever ships. - Agents have a name, not an image.
app.project_agentshasnamebut no icon or avatar column (0008_projects.sql,0146_project_agents_managed.sql).
Why it matters
git log, blame and PR lists cannot tell an agent's change from the token owner's own work, and the person who connected GitHub is shown as the contributor of everyone's runs.- A person's real email address ends up in customer repositories.
- The agent should be recognisable at a glance in the repository's own UI.
Expected
Every commit a Tale agent makes shows Tale as contributor: the name and Tale's image.
What GitHub lets us control (confirm against GitHub's docs before building):
- A commit's author and committer are a name and an email. GitHub shows a profile link and avatar only when the email belongs to an account (or the commit comes from a GitHub App or bot); otherwise it shows the bare name with a generic image. So "its own image" cannot come from
user.namealone. - The account that owns the token still appears as the pusher, and as the owner of every API-created PR, review and comment, whatever the author line says.
Options, cheapest first:
- Author identity only. Set
GIT_AUTHOR_*/GIT_COMMITTER_*(env beatsuser.*config, which a repository or the agent could otherwise override) toTaleplus a no-reply address, for every agent-owned session,system:*included. Fixes the name on the commit. The image comes only if that address is attached to a GitHub account carrying Tale's avatar (a dedicated machine account). - A trailer for the person. Keep the human accountable without making them the author: a
Co-authored-by:trailer for whoever started the run or owns the session. - A "Tale" GitHub App. Commits, PRs, reviews and comments appear as the app's bot with its name and logo: the only option that covers every surface. The connector has no such auth method today (
packages/shared/src/schemas/connectors.tsoffersplatform,api-key,bearer,basic,oauth2), so it needs a new auth method, an install flow and per-turn token minting, and a self-hosted deployment brings its own app.
Suggested path: 1 + 2 now, 3 as the route to the image and to PR/comment attribution, unless the decision below says otherwise.
Decisions needed
- How Tale's image reaches GitHub (machine account or GitHub App), since only that gives an image.
- The name: always
Tale, or the agent's own name as well (for exampleTale (Release reviewer)). An email cannot carry a per-agent avatar unless each agent had an account. - Chat workspace sessions, where a person drives the agent and Improvement: provision git author identity in sandbox sessions #2586 deliberately gave the person's identity: recommended that the author is Tale everywhere and the person appears as co-author.
Acceptance criteria
- Reproduce first: push one commit from a task-agent run, an automation agent step and a chat workspace session, each with the GitHub connector equipped, to a scratch repository; record what GitHub shows as author, committer and pusher today.
- After the change each shows the chosen Tale identity as author and committer, with the person as co-author where one exists; none shows the token owner as author.
- The image is visible in the repository's commit and PR views (screenshot in the PR), with the mechanism documented.
- A synthetic owner (
system:task-agent,system:automation) always resolves to the agent identity, never to nothing; guard it with tests insession_credentials.test.ts,turn_equipment.test.tsand the backend integration check aroundintegration-check.ts:47180. - The identity cannot be silently replaced by a repository's or the agent's own
git config, or the docs say it can. - Docs in EN, DE and FR (
project-agents.md),services/sandbox/docs/sessions.mdandservices/sandbox-runtime/README.mddescribe the real behavior; a manual box covers it.
Metadata
Metadata
Assignees
Labels
agent-readyMaintainer-approved for the Tale agent fleetfeatNew featureservice: platformPlatform service
Activity
tale-code-bot commentedon Nov 1, 2026
Split into parts (task TALE-113):
Tale <[email protected]>, as author and committer, never the workspace owner's or the token owner's. This includessystem:task-agentandsystem:automationsessions, confined runs and a broker failure, and it overrides anygit configname or email set in the repository. Docs in EN, DE and FR. It is on branchfeat/agent-commit-authorfor the feature line, and this issue closes when it lands.Co-authored-by:. git 2.39 in the runtime cannot add a trailer to every commit without a hook chain, and the address to use is a privacy choice.Chat workspace sessions are unchanged. No chat lane calls the credential broker: only task runs and automation agent steps do. Those sessions get neither a connector credential nor an identity from Tale.
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
tale-code-bot commentedon Nov 2, 2026
Landed on
release/0.6, the 0.6 feature line, with feature train #5329 as 6cbaa7d (feat(platform): commit as the agent or Tale, never as a person); it ships with Tale 0.6.0. GitHub closes issues only for commits onmain, so the feature-train role closes this one. Board task: TALE-113.feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person
feat(platform): commit as the agent or Tale, never as a person