@sentinelconnector/cli 0.3.0 → 0.4.0

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": "@sentinelconnector/cli",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Sentinel CLI (sentinel) and MCP server (sentinel-mcp) for customers",
5
5
  "private": false,
6
6
  "license": "UNLICENSED",
@@ -76,6 +76,16 @@ and never outdated.
76
76
  **Reports.** Monthly reports and the fleet status report are read-only. The sites list can be downloaded
77
77
  as CSV or JSON: read columns by name, never by position.
78
78
 
79
+ **Module status across sites.** The module status list shows each module once for the organisation,
80
+ with one status: `security` (a site needs a security update), `update` (a site has a newer release),
81
+ `current` or `unknown`. Open a module to see each site that runs it, with that site's version and
82
+ status. Both lists download as CSV. A site's latest recent check decides its status; when that check
83
+ is older than the freshness window, the status falls back to what the site last reported. The answer's
84
+ `next_refresh_at` says when the first check behind it stops counting as recent: read the list again
85
+ after that time instead of reporting an old `current` as up to date. `unknown` is unknown, never safe.
86
+ If `sentinel routes module` finds no per-module sites operation, this version does not know it yet: use
87
+ the site's own module list instead.
88
+
79
89
  **Patching, in order:**
80
90
 
81
91
  1. Check that Patching is turned on for the organisation and that the site has a Git connection and a
@@ -133,6 +143,32 @@ and Black run on the organisation's own key and have no Included AI or AI credit
133
143
  you go past its 20-site limit is refused (`site_limit_exceeded`); the dashboard's setup wizard is not a
134
144
  CLI route, so `sentinel sites` and the activation quote still add sites.
135
145
 
146
+ ## Reviewing changes
147
+
148
+ When Patching writes a change, a separate AI agent reviews it before the pull request opens. The reviewer
149
+ cannot edit files. When it finds problems, the coding agent fixes them and the reviewer checks again, up
150
+ to a set number of rounds for the job kind. The job's run log names each round, its verdict and its
151
+ findings.
152
+
153
+ - **Approved:** the pull request notes say it was reviewed and approved, and after how many rounds.
154
+ - **Findings left open** (the rounds ran out, the reviewer rejected the change, or a round could not
155
+ run): the pull request still opens, held for a person. The job says "The code review still has open
156
+ findings" and lists them. Autopilot waits. Report the findings in plain words and leave the decision
157
+ to merge or deploy to the person.
158
+
159
+ Which key reviews applies only to the organisation's own AI keys. Included AI reviews on the platform's
160
+ model, which cannot be chosen. Read the organisation default with `sentinel routes ai-reviewer`, then the
161
+ `get-ai-reviewer` operation: `offered` is true only when the organisation has active keys from both
162
+ Anthropic and OpenAI, and `keys` lists the keys that may review. Changing it (`put-ai-reviewer`) needs an
163
+ organisation administrator. A site's own choice (`PUT /sites/{site_uuid}/patching/ai-reviewer`) needs
164
+ permission to run Patching updates. The body is `ai_reviewer`: `null` (the site follows the organisation;
165
+ the organisation follows the default, an Anthropic key reviews when an OpenAI key codes), `"same"` (the
166
+ coding key reviews too, as a separate agent) or `"key"` with `ai_reviewer_connection_id` set to one of
167
+ the listed keys. Each key runs on its own model and is billed by its provider. If the chosen key cannot
168
+ be used for a job (removed, not active, no accepted Patching AI terms for the site, busy, or at its cap),
169
+ the coding key reviews and the job's activity says so. The site's Patching tab asks for the terms; give
170
+ the person that link.
171
+
136
172
  ## Choosing what a manual run updates
137
173
 
138
174
  A manual security or maintenance run updates everything it can, unless the person chooses packages. Do
@@ -233,6 +269,20 @@ running, merging and deploying still require their own authority and server gate
233
269
  for the organisation, a required checks acknowledgement for that website. It never merges or deploys a
234
270
  run that took a new major: that one waits for a person.
235
271
 
272
+ **Maintenance branch.** Some sites keep a long-lived branch, such as `develop`, between updates and
273
+ production. When the site's Patching settings name one, Deploy and Autopilot merge the pull request into
274
+ that branch and stop: Sentinel takes no backup and does not deploy production. The site's own process
275
+ takes the branch to production. The deploy gate shows it as `target: branch` with `target_branch`.
276
+
277
+ - Say plainly where the merge goes before the person agrees. "Deployed" means "merged" here.
278
+ - In the CLI the person adds `--merge-into <branch>` to `sentinel sites deploy-pull-request`. Without it
279
+ the server refuses with `target_changed`, so nobody agrees to a production deploy and gets a merge, or
280
+ the other way round.
281
+ - Sentinel judges the merge on that branch's own required checks, read just before it merges. Tests must
282
+ block the merge itself; a test that runs only in the deploy pipeline does not count here.
283
+ - Sentinel never overrides a missing approval for these merges. The person approves on the Git host.
284
+ - A runtime update that goes into the production branch waits until the person deploys it themselves.
285
+
236
286
  When Autopilot pauses, the reason is on the site's Patching tab. **Resume** sends the run back to its
237
287
  checks. Fix the cause first: resuming does not clear a reason that is still true.
238
288