Repository navigation
Add governance, contributor and license documents (#147) - #148
Conversation
Add the first committed draft of the "care and feeding" agreement since 2020, so that every later change is reviewed and tracked here: - GOVERNANCE.md: principles, roles, how a change ships, sensitive areas, AI-assisted work, data and privacy, technology baseline, decision sizes, licensing and how this document changes - CONTRIBUTING.md: the practical "start here" for new developers - COLLABORATION.md: the spirit of collaboration we work in - SECURITY.md: how to report a vulnerability privately - CONTRIBUTORS.md: everyone who has contributed so far, taken from the git history in order of first contribution - docs/decisions/README.md: the decision record process and template - .github/pull_request_template.md: the checklist from GOVERNANCE.md - CODEOWNERS: drop a dormant owner and list the sensitive areas - LICENSE and a README License section: the proposed AGPL-3.0 The license still needs agreement from Ben Brown, any major contributors and the Society. Do not merge until it has it. Documentation only; no application code changes. Assisted-by: Claude Code (Claude Opus 5.5) Signed-off-by: Cam Turner <cam.turner@gmail.com>
anne-decusatis
left a comment
There was a problem hiding this comment.
Overall in favor of this documentation. Happy to discuss some other way if that's better, some of my comments might be better addressed via a channel with more back and forth
| - [ ] Tests added or updated | ||
| - [ ] Commits are signed off (`git commit -s`) | ||
| - [ ] Under about 500 changed lines (excluding lockfiles, generated files and tests), or explained below | ||
| - [ ] AI-assisted: I used an AI tool, it is labeled with an `Assisted-by:` trailer, and I have read, run and understood every line |
There was a problem hiding this comment.
At least the typos show I wrote most of it myself eh? :)
| @@ -0,0 +1,22 @@ | |||
| # Spirit of Collaboration | |||
|
|
|||
| This is not a code of conduct. kwartzlab already has one, and it applies to everyone who works on kOS who is a member. Other organizations that adopt kOS will have their own. This page is simply why we do this and how we hope to work together. | |||
There was a problem hiding this comment.
link our CoC; note that it should apply to all contributors to the Kwartzlab version of kOS, as it is taking place in Kwartzlab digital spaces (I believe this to be true even if they are Diyode members)
| - **Put the space first.** The whole organization comes before any one feature or favorite way of doing things. | ||
| - **Protect our members.** Their private information and their trust are not ours to spend. Code defensively, and honor privacy choices even when you would not make the same ones. | ||
| - **Make room.** Welcome newcomers, share what you know, and write down what you learn so it does not live only in one head. | ||
| - **Disagree openly, then commit.** Argue it out in the issue or the pull request. Once the team decides, we move together. |
There was a problem hiding this comment.
I feel nervous about Amazon-isms like "disagree and commit". I think there is something true that they are trying to honor about not continually bikeshedding and working constructively together. But I also think of every time at work that I've ever been told that I have to comply without ever having had a real chance to be heard in my disagreement and feeling like in that moment I'm having the company's "disagree and commit" value thrown in my face. Is there a way we can reword this to get at the core of what we're trying to address with this item, without that baggage? Maybe something like: "Decisions should be made collaboratively, and once made, can be revisited when the situation has changed"
There was a problem hiding this comment.
I was mostly interested in the "move together" aspect. I like your wording better anyway, but my worry would be blocking some important progress on an outlier opinion. Maybe another "board decides" or a "log the remaining issue for a second pass"? Anyone else have ideas?
There was a problem hiding this comment.
Honestly seems like this should be pulled from org policy around how the board chooses to make decisions with participants in conflict. Regardless, this is a broad strokes statement. And will likely differ on a case by case basis.
|
|
||
| ## How we work together | ||
|
|
||
| - **Assume good intent.** Most problems are misunderstandings. Ask before you assume. |
There was a problem hiding this comment.
This is an extremely loaded wording to me. I recommend reading this link for a critique of "assume good intent": https://thebias.com/2017/09/26/how-good-intent-undermines-diversity-and-inclusion/
with that said I won't block merge on this alone - but I would like to discuss what we are worried about happening that we think this will address, and if we can reword for clarity, or if the other items cover it already?
There was a problem hiding this comment.
Wow. I'm educated more. This should definitely change. I'll sleep on it.
| - **Ownership.** Ben Brown and the Society jointly own the original code. Each contributor keeps the copyright in their own contributions and licenses them under the AGPL-3.0. | ||
| - **Attribution.** Copyright notices stay in the code. The git history is the record of who contributed, and a CONTRIBUTORS file in the repository credits everyone by name. | ||
| - **Sign-off.** Each commit carries a Developer Certificate of Origin sign-off (`Signed-off-by:`), meaning the author wrote it or has the right to contribute it under this license. | ||
| - **No relicensing.** The project stays under a license that keeps it open, and changing that requires agreement of Ben Brown, the Society and the maintainers. |
There was a problem hiding this comment.
Nitpick but: this isn't actually enforceable by being listed here or by the licensing, correct? This is just documenting an informal desire? Or am I misunderstanding how copyright works?
In other words, if Ben decided to charge for software consisting of his half and clean-room implementation of the other half, he could relicense it however he wanted even if the BoD and existing maintainers voted against it?
There was a problem hiding this comment.
I'll need to re-read the AGPL, but I used a license picking tool based on a bunch of questions, and this is what was suggested. If we re-ran the questions it might say something different, but most of the GPL variants have been tested in courts and held up. Definitely not just an informal desire.
I believe that AGPL allows people to use it commercially, but they can't close-source extend on top of it even if they host it as SAAS.
| @@ -0,0 +1,661 @@ | |||
| GNU AFFERO GENERAL PUBLIC LICENSE | |||
There was a problem hiding this comment.
didn't read this one, I'm trusting you to put the actual AGPL v3 in here
There was a problem hiding this comment.
This is the actual AGPLv3, verbatim from the source.
|
|
||
| ## What to expect | ||
|
|
||
| - Acknowledgement within 3 days. |
There was a problem hiding this comment.
can we say 7? 3 is tight on a weekend, given that not all BoD members are KOS maintainers
There was a problem hiding this comment.
7 is fine. My thinking was that the submission could be acknowledged by anyone. It doesn't commit to fix timeline. But 7 vs 3 on a project like this is not material. Heck, even 14 wouldn't be huge. If it was a really big problem I'm sure the person reporting it would find other channels to make noise.
| 2. **One purpose per PR, kept small.** If more than 500 changed lines, expect to be asked to split it. This line count excludes lockfiles, generated files and the automated test suite, so thorough tests are never a reason to trim a PR. | ||
| 3. **Test it locally first.** The Docker dev environment is the standard. Hardware-dependent code is exempt from automated tests but not from a description of how it was checked. | ||
| 4. **Tests and a testing note.** Add or update tests, and say in the PR description how you tested and why that is enough. | ||
| 5. **CI preflight must pass.** No merging on red. |
There was a problem hiding this comment.
Should this be done through making CI checks required? That would be more enforceable
There was a problem hiding this comment.
Totally valid option too. I just want it written down :)
There was a problem hiding this comment.
I'm open to wording suggestions here.
|
|
||
| kOS is proposed to be released under the GNU Affero General Public License v3.0 (AGPL-3.0), so that anyone, including other makerspaces, can use and improve it, and improvements to a hosted version stay open to the community. This section takes effect once the original author Ben Brown, any major contributors and the Society agree to it. TODO: Is this done yet? :) | ||
|
|
||
| - **Ownership.** Ben Brown and the Society jointly own the original code. Each contributor keeps the copyright in their own contributions and licenses them under the AGPL-3.0. |
There was a problem hiding this comment.
Ben Brown and the Society jointly own the original code.
Does this mean that any original code that I or anyone else has written to this point is now owned by Kwartzlab? I don't believe we were operating under a license before this point.
There was a problem hiding this comment.
True. We are not yet, and have not been operating under any agreement for code use. I only name Ben because git blame -w -M says he last touched ~75% of the code. The rest of us are under 10. I assume we'll all need to agree before this can be finalized.
There was a problem hiding this comment.
One wrinkle on "not operating under any agreement": composer.json currently declares "license": "MIT". That's probably left over from the Laravel skeleton, but it's still a public statement of terms, and Packagist and licence scanners will report kOS as MIT.
Two areas to look at:
- Agree on whether existing contributions count as MIT-licensed, since that changes what the AGPL switch needs from past contributors.
- Change the field to
AGPL-3.0-only(orAGPL-3.0-or-later) in this PR so the metadata matchesLICENSE.
|
|
||
| - How authentication and sessions behave, including any move to single sign-on | ||
| - Changes to access control: permission groups, key fobs, the Gatekeeper API and Gatekeeper firmware | ||
| - Private member data (what only the treasury and the board can see, such as email, phone, address and board notes), and any new place it is displayed. Members may see each other's preferred name, pronouns, photo, teams and training status, but never combined with entry times or Gatekeeper access data in a general report |
There was a problem hiding this comment.
Members may see each other's preferred name, pronouns, photo, teams and training status, but never combined with entry times or Gatekeeper access data in a general report
The second part implies that general membership can access general reports but the next point explicitly states member activity can only be accessed by BoD.
Nitpick, but it makes more sense to only include
Members may only see each other's preferred name, pronouns, photo, teams and training status, any other information made visible requires approval from the BoD
There was a problem hiding this comment.
Excellent change. Good Nit.
| - [ ] Commits are signed off (`git commit -s`) | ||
| - [ ] Under about 500 changed lines (excluding lockfiles, generated files and tests), or explained below | ||
| - [ ] AI-assisted: I used an AI tool, it is labeled with an `Assisted-by:` trailer, and I have read, run and understood every line | ||
| - [ ] Touches a sensitive area (authentication, access control, private member data, privileged reports, audit logs, deploy pipeline, backups): needs two reviewers and a heads-up to the board |
There was a problem hiding this comment.
What is the expected threshold here? Nearly anything pulled from the database can be construed as private if linked together with other related data?
There was a problem hiding this comment.
Reading down I see it further defined below. But incomplete and somewhat reflexive. I think it warrants further discussion in the future as the tool continues to collect information about all facets of interconnected business.
| - **Put the space first.** The whole organization comes before any one feature or favorite way of doing things. | ||
| - **Protect our members.** Their private information and their trust are not ours to spend. Code defensively, and honor privacy choices even when you would not make the same ones. | ||
| - **Make room.** Welcome newcomers, share what you know, and write down what you learn so it does not live only in one head. | ||
| - **Disagree openly, then commit.** Argue it out in the issue or the pull request. Once the team decides, we move together. |
There was a problem hiding this comment.
Honestly seems like this should be pulled from org policy around how the board chooses to make decisions with participants in conflict. Regardless, this is a broad strokes statement. And will likely differ on a case by case basis.
| ## Before you start | ||
|
|
||
| 1. Read [GOVERNANCE.md](GOVERNANCE.md) and the [Spirit of Collaboration](COLLABORATION.md). | ||
| 2. Ask a maintainer for repository access by joining the kos-developers group within the kos-base project if you do not already have it. |
There was a problem hiding this comment.
Is this necessary as a pre flight first step? The repo is currently open with anyone able to log issues and create PRs. Joining the team on GitHub could be a further escalation when a team member becomes a code reviewer, consistent developer, or needs access to repository level features.
There was a problem hiding this comment.
Fair point. We can adjust that.
|
|
||
| 1. Open or pick an issue for anything bigger than a small fix, so others can weigh in early. | ||
| 2. Branch from `main`. Keep one purpose per pull request. Above roughly 500 changed lines (not counting lockfiles, generated files and tests), expect to be asked to split it. | ||
| 3. Test locally first and add or update tests. Say in the PR description how you tested and why that is enough. Hardware-dependent code is exempt from automated tests but not from a description of how it was checked. |
There was a problem hiding this comment.
Hardware dependency is mentioned multiple times in this documentation effort. But aside from compiled dependencies managed by the package maintainer, are there any hardware specific features in use? I don't recall any. Regardless, it still holds relevant should there be one some day.
There was a problem hiding this comment.
"Hardware dependent" currently is only gatekeepers. Developers aren't likely to have a real one at home, though my synthetic data tools will "fake" that for manual testing purposes, and I'm exploring how to connect them through John's APIs for automated testing too. But that's off topic. I'll note "like physical gatekeeper devices" here.
| - Private member data (what only the treasury and the board can see, such as email, phone, address and board notes), and any new place it is displayed. Members may see each other's preferred name, pronouns, photo, teams and training status, but never combined with entry times or Gatekeeper access data in a general report | ||
| - Privileged reports that query member activity. Every run must be recorded in the audit log, where the board can see it | ||
| - Anything that changes what the audit logs record or who can alter them, from server logs and bash history to records in SQL. | ||
| - The deploy pipeline, CI configuration and backups |
There was a problem hiding this comment.
Let's refine this further down the line with a better understanding of our existing controls. Currently many actors have access to the hypervisor to manage other projects out of scope. In doing so they would have access to Kos machine state and backups. Better understanding our threat model and access controls will allow functional access without bleeding into sensitive areas.
There was a problem hiding this comment.
Yes. We need to do this too, but do is that a comment for this PR and these documents... or just sparked a thoughts about more work we need to do?
|
|
||
| - **Ownership.** Ben Brown and the Society jointly own the original code. Each contributor keeps the copyright in their own contributions and licenses them under the AGPL-3.0. | ||
| - **Attribution.** Copyright notices stay in the code. The git history is the record of who contributed, and a CONTRIBUTORS file in the repository credits everyone by name. | ||
| - **Sign-off.** Each commit carries a Developer Certificate of Origin sign-off (`Signed-off-by:`), meaning the author wrote it or has the right to contribute it under this license. |
There was a problem hiding this comment.
Is this something that can be completed by our PR squash and merge process? It will be a forgotten step otherwise.
There was a problem hiding this comment.
I'll investigate..
There was a problem hiding this comment.
It would not currently survive, so I'll drop this for now and we can add it later if we want to.
There was a problem hiding this comment.
Rather than relying on squash-merge, we could install the DCO GitHub App and make it a required status check. It checks for Signed-off-by: on every commit in the PR before merge, so it doesn't matter whether the trailer survives the squash: the PR record is the evidence. That keeps the sign-off rule without it becoming a forgotten step, and it lines up with Kivtaas's suggestion to enforce things through required checks.
It only covers new commits, though. The existing code still needs the agreement discussed in the ownership thread.
- Replace the AGPL-3.0 LICENSE file and README License section with LICENSE-GRANT.md: composer.json has declared MIT since the first commit (2018-07-31), so each existing contributor is asked to license their past work under AGPL-3.0-or-later before the switch - Drop commit sign-off and the Assisted-by trailer, which a squash merge discards. The PR template now carries a licensing affirmation and names any AI tool used, and the PR description becomes the merged commit's message - Replace "assume good intent" and "disagree, then commit" wording, link the kwartzlab Code of Conduct and separate technical from interpersonal issues in COLLABORATION.md - Send board notices and security reports to git-issues@kwartzlab.ca, and give security reports 7 days for acknowledgement - Rewrite the PR template checklist in the first person - Note in CODEOWNERS that the owner lists should grow, and become specialist teams for sensitive areas - Open contributing to everyone; the kos-developers group is for regular developers and reviewers
) - GOVERNANCE.md: adopt the suggested wording that the kwartzlab code of conduct applies to everyone in this virtual space too. - GOVERNANCE.md: say that all CI tests and checks must pass. - Fix two typos in COLLABORATION.md and LICENSE-GRANT.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
👍 |
readysteadywhoa
left a comment
There was a problem hiding this comment.
These governance documents will go a long way in ensuring that future contributions are well structured, well-intentioned and stay free and available to everyone.
It's amazing to see kOS growing up from a simple membership register and key project into a community-driven access control and management platform that other spaces can use too. A huge thanks and immense appreciation for everyone who has worked on the project these past years, kOS only exists and continues to exist due to your hard work and diligence. Looking forward to contributing further using the good governance outlined in this PR.
|
After review by Ben and Verdi and with Ben standing by, I'm going to squash this in now. |
What and why
Closes #147.
In 2020, Cam and Ben drafted a "care and feeding of kOS" agreement in a Google Doc, and over the years it went stale. Following the November 25 discussion in #project-kos-devs, this PR commits a refreshed draft to the repository so that every future change to it is reviewed and tracked here, like code.
This is a draft for discussion. It is documentation only, with no application code changes.
GOVERNANCE.mdCONTRIBUTING.mdCOLLABORATION.mdSECURITY.mdCONTRIBUTORS.mdLICENSE-GRANT.mddocs/decisions/README.md.github/pull_request_template.mdCODEOWNERSChanges since the first review
Thank you to everyone who commented. The second commit:
LICENSEfile and README section, and addsLICENSE-GRANT.mdinstead (see below).Assisted-by:trailer. A squash merge discards commit trailers. The PR template now carries a licensing affirmation and names any AI tool used. This repository's squash merges use the PR description as the commit message, so both stay in git.The third commit:
Licensing: the MIT history and the grant
composer.jsonhas declared"license": "MIT"since the very first commit (2018-07-31), apparently inherited from the Laravel starter project. It has been assumed since then that contributions were MIT. No LICENSE file or other licence statement has ever existed in the repository.To make this explicit before moving to the AGPL-3.0,
LICENSE-GRANT.mdasks each existing contributor to add a short statement, in their own PR from their own GitHub account, licensing their contributions made before December 1, 2026, and any they make until the project adopts the AGPL-3.0, under the AGPL-3.0 or later. Once everyone has signed, the AGPL-3.0LICENSEfile is added andcomposer.jsonchanged to match. Cam's own statement is included in this PR.Before merging: the new PR template asks every contributor to license their work under the AGPL-3.0 or later from the day this merges. If the Society has not agreed by then, we should hold the merge or soften that checkbox.
Open questions
app/Http/Middleware/,config/auth.php,database/migrations/,.github/,Dockerfile). Others, such as the login and API controllers, key fobs, Gatekeepers, deploy scripts and audit config, can be added as we find them.Repository settings (for an admin, outside this PR)
SECURITY.mdpoints to.How I tested it
Documentation only, so there is nothing to run. I checked that every relative link and anchor in the new files resolves, that each CODEOWNERS path exists in the repository, and that the pre-commit hooks (trailing whitespace, end of file) pass.
Checklist
.github/and CODEOWNERSRollout notes
Merging deploys to production, but nothing in this PR changes how the application behaves. Revert the commit to undo it.
🤖 Generated with Claude Code