Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/changes/unreleased/1075-attribution-names-codeaf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
kind: changed
title: the drafted-with footer names CodeAF and still links to agentfield.ai
pr: 1075
surface: [resident, docs]
invalidates:
- "The pull request and issue footer read `Drafted with [agentfield ai](https://agentfield.ai/github?…) · reviewed and owned by the author`, and the comment mark read `<sub>drafted with [agentfield ai](…)</sub>` (`exec.AttributionPullFooter`, `AttributionIssueFooter`, `AttributionCommentFooter`). They now name `[CodeAF]`; the link, its utm parameters and the rest of each line are unchanged."
---
6 changes: 3 additions & 3 deletions internal/exec/attribution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import (
// that only looked for the word "attribution".
var attributionStrings = []string{
"Co-Authored-By: codeaf <[email protected]>",
"Drafted with [agentfield ai](https://agentfield.ai/github?utm_source=github&utm_medium=pull_request&utm_campaign=drafted_with) · reviewed and owned by the author",
"Drafted with [agentfield ai](https://agentfield.ai/github?utm_source=github&utm_medium=issue&utm_campaign=drafted_with) · reviewed and owned by the author",
"Drafted with [CodeAF](https://agentfield.ai/github?utm_source=github&utm_medium=pull_request&utm_campaign=drafted_with) · reviewed and owned by the author",
"Drafted with [CodeAF](https://agentfield.ai/github?utm_source=github&utm_medium=issue&utm_campaign=drafted_with) · reviewed and owned by the author",
// THE COMMENT LINE IS PINNED THE HARDEST OF THE FOUR, because every part of
// it is doing a job that is easy to edit away: `<sub>` is what makes it muted
// rather than a shout in somebody's thread, the lowercase `drafted` is what
// keeps it a remark rather than a heading, `utm_medium=comment` is what makes
// a comment countable apart from a body, and there is deliberately no
// "reviewed and owned by the author" tail.
"<sub>drafted with [agentfield ai](https://agentfield.ai/github?utm_source=github&utm_medium=comment&utm_campaign=drafted_with)</sub>",
"<sub>drafted with [CodeAF](https://agentfield.ai/github?utm_source=github&utm_medium=comment&utm_campaign=drafted_with)</sub>",
}

func TestAttributionConstantsAreTheExactStrings(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/exec/linear.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ const AttributionTrailer = "Co-Authored-By: codeaf <[email protected]
const AttributionSeparator = "—"

// AttributionPullFooter is the one footer line on a pull request codeaf opens.
const AttributionPullFooter = "Drafted with [agentfield ai](https://agentfield.ai/github?utm_source=github&utm_medium=pull_request&utm_campaign=drafted_with) · reviewed and owned by the author"
const AttributionPullFooter = "Drafted with [CodeAF](https://agentfield.ai/github?utm_source=github&utm_medium=pull_request&utm_campaign=drafted_with) · reviewed and owned by the author"

// AttributionIssueFooter is the same line for an issue; only the medium differs.
const AttributionIssueFooter = "Drafted with [agentfield ai](https://agentfield.ai/github?utm_source=github&utm_medium=issue&utm_campaign=drafted_with) · reviewed and owned by the author"
const AttributionIssueFooter = "Drafted with [CodeAF](https://agentfield.ai/github?utm_source=github&utm_medium=issue&utm_campaign=drafted_with) · reviewed and owned by the author"

// AttributionCommentFooter is the mark on a COMMENT — an issue comment, a pull
// request comment, a review comment — and it is the quietest of the three on
Expand All @@ -261,7 +261,7 @@ const AttributionIssueFooter = "Drafted with [agentfield ai](https://agentfield.
// the three cases it is never right for at all — a one-line reply, anything
// inside a code or suggestion block, and words the person dictated, which are
// theirs and not codeaf's to sign.
const AttributionCommentFooter = "<sub>drafted with [agentfield ai](https://agentfield.ai/github?utm_source=github&utm_medium=comment&utm_campaign=drafted_with)</sub>"
const AttributionCommentFooter = "<sub>drafted with [CodeAF](https://agentfield.ai/github?utm_source=github&utm_medium=comment&utm_campaign=drafted_with)</sub>"

// AttributionLaw IS THE ONE WORDING, AND IT IS ONE BECAUSE TWO SURFACES SAY IT.
// The resident's leaf loop appends it to its standing contract
Expand Down
4 changes: 2 additions & 2 deletions internal/manual/chat/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ then one sentence:

```
—
Drafted with [agentfield ai](https://agentfield.ai/github?utm_source=github&utm_medium=pull_request&utm_campaign=drafted_with) · reviewed and owned by the author
Drafted with [CodeAF](https://agentfield.ai/github?utm_source=github&utm_medium=pull_request&utm_campaign=drafted_with) · reviewed and owned by the author
```

On an issue that link reads `utm_medium=issue` instead.
Expand All @@ -894,7 +894,7 @@ On an issue that link reads `utm_medium=issue` instead.
with one small muted line, no em dash above it:

```
<sub>drafted with [agentfield ai](https://agentfield.ai/github?utm_source=github&utm_medium=comment&utm_campaign=drafted_with)</sub>
<sub>drafted with [CodeAF](https://agentfield.ai/github?utm_source=github&utm_medium=comment&utm_campaign=drafted_with)</sub>
```

`agentfield-bot` is codeaf's own GitHub account and the address is the one GitHub
Expand Down
2 changes: 1 addition & 1 deletion internal/manual/pages/asking-for-work.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ deleted your own copy. Your file is read once and never written to.
When a worker makes git commits for you, it adds one trailer at the end of the
commit message — `Co-Authored-By: codeaf` — and nothing in the subject or the
body. When it opens a pull request or an issue, it ends the body with an
em-dash line and one sentence: *Drafted with agentfield ai · reviewed and owned
em-dash line and one sentence: *Drafted with CodeAF · reviewed and owned
by the author*, linking to `agentfield.ai/github`.

That is the whole of it. It is provenance, not a byline: never inside a code
Expand Down
Loading