Skip to content

feat(platform): show Tale, with its own name and image, as the contributor of commits an agent pushes #4687

Closed

Description

@yannickmonney

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 as GITHUB_TOKEN / GH_TOKEN (backend/core/node_only/sandbox/session_credentials.ts:47-52), and services/sandbox-runtime/tale-git-credential hands it to git. Everything done through the API with that token is attributed by GitHub to the account that owns it: the connector's create_pull_request, merge_pull_request, create_pull_request_review, create_issue_comment, update_issue, and gh inside 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.email from that user's profile (session_credentials.ts:165-184, getSessionOwnerIdentity in backend/domains/sandbox/shim.ts:390-410). Improvement: provision git author identity in sandbox sessions #2586 added this so a fresh container's git commit does 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 by system: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) and services/sandbox-runtime/README.md:22 promise 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_agents has name but 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.name alone.
  • 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:

  1. Author identity only. Set GIT_AUTHOR_* / GIT_COMMITTER_* (env beats user.* config, which a repository or the agent could otherwise override) to Tale plus 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).
  2. 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.
  3. 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.ts offers platform, 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 example Tale (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 in session_credentials.test.ts, turn_equipment.test.ts and the backend integration check around integration-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.md and services/sandbox-runtime/README.md describe the real behavior; a manual box covers it.

Activity

  1. added
    feat
    service: platform
    on Oct 10, 2026
  2. added
    agent-ready
    on Oct 29, 2026
  3. tale-code-bot commented on Nov 1, 2026

    @tale-code-bot
    Collaborator

    Split into parts (task TALE-113):

    • Part 1, this issue. Every commit an agent makes carries the agent's commit identity, else Tale <[email protected]>, as author and committer, never the workspace owner's or the token owner's. This includes system:task-agent and system:automation sessions, confined runs and a broker failure, and it overrides any git config name or email set in the repository. Docs in EN, DE and FR. It is on branch feat/agent-commit-author for the feature line, and this issue closes when it lands.
    • feat(platform): show Tale's image on agent commits, PRs and comments #5252. Tale's image, and Tale as the owner of PRs, reviews and comments, through a GitHub App or a machine account.
    • feat(platform): credit the run's person as co-author of agent commits #5253. The run's person as 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.

  4. added a commit that references this issue on Nov 2, 2026
    fe940aa
  5. added 2 commits that reference this issue on Nov 2, 2026
    3465e74
    6cbaa7d
  6. tale-code-bot commented on Nov 2, 2026

    @tale-code-bot
    Collaborator

    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 on main, so the feature-train role closes this one. Board task: TALE-113.

  7. added 12 commits that reference this issue on Nov 3, 2026
    d3973d2
    2f2f9fe
    4f2c986
    99742b8
    db59320
    a9c2cb4
    0c9f6e6
    dc7cf67
    3a03945
    4db6552
    1d36a50
    0ad760a
  8. added a commit that references this issue on Nov 15, 2026
    2289c2c
  9. added a commit that references this issue on Nov 23, 2026
    3057143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyfeatservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions