Skip to content

docs: record AI assistance in commit messages - #125

Open
Fnorgh2 wants to merge 3 commits into
mainfrom
codex/ai-commit-attribution
Open

Fnorgh2 wants to merge 3 commits into
mainfrom
codex/ai-commit-attribution

Conversation

@Fnorgh2

@Fnorgh2 Fnorgh2 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Why

AI-assisted changes need a small attribution record that remains with Git history. Existing task/PR notes can lose that context during a repository move or squash merge.

What Changed

Add an AI-assisted commit convention to CONTRIBUTING.md and a pointer in AGENTS.md: briefly describe AI's contribution, record contributing tool/model pairs and skills used, handle unavailable information explicitly, and preserve attribution in the final commit. The convention covers manual commits and tools that do not load agent instructions. The guide also explains where to find model labels for Codex, Claude Code, legacy Cursor Agent CLI, Grok Build CLI, and GitHub Copilot CLI.

The trailer format draws from OpenSSL's contribution guidance. SkLC's Skills-used field adapts PostHog's PR disclosure of agents, models, and skills. Both references are linked in the guide.

How To Verify

  • Repository Markdown lint passed for all 43 files; Prettier and git diff --check passed.
  • Independent Standards/Spec review and contributor-readability review found no issues; both pinned source references were verified.
  • Inspect this branch's commit messages for the new attribution format.

Known Gaps

This is contributor-reported guidance. Model information can remain unknown, and the person finalizing a GitHub squash merge must retain the attribution. Automatic agent compliance and GitHub squash preservation have not been exercised end to end.

Contribution notes: used implement, writing-for-agents, reader-first-documentation, code-review, and code-change-description. Initial outcome: the requested two-file convention and source references. First checkpoint: no additions needed removal. Acceptance evidence is above. Maintainer direction kept the record lightweight and grounded in existing project practices. Delegated review model identifiers were unavailable. The follow-up preserves the legacy Cursor lookup and documents Grok Build’s model-usage field using the upstream CLI reference.

Define a lightweight tool/model and skill-use convention, including unknown
values, delegated work, and preservation during amend or squash. Route
agents to the contributor guide and cite the OpenSSL and PostHog precedents.

AI helped draft the guidance and review its scope, sources, and readability.

Assisted-by: Codex:unknown
Skills-used: implement, writing-for-agents, reader-first-documentation, code-review, code-change-description
Comment thread CONTRIBUTING.md Resolved
Address Scot's review by documenting the Codex session lookup and comparable sources for Claude Code, Cursor, and GitHub Copilot CLI. AI verified the Codex lookup against local sessions, checked the other tools' documentation, and drafted the guidance.

Assisted-by: Codex:gpt-6.2-sol
Skills-used: openai-docs, code-review
AI verified the upstream CLI references and updated the model attribution guidance.

Assisted-by: Codex:gpt-6.2-sol
Skills-used: none
@scotluns
scotluns marked this pull request as ready for review December 2, 2026 18:33
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.

2 participants