coding-agents: two unrelated projects with the same folder name share one memory bank

Aperta
#6,743 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva

Direzione di ricerca

Bank resolution is in the coding-agents package: the coding-agent::{gitProject} template expands {gitProject} to the repo-root basename (working-directory fallback); start at that expansion and at mapPathToBank, the reporter's workaround. Reproduce with two directories sharing a basename, one a git repo, and check the resolved bank ids. Decide between a path-hash suffix, a warning on mismatch, or a documented bank-to-path listing; done means a test pins the chosen behaviour and the banner or hindsight_diagnose shows a shared bank.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

integration:coding-agents

What happens
The default bank id template is coding-agent::{gitProject}, and {gitProject} resolves to the basename of the repository root (falling back to the basename of the working directory when the directory is not a git repo). Two unrelated projects whose folders share a name therefore resolve to the same bank, and their memories are merged:

  • D:\work\qq-chats -> coding-agent::qq-chats
  • E:\backup\qq-chats -> coding-agent::qq-chats

The same happens after renaming a folder: the project silently starts from an empty bank and the old bank is left behind.

Why that is a problem

  • Recall returns facts from the other project, and the first-prompt synthesis describes a repository the session is not in.
  • Retain from both projects lands in one bank, so the extracted facts contaminate each other.
  • It is silent: nothing in the banner, the hook output or hindsight_diagnose says the bank is shared.

Environment

  • @vectorize-io/hindsight-coding-agents 0.8.7 (also checked against the 0.8.8 package)
  • harness: DeepSeek Harness (dsh)
  • OS: Windows
  • server: self-hosted (apiUrl http://127.0.0.1:9077, serverMode self-hosted)

What I would like

  • A collision-aware default: include a short hash of the absolute repository path, or the parent folder, when the bare name is already claimed by a different path.
  • Or a warning at bank resolution when the current path is not the one that first created the bank.
  • At minimum, a documented way to list which paths map to a bank, so a shared bank is visible.

Workaround in use
mapPathToBank with an explicit bank id per project.

Lingua principale
Python
Stelle
45.2k
Fork
5.9k
Merge medio
6h 18m
PR unite (30g)
354

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vectorize-io/hindsight

Tutte le issue di vectorize-io/hindsight

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.