Skip to content

feat: vendor status check, SMS/voice quotas, upgrade-path CI and flaky test fixes - #591

Merged
fclairamb merged 75 commits into
mainfrom
batch/2026-10-17
Oct 18, 2026
Merged

fclairamb merged 75 commits into
mainfrom
batch/2026-10-17

Conversation

@fclairamb

@fclairamb fclairamb commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Batch of 5 specs from specs/todos/, now archived in specs/done/2026/10/.

  • Incident detail header: wraps instead of overflowing at 1280x800 (Resolve was cut off). E2E at 1280x800 and 375x812.
  • Upgrade-path CI test: scripts/upgrade-test.sh boots a released image, then HEAD on the same database (SQLite and Postgres). make test-upgrade, CI jobs upgrade-matrix and upgrade. These jobs have not run on GitHub before this PR.
  • Vendor status check: new vendor-status check type reading Statuspage v2 summary.json, with a catalog of 46 vendors, component picker and dash0 form. Check type count 43 to 44.
  • Hosted SMS/voice quotas: bring-your-own Twilio skips the monthly cap and keeps the hourly runaway guard. Usage page shows SMS and voice counters. Owners and admins get one email per month when a cap is hit. The billing and pricing parts are in other repos.
  • Flaky tests under load: root causes fixed in checkbrowser (chromedp's own 20 s websocket timeout), checkerdef (second probe inherited the 400 ms budget) and handlers/auth (expiry compared to a clock read before bcrypt).

Batch gate: make build-backend, make test (254 packages ok), typecheck:e2e, lint:e2e and the full Playwright suite (945 passed, 15 skipped) are green. golangci-lint v2.15.0 reports 0 issues.

Autopilot merged main and implemented the 4 specs that arrived with it (archived in specs/done/2026/10/):

  • Public check tools: POST /api/v1/tools/run (http, ssl, dns, tcp), anonymous, off by default (SP_TOOLS_ENABLED), SSRF-guarded, rate limited.
  • New-check deep link: org-less /d/monitor route, prefill survives login and signup via localStorage.
  • Checker plugins: dynamic registry, SP_PLUGINS_DIR loader, JS/exec/nagios transports, capability routing, agent-reported plugin types per org (migration 029).
  • HTTP plugins: signed HTTP plugin protocol plus the x-finger reference plugin.

Decided by autopilot

  • Public check tools, inline or worker: inline on the API node with the semaphore for v1 (spec recommendation).
  • Public check tools, tcp port allowlist: none, per-IP limits only (spec recommendation).
  • New-check deep link, where the pending prefill lives: localStorage, not the registration request (spec recommendation).
  • HTTP plugins: cloud workers do not report descriptors, so a split SP_NODE_ROLE API node must load the same plugin dir (documented, not built).
  • Checker plugins: refused plugin config answers 422 like other config errors (spec said 400); OpenAPI check-type enums stay closed, x- types documented as accepted.

🤖 Generated with Claude Code

fclairamb and others added 30 commits October 17, 2026 01:45
The action row now wraps below the title, so Resolve stays reachable at
1280x800 and 375x812. Adds data-testids on the header and its buttons and
an e2e spec with a mocked escalated, flapping incident.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…atabase

Adds scripts/upgrade-test.sh, make test-upgrade and the upgrade-matrix/upgrade
CI jobs gating the ci job. Sabotage runs (edited released migration, failing
migration, deleting data) each went red.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…on boot failure

The upgrade job builds its own Go-only binary so it no longer depends on the
skipped build job. Documents the sabotage controls and SKIP_TAGS check.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…tHub, Cloudflare, OpenAI...) reports an outage

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…tHub, Cloudflare, OpenAI...) reports an outage

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A send through the org's own Twilio account is billed to that account, so
it now keeps only the per-org hourly runaway guard: no monthly cap check and
no org_usage_counters row. Instance-credential sends and WhatsApp still
consume the plan's monthly allowance. SMS and voice are decided per
capability (Resolution.InstanceCredentialsForVoice), so an integration with
no voice number still spends the plan's calls.

