Repository navigation
Fix memory-wiki bridge self-import loop - #95666
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 22, 2026, 2:48 AM ET / 06:48 UTC. Summary PR surface: Source +17, Tests +62. Total +79 across 2 files. Reproducibility: yes. from source inspection: current main recursively lists Markdown under Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land one canonical fix that prevents generated wiki source pages from feeding back into memory and bridge import, decide whether scanner-side exclusion is also required for residual index bloat, then close the duplicate candidate PRs and linked bug. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main recursively lists Markdown under Is this the best way to solve the issue? Unclear as the final best fix: this PR is a clean bridge-side mitigation for recursive page generation, while #95670 addresses scanner-side indexing earlier. Maintainers should choose the canonical direction before merging. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 04994f1046e6. Label changesLabel justifications:
Evidence reviewedPR surface: Source +17, Tests +62. Total +79 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
0277e3b to
10a44ea
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
10a44ea to
9358ecf
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper automerge |
|
ClawSweeper 🐠 automerge status No new branch changes from this pass. ClawSweeper left the branch untouched instead of making a noisy edit. Executor outcome: no planned fix actions. Worker actions:
Nothing moved downstream from this pass: no branch update, replacement PR, merge, or re-review. fish notes: reasoning high; reviewed against 0f74629. Automerge progress:
|
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
|
@clawsweeper approve this is the canonical fix |
|
🦞👀 I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes. Request: approve this is the canonical fix |
|
ClawSweeper assist: Yes, from the supplied context this PR is the stronger canonical bridge-side fix for #95657, but it still leaves a maintainer policy choice versus the broader scanner-side PR #95670. Evidence:
Suggested next action: If you want a full correctness review before deciding, use Source: #95666 (comment) |
|
@clawsweeper approve |
|
@clawsweeper automerge |
9358ecf to
0f74629
Compare
|
Merged via squash.
Thanks @TurboTheTurtle! |
Merged via squash. Prepared head SHA: 0f74629 Co-authored-by: TurboTheTurtle <[email protected]> Co-authored-by: vincentkoc <[email protected]> Reviewed-by: @vincentkoc
Closes #95657.
What Problem This Solves
Bridge mode could re-import memory artifacts whose files were already generated under the configured wiki vault
sources/directory when that vault lived under workspacememory/, producing recursivememory/wiki/sources/...bridge pages.Why This Change Was Made
The importer now canonicalizes the vault
sources/path and skips matching public artifacts before they are rendered as bridge source pages.User Impact
Users with bridge vaults inside their memory workspace stop generating recursive bridge copies of generated wiki source artifacts.
Evidence
Added a regression covering a vault at
memory/wikiwith one normal daily note and one already-generatedsources/artifact; only the daily note is imported from that setup and no recursivememory-wiki-sourcesbridge file is generated.Focused bridge test passes locally:
node scripts/run-vitest.mjs extensions/memory-wiki/src/bridge.test.ts.Real bridge-import proof against a temp workspace using the production bridge import path and real memory-host public artifact scanner: