Commit 3160ada
committed
fix: address Codex review P1/P2 findings on d5dbcdb
5 fixes for issues flagged by the Codex reviewer:
- P1 service.py: historical supports query now filters by
memory.workspace_id so a cross-workspace support cannot leak into
the include_history scene.
- P2 service.py: evidence facets (memory_types, time_from, time_to) are
applied in history mode instead of being skipped by the live-only
evidence_filter short-circuit.
- P2 service.py: entity candidate cap applies after session-scope
pruning so private evidence cannot crowd out public entities.
- P1 engine.py: secure_erase re-checks successors after the potentially
long index.delete and cleans up any new target IDs before calling
store.secure_erase_memory.
- P2 graph_scene.py: ghost canonical nodes that collide with a live
canonical_id are keyed as :ghost so the live node keeps its mass,
community, and relations.
Co-authored-by: Codex review bot (addressed findings from d5dbcdb)1 parent d5dbcdb commit 3160ada
3 files changed
Lines changed: 73 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2539 | 2539 | | |
2540 | 2540 | | |
2541 | 2541 | | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
2542 | 2555 | | |
2543 | 2556 | | |
2544 | 2557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2127 | 2127 | | |
2128 | 2128 | | |
2129 | 2129 | | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
2130 | 2136 | | |
2131 | 2137 | | |
2132 | 2138 | | |
| |||
2158 | 2164 | | |
2159 | 2165 | | |
2160 | 2166 | | |
2161 | | - | |
2162 | | - | |
2163 | | - | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
2164 | 2187 | | |
2165 | 2188 | | |
2166 | 2189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7724 | 7724 | | |
7725 | 7725 | | |
7726 | 7726 | | |
| 7727 | + | |
| 7728 | + | |
| 7729 | + | |
7727 | 7730 | | |
7728 | 7731 | | |
7729 | | - | |
| 7732 | + | |
7730 | 7733 | | |
7731 | 7734 | | |
| 7735 | + | |
| 7736 | + | |
| 7737 | + | |
| 7738 | + | |
| 7739 | + | |
| 7740 | + | |
| 7741 | + | |
| 7742 | + | |
| 7743 | + | |
| 7744 | + | |
| 7745 | + | |
| 7746 | + | |
| 7747 | + | |
| 7748 | + | |
| 7749 | + | |
| 7750 | + | |
| 7751 | + | |
| 7752 | + | |
| 7753 | + | |
| 7754 | + | |
| 7755 | + | |
| 7756 | + | |
| 7757 | + | |
| 7758 | + | |
| 7759 | + | |
7732 | 7760 | | |
7733 | 7761 | | |
7734 | 7762 | | |
| |||
7766 | 7794 | | |
7767 | 7795 | | |
7768 | 7796 | | |
7769 | | - | |
| 7797 | + | |
7770 | 7798 | | |
7771 | 7799 | | |
7772 | 7800 | | |
7773 | 7801 | | |
7774 | 7802 | | |
7775 | 7803 | | |
7776 | | - | |
| 7804 | + | |
| 7805 | + | |
7777 | 7806 | | |
7778 | 7807 | | |
7779 | 7808 | | |
| |||
8117 | 8146 | | |
8118 | 8147 | | |
8119 | 8148 | | |
| 8149 | + | |
8120 | 8150 | | |
8121 | | - | |
| 8151 | + | |
8122 | 8152 | | |
8123 | 8153 | | |
8124 | 8154 | | |
| |||
0 commit comments