The first monthly-cap refusal of a channel in a month emails the org's
owners and admins once (usage-cap-reached.html). Runaway-guard refusals do
not. The entitlements usage now reports smsThisMonth and callsThisMonth.

Spec 2026-10-17-03, parts A and C (backend).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Spec 2026-10-17-03 part C.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nd bring-your-own Twilio is blocked too

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- checkbrowser: chromedp's separate 20 s WSURLReadTimeout ("websocket url
  timeout reached") elapsed under a starved CPU whatever the test context
  allowed; now explicit (chromeStartTimeout) and widened by the live tests.
  Timeout probe sized from measured cold start (1.2 s idle, 2.6 s at 3x
  oversubscription, >8 s in a full make test).
- checkerdef: the must-succeed second probe had the stranded probe's
  deliberate 400 ms budget; it now has its own 10 s one.
- handlers/auth: expected expiry derived from the row's created_at (stamped
  after bcrypt) bracketed by the call window, tolerance 5 s -> 1 s.
- golangci-lint v2.15.0 (CI's) reports none of the v2.14.0 nolintlint or
  paralleltest findings.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d pass alone (gci fix)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fclairamb and others added 26 commits October 18, 2026 02:55
SP_PLUGINS_DIR (plugins.dir) points at one folder per plugin with a
manifest.json declaring x- prefixed check types. The manifest schema is
the validator of a plugin type (VALIDATION_ERROR on create/PATCH) and its
x-solidping-secret-fields are encrypted at rest. Three transports: js
(entry script in the checkjs runtime, config exposed as a frozen global),
exec (long-lived JSON-RPC 2.0 process over stdio, restart with backoff)
and nagios (fork per run, exit codes and perfdata). Results are capped
(status, output size, metric count). exec and nagios types are always
unsafe and off by default in SaaS mode. The reference plugin
plugins/gopher (RFC 1436) is not loaded unless SP_PLUGINS_DIR points at it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Workers add their loaded plugin types to their capability report (heartbeat
and agent claim frame). The cloud claim (regular and express) and the agent
claim only hand an x- type job to a worker that advertises it. Regions
aggregate the plugin types as capabilities, and saving a plugin check in a
region with no capable live worker returns a REGION_NO_PLUGIN warning.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
CheckType now accepts any string. A type the dashboard has no form for
(a server plugin) falls back to a CodeMirror JSON editor, linted as typed
against the schema served at /api/v1/checks/schema/:type. Plugin types
from the check-types listing are offered in the type picker. make dev,
make dev-test and the CI E2E servers load the repo's plugins/ folder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…k types without changing the core

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A private-location agent sends the manifests of the plugin types it
loaded on the first claim of each connection. The server stores them in
org_plugin_types (migration 029) under the agent's own org, so the check
form, the org schema route and validation work while the agent is offline.
A system agent's report is stored for no org. Every lookup names the org:
one org's agent types never resolve for another.

New route: GET /api/v1/orgs/:org/check-types/:type/schema. The org
check-types listing adds the org's agent types (agentReported: true).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… types

GET of one check now carries regionWarnings, recomputed on every read:
REGION_NO_PLUGIN when a plugin check's region has no live worker that
loaded the plugin, so the check page keeps showing why it does not run.

OpenAPI: the check-type enums stay closed (the Go client keeps its typed
constants) and now say that x- plugin types are accepted and returned. The
generated client never calls Valid() when decoding, so an x- type round
trips; a test pins it. Documents GET /orgs/{org}/check-types/{type}/schema
and regenerates server/pkg/client (it also picks up runTool, which the
spec already had).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…check page

The plugin JSON editor reads its schema from
/api/v1/orgs/:org/check-types/:type/schema, which also serves the types
the org's agents reported. The check page shows regionWarnings in a
warning alert. Docs: agent reports, the org schema route, the persistent
warning and the OpenAPI enum note.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…k types without changing the core

Scoped gate: go build, golangci-lint (new from 68622ec, whole files),
go test -short on 121 changed/importing packages, Postgres store and
migration tests (-p 1), dash0 eslint on changed files, lint:e2e,
typecheck:e2e, test:unit, make build-docs, and
e2e/checker-plugins.spec.ts against a SQLite side-car.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… their checks

A SaaS cloud worker no longer advertises (claims, reports) a plugin type its
activation gate disables, and create/update/import refuse such a check on a
cloud region. Private locations stay allowed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nfig-as-code, honour period bounds

PATCH merge, redacted-field preservation and normalization resolve the org's
agent-reported types, so a PATCH that omits a secret keeps it. The document
validator and the importer resolve them for the target org. The min/max
period from the agent's manifest bounds create, update, validate and import.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A plugin that stops reading its stdin no longer blocks a call past its
deadline: the write carries the deadline, waiting for the write slot honours
the context, and a cut-short write kills the process so it restarts clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…k types without changing the core

Co-Authored-By: Claude Opus 5.5 <[email protected]>
HTTP plugins (protocol: http) declare a URL and a signing key set in their
manifest. The node describes them with GET /checkers at load and every 60 s,
signs every request with servicesig, maps transport failures to error (never
down), and stops advertising the types after 3 failed refreshes. Includes the
x-finger reference plugin (server/cmd/plugin-finger).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…service that speaks the plugin protocol

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Execute errors stored in check results no longer embed the transport
error, which named the plugin's internal URL. The full error goes to
the worker log. The secrets test now also covers a 200 answer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…service that speaks the plugin protocol

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…in loading, declare SP_PLUGIN_FINGER_KEYS (batch gate)

Plugins no longer import the heavy registry (new registrycore holds the
shared table) nor checkjs (hook wired by registry). plugins.Load takes the
boot context.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@fclairamb
fclairamb merged commit 1a392ec into main Oct 18, 2026
35 of 36 checks passed
@fclairamb
fclairamb deleted the batch/2026-10-17 branch October 18, 2026 04:28
fclairamb added a commit that referenced this pull request Oct 18, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.39.0](v0.38.6...v0.39.0)
(2026-10-18)


