Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix: exclude deployment secrets from Docker context
AkitaOnRails5b02d4f2bf55
diff --git a/.dockerignore b/.dockerignoreindex 2f2eefc7..c22018fe 100644--- a/.dockerignore+++ b/.dockerignore@@ -18,3 +18,9 @@ perf.data*# Sandbox marker..ai-jail++# Operator-specific deployment files. Keep this block last so a later negation+# cannot re-include credentials or host configuration in the build context.+/bin/deploy.env+/docker/.env.production+/docker/docker-compose.prod.ymldiff --git a/CHANGELOG.md b/CHANGELOG.mdindex 0815722e..c48b26aa 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [1.20.2] - 2026-07-30### Fixed+- Docker build contexts now exclude the gitignored operator deployment files,+ preventing local server configuration and production environment secrets+ from being sent to the Docker builder. A packaging regression test keeps the+ exclusions as the final ignore rules so later negations cannot re-include+ them. (#314)- Managed workstream heartbeats now bound each server request and condense anoutage into one short notice plus one recovery notice. Active launchers keepthe lease-safe 30-second retry cadence without printing the same timeout ondiff --git a/crates/ai-memory-cli/tests/packaging.rs b/crates/ai-memory-cli/tests/packaging.rsindex 7974ad87..f09a33dc 100644--- a/crates/ai-memory-cli/tests/packaging.rs+++ b/crates/ai-memory-cli/tests/packaging.rs@@ -160,6 +160,23 @@ fn docker_source_build_uses_vendored_tailwind() {assert!(dockerfile.contains("TAILWIND_SKIP=1 cargo build --release -p ai-memory-cli"));}+#[test]+fn docker_context_excludes_operator_deployment_files() {+ let dockerignore = read_repo(".dockerignore");+ let protected_suffix = concat!(+ "# Operator-specific deployment files. Keep this block last so a later negation\n",+ "# cannot re-include credentials or host configuration in the build context.\n",+ "/bin/deploy.env\n",+ "/docker/.env.production\n",+ "/docker/docker-compose.prod.yml\n",+ );++ assert!(+ dockerignore.ends_with(protected_suffix),+ "operator deployment exclusions must remain the final Docker ignore rules"+ );+}+#[test]fn docker_publish_jobs_use_prebuilt_binaries() {let dockerfile = read_repo("docker/Dockerfile");