014-memory-lifecycle-and-erasure

Lifecycle: supersession, correction, expiry, deduplication, and erasure that reaches the vectors

Lifecycle approvedImplementation completeVerification unknownQualification unknown

A memory store that can only append becomes wrong over time and then confidently recalls the wrong thing. This spec gives a memory the rest of its life: an exact fingerprint that merges a repeated capture instead of duplicating it, supersession that keeps the old row readable but unretrievable, correction that records who said the old value was wrong, expiry for memories that were true until a date, and erasure that removes content, chunks, embeddings, and index entries in one transaction while the ledger records only that it happened.

Read the full pinned specification ↗

Relationships

Claimed units

  • establishes
    {
      "kind": "file",
      "path": "crates/aicortex-store/src/lifecycle.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/aicortex-store/src/fingerprint.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/aicortex-store/src/erasure.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/aicortex-store/tests/lifecycle.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/aicortex-store/tests/erasure.rs"
    }
  • extends
    {
      "nature": "additive",
      "spec": "012-store-schema-and-repositories",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-store/src/lib.rs"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "012-store-schema-and-repositories",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-store/src/migrations.rs"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "012-store-schema-and-repositories",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-store/src/memory_repo.rs"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "012-store-schema-and-repositories",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-store/Cargo.toml"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "012-store-schema-and-repositories",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-store/tests/common/"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "012-store-schema-and-repositories",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-store/tests/repo.rs"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "012-store-schema-and-repositories",
      "unit": {
        "kind": "file",
        "path": "apps/aicortex/tests/migrate.rs"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "010-chassis-adoption-and-workspace",
      "unit": {
        "anchor": "workspace.dependencies",
        "file": "Cargo.toml",
        "kind": "section"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "011-memory-model",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-types/src/lib.rs"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "010-chassis-adoption-and-workspace",
      "unit": {
        "kind": "file",
        "path": "apps/aicortex/tests/cell.rs"
      }
    }
  • constrains
    {
      "flavor": "invariant-freeze",
      "note": "erasure reaches every derivative; memory content never enters the ledger",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-store/src/erasure.rs"
      }
    }
  • constrains
    {
      "flavor": "invariant-freeze",
      "note": "erasure destroys the B-9 digest key of every Decision about the erased memory or scope",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-store/src/erasure.rs"
      }
    }

Source headings

  1. 014: Lifecycle
  2. 1. Purpose
  3. 2. Territory
  4. 3. Behavior
  5. 4. Functional requirements
  6. 5. Acceptance criteria
  7. 6. Out of scope
  8. 7. Resolved decisions
  9. Verification

Frozen anchors

No frozen anchors declared.