Skip to content

Credit the machine's person by default, and the run's client as a co-author (0.14.0) - #23

Merged
pointman-app[bot] merged 6 commits into
mainfrom
patchbay/ext-148-default-author-client
Nov 12, 2026
Merged

pointman-app[bot] merged 6 commits into
mainfrom
patchbay/ext-148-default-author-client

Conversation

@pointman-app

@pointman-app pointman-app Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Agents' commits now credit a person without any configuration, and name the agent's client as a further co-author.

Default author. With nothing configured, a commit in an agent's run is authored by this machine's own GitHub account: the account its gh is signed in to, written as Name <id+login@users.noreply.github.com>. It's looked up with gh api user at most hourly, with GH_TOKEN/GITHUB_TOKEN removed so it's never the App's token, and kept in the runs' folder as machine-author. The App stays the committer and Pointman <noreply@pointman.ai> the co-author. A machine whose gh isn't signed in stays App-only.

  • coauthors still names people. While it's empty, every run on the machine credits the machine's account. Once anyone is in it, an unmapped person stays App-only and never becomes someone else.
  • default_author picks who is credited in runs no person started: a handle from coauthors, app for App-only, or empty (new meaning) for the machine's own account.

Client co-author. The node names a run's client in MB_RUN_CLIENT (pointman-ai/pointman#143). The new client_coauthors setting maps a client's name to Name <email>, defaulting to claude = "Claude <noreply@anthropic.com>". Its line goes after Pointman's, only on commits someone is credited on. An unlisted client gets no line.

Tests: unit tests for machine_author, the nothing-configured, app and mapped cases, and the client trailer order and de-duplication. The stand-in integration test now also checks the Claude trailer.

To look at closely:

  • the empty-coauthors rule: on a machine shared by several people with nothing configured, another person's run credits the machine's account;
  • keep_machine_author's hourly gh api user.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

jamescalam and others added 6 commits November 12, 2026 11:48
…author

With nothing configured, an agent's commit is now authored by this
machine's own GitHub account (its gh login, looked up hourly with gh api
user and never with the App's token, written as GitHub's noreply address),
committed by the App, with Pointman as co-author. default_author picks who
is credited in runs no person started: a handle from coauthors, app for
App-only, or empty for the machine's own account. While coauthors is
empty, every run credits the machine's account; once anyone is in it, an
unmapped person stays App-only.

The run's client is a further co-author after Pointman: the node names it
in MB_RUN_CLIENT, and the new client_coauthors setting gives its identity
(claude by default). A client that isn't listed gets no line.

Version 0.14.0.

Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Pointman <noreply@pointman.ai>
…hine account is dropped

A run a person started credits only their own coauthors entry: an unmapped
person no longer falls back to the machine's account, even while coauthors
is empty. A missing or malformed coauthors.json or default-author file, or an
entry that isn't one Name <email>, credits no one.

The machine's account is checked every 5 minutes; any failure (signed out,
an HTTP error, a reply that isn't one account, no gh) removes the kept file,
and a file not refreshed for 15 minutes is ignored, so a stale account isn't
credited after a sign-out or a restart.

Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Pointman <noreply@pointman.ai>
@pointman-app
pointman-app Bot merged commit 325340c into main Nov 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant