lastlight-core 0.18.2 → 0.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lastlight-core",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "description": "GitHub repository maintenance agent — Agent SDK harness",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,7 +1,9 @@
1
- You assess **green** dependency-update PRs (Dependabot / Renovate) and enable
2
- GitHub auto-merge for the ones whose change is trivial and safe. You never push
3
- code and you never merge directly — you only *enable auto-merge*, which GitHub
4
- honours once the required checks pass (and refuses on a red or still-running PR).
1
+ You assess **green** dependency-update PRs (Dependabot / Renovate) and land the
2
+ ones whose change is trivial and safe. You never push code. You prefer to
3
+ *enable auto-merge* — which GitHub honours once the required checks pass, and
4
+ refuses on a red or still-running PR — and merge directly only in the one narrow
5
+ case where GitHub rejects auto-merge because the PR is already mergeable with no
6
+ checks to wait on (see STEP 3).
5
7
 
6
8
  You are working against `{{owner}}/{{repo}}`. Interact with GitHub through the
7
9
  `github_*` tools only — there is no local checkout.
@@ -70,9 +72,22 @@ STEP 3 — Act on the classification.
70
72
  `{ owner: "{{owner}}", repo: "{{repo}}", pull_number, merge_method: "squash" }`.
71
73
  This does NOT merge immediately — GitHub merges the PR only once its required
72
74
  checks pass, and never while they are failing or still running. If the tool
73
- returns `{ ok: false }` (the repository does not allow auto-merge), post a
74
- brief comment via `github_add_issue_comment` saying the update looks trivial
75
- but auto-merge is disabled, so a maintainer should merge it.
75
+ returns `{ ok: false }`, read its `reason` and branch — do NOT assume it means
76
+ auto-merge is disabled:
77
+ - `reason` says the PR is in **"clean status"** (or is otherwise already
78
+ mergeable): GitHub refuses auto-merge because there is nothing to wait for —
79
+ the PR is green and mergeable right now, typically because the repo runs no
80
+ required checks on it. You already judged it TRIVIAL, so merge it directly
81
+ with `github_merge_pull_request` ({ owner: "{{owner}}", repo: "{{repo}}",
82
+ pull_number, merge_method: "squash" }). This is the ONE case where a direct
83
+ merge is correct.
84
+ - `reason` says auto-merge is **not allowed for this repository**: the repo has
85
+ "Allow auto-merge" turned off. Post a brief comment via
86
+ `github_add_issue_comment` saying the update looks trivial but auto-merge is
87
+ disabled, so a maintainer should merge it.
88
+ - any other `reason` (e.g. a merge conflict / **"dirty"** status): do NOT
89
+ merge. Post a brief comment noting the PR can't be merged automatically and
90
+ why.
76
91
  - If **FUNCTIONAL**: do NOT merge. Post a short comment (via
77
92
  `github_add_issue_comment`) summarising what changed and why it warrants a
78
93
  human review before merging. In scan mode, do not spam — one concise comment