Repository navigation
0.1.0
Jaime 0.1.0 is the first release to ship both a machine subordinate charm
(jaime) and a Kubernetes standalone charm (jaime-k8s) from a single
monorepo, with monitor-by-default behaviour, bounded diagnostics, structured
incident records, and optional AI-assisted diagnosis.
Features
- Add a Kubernetes standalone charm (
jaime-k8s) that runs as its own pod and monitors other applications in the same Juju model. Statuses come from the Juju controller API via a dedicated read-only user; pod logs/events/metrics come from the Kubernetes API via the pod's in-cluster service account. Monitoring is opt-in viawatch-applications - Add a
show-setup-stepsaction to the k8s charm that prints the exact setup steps (RBAC, observer user, secrets,watch-applications) with model and application names pre-filled - Block the k8s charm until prerequisites are verified: observer credentials authenticate, every configured application exists, and the service account can read pod logs via the shipped RoleBinding
- Add opt-in controller access to the machine charm so it can watch co-located units it is not related to (
watch-applicationsor*for all) - Add a
list-incidentsaction to both charms, correlating audit events by incident id and reporting each incident's start, report and close timestamps - Persist the workload status message ("reason") on the incident and at the top of the report, so operators and the LLM see Juju's own statement of what is wrong
- Add snap diagnostics (failed services only) and systemd service detail to machine reports, and container state (including
CrashLoopBackOff/OOMKilled) to k8s reports
Changes
- Restructure into a monorepo: a shared
jaime-package/library,charms/machine/, andcharms/k8s/, each vendoring the library at pack time.jaimeis a namespace package - Extract
CoreMixinwith the substrate-independent behaviour (provider wiring, secret resolution, suggest/act invocation, incident lifecycle). Machine charm 835 -> 262 lines, k8s charm 684 -> 188 - Build both charms for Ubuntu 22.04, 24.04 and 26.04 on amd64 and arm64, packed with the
uvplugin - List the principal charm's docs/source/issues links and declared actions in the report, and instruct the suggest prompt to base remediation on those official sources only
- Trim repeat noise from incident reports: collapse recurring log blocks to first occurrence plus an omission count, and omit config options whose default is empty
- Bound every collected item in time, lines or bytes, with a per-line byte cap;
max-context-linesis now a per-item cap - Report environment variables as set/unset only, never by value
- Change the default OpenRouter model from
deepseek/deepseek-chatto~deepseek/deepseek-v4-flash-latest - Align the shared config descriptions and defaults between the two charms, with a test covering the shared option set
- Add a GitHub Actions CI workflow (lint + unit matrix + packing), ruff config, and an integration test suite built on
jubilant - Adopt the
tests/unitandtests/integrationlayout; repair the root test entrypoints andtestpaths
Bug fixes
- Anchor the incident timer to a Jaime-owned
unhealthy_sinceinstead of Juju'ssince, which was reset on every hook so the timeout was never reached - Treat a continuous run of watched statuses as one episode, so flapping statuses cannot produce repeat reports for a single failure
- Fix
show-statusto report every monitored unit instead of overwriting with only one - Make
collect-contextcollect a real bounded context bundle instead of returning a placeholder path