Skip to content

Coding agents may claim co-author but never include session links #1264

Closed

Description

@ptr727

In a recent Claude update the agent wants to add co-authorship and a session link, e.g.:

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_redacted

Current agent rules by default disallow co-authorship claims unless the user explicitly granted the right.

Change the rule:

  • By default agents may claim co-authored-by.
  • Unless the user explicitly disallows co-authored-by.
  • Per repo rules may change the default position.
  • An agent may never include the session link, this is not overridable by the user or the repo.

Change the Claude agent provision scripts to write settings:

Global: ~/.claude/settings.json
Project: .claude/settings.json

Example:

{
  "attribution": {
    "commit": "Generated with AI\n\nCo-Authored-By: AI <[email protected]>",
    "pr": "",
    "sessionUrl": false
  }
}

Apply equivalent configuration for Codex and Opencode.

Activity

  1. added
    enhancement
    on Sep 5, 2026
  2. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Decision triage split the undecided item out of this issue into #3738, which carries the decision label. Everything else here stays as ordinary work an agent can do without the maintainer.

  3. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Maintainer answer to the split decision #3738 (decision triage, 2026-11-01): Approved, sessionUrl only: install.py writes only attribution.sessionUrl=false, leaves commit and pr at Claude Code's defaults, and never overwrites a user-set attribution key. This agent-safety edit is approved for implementation, and it lands together with the GOVERNANCE.md:157 co-author rule flip.

  4. ptr727 commented on Nov 20, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim (2026-11-20 attended run, round 2, group 2): branch burndown/coauthor-session-url.

    Issues: #1264.

    Predicted file set:

    • GOVERNANCE.md
    • .github/copilot-instructions.md
    • .agents/skills/comment-and-doc-style/SKILL.md
    • host-setup/agent-safety/claude/install.py
    • host-setup/agent-safety/claude/test_install.py
    • host-setup/agent-safety/claude/README.md

    Generated from those: the comment-and-doc-style copies and digest, and any include region that carries the edited GOVERNANCE.md section.

  5. ptr727 commented on Nov 21, 2026

    @ptr727
    OwnerAuthor

    Maintainer's answers, 2026-11-21, on #4324: Copilot's two sessionUrl points stay declined, the repository-level precedence one and the one about preserving a user-set true. A session link never appears, and nothing overrides that. This issue closes when #4324 is promoted. Codex and opencode expose no setting an installer could write, so the host-wide rule text that #4324 edits is their equivalent configuration.

  6. ptr727 commented on Nov 21, 2026

    @ptr727
    OwnerAuthor

    Correction to the comment above, 2026-11-21. That comment's question described the kit as forcing session links off everywhere. On develop it doesn't. The installer writes attribution.sessionUrl: false only where the key is absent, and leaves a value the host set, true included. Put to the maintainer again with that stated, he chose to keep the host's value but report it: install.py --report flags any host-set value that leaves the session link on as drift, while install still doesn't overwrite it. Copilot raised the same gap as a P1 on promotion #4330, and a feature -> develop fix lands before that promotion merges. The rest of the comment above stands: #1264 closes on promotion.

  7. ptr727 commented on Nov 21, 2026

    @ptr727
    OwnerAuthor

    Refinement, 2026-11-21: the maintainer narrowed how the drift is reported. A host-set value that leaves the session link on prints a WARNING: line in install.py --report, saying the setting breaks the fleet rule and how to fix it. The verdict stays CURRENT with exit 0. It is not STALE because merge-and-release re-installs on any non-CURRENT report, and treats a second non-CURRENT as a failed install, while a re-run never clears a value the host set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions