Skip to content

docs: define contribution policy - #2673

Merged
Astro-Han merged 1 commit into
mainfrom
docs/2652-contribution-policy
Aug 12, 2026
Merged

Astro-Han merged 1 commit into
mainfrom
docs/2652-contribution-policy

Conversation

@Astro-Han

@Astro-Han Astro-Han commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Define the agreed rules for public decisions, human ownership, AI attribution, independent review, the impact-based fast path, and provenance and licensing.
  • Clarify that AI disclosure depends on substantive content, not translation, wording edits, autocomplete, or spelling correction.
  • Keep the English and Chinese contribution guides aligned.
  • Add a short README link to the contribution guide without repeating the policy.

Closes #2652

Verification

  • git diff --check
  • Compared the English and Chinese policy headings and key requirements.
  • Checked the changed Markdown for the disclosure boundary, trailer example, ASF guidance link, and README link.
  • Checked the final public text with the avoid-ai-writing rules.
  • No executable tests apply, and the repository has no Markdown-specific lint entry point.

Review focus

This PR changes contribution and governance policy, so it requires independent human review and does not use the fast path.

Automation identity: Codex applied the human-authored policy agreed in #2652, translated and edited the wording, ran targeted checks, and updated the PR. It did not determine the policy facts or position. Before merge, the human contributor of record must verify that the policy matches the public consensus and that the provenance and licensing statements are accurate.

Checklist

  • Tests cover the change and fail without it
  • Lint, format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes, described under Summary above
  • No

@Astro-Han
Astro-Han marked this pull request as ready for review August 11, 2026 04:53
@Astro-Han
Astro-Han force-pushed the docs/2652-contribution-policy branch from 881d10e to 7f987bf Compare August 11, 2026 05:33

@M4n5ter M4n5ter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

English

The policy direction and wording match the agreement in #2652 well. I found two issues to address before approval:

  1. Keep the Chinese contribution guide consistent

CONTRIBUTING.md still presents CONTRIBUTING.zh-CN.md as its Chinese counterpart, but the Chinese document does not contain the new rules and retains the old maintainer/contributor distinction.

This leaves Chinese readers without the human ownership, AI attribution, independent review, fast-path, and provenance requirements. Please update CONTRIBUTING.zh-CN.md in this PR. Alternatively, the documentation would need to state clearly that only the English version is normative, but keeping the existing translation synchronized is preferable.

  1. Preserve this PR’s own AI attribution in the final commit

The PR body says Codex prepared the patch and PR, so this contribution falls within the material-authorship rule it introduces. However, the current commit body is empty.

This repository uses squash messages based on commit messages (COMMIT_MESSAGES), so the PR-body disclosure will not reliably become part of the final commit. Please amend the commit body with:

Generated-by: Codex

or ensure the same trailer is explicitly added to the squash commit before merging.

Apart from these two points, the policy is concise and correctly separates human ownership, tooling attribution, independent human review, and the impact-based fast path.

中文

这份政策的方向和措辞很好地落实了 #2652 中达成的共识。批准前还有两个问题需要处理:

  1. 保持中文贡献指南一致

CONTRIBUTING.md 仍将 CONTRIBUTING.zh-CN.md 展示为对应的中文版本,但中文文档没有新增规则,还保留着旧的维护者与外部贡献者区分。

这会导致中文读者看不到 human ownership、AI 归因、独立审查、fast path 和来源合规要求。请在本 PR 中同步更新 CONTRIBUTING.zh-CN.md。另一种方案是明确声明只有英文版属于规范文本,但更合适的做法是继续保持现有翻译同步。

  1. 确保本 PR 自身的 AI 归因进入最终提交

PR body 说明 Codex 准备了 patch 和 PR,因此该贡献属于新规则定义的实质性 AI authorship。但当前 commit body 是空的。

仓库的 squash message 使用 commit messages(COMMIT_MESSAGES),所以 PR body 中的披露不能可靠地进入最终 commit。请在 commit body 中补充:

Generated-by: Codex

或者在合并时明确将同一 trailer 加入 squash commit。

除这两点外,政策内容足够简洁,也正确区分了人类责任、工具归因、独立人工审查和基于影响判断的 fast path。

@Astro-Han
Astro-Han force-pushed the docs/2652-contribution-policy branch from 7f987bf to d1655de Compare August 11, 2026 07:13
@Astro-Han

Copy link
Copy Markdown
Contributor Author

Addressed the Chinese guide issue in d1655de. CONTRIBUTING.zh-CN.md now mirrors the new English policy sections and no longer retains the old maintainer/contributor distinction.

I kept the commit without a Generated-by: trailer. The policy facts and position were determined by the human discussion in #2652. Codex applied that policy, translated and edited the wording, ran targeted checks, and updated the PR; it did not determine the policy facts or position. The updated policy explicitly excludes translation and wording edits from the disclosure requirement, and the PR body now states that boundary more precisely. Under that rule, adding the trailer here would misclassify the contribution.

All CI checks are now green, including the E2E rerun. Could you take another look?

@M4n5ter

M4n5ter commented Aug 11, 2026

Copy link
Copy Markdown
Member

re-reviewed, LGTM

@MicroGery

Copy link
Copy Markdown
Contributor

LGTM

@M4n5ter

M4n5ter commented Aug 11, 2026

Copy link
Copy Markdown
Member

One small suggestion: would it be useful to add a minimal root AGENTS.md, similar to Apache DataSketches Rust?

Its only job should be to tell coding agents to read CONTRIBUTING.md in full before planning or modifying the repository, and to treat those rules as repository instructions. It should not duplicate the policy. That keeps CONTRIBUTING.md as the single source of truth while making the new requirements discoverable at the point where agents load repository guidance; the README link alone is less reliable for that audience.

@Astro-Han

Copy link
Copy Markdown
Contributor Author

I like the idea, but I don't think it belongs in this PR.

AGENTS.md is currently local and varies by contributor. The repository excludes it from Git, and worktree setup links each contributor's local file. Tracking a repository version at the same path could replace or conflict with those personal instructions. We should decide how repository and local instructions compose before adding one.

I'll keep #2673 focused on CONTRIBUTING.md and leave agent discovery for a separate discussion.

Automation identity: Codex prepared this reply from my decision.

@Astro-Han
Astro-Han merged commit d9c3ab0 into main Aug 12, 2026
16 of 17 checks passed
@Astro-Han
Astro-Han deleted the docs/2652-contribution-policy branch August 12, 2026 02:09
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.

[RFC] Document review, AI use, and code provenance

3 participants