Current alert conditions, apart from notification history: the at.alerts/v1 catalog, publishing a program's own conditions, and the alerts listener's state (from at-home-tools, AHT-258)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nelson 5b516b15bd
All checks were successful
Suite release / finalize (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / scope (push) Successful in 27s
Suite release / module (push) Has been skipped
Suite release / reserve (push) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / check-manifest (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
The race detector over the history collector runs here (#2)
2026-11-30 00:42:24 -08:00
.forgejo/workflows The race detector over the history collector runs here (#2) 2026-11-30 00:42:24 -08:00
catalog.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
catalog_test.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
contracts_test.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
expectby_test.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
go.mod alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
go.sum alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
listener.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
listener_other.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
listener_windows.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
lock_other.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
lock_windows.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
model.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
publish.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
README.md alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
storage.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00
storage_windows_test.go alertstate moves in from at-home-tools, on the netclient library (#1) 2026-11-29 23:16:22 -08:00

alertstate

Current alert conditions, kept apart from notification history, in the at.alerts/v1 format: the catalog of conditions, Publish (which persists current state before sending the latest complete snapshot, then closed occurrences), and the state files the alerts listener keeps, read and replaced through os.Root so a viewer holding current.json open never stops the listener (AHT-219). It is public so a program outside the alerts app publishes its own conditions: at-update reports a failed install here.

It was at-home-tools' alertstate package until shared packages got repositories of their own (AGT-85, AHT-258).

Using it

require forgejo.romaine.life/romaine-life/alertstate v0.1.0
import "forgejo.romaine.life/romaine-life/alertstate"

Testing

go test ./...; the storage tests are Windows-only.

Shipping

A library: the release-module topic in pipeline-templates' fleet.json tags each merge that changes the code, and every fleet repository whose go.mod requires it gets a take-up. Forgejo pushes it to its public GitHub copy, which proxy.golang.org serves to builds outside CI.