Skip to content

it12b: memory pack builder (budgeted, governed, conflict-aware)#33

Merged
rinfa0108 merged 1 commit into
mainfrom
iter/12b-memory-pack-builder
Mar 9, 2026
Merged

it12b: memory pack builder (budgeted, governed, conflict-aware)#33
rinfa0108 merged 1 commit into
mainfrom
iter/12b-memory-pack-builder

Conversation

@rinfa0108

Copy link
Copy Markdown
Owner

IT12B - Memory Pack Builder (budgeted, governed, conflict-aware)

Summary

Implements deterministic memory pack assembly to enable small-context agents to operate over large durable memory: policy/retention enforced, lifecycle defaults applied, dedupe by memory_key, conflict-safe surfacing, strict token budgeting.

Surfaces

  • HTTP: POST /v1/memory/pack (deterministic default)
  • MCP: openbrain.memory.pack (deterministic default)

Behavior

  • Default retrieval: accepted + not expired (store defaults)
  • Hybrid retrieval: structured + semantic candidate union
  • Budget: hard cap with deterministic estimator ceil(chars/4)
  • Dedupe: per memory_key with max_per_key default 1
  • Conflict handling: conflict alerts + optional detailed ids
  • Policy: memory_pack operation enforced + top_k clamp

Tests

  • Added HTTP integration test: policy deny + clamp for memory pack
  • Existing semantic provider/model selection tests remain green

Docs

  • docs/specs/memory_pack_budgeting.md

Gates

pwsh scripts/ci/quality-gates.ps1
== Rust Gates ==
(all fmt/clippy/test checks passed)
... test result: ok across workspace suites ...
== Dependency Security/Policy ==
advisories ok
bans ok, licenses ok, sources ok
== Secret Scan ==
no leaks found

@rinfa0108
rinfa0108 merged commit 55108b6 into main Mar 9, 2026
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant