Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@
Notable changes, newest first. Release notes on GitHub list every commit;
this file collects what users and scripts need to know.

## Unreleased

### New

- Norcube Monitor status pages: `monitor status-pages list | get | create |
update | delete | publish | unpublish | preview-link`, with pages named by
id or exact slug.
- `create` takes every setting as a flag and fills in none of them.
- `layout get | set --file` (`-` reads standard input); `set` prints the
saved layout, and `get -o json` prints the document `set` takes.
- `incidents list | get | create | update` and `incidents updates create`
post incidents and updates. Writes print the public address of the post,
or say the page isn't published. `--component` takes a component's id or
exact public name.
- Changes to a published page and posts on it are public within a minute;
the help of those commands says so.
- Completion for page slugs and for a page's posted incidents.
- CI tokens change status pages only with the new `monitor.statuspages`
scope, which no other scope includes. Any Norcube Monitor scope reads
them.

## 0.22.0 (2026-11-04)

### New
Expand Down
11 changes: 8 additions & 3 deletions docs/DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ meaning across the tree:
| `acknowledge` | Mark something as being handled without changing it otherwise | `monitor incidents acknowledge` (alias `ack`) |
| `verify` | Confirm a contact with a code sent to it | `monitor channels verify` |
| `summary` | Counts over a whole resource, not a list | `monitor incidents summary` |
| `publish` / `unpublish` | Make a thing public, or take it offline keeping everything on it | `monitor status-pages publish` |
| `preview-link` | Print a short-lived link to see a thing as the public would | `monitor status-pages preview-link` |
| `cancel`, `watch`, `results`, `status`, `check`, `generate`, `import`, `set`, `revoke`, `use` | As named | `domainradar bulk watch`, `langsync terms import status` |

`rm` is an alias of `remove` only, never of `delete`.
Expand Down Expand Up @@ -726,7 +728,7 @@ flag; [CHANGELOG.md](../CHANGELOG.md) says when each arrived.
| `langsync` | `init`, `sync`, `pull`; `namespaces list | create | update | delete`; `terms list | add | update | delete | import`, `terms import status`; `translations get | set | suggest | translate-missing`; `languages list | add | remove | create | delete`; `prompts list | get | create | update | delete`; `glossary get`, `glossary items list | get | create | translate | delete`, `glossary languages attach`; `api-keys list | create | revoke`; `audit list` |
| `domainradar` | `check`; `bulk create | list | get | results | watch | export | cancel | delete`; `saved list | add | remove`; `watchers list | get | create | update | delete`; `hits list | get`; `names generate | list | get | results | check | delete` |
| `billing` | `status`; `subscriptions list`; `usage estimate | metrics`; `invoices list | download`; `budget get | set` |
| `monitor` | `status` (`--fail-on`); `monitors list | get | create | update | delete | pause | resume | run` (`--wait`), `monitors bulk pause | resume | delete`, `monitors results list`, `monitors status-changes list`, `monitors stats get`, `monitors availability get`, `monitors certificate get`, `monitors alerts get | set`; `incidents list | get | acknowledge | summary`; `channels list | get | create | update | delete | test | verify`, `channels deliveries list` |
| `monitor` | `status` (`--fail-on`); `monitors list | get | create | update | delete | pause | resume | run` (`--wait`), `monitors bulk pause | resume | delete`, `monitors results list`, `monitors status-changes list`, `monitors stats get`, `monitors availability get`, `monitors certificate get`, `monitors alerts get | set`; `incidents list | get | acknowledge | summary`; `channels list | get | create | update | delete | test | verify`, `channels deliveries list`; `status-pages list | get | create | update | delete | publish | unpublish | preview-link`, `status-pages layout get | set`, `status-pages incidents list | get | create | update`, `status-pages incidents updates create` |
| PromptHub | No command group; `nrc api prompthub ...` |
| CMS | None (CMS has no public API) |

Expand All @@ -738,7 +740,9 @@ now), `backup.verify` (restore tests), `domainradar.check`,
monitor's check now), `monitor.write` (manage monitors, alert routing,
acknowledge incidents), `monitor.channels` (manage alert channels, test
sends and verification codes; not included in `monitor.write`, because
channels hold credentials and sends cost money).
channels hold credentials and sends cost money), `monitor.statuspages` (manage status pages and post
incidents on them; not included in any other scope, because everything it
changes is public).

