Repository navigation
Credit the machine's person by default, and the run's client as a co-author (0.14.0) - #23
Merged
Merged
Conversation
…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>
…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>
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.
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
ghis signed in to, written asName <id+login@users.noreply.github.com>. It's looked up withgh api userat most hourly, withGH_TOKEN/GITHUB_TOKENremoved so it's never the App's token, and kept in the runs' folder asmachine-author. The App stays the committer andPointman <noreply@pointman.ai>the co-author. A machine whoseghisn't signed in stays App-only.coauthorsstill 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_authorpicks who is credited in runs no person started: a handle fromcoauthors,appfor 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 newclient_coauthorssetting maps a client's name toName <email>, defaulting toclaude = "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,appand 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:
coauthorsrule: on a machine shared by several people with nothing configured, another person's run credits the machine's account;keep_machine_author's hourlygh api user.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.