Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

docs: add public repository writing rules and a security policy (MUL-10291) (#11660)

Jiayuan Zhang375f6e516002
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index 0086358db1..73359ebf88 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -1 +1,5 @@
blank_issues_enabled: true
+contact_links:
+ - name: Report a security vulnerability
+ url: https://github.com/multica-ai/multica/security/advisories/new
+ about: Report vulnerabilities privately instead of opening a public issue.
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 79c1c8eff1..a39b9ee44e 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,6 +1,6 @@
## Problem
-<!-- What is the concrete problem, who is affected, and why does it matter? -->
+<!-- What is the concrete problem, who is affected, and why does it matter? This PR is public: describe what a reader can verify from the code and the product, and leave out business and security-sensitive context (see AGENTS.md#public-repository-writing). -->
## Goal
diff --git a/.github/RELEASING.md b/.github/RELEASING.md
index 7d5044e620..ab2fa73619 100644
--- a/.github/RELEASING.md
+++ b/.github/RELEASING.md
@@ -13,6 +13,8 @@ job starts. The vulnerability scan is fail-closed by default.
Release notes use GoReleaser's GitHub changelog to credit commit authors and
recognized co-authors between the previous and current tags. Keep all commits,
including documentation, tests, and chores, so their authors are credited too.
+Squash commits take their message from the PR description, so co-authors are
+recognized from the `Co-authored-by:` lines at its end.
Commit-subject `@` characters are separated from the following text with an HTML
comment; only the generated author mentions populate GitHub's Contributors list.
diff --git a/AGENTS.md b/AGENTS.md
index 0a3a3f8c29..264359a69b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -152,3 +152,13 @@ Workspace-scoped queries filter by `workspace_id`; membership gates access and `
- A new built-in runtime prefix (`MULTICA_<PREFIX>_PATH`/`_ENDPOINT`) or `MULTICA_<PREFIX>_ARGS` variable must appear in every `apps/docs/content/docs/environment-variables*.mdx`; `apps/docs/lib/env-var-coverage.test.ts` enforces this, and its exemption list is for runtimes deliberately kept out of the docs.
- New global pre-workspace routes use a single word or `/{noun}/{verb}`, not hyphenated root names. Update `server/internal/handler/reserved_slugs.json`, run `pnpm generate:reserved-slugs`, and commit `packages/core/paths/reserved-slugs.ts` when changing reserved slugs.
- Use atomic conventional commits and the repository PR template. Follow the [pull request requirements](CONTRIBUTING.md#pull-request-requirements): Problem, Goal, Proposal (high-level design understandable without much background), Alternatives (optional), and Screenshots. Attach screenshots or a screen recording for UI or interaction changes (missing both means rejection by default). For releases, follow [.github/RELEASING.md](.github/RELEASING.md); default to a patch bump unless specified otherwise.
+
+## Public Repository Writing
+
+This repository is public. PR titles and descriptions, commit messages, code comments, tests and fixtures, docs, screenshots, and GitHub issue or PR comments are readable by anyone, and history on `main` is permanent.
+
+- Write them from what a reader of this repository can verify: the code, its behavior, and the published product. Internal context stays in the tracking issue; refer to it only by its key (`MUL-xxx`).
+- State a motive as its effect in the code ("cap monthly app calls per workspace"), or leave it out. Do not include unpublished business detail (prices, plan limits, costs, vendor terms, customers, competitor or marketing analysis, roadmap), production data (user or workspace names, IDs, logs, query results), private repository internals beyond the interface this code consumes, internal hosts or local paths, or who requested or approved the change internally.
+- Security fixes describe the corrected behavior, not how to exploit the old one, its production scope, or how long it was exposed. An exploitable vulnerability whose fix is not deployed goes through [SECURITY.md](SECURITY.md), not a public PR or issue.
+- Squash merges use the PR title and description as the commit message on `main`. Put `Co-authored-by:` trailers that release notes should credit at the end of the description.
+- Before `gh pr create`, `gh pr edit`, or a push, reread the title, description, and commit messages against this section.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 95b069919a..a2ae6deced 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -64,6 +64,10 @@ Use the [PR template](.github/PULL_REQUEST_TEMPLATE.md) with these five sections
and explain why.
End the description with `Closes #<issue>` when the PR resolves an issue.
+The title and description become the squash commit on `main`; credit
+co-authors with `Co-authored-by:` lines at the end of the description. Report
+security vulnerabilities privately as described in [SECURITY.md](SECURITY.md),
+not in a pull request or issue.
**UI or interaction PRs without screenshots or a recording are rejected by
default.** Reviewers should request changes or close the PR until one is
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 0000000000..e2faa37cd7
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,15 @@
+# Security Policy
+
+## Reporting a Vulnerability
+
+Report vulnerabilities privately through GitHub: open the repository's **Security** tab and choose **Report a vulnerability**, or use [this link](https://github.com/multica-ai/multica/security/advisories/new). Do not open a public issue, pull request, or discussion for a vulnerability.
+
+Include the affected component, the version or commit, steps to reproduce, and the impact you observed. We acknowledge reports, keep the reporter updated in the advisory, and credit the reporter when the advisory is published unless they prefer otherwise.
+
+## Fixing a Vulnerability
+
+Maintainers fix a reported vulnerability in the advisory's temporary private fork, release the fix, and then publish the advisory. A public pull request for a security fix describes the corrected behavior only, as described in [AGENTS.md](AGENTS.md#public-repository-writing).
+
+## Supported Versions
+
+Security fixes ship in the latest release. Self-hosted deployments receive them by upgrading to the latest release.