Newly created memory banks get no Memory Defense policy when no bank template is configured
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start at create_bank_row_on_conn and inspect how it inserts a new bank row and applies DEFAULT_DEFAULT_BANK_TEMPLATE. Check the bank creation tests for coverage of missing, valid, and invalid templates, then verify the configured default protects a fresh bank before its first write. The issue links a branch with a fix and tests, so review that work before taking this on.
Written by the indexing model from the issue text.
Description
Problem
DEFAULT_DEFAULT_BANK_TEMPLATE is None, and the bank-creation path
(create_bank_row_on_conn) inserts a new bank row without any memory_defense config
unless the operator configured a template. In our deployment, three banks created by
automated tooling after initial rollout ended up unprotected until a reconciliation script
found them — memory written through lazy bank creation never went through the defense
pipeline for those banks.
Proposal
Write a safe default (enabled: true, sensitive_data: redact) in the same INSERT that
creates the bank row, so every new bank is protected from its first write. An explicit,
valid template still wins; an invalid template falls back to the safe default. Existing
banks are untouched (no re-ingestion required).
Validation
TDD (RED→GREEN) on an isolated 1.3.1 instance: first retain on a fresh bank redacts a
synthetic secret before persistence (canary absent from documents, chunks, facts,
llm_requests and audit log). Explicit templates preserved.
Branch with fix + tests (6 passed, ruff clean): https://github.com/BenedettiLucca/hindsight/tree/fix/memory-defense-new-bank-default
Related: #7169 (broader mandatory floor proposal — this covers only the creation-time default).
- Dominant language
- Python
- Stars
- 45.2k
- Forks
- 5.9k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vectorize-io/hindsight
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vectorize-io/hindsight#7254 ·
-
Control Plane shows different calendar dates for the same occurrence in Constellation and TimelineOpencore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vectorize-io/hindsight#7240 · 1 comment ·
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vectorize-io/hindsight#7233 ·
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
vectorize-io/hindsight#7231 ·
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
vectorize-io/hindsight#7228 · 1 comment ·
All issues in vectorize-io/hindsight
Similar issues
-
Test: to_hijri() accepts datetime.datetime and uses only the date partPossibly taken A pull request linked to this issue is open or already merged. Opengood first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 · 3 comments ·
Maintainers usually reply within 1 day
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresPossibly taken @AshutoshSingh840 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
UKGovernmentBEIS/control-arena#992 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Maintainers usually reply within 1 day