Repository navigation
fix(narrative): narrative reads the domain remember writes (#721, slice 4) - #915
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review 1 of 3 — PR #915Five reviews were run: code quality, performance, test coverage, documentation accuracy and security. None found a Blocker. The fix in I could not run pytest, ruff or the craftsmanship gate in this job because the commands needed approval. CI is the check for those. Notes, no action before merge
Verdict: approve |
|
Merci pour la revue. Les trois notes non bloquantes restent en l'état dans cette PR :
Generated by Claude Code |
|
CI autopilot : Les 11929 tests passent ; c'est l'étape mutation qui échoue avec 44 mutants survivants de
Reçu local : Remarque hors périmètre : Generated by Claude Code |
|
Claude finished @cdeust's task in 1m 9s —— View job Review 2 of 3 — PR #915Review 1 (at In I could not run pytest or ruff in this job because the commands needed approval. When this was posted, Notes, no action before merge
Verdict: approve |
|
Merci pour la revue 2. Notes non bloquantes, sans poussée dédiée :
Generated by Claude Code |
…ce 4) narrative passed an explicit `domain` unresolved to get_memories_for_domain, so narrative(domain="cortex-cowork") narrated a scope no write used (remember stores it under `cortex`) and domain="SciFact" missed `scifact`. Resolve it with resolve_explicit_domain, like remember, recall and recall_hierarchical; a blank domain counts as no domain. Refs #721 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018kyZYt3L6vPXmkjY5jpKe3
f8e077e to
12b9902
Compare
|
Claude finished @cdeust's task in 37s —— View job Review 3 of 3 — PR #915
Reviews 1 and 2 found no Blockers, so there was nothing to re-check. Since review 2, the branch was squashed: it is now one commit,
The squash brought no new code, so I did not run the five-agent pass again. When this was posted, the Accepted: the whole PR, all four files in Notes, no action before merge
Verdict: approve |
Summary
Refs #721 (tranche 4 — ne ferme pas l'issue).
Cause racine :
narrativepassait l'argumentdomainbrut àget_memories_for_domain, alors querememberécrit sousresolve_explicit_domain(domain).narrative(domain="cortex-cowork")racontait donc un scope où aucune écriture n'a lieu (rememberstocke souscortex) etdomain="SciFact"manquaitscifact. Même défaut que celui corrigé pourrecall_hierarchicaldans #914.Correctif : le handler résout le domaine avec
resolve_explicit_domainavant de lire le store ; un domaine blanc compte comme absence de domaine (lecture des mémoires chaudes, comme sansdomain).Type of change
Test plan
tests_py/handlers/test_narrative_domain_scope.py(nouveau, 7 tests) : 7 passent avec le correctif, 6 échouent sans (vérifié en retirant le correctif localement).pytest tests_py/core/test_narrative.py tests_py/handlers -k "narrative or domain": 138 passed, 12 skipped.ruff check/ruff format --check(ruff 0.17.3, version deuv.lock) sur les fichiers modifiés : OK.python scripts/check_craftsmanship.py: OK.Audit notes
Non vérifié localement : suite PostgreSQL, gate de mutation, benchmarks (
torchnon téléchargeable dans cette session, hôtedownload-r2.pytorch.orgrefusé par le proxy).Breaking changes
Aucun pour un domaine déjà canonique. Un
domainblanc (" ") lit désormais les mémoires chaudes au lieu d'un scope vide.Generated by Claude Code