Repository navigation
fix(coverage): assess_coverage scores the domain remember writes (#721, slice 7) - #928
Conversation
… slice 7) assess_coverage passed an explicit `domain` unresolved to get_memories_for_domain, so assess_coverage(domain="cortex-cowork") scored a scope no write used (remember stores it under `cortex`) and domain="SciFact" missed `scifact`. Resolve it with resolve_explicit_domain, like remember, recall, recall_hierarchical, narrative, get_project_story and drill_down; 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_018kyZYs8eJC3rQpPDcS6G6L
Codex Review Summary: ✅ CompletedThis 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. |
|
Claude finished @cdeust's task in 1m 24s —— View job PR #928 review (1 of 3)
No Blockers. There are three Notes, none needing action before merge: one CHANGELOG sentence claims more than the code does, one test passes with or without the fix, and the tests never check the returned Tests, ruff and the craftsmanship gate were not run here because the commands were not approved. CI is the reference. Verdict: approve |
Review 1 of 3 — PR #928All five reviews ran: code quality, performance, test coverage, documentation and security. None found a Blocker.
Notes, no action before merge
I could not run tests, ruff or the craftsmanship gate in this session (the commands were not approved). CI is the reference. Verdict: approve |
…es (#721, slice 7) fixup! fix(coverage): assess_coverage scores the domain remember writes (#721, slice 7) The returned domain is the resolved name, not always the scope read: a directory other than the cwd is read by directory (review note on #928). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018kyZYs8eJC3rQpPDcS6G6L
|
Suite aux notes de la revue 1 :
Generated by Claude Code |
|
Claude finished @cdeust's task in 1m 12s —— View job PR #928 review (2 of 3)
No Blockers. The new CHANGELOG wording ("the returned Tests, ruff and the craftsmanship gate were not run. This commit changes only docs, so they would give the same result. CI is the reference. Verdict: approve |
Review 2 of 3 — PR #928Review 1 (on
Notes, no action before merge
I did not run tests, ruff or the craftsmanship gate; a docs-only commit does not change them. CI is the reference. Verdict: approve |
Summary
assess_coveragehanded an explicitdomainunresolved toget_memories_for_domain, whilerememberwrites underresolve_explicit_domain(domain).assess_coverage(domain="cortex-cowork")therefore scored a scope no write used (rememberstores it undercortex), anddomain="SciFact"missedscifact. The handler now resolves the domain withresolve_explicit_domain, asremember,recall,recall_hierarchical,narrative,get_project_storyanddrill_downalready do. A blank domain counts as no domain (global read); the returneddomainis the scope actually read.Refs #721 (slice 7; does not close the issue).
Type of change
Test plan
tests_py/handlers/test_assess_coverage_domain_scope.py(7 tests, same pattern as slices 4–6): registry rebuilt from real repo directories undertmp_path; asserts the scope the public handler hands to the store — family member → canonical, explicit name kept lowercased, no substring remap, read scope ==remember._resolve_domainwrite scope, blank → global read. 6 of the 7 fail without the fix (checked by stashing the handler change).pytest tests_py/handlers: 1909 passed, 81 skipped.ruff check/ruff format --checkon the changed files: clean. (ruff checkon the whole tree reports 8 pre-existing E501 inscripts/andtests_py/scripts/files this PR does not touch; identical onmain.)python scripts/check_craftsmanship.py: OK.torchcannot be downloaded in this session; the env was synced without it). CI is the reference.Audit notes
directory>domainpriority inremember(owner decision);validate_memory,detect_gaps,query_methodologystill pass a rawdomain; alias/migration documentation.Coding-standards compliance
Breaking changes
None for callers that pass a canonical domain. A caller passing a family member or a mixed-case name now gets the coverage of the scope
rememberwrote for the same argument, instead of an empty score.Reviewer checklist
https://claude.ai/code/session_018kyZYs8eJC3rQpPDcS6G6L
Generated by Claude Code