Skip to content

docs(cla): describe override scope across all onboarding + reference docs - #39

Merged
Shinrai merged 7 commits into
nextfrom
fix/cla-read-from-ledger
May 26, 2026
Merged

Shinrai merged 7 commits into
nextfrom
fix/cla-read-from-ledger

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix(cla): audit tool walks both default and override signature trees (84ecbed)
  • fix(cla): pass public_cla_url_template through reusable workflow; document override behavior (97bb8d2)
  • fix(cla): bot reads CLA from ledger (default) or consumer override; per-text-hash scope (132bcb7)
  • fix(cla): remove root CLA.md; bot must use the central ledger as source (f01b007)

🔧 Other Changes

  • docs(cla): describe override scope across all onboarding + reference docs (7a25d06)
  • docs(cla): reframe public sample CLA, drop mirror-of-private framing (549263a)
  • chore(cla): seed real CLA text + add boilerplate files (730a90e)
👥 Contributors

Shinrai added 7 commits May 26, 2026 10:44
Replaces the placeholder/disclaimer text in the seed's cla-versions/v1.0.md
with the actual binding CLA. Twelve-section structure: definitions, ownership
retained, copyright + patent grants, representations, no-use-obligation,
no-warranty, no-support-obligation, org-member coverage, acceptance method,
versioning policy, and entire-agreement clause.

The text is sourced from CLDMV's draft CLA after legal review and
formatting cleanup (no hard-wrapping, fenced code block on the acceptance
text, center-aligned versioning table).

Boilerplate additions:
- .gitignore: standard Node + OS + editor hygiene plus .audit-cache.json
  (regenerable cache produced by tools/audit.mjs)
- signatures/github/.gitkeep: makes the platform-bucket path exist from
  day one so the structure is self-documenting before any signature is
  recorded
- README "License" section replaced with "Rights": all rights reserved,
  no license granted, since the ledger is a private internal CLDMV resource

This seed is the canonical source for what gets committed to the live
private CLDMV/.cla-signatures repository. The CLA.md at the root of this
.github repo stays as the contributor-facing template/sample (with its
own disclaimer) and is not affected by this change.
The .github repository is the workflow library, not a CLA participant.
Carrying a root-level CLA.md was a holdover from the per-PR signing model
and a footgun: any code path that opportunistically fetched CLA.md from the
.github repo would silently use this file as a fallback CLA source instead
of the binding text in the private CLDMV/.cla-signatures ledger.

Deletes CLA.md from the root. The binding CLA lives only in the private
ledger at cla-versions/v<X.Y>.md. A public-readable mirror is kept in this
repo's seed at examples/repo-seeds/.cla-signatures/cla-versions/ — that's
where consumers copy from when scaffolding a new repo that uses the CLA
workflow.

Doc updates aligned with the new model:
- examples/repo-seeds/.cla-signatures/VERSIONING.md: patch / minor / major
  workflows now sync the public seed mirror, not a "working copy" in .github
- examples/guides/WORKFLOW-SETUP-GUIDE.md: explains the deliberate absence
  of root CLA.md; references the seed mirror for consumer copies
- examples/guides/AGENT-SCAFFOLDING.md: scaffolding agents now copy from
  the seed mirror, not from a (non-existent) root CLA.md
- README.md: drops the CLA.md entry from the repo file tree

The consumer-side bot behavior is unchanged today: the bot reads CLA.md
from each consumer repo's own root. The "no root CLA.md in .github"
property protects against accidental shifts that would let the .github
repo's file leak in as the canonical CLA.
The seed at examples/repo-seeds/.cla-signatures/cla-versions/v1.0.md was
being described as a "mirror" of the private ledger's binding text. That
framing is wrong: a contributor reading the public sample can't verify
what the private one says, so calling the public one a mirror tells the
reader to defer to something they can't see.

Reframes the sample as a standalone public reference CLA — what consumer
repos copy from when scaffolding a local CLA.md, and what the org pushes
to the live private ledger to seed it. Same-text-in-two-places is a
maintenance discipline, not an architectural relationship.

- WORKFLOW-SETUP-GUIDE.md: "public sample" instead of "public mirror"
- AGENT-SCAFFOLDING.md: same (this is the doc agents follow for
  scaffolding new consumer repos)
- examples/repo-seeds/.cla-signatures/VERSIONING.md: rewrites the patch
  and minor/major bump steps to treat the sample as independent — keep
  it in step with binding text as a discipline, not a derivation
…er-text-hash scope

Two scopes resolved at runtime by checking whether the consumer repo has its
own root CLA.md:

- DEFAULT: no consumer CLA.md → bot reads cla-versions/v<X.Y>.md from the
  ledger. Signatures land at signatures/<platform>/v<X.Y>/<shard>/<id>.json.
  Version comes from the workflow cla_version input.

- OVERRIDE: consumer has root CLA.md → bot enforces that text. Version is
  parsed from the file's H1 header (e.g. "# CLDMV CLA — v1.0" → "v1.0"); the
  workflow cla_version input is only a fallback. Signatures land at
  signatures/<platform>/overrides/<owner>/<repo>/v<X.Y>/<shard>/<id>.json.

Signature scope is per-CLA-text-hash. Signing default v1.0 does NOT cover
override-repo v1.0 and vice versa — they're different agreements.

cla-record additions:

- On first signature for an override scope+version, bootstraps an immutable
  snapshot at cla-versions/overrides/<owner>/<repo>/v<X.Y>.md (with .sha256)
  before writing the signature.