Installation channels: Homebrew cask (with `nrc`), `.deb` / `.rpm` /
`.apk`, `install.sh`, release archives (darwin and linux amd64/arm64,
Expand Down Expand Up @@ -784,6 +788,7 @@ changelog, and the owner's decisions in the planning sessions of
| 2026-10-30 | Pin the Go toolchain, check `go mod tidy`, run govulncheck in CI with documented acceptances | Releases had been built with a Go patch with reachable stdlib advisories | 3b2e964 (v0.21.4) |
| 2026-10-30 | Engineering reviews are written down as reports and fixed in separate, deliberate changes, not by automatic fix agents | Owner's instruction | owner |
| 2026-11-04 | Norcube Monitor in the CLI. Monitors and channels are named by id or exact name (a name matching several is a usage error, never a guess); sub-resources of a monitor are nested resources with standard verbs (`monitors results list`, `monitors stats get`) rather than new verbs; `monitors run --wait` makes the synchronous check's verdict the exit code (`job_failed` on critical or inconclusive, `--fail-on warning`); `monitor status --fail-on` exits 1 with the new code `unhealthy` and prints the report either way (default `none`); bulk actions are their own subgroup (`monitors bulk ...`) so one command's output shape never depends on how many ids it got; a webhook's signing secret is written to `--secret-file` and never printed, Slack and Discord URLs and secret headers come from files or stdin; `output.Object.Text` keeps `-o text` columns fixed for objects whose fields depend on the resource; RFC 9457 problems (`code`, `reason`, `errors`) are parsed by the shared error formatter. No short alias: no product has an abbreviation, and P13 asks for one name. Alert channels get their own scope (`monitor.channels`), granted explicitly and not implied by `monitor.write` (owner: "everything should be well scoped") | Owner's brief: every Norcube Monitor operation, robust, scriptable. Rejected: `--wait` polling a check that is already synchronous; printing the webhook secret once like a CI token (the owner asked that webhook secrets never be printed); `monitors pause a b c` switching to the bulk endpoint and its shape with two or more ids | owner |
| 2026-11-04 | Status pages in the CLI. Pages are named by id or exact slug; a page's posted incidents are a nested resource (`status-pages incidents`), and an update on one is `status-pages incidents updates create` rather than a new verb, by the rule of the Norcube Monitor entry above. `create` marks every setting required and fills in none: a page is public communication, and the backend has no defaults either. `layout set` refuses a document without both lists, since it replaces the layout as a whole. `unpublish` confirms (old addresses are given up); `publish` and posting don't, so an incident pipeline stays one command, and their help says they go public. `preview-link` is a `read`: it changes nothing, though the API asks for `monitor.statuspages` | Owner's brief. Rejected: `incidents post`, a synonym for creating an update; the dashboard's defaults on `create`, as `monitors create` has, because a required setting on a public page should be a choice | owner |
| 2026-11-04 | `nrc commands`: the whole command tree as one versioned, offline document; what the tree cannot reveal is declared with annotations (`effect`, flag enums, service), never inferred from verbs | Agents should not crawl dozens of `--help` pages. Prior art: `kubectl api-resources` / `explain` (verbs per resource, offline schema), `aws ... --generate-cli-skeleton` (machine-readable input), cobra's doc generation (`tools/gendocs` already walks the tree). Global flags listed once rather than on every command, to keep the document small; a verb-based guess of the effect was rejected because domain verbs like `check`, `suggest` or `init` don't say whether they change anything | owner |
| 2026-11-04 | PulseCheck is renamed Norcube Monitor before its first release, every technical name included: command group `monitor` (`nrc monitor monitors list`), registry key, OAuth audience and generated package `monitor`, scopes `monitor.read`, `monitor.check`, `monitor.write`, `monitor.channels`, endpoint `https://monitor.api.norcube.com/app/v1`, `NORCUBE_MONITOR_URL`. No `pulsecheck` alias or `cmdutil.Renamed` entry | The old name was never in a release, so no script, config file or token depends on it and P10 has nothing to keep; the backend renamed its service, audience and scopes in the same change. Rejected: keeping `pulsecheck` as a hidden alias, which would be a second name for one thing (P13) with no user to serve | owner |

Expand Down Expand Up @@ -861,7 +866,7 @@ it with the same guarantees as every other product. The steps, in order:
| Step | State |
| --- | --- |
| 1 Audience | `monitor` exists in Norcube Auth (sign-in audience list, CI token exchange) |
| 2 Scopes | `monitor.read`, `monitor.check`, `monitor.write`, `monitor.channels` in the CI token catalog (and so the CLI sign-in catalog), with IAM actions; channel changes and sends only with `monitor.channels`, which `monitor.write` doesn't include; not on the MCP consent screen until the MCP redesign |
| 2 Scopes | `monitor.read`, `monitor.check`, `monitor.write`, `monitor.channels`, `monitor.statuspages` in the CI token catalog (and so the CLI sign-in catalog), with IAM actions; channel changes and sends only with `monitor.channels`, status page changes and posts only with `monitor.statuspages`, neither of which `monitor.write` includes; not on the MCP consent screen until the MCP redesign |
| 3 Enforcement | Default-closed route table (`internal/routers/app/scopes.go`) after the token middleware, coverage and matrix tests, and IAM refusing a scoped request the table never checked |
| 4 Contract | Every operation has a verb-noun `@Id`, `@Security Bearer`, 401/403 problems and `x-norcube-scopes`; the status route is tagged `Status` and excluded here |
| 5 to 10 CLI | Registry entry, hand-kept tables, client, `nrc monitor` commands, completion, command and golden tests |
Expand Down
Loading
Loading