This repository was archived by the owner on May 5, 2026. It is now read-only.
forked from openclaw/openclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
chore: establish ProdClaw governance #1
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
181fc2a
chore: establish ProdClaw governance
timeleft-- 3ef778b
chore: scope upstream maintainer workflows
timeleft-- b3156a6
fix: satisfy lint on state integrity check
timeleft-- 65c33e9
fix: harden ProdClaw release workflow
timeleft-- d76f0e8
fix: tighten ProdClaw release governance
timeleft-- a6a4b4c
fix: anchor ProdClaw GA branch match
timeleft-- d06b360
fix: harden ProdClaw release metadata
timeleft-- 5dae70f
chore: add ProdClaw CODEOWNER reviewer
timeleft-- 5d1b105
Update .github/workflows/prodclaw-governance.yml
timeleft-- cc5b44a
fix: repair ProdClaw ownership and age gate
timeleft-- 9ce9184
Update .github/workflows/prodclaw-release.yml
timeleft-- File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,56 +1,62 @@ | ||
| # Protect the ownership rules themselves. | ||
| /.github/CODEOWNERS @steipete | ||
| /.github/CODEOWNERS @timeleft-- | ||
|
|
||
| # WARNING: GitHub CODEOWNERS uses last-match-wins semantics. | ||
| # If you add overlapping rules below the secops block, include @openclaw/openclaw-secops | ||
| # on those entries too or you can silently remove required secops review. | ||
| # Security-sensitive code, config, and docs require secops review. | ||
| /SECURITY.md @openclaw/openclaw-secops | ||
| /.github/dependabot.yml @openclaw/openclaw-secops | ||
| /.github/codeql/ @openclaw/openclaw-secops | ||
| /.github/workflows/codeql.yml @openclaw/openclaw-secops | ||
| /.github/workflows/codeql-android-critical-security.yml @openclaw/openclaw-secops | ||
| /.github/workflows/codeql-critical-quality.yml @openclaw/openclaw-secops | ||
| /src/security/ @openclaw/openclaw-secops | ||
| /src/secrets/ @openclaw/openclaw-secops | ||
| /src/config/*secret*.ts @openclaw/openclaw-secops | ||
| /src/config/**/*secret*.ts @openclaw/openclaw-secops | ||
| /src/gateway/*auth*.ts @openclaw/openclaw-secops | ||
| /src/gateway/**/*auth*.ts @openclaw/openclaw-secops | ||
| /src/gateway/*secret*.ts @openclaw/openclaw-secops | ||
| /src/gateway/**/*secret*.ts @openclaw/openclaw-secops | ||
| /src/gateway/security-path*.ts @openclaw/openclaw-secops | ||
| /src/gateway/resolve-configured-secret-input-string*.ts @openclaw/openclaw-secops | ||
| /src/gateway/protocol/**/*secret*.ts @openclaw/openclaw-secops | ||
| /src/gateway/server-methods/secrets*.ts @openclaw/openclaw-secops | ||
| /src/agents/*auth*.ts @openclaw/openclaw-secops | ||
| /src/agents/**/*auth*.ts @openclaw/openclaw-secops | ||
| /src/agents/auth-profiles*.ts @openclaw/openclaw-secops | ||
| /src/agents/auth-health*.ts @openclaw/openclaw-secops | ||
| /src/agents/auth-profiles/ @openclaw/openclaw-secops | ||
| /src/agents/sandbox.ts @openclaw/openclaw-secops | ||
| /src/agents/sandbox-*.ts @openclaw/openclaw-secops | ||
| /src/agents/sandbox/ @openclaw/openclaw-secops | ||
| /src/infra/secret-file*.ts @openclaw/openclaw-secops | ||
| /src/cron/stagger.ts @openclaw/openclaw-secops | ||
| /src/cron/service/jobs.ts @openclaw/openclaw-secops | ||
| /docs/security/ @openclaw/openclaw-secops | ||
| /docs/gateway/authentication.md @openclaw/openclaw-secops | ||
| /docs/gateway/sandbox-vs-tool-policy-vs-elevated.md @openclaw/openclaw-secops | ||
| /docs/gateway/sandboxing.md @openclaw/openclaw-secops | ||
| /docs/gateway/secrets-plan-contract.md @openclaw/openclaw-secops | ||
| /docs/gateway/secrets.md @openclaw/openclaw-secops | ||
| /docs/gateway/security/ @openclaw/openclaw-secops | ||
| /docs/cli/approvals.md @openclaw/openclaw-secops | ||
| /docs/cli/sandbox.md @openclaw/openclaw-secops | ||
| /docs/cli/security.md @openclaw/openclaw-secops | ||
| /docs/cli/secrets.md @openclaw/openclaw-secops | ||
| /docs/reference/secretref-credential-surface.md @openclaw/openclaw-secops | ||
| /docs/reference/secretref-user-supplied-credentials-matrix.json @openclaw/openclaw-secops | ||
| # This downstream repo can only name collaborators or teams with write access here. | ||
| # Security-sensitive code, config, and docs require owner review. | ||
| /SECURITY.md @timeleft-- | ||
| /.github/dependabot.yml @timeleft-- | ||
| /.github/codeql/ @timeleft-- | ||
| /.github/workflows/codeql.yml @timeleft-- | ||
| /.github/workflows/codeql-android-critical-security.yml @timeleft-- | ||
| /.github/workflows/codeql-critical-quality.yml @timeleft-- | ||
| /src/security/ @timeleft-- | ||
| /src/secrets/ @timeleft-- | ||
| /src/config/*secret*.ts @timeleft-- | ||
| /src/config/**/*secret*.ts @timeleft-- | ||
| /src/gateway/*auth*.ts @timeleft-- | ||
| /src/gateway/**/*auth*.ts @timeleft-- | ||
| /src/gateway/*secret*.ts @timeleft-- | ||
| /src/gateway/**/*secret*.ts @timeleft-- | ||
| /src/gateway/security-path*.ts @timeleft-- | ||
| /src/gateway/resolve-configured-secret-input-string*.ts @timeleft-- | ||
| /src/gateway/protocol/**/*secret*.ts @timeleft-- | ||
| /src/gateway/server-methods/secrets*.ts @timeleft-- | ||
| /src/agents/*auth*.ts @timeleft-- | ||
| /src/agents/**/*auth*.ts @timeleft-- | ||
| /src/agents/auth-profiles*.ts @timeleft-- | ||
| /src/agents/auth-health*.ts @timeleft-- | ||
| /src/agents/auth-profiles/ @timeleft-- | ||
| /src/agents/sandbox.ts @timeleft-- | ||
| /src/agents/sandbox-*.ts @timeleft-- | ||
| /src/agents/sandbox/ @timeleft-- | ||
| /src/infra/secret-file*.ts @timeleft-- | ||
| /src/cron/stagger.ts @timeleft-- | ||
| /src/cron/service/jobs.ts @timeleft-- | ||
| /docs/security/ @timeleft-- | ||
| /docs/gateway/authentication.md @timeleft-- | ||
| /docs/gateway/sandbox-vs-tool-policy-vs-elevated.md @timeleft-- | ||
| /docs/gateway/sandboxing.md @timeleft-- | ||
| /docs/gateway/secrets-plan-contract.md @timeleft-- | ||
| /docs/gateway/secrets.md @timeleft-- | ||
| /docs/gateway/security/ @timeleft-- | ||
| /docs/cli/approvals.md @timeleft-- | ||
| /docs/cli/sandbox.md @timeleft-- | ||
| /docs/cli/security.md @timeleft-- | ||
| /docs/cli/secrets.md @timeleft-- | ||
| /docs/reference/secretref-credential-surface.md @timeleft-- | ||
| /docs/reference/secretref-user-supplied-credentials-matrix.json @timeleft-- | ||
|
|
||
| # Release workflow and its supporting release-path checks. | ||
| /.github/workflows/openclaw-npm-release.yml @openclaw/openclaw-release-managers | ||
| /docs/reference/RELEASING.md @openclaw/openclaw-release-managers | ||
| /scripts/openclaw-npm-publish.sh @openclaw/openclaw-release-managers | ||
| /scripts/openclaw-npm-release-check.ts @openclaw/openclaw-release-managers | ||
| /scripts/release-check.ts @openclaw/openclaw-release-managers | ||
| /.github/workflows/openclaw-npm-release.yml @timeleft-- | ||
| /docs/reference/RELEASING.md @timeleft-- | ||
| /scripts/openclaw-npm-publish.sh @timeleft-- | ||
| /scripts/openclaw-npm-release-check.ts @timeleft-- | ||
| /scripts/release-check.ts @timeleft-- | ||
|
|
||
| # ProdClaw downstream governance and release surfaces. | ||
| # Keep these rules last so broader upstream workflow rules cannot override @timeleft--. | ||
| /PRODCLAW.md @timeleft-- | ||
| /PRODCLAW_UPSTREAM.json @timeleft-- | ||
| /docs/reference/prodclaw-release-policy.md @timeleft-- | ||
| /.github/workflows/prodclaw-*.yml @timeleft-- |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,117 @@ | ||
| name: ProdClaw Governance | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, edited, synchronize, reopened, ready_for_review] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| semantic-pr: | ||
| name: Validate PR | ||
| if: ${{ github.event_name == 'pull_request' }} | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - name: Check PR title | ||
| id: lint-pr-title | ||
| uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Add PR title error comment | ||
| uses: marocchino/sticky-pull-request-comment@d2ad0de260ae8b0235ce059e63f2949ba9e05943 | ||
| if: always() && (steps.lint-pr-title.outputs.error_message != null) | ||
| with: | ||
| header: prodclaw-pr-title-lint-error | ||
| message: | | ||
| ProdClaw PR titles must follow Conventional Commits. | ||
|
|
||
| ``` | ||
| ${{ steps.lint-pr-title.outputs.error_message }} | ||
| ``` | ||
|
|
||
| - name: Delete PR title error comment | ||
| uses: marocchino/sticky-pull-request-comment@d2ad0de260ae8b0235ce059e63f2949ba9e05943 | ||
| if: ${{ steps.lint-pr-title.outputs.error_message == null }} | ||
| with: | ||
| header: prodclaw-pr-title-lint-error | ||
| delete: true | ||
|
|
||
| prodclaw-governance: | ||
| name: ProdClaw Governance | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Validate ProdClaw boundary docs | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| files=( | ||
| PRODCLAW.md | ||
| docs/reference/prodclaw-release-policy.md | ||
| AGENTS.md | ||
| CONTRIBUTING.md | ||
| PRODCLAW_UPSTREAM.json | ||
| .github/workflows/prodclaw-governance.yml | ||
| .github/workflows/prodclaw-release.yml | ||
| ) | ||
|
|
||
| for f in "${files[@]}"; do | ||
| test -f "$f" | ||
| done | ||
|
|
||
| # These checks are lightweight tripwires for accidental boundary-doc deletion. | ||
| # CODEOWNERS review is still the authoritative governance control. | ||
| grep -q "\\*\\*GA\\*\\* is the current production-ready channel" PRODCLAW.md | ||
| grep -q "\\*\\*LTS\\*\\* is the conservative channel" PRODCLAW.md | ||
| grep -q "at least 10 days old" PRODCLAW.md | ||
| grep -q "ProdClaw uses SemVer tags" PRODCLAW.md | ||
|
|
||
| private_pattern='MachineWisdomAI/''iris|iris''-[a-z0-9-]+|azureuser''@|/Users''/|/home/''younes|OPENROUTER_''API_KEY|TELEGRAM_''BOT_TOKEN' | ||
| if grep -RInE "$private_pattern" "${files[@]}"; then | ||
| echo "ProdClaw governance files must not contain private deployment details." >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Validate ProdClaw tag policy | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| node --input-type=module <<'NODE' | ||
| const accepted = [ | ||
| "v1.0.0", | ||
| "v1.2.3", | ||
| "v2.0.0-rc.1", | ||
| "v12.34.56-rc.10", | ||
| "v1.0.0-rc.10", | ||
| ]; | ||
| const rejected = [ | ||
| "v2026.4.27", | ||
| "2026.4.27", | ||
| "v1.0", | ||
| "v1.0.0-beta.1", | ||
| "v0.1.0", | ||
| "v1.02.3", | ||
| "v1.2.03", | ||
| "v1.2.3-rc.01", | ||
| ]; | ||
| const pattern = /^v(?!\d{4}\.)[1-9]\d*\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-rc\.[1-9]\d*)?$/; | ||
| for (const tag of accepted) { | ||
| if (!pattern.test(tag)) { | ||
| throw new Error(`expected accepted ProdClaw tag: ${tag}`); | ||
| } | ||
| } | ||
| for (const tag of rejected) { | ||
| if (pattern.test(tag)) { | ||
| throw new Error(`expected rejected ProdClaw tag: ${tag}`); | ||
| } | ||
| } | ||
| NODE | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.