Repository navigation
docs(contributing): add CONTRIBUTING.md, CLA and CLA check workflow - #1592
Open
smart-ssh-coder[bot] wants to merge 3 commits into
Open
smart-ssh-coder[bot] wants to merge 3 commits into
smart-ssh-coder[bot] wants to merge 3 commits into
Conversation
#1576) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
7 tasks
…ntributing-md-with-the-spec-first
7 tasks
There was a problem hiding this comment.
Review
Verdict: changes requested
Review level: normal
Blocking
CLA.md:28(§4 Scope): "This agreement covers all Contributions You submit after signing". The issue's flow, also described inCONTRIBUTING.mdandCLA.md§5, has the contributor sign in their first pull request, by commenting after that pull request has been opened. So the commits in that pull request were submitted before the signature, and §4 as worded does not cover them. A one-time contributor with a single PR would sign a CLA that, taken literally, never covers their only contribution. The maintainer decision asks for a grant "to the contribution" that the CLA check guards. Fix: extend the scope to cover the Contributions in the pull request where You sign, plus all later ones (or all Contributions You have submitted or will submit), and keep §5 consistent with that.
Non-blocking
CONTRIBUTING.md:30: the "individual commands" (cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspace) are quoted fromREADME_DEV.mdas the issue asked, but CI andscripts/gate.shrun every Cargo call with--locked. If a contributor uses these commands with a staleCargo.lock, they pass locally and fail in CI. Adding--locked, or saying "seescripts/gate.shfor the exact flags", would close that gap. The issue only requiresscripts/gate.shto match CI, and it does.- The PR body says actionlint was not run. I ran it (see Verified), and it passes.
Verified
- counter-proof: not applicable, because this PR only adds docs and a CI workflow and contains no bug fix or test.
- acceptance criteria (read:
CONTRIBUTING.md,CLA.md,README.md,.github/workflows/cla.yml):CONTRIBUTING.mdhas all eight sections.- Contribution terms name GPL-3.0-only, link
LICENSE, describe the one-time signature in the first PR, linkCLA.mdand give the relicensing reason. - The spec-first rule, the three impact values and the same-PR rule are stated, with a link to
docs/specs/README.md. README.mdhas "Contributing" directly after "Security", including the CLA sentence.- No prices, people or e-mail addresses in
CONTRIBUTING.md. CLA.mdhas the version line, the copyright/patent grant including relicensing under proprietary terms, and the representation.
- local checks vs. CI (read:
scripts/gate.sh,.github/workflows/community.yml): the gate stages and their contents match the CI jobs (fmt, clippy-D warnings, nextest/test, build, frontend lint/test/build, deny/audit, e2e). - relative links (executed: a loop over all
](…)targets inCONTRIBUTING.mdandCLA.md): all 18 resolve.node scripts/check-doc-paths.mjs→ "Doc paths ok." (executed) - workflow (read and executed):
actionlint 1.7.12 .github/workflows/cla.yml→ exit 0, no findings (executed).- The pinned SHA
ca4a40a7…equals tagv2.6.1ofcontributor-assistant/github-action(executed:gh api …/git/ref/tags/v2.6.1). - Triggers are
pull_request_target(opened, synchronize, closed) andissue_comment(created) only. - There is no checkout step.
- Permissions are exactly the four the issue lists. Only
GITHUB_TOKENis used. - Signatures go to
signatures/cla.jsonon thecla-signaturesbranch, and the document link points toCLA.mdondevelop. - The allowlist is the code owner from
.github/CODEOWNERSplus*[bot]. - The comment body is only compared in
if:expressions, never interpolated into a shell, so there is no injection path.
- edge cases:
- A comment on a plain issue (not a PR) → the job is skipped by
github.event.issue.pull_request→ ok. - An unrelated PR comment → the step is skipped → ok.
- A contributor whose only PR is the one where they sign → finding (see Blocking).
- A comment on a plain issue (not a PR) → the job is skipped by
- callers checked: not applicable (no code).
- tests run locally: none, because there is no code. actionlint and the doc-path check were executed (see above).
- UI: not a UI change.
- data: not touched.
- CI: all checks green on
fc5f1928(executed:gh pr checks 1592).
Timing analysis
- no test files changed
Spec
- visible behaviour changed: none (contributor documentation and a repository CI check; nothing changes in the product)
- spec searched (
rg -il 'contributing|contributor|CLA\b|beitrag|mitwirk' docs/specs/): no spec describes contribution terms; the hits were substring matches. - verdict: not needed, because the PR does not change product behaviour. No changelog fragment is needed either, since this is not a user-visible product change.
Security checks
- None of the product security invariants are touched, and no path in
.github/security-paths.txtis affected. - CI boundary checks:
pull_request_targetand the write permissions are required by the issue's decision.- No PR code is checked out or run.
- The action is pinned to a full SHA.
- No new secret is added.
- The PR body has a
CI changessection explaining each permission. Threat model: no changeis given with a reason that holds (the check runs no PR code).
- The
.github/change still needs code-owner approval on GitHub.
Manual checks pending
- CLA check end-to-end: GitHub, after merge. A PR from a non-allowlisted account gets the sign request, and the signature comment turns the check green and writes
signatures/cla.jsononcla-signatures.
Follow-ups
- None.
…ed (#1576) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
Author
There was a problem hiding this comment.
Review
Verdict: approved
Review level: normal
Follow-up round: only the delta since fc5f1928 was reviewed (27a5c025, which changes CLA.md and CONTRIBUTING.md).
Blocking
- None.
Non-blocking
CONTRIBUTING.md:52: "the signature covers all later contributions" is a shorter wording thanCLA.md§4/§5, which now also cover the signing pull request.CLA.mdis the binding text and is correct. Saying "covers that pull request and all later contributions" here would make the two match. This is wording only.
Verified
- counter-proof: not applicable, because the PR has only documentation and a CI workflow, with no fix and no test.
- previous blocking finding (read:
CLA.md§4, §5): §4 now covers "all Contributions You submit in the pull request in which You sign, including those made before You post the signature comment, and all Contributions You submit afterwards". §5 matches it, so a one-time contributor's only PR is covered. - previous non-blocking finding (read:
CONTRIBUTING.md:31): the clippy and test commands now carry--locked, as inscripts/gate.shand CI. - delta scope (executed:
git diff fc5f1928..HEAD --stat): 2 files and 3 lines changed..github/workflows/cla.ymlis unchanged since the last review, so the earlier actionlint pass and the SHA-pin check still apply. actionlint is not installed in this session, so I did not re-run it. - relative links (executed:
node scripts/check-doc-paths.mjs): "Doc paths ok." - base drift (executed:
git diff --name-only HEAD...origin/develop): no newerdevelopcommit touchesREADME.md,CONTRIBUTING.md,CLA.mdorcla.yml. GitHub reports the PR as mergeable. - commit messages are in English. There are no people, prices or e-mail addresses in the delta.
- tests run locally: none, because there is no code. The doc-path check above was executed.
- UI: not a UI change.
- data: not touched.
- CI: all checks green on
27a5c025(executed:gh pr checks 1592).
Timing analysis
- No test files changed.
Spec
- Visible behaviour changed: none. This is contributor documentation and a repository CI check; product behaviour does not change.
- Spec search from the first round (
rg -il 'contributing|contributor|CLA\b|beitrag|mitwirk' docs/specs/): no spec covers this area. The delta does not change that. - Verdict: no spec change needed. No changelog fragment is needed either, because users of the product see no change.
Security checks
review-level origin/develop→ normal (executed). The delta touches no product code and no workflow.- The CI boundary checks of the first round still hold, because
cla.ymlis unchanged:pull_request_targetwith no checkout of PR code.- The action is pinned to a full SHA.
- Permissions are exactly the four listed in the issue, and only
GITHUB_TOKENis used.
- The
.github/change still needs code-owner approval on GitHub.
Manual checks pending
- CLA check end-to-end: GitHub, after merge.
Previous findings
CLA.md:28scope does not cover the signing PR → fixed in27a5c025.- (non-blocking) Cargo commands without
--locked→ fixed in27a5c025.
Follow-ups
- None.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1576
Summary
CONTRIBUTING.mdwith the eight required sections, linking to existing docs instead of copying them.CLA.md(Version 1.0): individual CLA modelled on the Apache ICLA, with copyright and patent grant, right to relicense under other terms including proprietary ones, and the contributor's representations.README.md: new "Contributing" section after "Security", mentioning the one-time CLA signature..github/workflows/cla.yml: CLA Assistant Lite check.Acceptance Criteria
scripts/gate.shand CI commands: metnpm run check-doc-pathsok)pull_request_targetandissue_comment, no checkout, listed permissions only, signatures oncla-signatures: metCI changes
.github/workflows/cla.yml, jobcla: runs the CLA Assistant Lite action pinned to the v2.6.1 commit. It never checks out PR code. UsesGITHUB_TOKENonly.contents: writestoressignatures/cla.jsonon the separatecla-signaturesbranch;pull-requests: writeposts the request-to-sign comment;actions: writere-runs the check after a signature;statuses: writesets the check status.*[bot]).Tests
Docs and workflow only; no regression test applies.
Assumptions
cla-signaturesbranch is created by the action on the first signature.Spec: none (documentation and CI only)
Threat model: no change – documentation and a CI check that runs no PR code
Manual test steps
signatures/cla.jsonappears oncla-signatures.Follow-ups
None.
🤖 Generated with Claude Code