Repository navigation
Commit 0e0b896
authored
fix(memory): stop legacy warnings for canonical database links
Closes #133981
## What Problem This Solves
Fixes an issue where operators with `memory/<agent>.sqlite` compatibility links to the modern per-agent database received one false legacy-memory migration warning per agent during Doctor and startup checks.
## Why This Change Was Made
The Memory Core migration collector followed each symbolic link and classified the populated canonical database as a separate legacy sidecar. It now excludes only a proven link to the same agent's canonical database when no legacy companion files exist. Unknown, corrupt, different-target, and data-bearing legacy files keep the existing warning and preservation behavior.
The issue opener [corrected the reported file shape](#133981 (comment)): the apparent 54–60-byte size was the symbolic-link path length, and 9 of 10 per-agent paths linked to populated canonical databases.
## User Impact
Healthy modern multi-agent installations no longer show repeated false legacy-memory warnings. Existing compatibility links and canonical memory data remain unchanged.
## Evidence
- Current-main red at `cd0f6f487e1819b006b6c11968233ed76523754e`: isolated `openclaw doctor --non-interactive --yes` emitted one false schema warning for each of two agents whose legacy path linked to its populated canonical database.
- Exact candidate source green at `5f79c9ae83e3c92d036838243e8816aeb841683c`: [Blacksmith Testbox run](https://github.com/openclaw/openclaw/actions/runs/33391687950) reported 2 agents, 0 false previews, 0 false warnings, 2 links preserved, and 2 populated canonical rows preserved.
- `node scripts/run-vitest.mjs extensions/memory-core/doctor-contract-api.test.ts`: 63 passed.
- Focused alias, corrupt-file, data-bearing-file, empty-file, and unknown-companion cases: 7 passed.
- Targeted formatter, lint, and `git diff --check`: passed.
- Autoreview: clean; no accepted or actionable findings.
- Build, type checks, and full continuous integration are delegated to GitHub.
Co-authored-by: Ayaan Zaidi <[email protected]>1 parent 9ac61cd commit 0e0b896
2 files changed
Lines changed: 116 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1466 | 1466 | | |
1467 | 1467 | | |
1468 | 1468 | | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
1469 | 1542 | | |
1470 | 1543 | | |
1471 | 1544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
137 | 167 | | |
138 | 168 | | |
139 | 169 | | |
| |||
169 | 199 | | |
170 | 200 | | |
171 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
172 | 214 | | |
173 | 215 | | |
174 | 216 | | |
175 | 217 | | |
176 | | - | |
| 218 | + | |
177 | 219 | | |
178 | 220 | | |
179 | 221 | | |
| |||
0 commit comments