Tiered context memory (company inlined / team read-first / project index) - #14
Conversation
…ds), model-driven note selection, index+rules in system prompt - New tools/memory_read_tool.py: build_context_memory_index_section (index only, no bodies), read_company_context/read_team_context/read_project_note, list_scope_notes, read_notes_by_ids. Retrieval rules: open relevant notes by note_id across all levels; company/team prioritized; contradiction -> clarify. - model_tools.py: register tools.memory_read_tool in discovery. - toolsets.py: memory_consult exposes read_company_context/read_team_context/read_project_note.
…irst, project index) Company notes inlined in full every turn; team notes read-first; project notes index + open-relevant-by-id. Adds list_scope_notes / read_notes_by_ids for the pre-question memory selection (interpreter + plan verifier).
|
Review — tiered context-memory read toolsThis is the enforcement layer the parent hermes#122 scoping guarantee rests on (pinned at this exact commit ✅ Merge-readiness
Security — the important part, and it holdsThe two-boundary model is correctly implemented and is the reason a model-selected id can't leak across tenants:
Design notes (all minor / non-blocking)
Overall: LGTM — good to merge. Findings above are polish; #2 (silent company demotion on a kinds-lookup failure) is the only one I'd consider worth a follow-up, and it's a degraded-path edge, not a normal-path bug. |
What
Tiered context-memory delivery in
tools/memory_read_tool.py, backing the dynamic-memory-fetch work in hermes (parent PR: KNOWIDEA-Tech/hermes#122).read_team_context).list_scope_notes/read_notes_by_ids— the metadata index + full-body reads used by the pre-question memory selection (interpreter) and the new plan verifier on the hermes side.Pairs with
Parent hermes
memory-debugpins this submodule at1eba4d29(PR NousResearch#122 → staging).Testing
Memory scope/tool tests pass (41). Tenant isolation preserved (allow-list +
memory_contextcontextvar; service-role app-layer filters remain the boundary).