- On subsequent override signatures, performs drift detection: if the
  consumer's current CLA.md sha256 differs from the snapshot's, the bot
  fails loudly with a clear remediation message (revert the edit or bump
  the header version).
- cla_url_at_signing always points at a commit-pinned URL in the ledger,
  not the consumer repo.
- Signature record gains agreement.cla_scope and agreement.cla_path_in_ledger
  so audit can see which scope a signature belongs to without parsing paths.

Removes the previous assumption that the bot reads CLA.md from the consumer
repo for every signature.
…ument override behavior

reusable-cla.yml: declares the new public_cla_url_template input and passes
it to the cla-check action. Workflow header comments updated to describe
default vs. override scope, the first-signer bootstrap, and the drift
detection.

examples/individual-repo-workflows/security/cla.yml: header comment block
updated to explain the two scopes and the fact that adding a root CLA.md
flips the consumer into override scope automatically.

The example consumer workflow doesn't need any input changes — defaults
cover both scopes correctly.

The linter flag on `public_cla_url_template` in reusable-cla.yml is a known
false positive: it resolves against the currently-tagged @v4 cla-check
action, which doesn't yet have the new input. Clears at the next v4 retag.
tools/audit.mjs now finds signatures across both signatures/<platform>/v<X.Y>/
(default scope) and signatures/<platform>/overrides/<owner>/<repo>/v<X.Y>/
(override scope) when looking up a contributor.

Adds --scope flag for --version queries:

  node tools/audit.mjs --version v1.0                          # default only
  node tools/audit.mjs --version v1.0 --scope overrides        # all overrides
  node tools/audit.mjs --version v1.0 --scope override:<o>/<r> # one override

Summary output now includes the signature's scope.
…docs

WORKFLOW-SETUP-GUIDE.md: rewrites the CLA Bot section to describe both
scopes, the bootstrap mechanic, drift detection, and the per-text-hash
signature scoping. Common-prereqs section drops the "CLA.md required by
cla.yml" framing and makes the local CLA.md explicitly optional (override
only).

AGENT-SCAFFOLDING.md: Q6 reframed (don't add CLA.md by default), new Q6b
asks whether the consumer needs an override. Setup-step rows mirror the
new behavior — agents must not drop a stray CLA.md or they silently flip
the repo into override scope.

README.md + examples/README.md: catalog entries describe both scopes.

examples/repo-seeds/.cla-signatures/README.md: Layout section split into
default-tree and override-tree diagrams. Signature record format section
gains the new agreement fields (cla_scope, cla_path_in_ledger). "How a
signature is added" walk-through now covers scope detection + bootstrap.

examples/repo-seeds/.cla-signatures/VERSIONING.md: adds the full
"Override CLAs" section — how versions are detected from the header,
first-signer bootstrap, why patch fixes to overrides aren't allowed (the
snapshot is binding once signed), and the minor/major bump workflow for
overrides. Default-scope sections labeled accordingly.
@cldmv-bot cldmv-bot Bot added area: core type: documentation Relates to docs, README updates, guides, or inline code comments labels May 26, 2026
@Shinrai
Shinrai merged commit 91ddf1f into next May 26, 2026
9 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/cla-read-from-ledger branch May 26, 2026 19:23
Shinrai added a commit that referenced this pull request May 26, 2026
…#40)

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features

- #41 (5fb9ffb)
- feat(redirect-hotfix-pr): redirect Dependabot security PRs to the
hotfix lane (c4e4c89)

### 🐛 Bug Fixes

- #48 (7d06c21)
- fix(changelog): drop merge commits from release-PR changelog (7ccdfde)

- #47 (ff4207b)
- fix(v4): prefer "Create a merge commit" on next/hotfixes; dedupe
stacked-PR commits (c552494)

- #44
- fix(v4): per-branch merge methods + PR-ref annotation in release-PR
changelogs (29637d7)
- fix(rulesets): move Copilot review next/hotfixes; allow squash as
fallback (26dcea8)
- fix(changelog): drop redundant precondition check in
findAssociatedPullNumber (ea01889)

- #41 (5fb9ffb)
- Potential fix for pull request finding 'CodeQL / Missing regular
expression anchor' (329f7fe)

- #39 (91ddf1f)
- fix(cla): audit tool walks both default and override signature trees
(84ecbed)
- fix(cla): pass public_cla_url_template through reusable workflow;
document override behavior (97bb8d2)
- fix(cla): bot reads CLA from ledger (default) or consumer override;
per-text-hash scope (132bcb7)
- fix(cla): remove root CLA.md; bot must use the central ledger as
source (f01b007)

### 🔧 Other Changes

- #46 (454b724)
- docs(readme): modernize for v4; drop stale v3-launch markers; fix
ruleset-generator links (d09fdb8)

- #43 (417f110)
- docs(embedded-tests): surface the embedded-tests-ci feature in
onboarding (27a82f6)

- #42 (47a9ee4)
- chore(dependabot): add v4-tuned dependabot.yml template + update
auto-merge wiring (d52b60e)

- #39 (91ddf1f)
- docs(cla): describe override scope across all onboarding + reference
docs (7a25d06)

- #38 (9527fef)
- docs(cla): reframe public sample CLA, drop mirror-of-private framing
(549263a)
  - chore(cla): seed real CLA text + add boilerplate files (730a90e)


<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

---------

Co-authored-by: Nate Corcoran <[email protected]>
Co-authored-by: cldmv-bot[bot] <230771808+cldmv-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: documentation Relates to docs, README updates, guides, or inline code comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant