Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1440·agentmemory

Gate releases on capture and recovery tests of the actual packaged artifact

Author: rohitg00Created Sep 29, 2026Updated Sep 29, 2026

Validation limitation

A successful source build and unit suite do not prove that the distributed CLI, bundled hooks, bridge, runtime configuration and persistence lifecycle work together.

On main ab3e4efd282659b87d31b36c8514c6bc6b871f0b, the CI and publishing workflows build the source and run npm test. That script explicitly excludes test/integration.test.ts. The workflows do not install the produced archive into a clean test home and execute a recovery scenario before publication.

Local live validation of this main revision found that 100 captures, ten marker queries, forced-restart keyword retrieval and fresh export/import all worked, while offline capture, restart deduplication and pre-checkpoint vector retention exposed separate failures. These different outcomes need separate assertions in release validation.

Requested scope

Add a release gate that creates the package, installs that exact artifact into an isolated test directory, and runs the actual distributed entrypoints with their matching runtime dependency. Keep synthetic data, isolated ports and isolated agent configuration. This issue requests a test gate, not an automatic release.

Acceptance checks

  • Launch the installed CLI and confirm runtime and package identity.
  • Run the bundled hook and bridge; assert stored observations and returned source content rather than only process exit or health status.
  • Test service-down capture, duplicate replay and restart recovery according to the declared recovery modes.
  • Test observations and vector persistence independently, including the first-checkpoint boundary.
  • Export and restore into a separate clean instance; verify count and retrieval.
  • Delete absent and existing IDs and verify exact counts and search invalidation.
  • Exercise clean install and supported upgrade paths without reading or changing a developer's actual agent settings.
  • Archive structured results, resolved dependencies and logs for the exact tested package. Stop only processes created by the test.
  • Run a deterministic keyless gate for every candidate; run the real embedding profile in a separately identified integration job with explicit provider requirements.

Failure injection should validate the fixes tracked by the capture, identity, source-retention, vector-recovery and deletion issues. Do not weaken the assertions to make the existing behavior pass.

CI workflow, publishing workflow, test scripts.

Source: rohitg00/agentmemory

View original on GitHubView discussion on GitHub