Name the agent's role in the footer of posted texts #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dario/role-footer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With a personal account, every text the factory posts ended with "Written by an AI agent (factory) using this account", whichever role wrote it. On #28, the implementer's comments and the reviewer's reviews looked the same.
Changes
config.RoleAuthor).factory forgerun from a shell keeps "agent".internal/forge/policy.go: the newPolicy.Authorfield. It accepts only lowercase words; anything else gives "agent", so no markup gets into the footer.Authorfor its own reports, and passes it to the MCP server asFACTORY_AUTHOR.<!-- factory:agent -->is unchanged, soimprove-factorystill recognizes these texts.docs/tokens.md, ADR 0011.Note for #28: it adds the
refinerole.TestRoleAuthorfails until that role gets a name (e.g. "refiner"), so a new role can't go out unnamed.Test evidence
just check: passes (gofmt, vet, staticcheck, govulncheck,go test -race ./...)TestRoleAuthor;TestPersonalAccountcovers the role in the footer and inline comments, and the fallback for invalid names; the dispatch test checksFACTORY_AUTHOR.🤖 Generated with Claude Code