From b687e7fa6fc35a6bebb396c159aac52517450bf1 Mon Sep 17 00:00:00 2001 From: Anto01 Date: Thu, 16 Apr 2026 09:01:38 -0400 Subject: [PATCH] feat(capture): wire project inference from cwd Populate _PROJECT_PATH_MAP in capture_stop.py so Claude Code interactions get tagged with the correct project at capture time instead of relying on the nightly LLM extractor to guess from content. Covers 6 vault PARA sub-projects (P04, P05, P11/P06, P08, I01, I02) and 4 local code repos (ATOCore, Polisher-Sim, Fullum-Interferometer, Atomizer-V2). Also sync project-registry.json with live Dalidou (adds abb-space, atomizer-v2, and p11/polisher-fullum aliases to p06-polisher). Co-Authored-By: Claude Opus 4.6 (1M context) --- config/project-registry.json | 26 +++++++++++++++++++++++++- deploy/hooks/capture_stop.py | 15 ++++++++++++--- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/config/project-registry.json b/config/project-registry.json index 9ce40da..48f10aa 100644 --- a/config/project-registry.json +++ b/config/project-registry.json @@ -38,7 +38,7 @@ }, { "id": "p06-polisher", - "aliases": ["p06", "polisher"], + "aliases": ["p06", "polisher", "p11", "polisher-fullum", "P11-Polisher-Fullum"], "description": "Active P06 polisher corpus from PKM, software-suite notes, and selected repo context.", "ingest_roots": [ { @@ -47,6 +47,30 @@ "label": "P06 staged project docs" } ] + }, + { + "id": "abb-space", + "aliases": ["abb", "abb-mirror", "p08", "p08-abb-space", "p08-abb-space-mirror"], + "description": "ABB Space mirror - lead/proposition for Atomaste. Also tracked as P08.", + "ingest_roots": [ + { + "source": "vault", + "subpath": "incoming/projects/abb-space", + "label": "ABB Space docs" + } + ] + }, + { + "id": "atomizer-v2", + "aliases": ["atomizer", "aom", "aom-v2"], + "description": "Atomizer V2 parametric optimization platform", + "ingest_roots": [ + { + "source": "vault", + "subpath": "incoming/projects/atomizer-v2/repo", + "label": "Atomizer V2 repo" + } + ] } ] } diff --git a/deploy/hooks/capture_stop.py b/deploy/hooks/capture_stop.py index 0cd3877..349e36c 100644 --- a/deploy/hooks/capture_stop.py +++ b/deploy/hooks/capture_stop.py @@ -166,10 +166,19 @@ def _extract_last_user_prompt(transcript_path: str) -> str: # Project inference from working directory. # Maps known repo paths to AtoCore project IDs. The user can extend # this table or replace it with a registry lookup later. +_VAULT = "C:\\Users\\antoi\\antoine\\My Libraries\\Antoine Brain Extension" + _PROJECT_PATH_MAP: dict[str, str] = { - # Add mappings as needed, e.g.: - # "C:\\Users\\antoi\\gigabit": "p04-gigabit", - # "C:\\Users\\antoi\\interferometer": "p05-interferometer", + f"{_VAULT}\\2-Projects\\P04-GigaBIT-M1": "p04-gigabit", + f"{_VAULT}\\2-Projects\\P10-Interferometer": "p05-interferometer", + f"{_VAULT}\\2-Projects\\P11-Polisher-Fullum": "p06-polisher", + f"{_VAULT}\\2-Projects\\P08-ABB-Space-Mirror": "abb-space", + f"{_VAULT}\\2-Projects\\I01-Atomizer": "atomizer-v2", + f"{_VAULT}\\2-Projects\\I02-AtoCore": "atocore", + "C:\\Users\\antoi\\ATOCore": "atocore", + "C:\\Users\\antoi\\Polisher-Sim": "p06-polisher", + "C:\\Users\\antoi\\Fullum-Interferometer": "p05-interferometer", + "C:\\Users\\antoi\\Atomizer-V2": "atomizer-v2", }