Repository navigation
feat(email): maximum delivery delay, Date-header latency and missed-probe detection - #938
Merged
Merged
Conversation
…lts (fclairamb/solidping-business#93) The "sender authentication incomplete" WARN only said "dmarc" when the policy lookup failed (emailcheck/auth.go lookupDMARC): it now carries the DNS cause ("dmarc: TXT record unavailable: ..."), the queried domain as a dmarc_domain attribute, and tells a deadline already spent before the lookup apart from a DNS failure. The abandoned-result reaper WARN now adds reaped_by_region ("none" for rows without a region, such as the "Check created" marker), so a burst can be traced to a checker. Tests: auth_cover_test.go (temp failure entry, deadline case), the reaper tests of both dialects and models.CountReaped; they fail before the fix. Closes fclairamb/solidping-business#93 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…iramb/solidping-business#94) With a search or a group filter active, the checks list force-expands every group, but the header kept its button role, chevron and "Collapse group" tooltip (checks.index.tsx GroupSection): clicks did nothing visible and each one persisted "collapsed" to localStorage, so the group came back collapsed once the filter was cleared. While forced, the header now has no toggle (no chevron, role, aria-expanded or pointer) and a click writes nothing. Test: e2e/check-group-collapse.spec.ts (search and group filter cases), which fails before the fix. Closes fclairamb/solidping-business#94 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…eat/todos-2026-11-18
…-probe delivery watch Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Frontend input, locales, docs and E2E for max_delivery_delay. CHANGELOG is owned by release-please: feat(email) max_delivery_delay, delivery latency as result duration, missed-probe delivery watch. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #938 +/- ##
==========================================
+ Coverage 90.84% 90.87% +0.02%
==========================================
Files 1382 1384 +2
Lines 142877 143138 +261
==========================================
+ Hits 129798 130075 +277
+ Misses 13071 13055 -16
Partials 8 8
🚀 New features to boost your workflow:
|
Punch list: hold a watch timeout row against the regular passive evaluation until a newer email arrives (deliveryTimeoutAt, passiveVerdict), enforce max_delivery_delay < period on create/update/plan/validate with the effective period, test the late mail after a timeout, record the mechanism in the spec done notes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…); reopen the spec
A mail without X-SolidPing-Sent-At now gets its send time from its Date header (sentAtSource: date), so third-party mail has a latency and can be judged late against max_delivery_delay. The latency no longer needs the source-check header. An email check with no paired SMTP check gets no timeout row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The delivery card now renders for third-party mail too, and flags a latency measured from the mail's Date header (sentAtSource: date). The maximum delivery delay help line explains both send-time sources. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…otes Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Merged
fclairamb
added a commit
that referenced
this pull request
Nov 19, 2026
…d, Postgres Unix socket (#939) Stacked on #938: merge it first. ## What changed - **Status updates in several languages** (`specs/done/2026/11/2026-11-18-04-status-update-translations.md`). A nullable `translations` column on `status_updates` and `incident_publications`, keyed by language (`{"fr": {"title": "...", "body": "..."}}`). The API accepts and returns it (PATCH: absent keeps it, `{}`/`null` clears it, a map replaces it), the public status page returns it, and invalid entries answer 422 `VALIDATION_ERROR`. The dash0 editors (status updates, publications) get an "Other languages" block, also shown on the design reference page. The status page and the TV board show, for a visitor in language L: the translation in L, else the generated text in L, else the page-language text. Mails, webhooks and feeds keep the page language. Migration 038 is extended, not a new one: a dev database that already ran 038 needs a reset. - **First admin gets a random password** (`specs/done/2026/11/2026-11-19-01-first-boot-random-admin-password.md`, #943). Outside the `test` and `demo` run modes, a fresh install seeds `[email protected]` with a 20-character random password, printed once in a `First login` WARN line, still forced to change at first login. `SP_ADMIN_PASSWORD` sets it instead. If the line is lost, a boot with `SP_ADMIN_PASSWORD` resets the seeded admin's password, only while it has never been rotated. Docs: a "Password of the first admin" section in `configuration/authentication.md`, and every install page, the Helm NOTES and the READMEs updated. `make dev` keeps `solidpass` via `SP_ADMIN_PASSWORD`. - **Postgres over a Unix socket** (#944). `host=/var/run/postgresql` names the socket directory, as with libpq: the DSN is rewritten for bun's pgdriver and for the LISTEN notifier. There's a test against a real socket-only Postgres, and a "Unix-domain socket" section in `configuration/database.md`. ## Behaviour change New installs in the default run mode no longer accept `[email protected]` / `solidpass`: the password is in the startup logs, or set by `SP_ADMIN_PASSWORD`. Existing databases are not affected. This belongs in the release notes. It isn't marked `!`: the release-please config has no `bump-minor-pre-major`, so a `!` would cut 1.0.0. ## Decided by autopilot - First-boot password, run modes: `test` and `demo` keep `solidpass`, the default mode gets a random one (spec's recommended answer). - First-boot password, reprint: no, it is printed once. Recovery goes through `SP_ADMIN_PASSWORD` while the seeded admin hasn't rotated (spec's recommended answer). - Translations: invalid input answers 422 `VALIDATION_ERROR` (the repo's `WriteValidationError`), not the 400 the spec said. The spec was updated. - Issue #943 was turned into a spec rather than fixed directly: it touches the superadmin login and spans many files. ## Batch gate Build, `lint-back`, `make test` (287 packages), and dash0/status0 typecheck and e2e lint are green. The full dash0 Playwright run had 1045 passed, 4 failed, 3 flaky and 15 skipped, at load average ~27 from other sessions. On reruns, `badges.spec.ts:557`, `check-scheduling.spec.ts:248` and `check-multi-picker-uuid-chips.spec.ts` still time out on serial API calls. A side-by-side run of `origin/main` under the same load fails the same tests, and one more. `POST`/`PATCH /checks` latencies are identical on both builds (p50 ~200/120 ms, p90 ~4.8/4.2 s). So it's load, not this batch. CI has the last word. Closes #943 Closes #944 --- Specs filed with `/todo`, implemented on this branch by `/implement-todos` (or `/autopilot`). It gets the `implemented` label once every spec is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
fclairamb
added a commit
that referenced
this pull request
Nov 19, 2026
🤖 I have created a release *beep* *boop* --- ## [0.52.0](v0.51.0...v0.52.0) (2026-11-19) ### Features * **checks:** Pingdom TMS and Chrome Recorder import, named steps and test runs, richer selectors and basic auth for JS browser checks ([#909](#909)) ([1240c57](1240c57)) * **dash0:** switch the dashboard language with ?lang= on any URL ([#926](#926)) ([c2640ae](c2640ae)) * **email:** maximum delivery delay, Date-header latency and missed-probe detection ([#938](#938)) ([8489326](8489326)) * **showcase:** cut the published video in any dashboard language ([#932](#932)) ([d940da5](d940da5)) * **showcase:** take the dashboard stills in any dashboard language ([#925](#925)) ([5104606](5104606)) * status updates in several languages, random first admin password, Postgres Unix socket ([#939](#939)) ([a69424f](a69424f)) ### Bug Fixes * **dash0:** chart dates follow the dashboard language ([#928](#928)) ([eae2951](eae2951)) * **deps:** update github.com/dop251/goja digest to 0802ca1 ([#920](#920)) ([3524928](3524928)) * **deps:** update github.com/dop251/goja digest to 2eded47 ([#911](#911)) ([a8496d4](a8496d4)) * **deps:** update github.com/dop251/goja digest to 8dfece3 ([#935](#935)) ([98297e8](98297e8)) * **deps:** update go dependencies (non-major) ([#907](#907)) ([41187dc](41187dc)) * **deps:** update go dependencies (non-major) ([#927](#927)) ([fcef3fc](fcef3fc)) * **deps:** update go dependencies (non-major) ([#940](#940)) ([0fd9228](0fd9228)) * **deps:** update module github.com/a2aproject/a2a-go/v2 to v2.9.0 ([#922](#922)) ([fe48c84](fe48c84)) * **deps:** update module github.com/posthog/posthog-go to v2 ([#924](#924)) ([eab03f2](eab03f2)) * **deps:** update module github.com/posthog/posthog-go to v2 ([#929](#929)) ([545e621](545e621)) * **deps:** update module github.com/posthog/posthog-go to v2 ([#930](#930)) ([82b03cc](82b03cc)) * **deps:** update module github.com/rabbitmq/amqp091-go to v1.17.0 ([#916](#916)) ([6974177](6974177)) * **deps:** update module github.com/standard-webhooks/standard-webhooks/libraries to v1 ([#931](#931)) ([7b9d073](7b9d073)) * **deps:** update module golang.org/x/net to v0.63.0 ([#923](#923)) ([7d0fac9](7d0fac9)) * DMARC temperror cause, reaper regions, force-expanded group headers ([#934](#934)) ([99f955d](99f955d)) * **i18n:** say "Check" instead of "Prüfung" in German ([#910](#910)) ([696dcf8](696dcf8)) * **i18n:** translate generated incident, status-page and validation text ([#913](#913)) ([92bb05a](92bb05a)) * **security:** no paging contacts via impersonation/PAT, shared MCP probe caps, browser WebSocket egress, analytics key replay ([#946](#946)) ([8d51875](8d51875)) * **security:** per-org test-run slots, typed credentials of imported transaction checks go to secrets ([#933](#933)) ([51914b3](51914b3)) * **security:** Telegram bot membership and role checks, admin-only email suppressions, mask import payload in replay ([#914](#914)) ([55ffc4b](55ffc4b)) * Slack events after ack, region badge clicks, WHOIS deadline, legacy agent warning, empty check groups ([#917](#917)) ([65b00e2](65b00e2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Email check: maximum delivery delay (
specs/done/2026/11/2026-11-18-03-email-max-delivery-delay.md)New
max_delivery_delayoption on the email check, off by default. It must be lower than the check period, which is enforced on create (default period included), update, plan/dry-run and the validate endpoint.Arrived late: a probe over the limit is recorded
down, with its real latency (delivered after 13m29s, limit 10m). An explicitdowncomes first, then the sender-authentication failures, then the delay; messages are joined andauthis kept.Never arrived: a new
DeliveryWatchsweep (every 30 s, on the passive evaluator loop) writes onedownrow at send time + limit when a paired SMTP send has no matching email (sent at 09:52, not received after 10m). The periodic evaluation keeps thatdownuntil a newer real email arrives. A successful SMTP send now recordssentAtin its output. An email check without a paired SMTP check keeps the period-based verdict.Send time:
X-SolidPing-Sent-Atfirst, else the mail'sDateheader. The newsentAtSourceoutput key (header/date) says which one was used. The sanity bound (negative or over 24 h means no latency) applies to both.Duration: the delivery latency becomes the result duration. The response-time chart now works, and the existing slow rule (
slow_threshold_ms) gives the Degraded tier.Dashboard: a "Maximum delivery delay" field with its help line, and the delivery card shows a
Date-header latency (and appears without an SMTP link for third-party mail). i18n in en, fr, de and es. Docs:features/check-types.md.New
db.Service.ListEnabledChecksByType(Postgres and SQLite).Tests for the lines Codecov reported uncovered (
DeliveryWatchfailure paths and pairing, SMTP rejections,LastEvaluation,ListEnabledChecksByTypein the shared db contract suite, delay validation). Two unreachable error branches were removed: the body-write check indoSendEmail(the writer's close reports it) and theuuid.NewV7error inDeliveryWatch(uuid.Must).Behaviour change
Every email check that receives third-party mail with a
Dateheader now getssentAt,sentAtSource,latencyMsand a non-zero duration, even without a limit. An unparsableX-SolidPing-Sent-Atfalls back toDate.Decided by autopilot
upfrom an older signal, as the resolved question "nothing flips the check back up" requires.CHANGELOG.mdentry, because release-please owns that file. The notes are in the commit bodies.Batch gate: build, lint,
make test, e2e typecheck and lint, and the full Playwright suite (1052 passed, 0 failed, 15 skipped by environment).Specs filed with
/todo, implemented on this branch by/implement-todos(or/autopilot). It gets theimplementedlabel once every spec is done.🤖 Generated with Claude Code