Repository navigation
Description
Split from #4687 (task TALE-113). Part 1 of #4687 makes every commit an agent makes carry the agent's commit identity, else Tale <[email protected]>, as author and committer, never a person's. That part is on branch feat/agent-commit-author and lands with #4687. This issue is the rest: Tale's image, and Tale as the owner of what an agent creates through the API.
What part 1 cannot do
Checked at a0176e3d9f3ff0f2354ac3adeaffd7cb656220ca, which is the part-1 branch on feature-train d647fff53e9d7f5866065ce936f1e9b6bae7d6e6.
- The image. GitHub links a commit's author to a profile and shows an avatar only when the author email belongs to an account, or when the commit comes from a GitHub App or bot.
[email protected]belongs to no account, so GitHub shows the bare name Tale with a generic image. - API-created objects. Pull requests, reviews, comments and issue edits made through the connector (
configs/platform/system/connectors/github/connector.yml, a bearer personal access token) or throughghin the sandbox (GH_TOKENfrombackend/core/node_only/sandbox/session_credentials.ts) are owned by the token's account. The pusher is that account too.
Options
-
A machine account. A dedicated GitHub account carrying Tale's avatar, with a verified email. The default identity in
session_credentials.ts(TALE_GIT_IDENTITY) uses that email. This gives the image on commits only, and creating the account is a person's act (GitHub's terms). -
A "Tale" GitHub App. Commits, PRs, reviews and comments appear as the app's bot, with its name and logo. It is the only option that covers every surface. It needs:
- a connector auth method
github-app(packages/shared/src/schemas/connectors.tsoffersplatform,api-key,bearer,basicandoauth2today); - an install flow;
- per-turn installation-token minting in the broker.
A self-hosted deployment registers its own app.
- a connector auth method
Acceptance
- The mechanism is chosen and documented (EN, DE, FR).
- A commit pushed by a task-agent run shows Tale's image in the repository's commit and PR views (screenshot).
- With the app route: a PR, a review and a comment an agent creates are owned by the app's bot, not by a person's account.
Activity
tale-review-bot commentedon Nov 1, 2026
Decision: Tale's image and ownership on GitHub come from a Tale GitHub App that each deployment registers for itself (option b, in its narrowest form). Machine account: no. Neither: no.
Question. Which mechanism should put Tale's name and image on what agents push to GitHub (commits, pull requests, reviews and comments)? (#5252, split from #4687.)
Options weighed
What is decided
github-app, next to today'sbearerpersonal access token.packages/shared/src/schemas/connectors.tsoffersplatform,api-key,bearer,basicandoauth2today.configs/platform/system/connectors/github/connector.ymlauthorizes withbearer.Talefollowed by the organization's name.hook_attributes.active: false).workflows, an app token cannot push changes to.github/workflows/. The docs say that an admin who wants agents to do so grants it themselves on GitHub.peminto a stored credential at once, and does not keep it anywhere else.POST /app/installations/{id}/access_tokens, withpermissionslimited as in point 3, and withrepositorieslimited to the ones the run's binding names, when it names any.GITHUB_TOKEN,GH_TOKENand the git credential helper, throughsession_credentials.ts.DELETE /installation/token). Its expiry is the backstop.<slug>[bot] <<bot-id>+<slug>[bot]@users.noreply.github.com>. That address is what makes GitHub show the app's logo on a commit.Tale <[email protected]>(TALE_GIT_IDENTITY, part 1 / TALE-113).Done means, and the proof
iatis 60 seconds back andexpis at most 10 minutes;workflowsnote, and how to disconnect (back to the PAT).services/docs/tests/manual/suites/) as a box: register, install on a test repository, push a commit, open a PR with a review and a comment, and see the logo and the bot as their owner. It is not run in CI, so say so in the hand-over.Closes #5252. If you split the change, the last part carries it and the othersRefs #5252.Left to the Coder:
gh issue create --label agent-ready --label feat);The bot identity builds on TALE-113's
resolveGitIdentity(services/platform/backend/core/node_only/sandbox/session_credentials.ts, branchfeat/agent-commit-author, heada0176e3d9f3ff0f2354ac3adeaffd7cb656220ca). If TALE-113 is not onfeature-trainwhen you start, begin with the parts that do not touch it.Line: feature
Kind:
feat(already on #5252). Priority: p3 (no bug, no priority label, unblocks no bug). Issues filed: none.Who acts next:
@Coder. Dispatch starts it. TALE-333 (#5253) waits for this change, because a member's GitHub identity will come from this app.What would change this decision:
tale-code-bot commentedon Nov 2, 2026
Split into two parts (task TALE-332), following the Lead's decision on this issue's task (a "Tale" GitHub App registered per deployment, as an optional
github-appauth method next to the token):feat/github-app-connector,Refs #5252: thegithub-appmethod. It covers registration from Tale's connector settings through GitHub's manifest flow (least permissions, no webhook), installation on selected repositories, the private key stored encrypted, and Tale's own GitHub actions signing with installation tokens. With it, the pull requests, reviews and comments an agent creates through the connector are owned by the app's bot. It also adds settings that show the repositories the app reaches, audit records, docs in EN, DE and FR, and a manual box.gh), revoked at turn end, and the bot identity on commits. It waits for feat(platform): show Tale, with its own name and image, as the contributor of commits an agent pushes #4687's change onfeature-trainand closes this issue.What is left here after part 1: the commit avatar from a task-agent run and
gh-created objects owned by the bot, both in #5295.feat(platform): add a GitHub App auth method to the GitHub connector
yannickmonney commentedon Nov 14, 2026
Decision
The decision on this issue stands, with four precisions. Tale's name and image on GitHub come from a GitHub App that each deployment registers for itself. It is an optional
github-appauth method on the GitHub connector, next to the personal access token (PAT). There is no machine account and no central app run by Tale. The work comes in two parts, both onfeature-train.The rule for commit identity, first match wins:
github-appcredential,<slug>[bot] <<botId>+<slug>[bot]@users.noreply.github.com>;Tale <[email protected]>.A missing bot id is read once from
GET /users/<slug>[bot]and stored. If that fails, rule 3 applies and a warning is logged.The rule for credentials
Answers
feature-train.Why. The app covers commits, PRs, reviews and comments with short-lived, repository-scoped tokens, and its key stays on the server. A machine account needs a broad, long-lived token and fixes only the avatar. A shared Tale app would put one key in front of every customer. The precisions close gaps between the parts:
0234is already taken onfeature-train.Implementation units
Refs #5252, basefeature-train. Cherry-pick32820531aalone and drop the stale ancestors. Resolveconnector.ymlandconnectors/spec.md, and renumber0234_connector_github_app.sqlto the next free number.Closes #5252, basefeature-train, after unit 1.GITHUB_TOKEN/GH_TOKENand the git helper; renewal near expiry; revoke on every turn-end path; no fallback; mint log; the identity rule;SBX-rules, EN/DE/FR docs and a manual box.#5253 waits for unit 2.