### Features

* A2A notification channel for AI agents
([#596](#596))
([2f55dc3](2f55dc3))
* **dash0:** calmer, flatter and phone-friendly dashboard UI
([#582](#582))
([ce933cc](ce933cc))
* vendor status check, SMS/voice quotas, upgrade-path CI and flaky test
fixes ([#591](#591))
([1a392ec](1a392ec))


### Bug Fixes

* **checks:** build the postgres check connection from an explicit
pq.Config ([#584](#584))
([a4b394a](a4b394a))
* **deps:** update github.com/dop251/goja digest to 313b6b6
([#578](#578))
([d068c02](d068c02))
* **deps:** update github.com/dop251/goja digest to d42f16b
([#597](#597))
([3f501a1](3f501a1))
* **deps:** update github.com/dop251/goja digest to e686264
([#590](#590))
([380ed48](380ed48))
* **deps:** update module github.com/knadh/koanf/v2 to v2.4.0
([#586](#586))
([c02a042](c02a042))
* **deps:** update module github.com/knadh/koanf/v2 to v2.4.1
([#594](#594))
([95e8ec3](95e8ec3))
* **deps:** update module github.com/posthog/posthog-go to v1.35.1
([#583](#583))
([efb4819](efb4819))
* **deps:** update module golang.org/x/mod to v0.42.0
([#598](#598))
([62e913d](62e913d))
* **showcase:** film a single region, as a plain docker run shows
([#595](#595))
([a443442](a443442))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants