Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

Merge remote-tracking branch 'upstream/main' into feat/nix-service

Test7c2d9d142b05
diff --cc CHANGELOG.md
index 379952d6,1706b322..1285e74a
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -7,36 -7,14 +7,41 @@@ and this project adheres to [Semantic V
## [Unreleased]
+### Added
+- A NixOS module (`nix/nixos-module.nix`, exposed as `nixosModules.default`)
+ so NixOS hosts can run `services.ai-memory.enable = true` as a hardened
+ systemd service — dedicated `ai-memory` system user (`nologin`, gated by
+ `createUser`) plus a shared systemd sandbox applied to both NixOS and the
+ packaged FHS units (`nix/systemd-sandbox.nix`). Typed
+ `services.ai-memory.settings` renders declarative `config.toml`; secrets use
+ `ageSecret`, `sopsSecret`, or `environmentFile` (required for non-loopback
+ binds). The web UI defaults off (`enableWeb = false`, matching the CLI
+ flag's own default rather than the packaged unit's hardcoded
+ `--enable-web`). `flake.nix` adds eval checks for sandbox keys, settings →
+ `--config`, agenix/sops wiring, refusal contracts (age+sops mutex, secrets
+ in `settings.auth`, forbidden `settings.bind`), `ExecStart`
+ (`--data-dir` / `serve` / `--transport http`), default `StateDirectory` vs
+ custom `dataDir` tmpfiles/`ReadWritePaths`, and cheap
+ network-online / `openFirewall` / `MemoryMax` / `TasksMax` round-trips.
+ `packages.x86_64-linux.nixos-ai-memory-docker` builds one NixOS
+ `system.build.toplevel` (via the docker-image rootfs tarball) and
+ `scripts/test-nixos-systemd-container.sh` runs a privileged systemd
+ container smoke (`systemctl` + `/healthz` + dataDir restart/volume
+ persistence) on the Linux `nix.yml` leg. The existing `flake.nix`
+ package/devShell/CLI build is unchanged. (#NNN)
+
### Changed
+- `.github/workflows/nix.yml` now builds the flake on `x86_64-linux` and
+ `aarch64-darwin` with `scripts/check-nix-packaging.sh` artifact smoke tests
+ (binary, hooks, config template, `nix run`); NixOS module eval and the
+ NixOS systemd container smoke stay on the Linux leg only. (#NNN)
+ - Documented API Route as an endpoint for the existing `openai-compat`
+ provider. (#997)
### Fixed
+ - Kimi Code no longer receives a bare `{}` when a `UserPromptSubmit` is
+ dropped by capture policy: the hook now writes an empty success response
+ Kimi accepts instead of a JSON object it rejects. (#996)
- `install-hooks --apply --as-user <user> --auth-token <key>` no longer fails
with `--as-user '<user>' requires --auth-token` when the token was supplied.
The guard was handed the *rendered* credential, which is deliberately `None`