From c4007ce14a600455db866f9a397d5e88c33aefca Mon Sep 17 00:00:00 2001 From: SteveBot <1153461+unbraind@users.noreply.github.com> Date: Sun, 4 Oct 2026 18:54:57 +0200 Subject: [PATCH 1/3] Auto-merge green Dependabot updates and group the pm toolchain into one daily PR Version bumps of @unbrained/pm-cli, pm-ops and pm-changelog are mechanical. Dependabot now checks npm daily and groups the pm toolchain (and other minor/patch updates) into single pull requests; a least-privilege workflow enables squash auto-merge for every non-major Dependabot PR, so it lands as soon as the required checks pass and a failing bump stays open as a defect. pm item: pm-graph-088p --- .agents/pm/history/pm-graph-088p.jsonl | 3 +++ .agents/pm/tasks/pm-graph-088p.toon | 23 ++++++++++++++++++ .github/dependabot.yml | 21 ++++++++++++++++- .github/workflows/dependabot-auto-merge.yml | 26 +++++++++++++++++++++ 4 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 .agents/pm/history/pm-graph-088p.jsonl create mode 100644 .agents/pm/tasks/pm-graph-088p.toon create mode 100644 .github/workflows/dependabot-auto-merge.yml diff --git a/.agents/pm/history/pm-graph-088p.jsonl b/.agents/pm/history/pm-graph-088p.jsonl new file mode 100644 index 00000000..a69b1331 --- /dev/null +++ b/.agents/pm/history/pm-graph-088p.jsonl @@ -0,0 +1,3 @@ +{"hash_algorithm":"sha256","ts":"2026-10-04T16:54:54.663Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"create","patch":[{"op":"replace","path":"/body","value":"Fleet-wide automation of version bumps; see companion pm-cli-website-6d05."},{"op":"add","path":"/metadata/id","value":"pm-graph-088p"},{"op":"add","path":"/metadata/title","value":"Auto-merge green Dependabot updates and group the pm toolchain into one daily PR"},{"op":"add","path":"/metadata/description","value":"Version bumps of the pm CLI, SDK-bearing packages and fleet gates are mechanical and must land without a hand-written certification PR. Dependabot checks npm daily, groups @unbrained/pm-cli and pm-* packages into one pm-toolchain PR and other minor/patch updates into one dependencies PR; a least-privilege workflow enables GitHub squash auto-merge for every non-major Dependabot PR so it merges as soon as the required checks pass. A failing bump is a real defect to fix. Fleet rule: companion pm-cli-website-6d05; pilot unbraind/pm-presets#118."},{"op":"add","path":"/metadata/type","value":"Task"},{"op":"add","path":"/metadata/status","value":"open"},{"op":"add","path":"/metadata/priority","value":2},{"op":"add","path":"/metadata/tags","value":["automation","ci","dependencies"]},{"op":"add","path":"/metadata/created_at","value":"2026-10-04T16:54:54.663Z"},{"op":"add","path":"/metadata/updated_at","value":"2026-10-04T16:54:54.663Z"},{"op":"add","path":"/metadata/deadline","value":"2026-10-06T00:00:00.000Z"},{"op":"add","path":"/metadata/assignee","value":"claude-orchestrator"},{"op":"add","path":"/metadata/author","value":"claude-orchestrator"},{"op":"add","path":"/metadata/estimated_minutes","value":15},{"op":"add","path":"/metadata/acceptance_criteria","value":"dependabot.yml checks npm daily with pm-toolchain and dependencies groups; dependabot-auto-merge.yml enables squash auto-merge only for Dependabot non-major updates with least-privilege permissions; repository allows auto-merge; required checks still gate every merge"},{"op":"add","path":"/metadata/comments","value":[{"created_at":"2026-10-04T16:54:54.663Z","author":"claude-orchestrator","text":"Rolled out from the reviewed pilot unbraind/pm-presets#118."}]},{"op":"add","path":"/metadata/files","value":[{"path":".github/dependabot.yml","scope":"project"},{"path":".github/workflows/dependabot-auto-merge.yml","scope":"project"}]},{"op":"add","path":"/metadata/docs","value":[{"path":".github/workflows/dependabot-auto-merge.yml","scope":"project"}]}],"before_hash":"3cc22dff72be7b14824654a7a64ea62b04799939b2fee54c1b5f52ca60bf6df0","after_hash":"c2fb47dfc93fc9f7cdc4021ba705f251e47bc87aef52c1855cce097fa6480b02","item_hash_version":3,"message":"Create item for Dependabot auto-merge | explicit_unset=dependencies,learnings,notes,tests","context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"c661f5869fd6043716bcd6552041038ac6122a4e9f5a5e7f06689fbfe5f30a80"} +{"hash_algorithm":"sha256","ts":"2026-10-04T16:54:56.142Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"claim","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-10-04T16:54:56.142Z"},{"op":"add","path":"/metadata/claim_principal","value":"claude-orchestrator"}],"before_hash":"c2fb47dfc93fc9f7cdc4021ba705f251e47bc87aef52c1855cce097fa6480b02","after_hash":"78decd9b4675338705af89696088d11615c0008c7b20b8ff4c0cc016f8bf836d","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"10a27b57af8f1da702eb0a36aea548e1e1a8579821e9c2e338677beb56a5b94a"} +{"hash_algorithm":"sha256","ts":"2026-10-04T16:54:56.970Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"update","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-10-04T16:54:56.970Z"},{"op":"replace","path":"/metadata/status","value":"in_progress"}],"before_hash":"78decd9b4675338705af89696088d11615c0008c7b20b8ff4c0cc016f8bf836d","after_hash":"207df90bd470c34398698042c69679e85ae4d5bd3a222356381c34ce5359a9b1","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"bd3cf0f4a032e54a47a2a03826333d43b49089301c0182d4a5fd60949cd31102"} diff --git a/.agents/pm/tasks/pm-graph-088p.toon b/.agents/pm/tasks/pm-graph-088p.toon new file mode 100644 index 00000000..13be2036 --- /dev/null +++ b/.agents/pm/tasks/pm-graph-088p.toon @@ -0,0 +1,23 @@ +id: pm-graph-088p +title: Auto-merge green Dependabot updates and group the pm toolchain into one daily PR +description: "Version bumps of the pm CLI, SDK-bearing packages and fleet gates are mechanical and must land without a hand-written certification PR. Dependabot checks npm daily, groups @unbrained/pm-cli and pm-* packages into one pm-toolchain PR and other minor/patch updates into one dependencies PR; a least-privilege workflow enables GitHub squash auto-merge for every non-major Dependabot PR so it merges as soon as the required checks pass. A failing bump is a real defect to fix. Fleet rule: companion pm-cli-website-6d05; pilot unbraind/pm-presets#118." +type: Task +status: in_progress +priority: 2 +tags[3]: automation,ci,dependencies +created_at: "2026-10-04T16:54:54.663Z" +updated_at: "2026-10-04T16:54:56.970Z" +deadline: "2026-10-06T00:00:00.000Z" +assignee: claude-orchestrator +claim_principal: claude-orchestrator +author: claude-orchestrator +estimated_minutes: 15 +acceptance_criteria: dependabot.yml checks npm daily with pm-toolchain and dependencies groups; dependabot-auto-merge.yml enables squash auto-merge only for Dependabot non-major updates with least-privilege permissions; repository allows auto-merge; required checks still gate every merge +comments[1]{created_at,author,text}: + "2026-10-04T16:54:54.663Z",claude-orchestrator,Rolled out from the reviewed pilot unbraind/pm-presets#118. +files[2]{path,scope}: + .github/dependabot.yml,project + .github/workflows/dependabot-auto-merge.yml,project +docs[1]{path,scope}: + .github/workflows/dependabot-auto-merge.yml,project +body: Fleet-wide automation of version bumps; see companion pm-cli-website-6d05. diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2b876a34..6965fa2e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,8 +3,27 @@ updates: - package-ecosystem: "npm" directory: "/" schedule: - interval: "weekly" + interval: "daily" open-pull-requests-limit: 5 + groups: + # The pm CLI, its SDK-bearing packages and the fleet gates move together + # in one pull request per day; dependabot-auto-merge.yml merges it as soon + # as the required checks pass, so a release bump needs no manual work. + # No update-types filter: pm uses calendar versions, so a year rollover + # (2026.x -> 2027.x) is a semver major that must still land unattended. + pm-toolchain: + patterns: + - "@unbrained/pm-cli" + - "pm-*" + dependencies: + # Disjoint from pm-toolchain, so a pm package can never be bumped + # here (and capped by this group's update-types) instead. + exclude-patterns: + - "@unbrained/pm-cli" + - "pm-*" + update-types: + - "minor" + - "patch" - package-ecosystem: "github-actions" directory: "/" diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml new file mode 100644 index 00000000..12eab3ba --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yml @@ -0,0 +1,26 @@ +name: dependabot-auto-merge + +# Version bumps are mechanical: every non-major Dependabot pull request gets +# GitHub auto-merge, so it lands the moment the required checks pass. Branch +# protection still gates the merge; a failing bump stays open as a defect. +on: pull_request + +permissions: {} + +jobs: + enable-auto-merge: + if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository_owner == 'unbraind' + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - id: metadata + uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0 + # pm-toolchain is calendar-versioned (a new year reads as semver-major), + # so it always auto-merges; any other major update waits for a person. + - if: steps.metadata.outputs.dependency-group == 'pm-toolchain' || steps.metadata.outputs.update-type != 'version-update:semver-major' + run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From c62eb687be3d5695056fd7a0a4a376388c07ecf3 Mon Sep 17 00:00:00 2001 From: SteveBot <1153461+unbraind@users.noreply.github.com> Date: Sun, 4 Oct 2026 19:01:49 +0200 Subject: [PATCH 2/3] Close pm-graph-088p and regenerate the changelog pm item: pm-graph-088p --- .agents/pm/history/pm-graph-088p.jsonl | 2 ++ .agents/pm/tasks/pm-graph-088p.toon | 9 +++++---- CHANGELOG.md | 6 ++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.agents/pm/history/pm-graph-088p.jsonl b/.agents/pm/history/pm-graph-088p.jsonl index a69b1331..5594d7ab 100644 --- a/.agents/pm/history/pm-graph-088p.jsonl +++ b/.agents/pm/history/pm-graph-088p.jsonl @@ -1,3 +1,5 @@ {"hash_algorithm":"sha256","ts":"2026-10-04T16:54:54.663Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"create","patch":[{"op":"replace","path":"/body","value":"Fleet-wide automation of version bumps; see companion pm-cli-website-6d05."},{"op":"add","path":"/metadata/id","value":"pm-graph-088p"},{"op":"add","path":"/metadata/title","value":"Auto-merge green Dependabot updates and group the pm toolchain into one daily PR"},{"op":"add","path":"/metadata/description","value":"Version bumps of the pm CLI, SDK-bearing packages and fleet gates are mechanical and must land without a hand-written certification PR. Dependabot checks npm daily, groups @unbrained/pm-cli and pm-* packages into one pm-toolchain PR and other minor/patch updates into one dependencies PR; a least-privilege workflow enables GitHub squash auto-merge for every non-major Dependabot PR so it merges as soon as the required checks pass. A failing bump is a real defect to fix. Fleet rule: companion pm-cli-website-6d05; pilot unbraind/pm-presets#118."},{"op":"add","path":"/metadata/type","value":"Task"},{"op":"add","path":"/metadata/status","value":"open"},{"op":"add","path":"/metadata/priority","value":2},{"op":"add","path":"/metadata/tags","value":["automation","ci","dependencies"]},{"op":"add","path":"/metadata/created_at","value":"2026-10-04T16:54:54.663Z"},{"op":"add","path":"/metadata/updated_at","value":"2026-10-04T16:54:54.663Z"},{"op":"add","path":"/metadata/deadline","value":"2026-10-06T00:00:00.000Z"},{"op":"add","path":"/metadata/assignee","value":"claude-orchestrator"},{"op":"add","path":"/metadata/author","value":"claude-orchestrator"},{"op":"add","path":"/metadata/estimated_minutes","value":15},{"op":"add","path":"/metadata/acceptance_criteria","value":"dependabot.yml checks npm daily with pm-toolchain and dependencies groups; dependabot-auto-merge.yml enables squash auto-merge only for Dependabot non-major updates with least-privilege permissions; repository allows auto-merge; required checks still gate every merge"},{"op":"add","path":"/metadata/comments","value":[{"created_at":"2026-10-04T16:54:54.663Z","author":"claude-orchestrator","text":"Rolled out from the reviewed pilot unbraind/pm-presets#118."}]},{"op":"add","path":"/metadata/files","value":[{"path":".github/dependabot.yml","scope":"project"},{"path":".github/workflows/dependabot-auto-merge.yml","scope":"project"}]},{"op":"add","path":"/metadata/docs","value":[{"path":".github/workflows/dependabot-auto-merge.yml","scope":"project"}]}],"before_hash":"3cc22dff72be7b14824654a7a64ea62b04799939b2fee54c1b5f52ca60bf6df0","after_hash":"c2fb47dfc93fc9f7cdc4021ba705f251e47bc87aef52c1855cce097fa6480b02","item_hash_version":3,"message":"Create item for Dependabot auto-merge | explicit_unset=dependencies,learnings,notes,tests","context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"c661f5869fd6043716bcd6552041038ac6122a4e9f5a5e7f06689fbfe5f30a80"} {"hash_algorithm":"sha256","ts":"2026-10-04T16:54:56.142Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"claim","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-10-04T16:54:56.142Z"},{"op":"add","path":"/metadata/claim_principal","value":"claude-orchestrator"}],"before_hash":"c2fb47dfc93fc9f7cdc4021ba705f251e47bc87aef52c1855cce097fa6480b02","after_hash":"78decd9b4675338705af89696088d11615c0008c7b20b8ff4c0cc016f8bf836d","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"10a27b57af8f1da702eb0a36aea548e1e1a8579821e9c2e338677beb56a5b94a"} {"hash_algorithm":"sha256","ts":"2026-10-04T16:54:56.970Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"update","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-10-04T16:54:56.970Z"},{"op":"replace","path":"/metadata/status","value":"in_progress"}],"before_hash":"78decd9b4675338705af89696088d11615c0008c7b20b8ff4c0cc016f8bf836d","after_hash":"207df90bd470c34398698042c69679e85ae4d5bd3a222356381c34ce5359a9b1","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"bd3cf0f4a032e54a47a2a03826333d43b49089301c0182d4a5fd60949cd31102"} +{"hash_algorithm":"sha256","ts":"2026-10-04T16:58:39.289Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"close","patch":[{"op":"remove","path":"/metadata/assignee"},{"op":"replace","path":"/metadata/updated_at","value":"2026-10-04T16:58:39.289Z"},{"op":"replace","path":"/metadata/status","value":"closed"},{"op":"add","path":"/metadata/closed_at","value":"2026-10-04T16:58:38.801Z"},{"op":"add","path":"/metadata/completed_at","value":"2026-10-04T16:58:38.801Z"},{"op":"add","path":"/metadata/close_reason","value":"Rolled out the reviewed pilot (unbraind/pm-presets#118, auto-merge proven on pm-presets#119, groups made disjoint in pm-presets#120). This PR's required checks gate the merge; repository auto-merge and branch deletion enabled."}],"before_hash":"207df90bd470c34398698042c69679e85ae4d5bd3a222356381c34ce5359a9b1","after_hash":"94daef02ebd0abb1d0b44da0d302ac992950dc99f7d269c84b1adccfa5576c48","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"c783203e10155d4944994c36f8297fba0d426ce0ee4c3332f87f5511df8a30a1"} +{"hash_algorithm":"sha256","ts":"2026-10-04T16:58:44.866Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"release","patch":[{"op":"remove","path":"/metadata/claim_principal"},{"op":"replace","path":"/metadata/updated_at","value":"2026-10-04T16:58:44.866Z"}],"before_hash":"94daef02ebd0abb1d0b44da0d302ac992950dc99f7d269c84b1adccfa5576c48","after_hash":"f3c08388b908325690b624d5a9715a548116665b64fabfe41c0d417cb2637228","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"maintenance","record_hash_version":1,"record_hash":"e13402e7955704bdd143fc2cbe3aeaf479b369267ac7693b0096b1114fde2305"} diff --git a/.agents/pm/tasks/pm-graph-088p.toon b/.agents/pm/tasks/pm-graph-088p.toon index 13be2036..3823bdc2 100644 --- a/.agents/pm/tasks/pm-graph-088p.toon +++ b/.agents/pm/tasks/pm-graph-088p.toon @@ -2,14 +2,14 @@ id: pm-graph-088p title: Auto-merge green Dependabot updates and group the pm toolchain into one daily PR description: "Version bumps of the pm CLI, SDK-bearing packages and fleet gates are mechanical and must land without a hand-written certification PR. Dependabot checks npm daily, groups @unbrained/pm-cli and pm-* packages into one pm-toolchain PR and other minor/patch updates into one dependencies PR; a least-privilege workflow enables GitHub squash auto-merge for every non-major Dependabot PR so it merges as soon as the required checks pass. A failing bump is a real defect to fix. Fleet rule: companion pm-cli-website-6d05; pilot unbraind/pm-presets#118." type: Task -status: in_progress +status: closed priority: 2 tags[3]: automation,ci,dependencies created_at: "2026-10-04T16:54:54.663Z" -updated_at: "2026-10-04T16:54:56.970Z" +updated_at: "2026-10-04T16:58:44.866Z" deadline: "2026-10-06T00:00:00.000Z" -assignee: claude-orchestrator -claim_principal: claude-orchestrator +closed_at: "2026-10-04T16:58:38.801Z" +completed_at: "2026-10-04T16:58:38.801Z" author: claude-orchestrator estimated_minutes: 15 acceptance_criteria: dependabot.yml checks npm daily with pm-toolchain and dependencies groups; dependabot-auto-merge.yml enables squash auto-merge only for Dependabot non-major updates with least-privilege permissions; repository allows auto-merge; required checks still gate every merge @@ -20,4 +20,5 @@ files[2]{path,scope}: .github/workflows/dependabot-auto-merge.yml,project docs[1]{path,scope}: .github/workflows/dependabot-auto-merge.yml,project +close_reason: "Rolled out the reviewed pilot (unbraind/pm-presets#118, auto-merge proven on pm-presets#119, groups made disjoint in pm-presets#120). This PR's required checks gate the merge; repository auto-merge and branch deletion enabled." body: Fleet-wide automation of version bumps; see companion pm-cli-website-6d05. diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b7fee63..6bec43fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Other + +- Auto-merge green Dependabot updates and group the pm toolchain into one daily PR ([pm-graph-088p](https://github.com/unbraind/pm-graph/blob/main/.agents/pm/tasks/pm-graph-088p.toon)) + ## 2026.9.26 - 2026-09-26 ### Fixed From 6625aa72750272b43344481bac91d0006c93f830 Mon Sep 17 00:00:00 2001 From: SteveBot <1153461+unbraind@users.noreply.github.com> Date: Sun, 4 Oct 2026 19:21:07 +0200 Subject: [PATCH 3/3] Allow-list minor and patch updates and document the auto-merge permissions Review feedback: an update that fetch-metadata cannot classify must not auto-merge, so the condition now requires semver-minor or semver-patch outside the calendar-versioned pm-toolchain group. The job's write scopes are documented, the dependencies group selects every package explicitly, and the item's acceptance criteria name the pm-toolchain exception. pm item: pm-graph-088p --- .agents/pm/history/pm-graph-088p.jsonl | 2 ++ .agents/pm/tasks/pm-graph-088p.toon | 7 ++++--- .github/dependabot.yml | 6 ++++-- .github/workflows/dependabot-auto-merge.yml | 11 +++++++++-- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.agents/pm/history/pm-graph-088p.jsonl b/.agents/pm/history/pm-graph-088p.jsonl index 5594d7ab..7f26cc06 100644 --- a/.agents/pm/history/pm-graph-088p.jsonl +++ b/.agents/pm/history/pm-graph-088p.jsonl @@ -3,3 +3,5 @@ {"hash_algorithm":"sha256","ts":"2026-10-04T16:54:56.970Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"update","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-10-04T16:54:56.970Z"},{"op":"replace","path":"/metadata/status","value":"in_progress"}],"before_hash":"78decd9b4675338705af89696088d11615c0008c7b20b8ff4c0cc016f8bf836d","after_hash":"207df90bd470c34398698042c69679e85ae4d5bd3a222356381c34ce5359a9b1","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"bd3cf0f4a032e54a47a2a03826333d43b49089301c0182d4a5fd60949cd31102"} {"hash_algorithm":"sha256","ts":"2026-10-04T16:58:39.289Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"close","patch":[{"op":"remove","path":"/metadata/assignee"},{"op":"replace","path":"/metadata/updated_at","value":"2026-10-04T16:58:39.289Z"},{"op":"replace","path":"/metadata/status","value":"closed"},{"op":"add","path":"/metadata/closed_at","value":"2026-10-04T16:58:38.801Z"},{"op":"add","path":"/metadata/completed_at","value":"2026-10-04T16:58:38.801Z"},{"op":"add","path":"/metadata/close_reason","value":"Rolled out the reviewed pilot (unbraind/pm-presets#118, auto-merge proven on pm-presets#119, groups made disjoint in pm-presets#120). This PR's required checks gate the merge; repository auto-merge and branch deletion enabled."}],"before_hash":"207df90bd470c34398698042c69679e85ae4d5bd3a222356381c34ce5359a9b1","after_hash":"94daef02ebd0abb1d0b44da0d302ac992950dc99f7d269c84b1adccfa5576c48","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"c783203e10155d4944994c36f8297fba0d426ce0ee4c3332f87f5511df8a30a1"} {"hash_algorithm":"sha256","ts":"2026-10-04T16:58:44.866Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"release","patch":[{"op":"remove","path":"/metadata/claim_principal"},{"op":"replace","path":"/metadata/updated_at","value":"2026-10-04T16:58:44.866Z"}],"before_hash":"94daef02ebd0abb1d0b44da0d302ac992950dc99f7d269c84b1adccfa5576c48","after_hash":"f3c08388b908325690b624d5a9715a548116665b64fabfe41c0d417cb2637228","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"maintenance","record_hash_version":1,"record_hash":"e13402e7955704bdd143fc2cbe3aeaf479b369267ac7693b0096b1114fde2305"} +{"hash_algorithm":"sha256","ts":"2026-10-04T17:20:35.255Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"update","patch":[{"op":"replace","path":"/metadata/acceptance_criteria","value":"dependabot.yml checks npm daily with disjoint pm-toolchain and dependencies groups; dependabot-auto-merge.yml enables squash auto-merge for the calendar-versioned pm-toolchain group (year rollovers read as semver-major) and otherwise only for updates classified minor or patch, with documented least-privilege permissions; repository allows auto-merge; required checks still gate every merge"},{"op":"replace","path":"/metadata/updated_at","value":"2026-10-04T17:20:35.255Z"}],"before_hash":"f3c08388b908325690b624d5a9715a548116665b64fabfe41c0d417cb2637228","after_hash":"ac92e28c4b53477378483d1e7ec783b1e58d25b5e3f6bfa3e67946e05a7ee189","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"1dcf63a354656620286258a1d683779ea28ab905f7774cbcd9f408b9e0e45f5b"} +{"hash_algorithm":"sha256","ts":"2026-10-04T17:20:41.654Z","author":"claude-orchestrator","author_source":"asserted","agent_harness":"claude-code","agent_model":"claude-opus-5-5","agent_model_source":"probe","agent_instance":"4b273145923a68729ab394ab","agent_provenance":{"model":{"value":"claude-opus-5-5","source":"probe"},"effort":{"value":"high","source":"environment"},"role":null,"topic":null,"version":{"value":"2.1.289","source":"probe"}},"op":"comment_add","patch":[{"op":"add","path":"/metadata/comments/1","value":{"created_at":"2026-10-04T17:20:41.654Z","author":"claude-orchestrator","text":"Review round 2 (Greptile/CodeRabbit across the fleet rollout): explicit minor/patch allow-list so an unclassified update never auto-merges; documented why the job needs write permissions; explicit patterns for the dependencies group; acceptance criteria now name the pm-toolchain calendar-version exception. Refused: switching to pull_request_target (GitHub keeps Dependabot-authored runs read-only there too; the pull_request + permissions pattern is proven by pm-presets#119) and removing the pm-toolchain exception (owner rule pm-cli-website-6d05: pm bumps land unattended; required checks gate them)."}},{"op":"replace","path":"/metadata/updated_at","value":"2026-10-04T17:20:41.654Z"}],"before_hash":"ac92e28c4b53477378483d1e7ec783b1e58d25b5e3f6bfa3e67946e05a7ee189","after_hash":"d380ea78deb020713e06c4d130dd1f797ddec76ab32b0e2f373d5ec1e837f777","item_hash_version":3,"context":{"agent_provenance_outcomes":{"model":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"resolved","resolver":"claude_session_file","rule_version":"v1"}}},"event_class":"substantive","record_hash_version":1,"record_hash":"0ffe868b872807c78411865433004551449fdae11c21f61eccfb1a4161a31401"} diff --git a/.agents/pm/tasks/pm-graph-088p.toon b/.agents/pm/tasks/pm-graph-088p.toon index 3823bdc2..9e822d8f 100644 --- a/.agents/pm/tasks/pm-graph-088p.toon +++ b/.agents/pm/tasks/pm-graph-088p.toon @@ -6,15 +6,16 @@ status: closed priority: 2 tags[3]: automation,ci,dependencies created_at: "2026-10-04T16:54:54.663Z" -updated_at: "2026-10-04T16:58:44.866Z" +updated_at: "2026-10-04T17:20:41.654Z" deadline: "2026-10-06T00:00:00.000Z" closed_at: "2026-10-04T16:58:38.801Z" completed_at: "2026-10-04T16:58:38.801Z" author: claude-orchestrator estimated_minutes: 15 -acceptance_criteria: dependabot.yml checks npm daily with pm-toolchain and dependencies groups; dependabot-auto-merge.yml enables squash auto-merge only for Dependabot non-major updates with least-privilege permissions; repository allows auto-merge; required checks still gate every merge -comments[1]{created_at,author,text}: +acceptance_criteria: "dependabot.yml checks npm daily with disjoint pm-toolchain and dependencies groups; dependabot-auto-merge.yml enables squash auto-merge for the calendar-versioned pm-toolchain group (year rollovers read as semver-major) and otherwise only for updates classified minor or patch, with documented least-privilege permissions; repository allows auto-merge; required checks still gate every merge" +comments[2]{created_at,author,text}: "2026-10-04T16:54:54.663Z",claude-orchestrator,Rolled out from the reviewed pilot unbraind/pm-presets#118. + "2026-10-04T17:20:41.654Z",claude-orchestrator,"Review round 2 (Greptile/CodeRabbit across the fleet rollout): explicit minor/patch allow-list so an unclassified update never auto-merges; documented why the job needs write permissions; explicit patterns for the dependencies group; acceptance criteria now name the pm-toolchain calendar-version exception. Refused: switching to pull_request_target (GitHub keeps Dependabot-authored runs read-only there too; the pull_request + permissions pattern is proven by pm-presets#119) and removing the pm-toolchain exception (owner rule pm-cli-website-6d05: pm bumps land unattended; required checks gate them)." files[2]{path,scope}: .github/dependabot.yml,project .github/workflows/dependabot-auto-merge.yml,project diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6965fa2e..db630214 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -16,8 +16,10 @@ updates: - "@unbrained/pm-cli" - "pm-*" dependencies: - # Disjoint from pm-toolchain, so a pm package can never be bumped - # here (and capped by this group's update-types) instead. + # Every other npm dependency, disjoint from pm-toolchain, so a pm + # package can never be bumped here (and capped by update-types). + patterns: + - "*" exclude-patterns: - "@unbrained/pm-cli" - "pm-*" diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 12eab3ba..85d4c777 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -11,6 +11,9 @@ jobs: enable-auto-merge: if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository_owner == 'unbraind' runs-on: ubuntu-latest + # `gh pr merge --auto` needs pull-requests: write to enable auto-merge + # and contents: write for the squash merge GitHub performs once the + # required checks pass. Nothing is checked out or executed from the PR. permissions: contents: write pull-requests: write @@ -18,8 +21,12 @@ jobs: - id: metadata uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0 # pm-toolchain is calendar-versioned (a new year reads as semver-major), - # so it always auto-merges; any other major update waits for a person. - - if: steps.metadata.outputs.dependency-group == 'pm-toolchain' || steps.metadata.outputs.update-type != 'version-update:semver-major' + # so it always auto-merges. Anything else must be classified minor or + # patch; a major or unclassified update waits for a person. + - if: >- + steps.metadata.outputs.dependency-group == 'pm-toolchain' || + steps.metadata.outputs.update-type == 'version-update:semver-minor' || + steps.metadata.outputs.update-type == 'version-update:semver-patch' run: gh pr merge --auto --squash "$PR_URL" env: PR_URL: ${{ github.event.pull_request.html_url }}