Skip to content

0.1.0

Choose a tag to compare

@ggouzi ggouzi released this 09 Oct 04:03
· 41 commits to main since this release
ec1a0db

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 via watch-applications
  • Add a show-setup-steps action 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-applications or * for all)
  • Add a list-incidents action 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/, and charms/k8s/, each vendoring the library at pack time. jaime is a namespace package
  • Extract CoreMixin with 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 uv plugin
  • 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-lines is now a per-item cap
  • Report environment variables as set/unset only, never by value
  • Change the default OpenRouter model from deepseek/deepseek-chat to ~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/unit and tests/integration layout; repair the root test entrypoints and testpaths

Bug fixes

  • Anchor the incident timer to a Jaime-owned unhealthy_since instead of Juju's since, 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-status to report every monitored unit instead of overwriting with only one
  • Make collect-context collect a real bounded context bundle instead of returning a placeholder path