049-reembedding-preview-and-cost-cap

Re-embedding: a dry run that reports counts and cost, and an approved total cap before any remote call

Lifecycle draftImplementation pendingVerification unknownQualification unknown

Spec 015 B-9 makes a model change a migration: a new revision is marked active and a re-embed pass runs over the scope. With the local provider that pass costs CPU time. With a remote provider it sends every chunk of a scope out and is billed per token, and nothing in 015 tells the operator how much before it starts or stops it at an amount they chose. This spec amends 015 B-9: every re-embed pass can be previewed with no provider call, reporting the work and its estimated cost, and a pass that would call a remote provider is refused until an operator approves a finite total cost cap, which admission enforces batch by batch.

Read the full pinned specification ↗

Relationships

Claimed units

  • establishes
    {
      "kind": "file",
      "path": "crates/aicortex-embed/src/preview.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/aicortex-embed/src/spend.rs"
    }
  • establishes
    {
      "kind": "file",
      "path": "crates/aicortex-embed/tests/preview.rs"
    }
  • extends
    {
      "nature": "additive",
      "spec": "015-embedding-pipeline",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-embed/src/lib.rs"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "015-embedding-pipeline",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-embed/src/operator.rs"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "015-embedding-pipeline",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-embed/src/activation.rs"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "015-embedding-pipeline",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-embed/src/worker.rs"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "015-embedding-pipeline",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-embed/src/config.rs"
      }
    }
  • extends
    {
      "nature": "additive",
      "spec": "015-embedding-pipeline",
      "unit": {
        "kind": "file",
        "path": "crates/aicortex-embed/src/migrations.rs"
      }
    }

Source headings

  1. 049: Reembedding preview and cost cap
  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.