Skip to content

fix(memory-core): filter junk topics from REM phase extraction (#111923) - #117248

Merged
steipete merged 1 commit into
openclaw:mainfrom
synthalorian:fix/dreaming-rem-junk-topics
Aug 27, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
synthalorian:fix/dreaming-rem-junk-topics

Conversation

@synthalorian

@synthalorian synthalorian commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

REM reflections can promote numeric/date noise from both freshly extracted concepts and saved recall entries. Junk can consume the bounded topic list and displace meaningful concepts. This addresses the verified numeric/normalization portion of #111923; it does not claim to resolve every historical feedback-loop case in that report.

Why This Change Was Made

Maintainer rewrite of @synthalorian's fix, preserving contributor credit. normalizeConceptToken is the single policy owner for new extraction and REM topic selection. It rejects numeric compounds after Unicode NFKC normalization, retains date-with-suffix filtering and protected short technical terms, and deduplicates normalized spellings per memory. The stored rows themselves are neither rewritten nor migrated.

The same owner cleanup replaces the UTF-16 index walker with precomputed Unicode word-boundary expressions: kv and s3 must not match inside a longer word containing astral letters. Long glossary terms retain their existing substring behavior. Removed paths include the separate REM blacklist, glossary-origin boolean plumbing, one-use accumulator and unreachable overflow trimming, and manual boundary walker. No new dependency, configuration option, schema change, migration, QMD glossary entry, or public SDK surface.

User Impact

Valid technical and multilingual topics remain visible. One memory contributes once to each canonical topic even when it contains spellings such as kv and KV. Existing topic limits, strength thresholds, storage layout, and default configuration remain unchanged.

Evidence

AI-assisted with Codex. Trusted proof baseline: 0b652b009107c7c4a6516f26ba7a96a0cb168881; current head ae06208a7206aa591806a2072051e1f8fb150d2d mechanically rebases the rewrite onto newer main. Only a changelog conflict was resolved; all four changed TypeScript files are byte-identical to the reviewed first head 823cd7fefd464e39d65b0d6927a1ed4c40691c9f, and production hashes match the real CLI proof. No contributor branch code was executed locally or on the credentialed proof runner.

  • Failure-first regressions captured numeric extraction and stored-topic leakage; separate red controls captured the astral boundary defect and normalization collision. Initial owner/sibling suite: 174 passing tests. Final realistic eight-tag-per-row table and expanded owner/sibling suite: 220 passing tests across seven files.
  • Real Linux source CLI proof on Testbox run 33082399296, Node 24.19.0. Eleven independent processes seeded/reopened the canonical SQLite store, ran memory rem-harness --json, reopened it, and separately ran memory rem-harness --path <disposable-history> --json against baseline and candidate source snapshots. The entrypoint was node --import tsx src/entry.ts, not a direct helper call or mocked manager.
  • Stored proof used two valid eight-tag rows and the unchanged default REM settings. Baseline returned numeric/date junk and full-width kv, exhausting the ten-topic limit. Candidate returned exactly kv=2, s3=2, ollama=1, provider=1, router=1, 备份=1. Every raw-row readback remained byte-equivalent after canonical JSON serialization: SHA-256 77ebd1a9f9ec63ad11d996e0567c4e018875b5713db7f7ba9520a3fd2f3fdab5.
  • Fresh historical extraction reproduced 1.00 and 51-54 on baseline; candidate retained backup, kv, router, and s3 only. Source owner hashes were verified against the frozen candidate. Disposable state/workspaces were removed and the exact lease was stopped and independently verified completed.
  • Fresh structured Codex autoreview: no actionable P0 findings, repeated after the changelog-only rebase. Full local changed gate passed, including production/test typechecks, type-aware lint, dead exports, database-first guard and import cycles. The post-rebase 220-test suite passed, and exact-head CI run 33097914464 completed successfully on ae06208a7206aa591806a2072051e1f8fb150d2d.

Production LOC: +29/-59 (net -30). Tests: +33/-28 (net +5). Maintainer changelog: +1. Total: +63/-87 (net -24).

Review Decisions and Scope

The August 25 ClawSweeper findings and rank-up moves are addressed: the legacy REM predicate now uses the canonical policy, date/NFKC cases are covered, unrelated QMD promotion is absent, and real persisted/reopened CLI proof is recorded above. The stale contributor branch is replaced with a focused trusted-main rewrite; exact-head CI remains required. The maintainer changelog entry follows the explicit landing instructions and credits the contributor.

The fresh August 27 review of ae06208a7206 confirms the shared owner repair and persisted-state proof; its only finding and first rank-up move concern the changelog. That removal is intentionally skipped under explicit maintainer direction to add a contributor-credited entry for this user-facing fix, using the existing per-operation changelog exception without changing release policy or publishing anything. Its other rank-up move is satisfied by completed exact-head CI run 33097914464. The review's separate help-only probe timed out after 30 seconds; it is not counted as passing evidence. The completed real CLI runs above exercise the actual persisted and fresh-history behavior, not just help output.

The malformed numeric policy and UTF-16 boundary walker also exist in stable v2026.7.1-2. The glossary work in #96304 (code/PR author @ly-wang19, merged June 24 by @vincentkoc; commit bea3d292c7327883663dfced869f8a124e6693d0) established the short-term boundary context. Local blame of the implicated current lines ends at the shallow-history boundary, so this does not attribute the original numeric-filter defect to that PR or to the shallow-boundary committer.

Alternatives rejected: another blacklist duplicates and drifts from extraction policy; rewriting persisted rows would introduce an unnecessary storage migration; globally banning ordinary words such as kept or theme would confuse content with generated-output provenance. Existing ingestion excludes managed dreaming blocks. Broader historical feedback-loop handling remains tracked by #111923; that issue stays open. Legacy tags displayed by the separate deep-candidate projection are unchanged, not claimed repaired here.

@openclaw-barnacle openclaw-barnacle Bot added extensions: memory-core Extension: memory-core size: M triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Aug 1, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 27, 2026, 1:29 PM ET / 17:29 UTC.

ClawSweeper review

What this changes

The PR shares concept-tag normalization between fresh extraction and stored REM inputs, filtering numeric/date noise and deduplicating equivalent tag spellings per memory.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Needs maintainer review before merge - 2 items remain

Keep open: the Memory Core repair uses the correct shared normalization boundary, but the introduced release-owned changelog entry must be removed before merge.

Priority: P2
Reviewed head: ae06208a7206aa591806a2072051e1f8fb150d2d

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The owner-boundary repair and persisted-state proof are solid, but the release-owned changelog edit is a merge blocker.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The PR body provides an after-fix source-CLI REM-harness exercise over seeded and reopened canonical SQLite state, with baseline/candidate results and raw-row preservation evidence.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The PR body provides an after-fix source-CLI REM-harness exercise over seeded and reopened canonical SQLite state, with baseline/candidate results and raw-row preservation evidence.
Evidence reviewed 6 items Base behavior: The PR base aggregated stored concept tags directly, only excluding a small local blacklist; numeric and date-like stored tags could therefore reach REM topic ranking.
Owner-boundary repair: The proposed aggregation now normalizes every stored tag through the same policy used by extraction and deduplicates canonical spellings within each memory.
Normalization policy and coverage: The canonical normalizer rejects numeric compounds and date filenames while preserving protected short terms; focused tests cover numeric, full-width, date, glossary-boundary, and stored-tag cases.
Findings 1 actionable finding [P2] Remove the release-owned changelog entry
Security None None.

Live Verification

Command: node --import tsx src/entry.ts memory rem-harness --help

Result: FAIL (failed) — step 1 expect_output Preview REM reflections, candidate truths, and deep promotions without writing: expected terminal output was not visible within 30 seconds: "Preview REM reflections, candidate truths, and deep promotions without writing"

│

Assertions:

  • FAIL expect_output: Preview REM reflections, candidate truths, and deep promotions without writing

How this fits together

Memory Core derives concept tags from recalled memory content and later aggregates stored tags into REM reflection topics. The shared normalizer determines which input topics can appear in those reflections.

flowchart LR
A[Recalled memory] --> B[Concept tag extraction]
C[Stored recall tags] --> D[Shared topic normalization]
B --> D
D --> E[REM aggregation]
E --> F[Reflection topics]
Loading

Before merge

  • Remove the release-owned changelog entry (P2) - CHANGELOG.md is release-owned in this repository, and the release context already belongs in this PR body or squash commit. Keeping this introduced line makes a normal bug-fix PR modify the release artifact outside its generation flow.
  • Resolve merge risk (P1) - The introduced CHANGELOG.md entry bypasses the repository’s release-owned changelog process and should not land with this normal bug-fix PR.

Findings

  • [P2] Remove the release-owned changelog entry — CHANGELOG.md:236
Agent review details

Security

None.

PR surface

Source -30, Tests +5, Docs +1. Total -24 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 2 29 59 -30
Tests 2 33 28 +5
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 63 87 -24

Review metrics

Metric Value Why it matters
Production versus test delta production +29/-59 (net -30); tests +33/-28 (net +5); release artifact +1 The code change reduces duplicated policy, while the sole non-code addition is an out-of-process release artifact.

Stored data model

Persistent data-model change detected: unknown-data-model-change: extensions/memory-core/src/concept-vocabulary.ts, vector/embedding metadata: extensions/memory-core/src/concept-vocabulary.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Remove the release-owned entry (recommended)
    Drop the introduced CHANGELOG.md line and preserve the release-note context in the PR body or squash commit for release generation.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Remove the CHANGELOG.md hunk; retain the release-note context in the PR body and commit message.

Technical review

Best possible solution:

Land the canonical normalization repair without modifying CHANGELOG.md; retain the user-facing release context already recorded in the PR body and commit message.

Do we have a high-confidence way to reproduce the issue?

Yes, source-reproducible: the base directly aggregates legacy stored tags, while the current CLI and focused tests expose the REM path that consumes them.

Is this the best way to solve the issue?

No as submitted: the shared normalizer is the best repair, but the release-owned changelog hunk should be removed from this PR.

Full review comments:

  • [P2] Remove the release-owned changelog entry — CHANGELOG.md:236
    CHANGELOG.md is release-owned in this repository, and the release context already belongs in this PR body or squash commit. Keeping this introduced line makes a normal bug-fix PR modify the release artifact outside its generation flow.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 53380e5ca735.

Labels

Label changes:

  • add merge-risk: 🚨 other: The introduced release-owned changelog edit can bypass the repository’s release-generation ownership boundary.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides an after-fix source-CLI REM-harness exercise over seeded and reopened canonical SQLite state, with baseline/candidate results and raw-row preservation evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (linked_artifact): The PR body provides an after-fix source-CLI REM-harness exercise over seeded and reopened canonical SQLite state, with baseline/candidate results and raw-row preservation evidence.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove merge-risk: 🚨 session-state: Current PR review merge-risk labels are merge-risk: 🚨 other.
  • remove status: 📣 needs proof: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P2: The PR repairs bounded REM-topic quality without evidence of an urgent availability or security impact.
  • merge-risk: 🚨 other: The introduced release-owned changelog edit can bypass the repository’s release-generation ownership boundary.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (linked_artifact): The PR body provides an after-fix source-CLI REM-harness exercise over seeded and reopened canonical SQLite state, with baseline/candidate results and raw-row preservation evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides an after-fix source-CLI REM-harness exercise over seeded and reopened canonical SQLite state, with baseline/candidate results and raw-row preservation evidence.

Evidence

Acceptance criteria:

  • [P1] git diff --check.
  • [P1] node scripts/run-vitest.mjs extensions/memory-core/src/concept-vocabulary.test.ts extensions/memory-core/src/dreaming-phases.test.ts.

What I checked:

Likely related people:

  • steipete: Authored the reviewed maintainer rewrite and the immediately preceding Memory Core refactor in the central files. (role: recent area contributor; confidence: high; commits: ae06208a7206, 30e7ecb45435; files: extensions/memory-core/src/concept-vocabulary.ts, extensions/memory-core/src/dreaming-phases.ts)
  • ly-wang19: Authored the merged change that established the short technical-term behavior preserved by this repair. (role: introduced protected-glossary behavior; confidence: high; commits: bea3d292c732; files: extensions/memory-core/src/concept-vocabulary.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Remove the CHANGELOG.md hunk.
  • Let the remaining exact-head checks complete after the update.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (33 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-15T21:07:38.844Z sha ef9f59f279cc416d2ec0cd3552d07cf01e5ca92d :: needs real behavior proof before merge. :: [P1] Import the published session SDK facade | [P2] Match legacy date filtering to normalization
  • reviewed 2026-08-15T21:46:01.567Z sha ef9f59f279cc416d2ec0cd3552d07cf01e5ca92d :: needs real behavior proof before merge. :: [P1] Restore the published session SDK facade | [P2] Share the complete token-rejection policy
  • reviewed 2026-08-15T22:39:58.406Z sha ef9f59f279cc416d2ec0cd3552d07cf01e5ca92d :: needs real behavior proof before merge. :: [P1] Restore the published sessions SDK facade | [P2] Share the complete token-rejection policy
  • reviewed 2026-08-16T20:32:52.824Z sha 4cc1e7db912525d0300bf2f971808b490f18a382 :: needs real behavior proof before merge. :: [P1] Restore the published sessions SDK facade | [P2] Share the complete token-rejection policy
  • reviewed 2026-08-16T21:00:35.335Z sha a92ace52843457bcacedb891cee8deb0235c7b84 :: needs real behavior proof before merge. :: [P2] Share the complete legacy token-rejection policy | [P2] Remove the unrelated qmd glossary promotion
  • reviewed 2026-08-19T04:05:07.789Z sha a92ace52843457bcacedb891cee8deb0235c7b84 :: needs real behavior proof before merge. :: [P2] Share date rejection with legacy REM tags | [P2] Drop the unrelated QMD glossary promotion
  • reviewed 2026-08-25T04:46:13.405Z sha a92ace52843457bcacedb891cee8deb0235c7b84 :: needs real behavior proof before merge. :: [P2] Share the complete rejection policy with legacy REM tags | [P2] Remove the unrelated QMD glossary promotion
  • reviewed 2026-08-25T05:09:52.779Z sha a92ace52843457bcacedb891cee8deb0235c7b84 :: needs real behavior proof before merge. :: [P2] Delegate legacy tag validation to the canonical normalizer | [P2] Remove the unrelated QMD glossary entry

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 1, 2026
@synthalorian
synthalorian force-pushed the fix/dreaming-rem-junk-topics branch from 4a0ff10 to 4f11722 Compare August 1, 2026 08:02
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. P2 Normal backlog priority with limited blast radius. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 1, 2026
@synthalorian

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@a-yeyang

a-yeyang commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Re-scoped from current head (4f11722).

The fix in concept-vocabulary.ts looks good and sits at the right producer boundary — normalizeConceptToken is the single choke point every deriveConceptTags caller flows through (short-term-promotion record/utils/artifacts), so filtering there stops junk tags before they're persisted for recall and later aggregated by REM. Two cleanups before this is merge-ready:

  1. dreaming-phases.ts is unrelated formatter churn (+57/−13). Every hunk just re-wraps object literals ({ key, value } → multi-line, nextState: { ... } → multi-line). Running the repo formatter against current main —

    node_modules/.bin/oxfmt --check extensions/memory-core/src/dreaming-phases.ts
    → All matched files use the correct format.
    

    — confirms those lines are already correctly formatted on main, so this reformatting comes from a narrower local print width and will fail pnpm format:check in CI. Please drop those hunks and keep this PR scoped to the concept-vocabulary.ts change.

  2. The PR body is stale. It still documents a topicFilter config surface (additionalStopWords / filterNumbers / filterRanges / minTokenLength) with a JSON example, but none of that is in the current diff — the code now ships just the two stop-words plus the decimal/range numeric guards. Please update the body to match what actually lands, so reviewers and changelog generation aren't misled. (The built-in stop-list + broadened numeric filter is the better shape here anyway — no new config surface for something the defaults should handle.)

Separately, ClawSweeper's real-behavior-proof gate still applies: a redacted REM-path harness run (or persisted-memory result) showing kept / theme / 1.00 / 51-54 no longer reach reflections would close out the remaining blocker.

@synthalorian
synthalorian force-pushed the fix/dreaming-rem-junk-topics branch from 4f11722 to 01ff838 Compare August 1, 2026 19:42
@synthalorian

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@synthalorian
synthalorian force-pushed the fix/dreaming-rem-junk-topics branch from 01ff838 to e79e0e0 Compare August 1, 2026 22:16
@synthalorian

Copy link
Copy Markdown
Contributor Author

Real Behavior Proof — Legacy tag filtering in REM aggregation

What this fixes (P1)

The junk-topic filter only ran on NEW concept tags. Existing recall entries already had junk tags (kept, theme, 1.00, 51-54) persisted, and REM aggregated those old tags directly into reflections.

Changes

  1. isJunkConceptTag(): New exported predicate in concept-vocabulary.ts that shares the same policy as normalizeConceptToken — stop words, bare numbers, number ranges
  2. REM aggregation: dreaming-phases.ts now filters legacy persisted tags through isJunkConceptTag() before aggregating into reflection stats

Live test evidence

Test Files  1 passed (1)
Tests       14 passed (14)

Key tests:

  • ✓ filters out stop words like 'kept' and 'theme' (new tags)
  • ✓ filters out bare numbers like '1.00' (new tags)
  • ✓ filters out number ranges like '51-54' (new tags)
  • ✓ filters legacy persisted junk tags (REM aggregation)
  • ✓ allows meaningful tags (router, configuration, backup)

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 7, 2026
@synthalorian
synthalorian force-pushed the fix/dreaming-rem-junk-topics branch from 8b520f7 to ef9f59f Compare August 15, 2026 21:02
@synthalorian

Copy link
Copy Markdown
Contributor Author

Runtime Proof Generated ✓

Rebased onto latest main. All tests pass.

Vitest Results

✓ extension-memory ../../extensions/memory-core/src/concept-vocabulary.test.ts (14 tests) 82ms

Test Files  1 passed (1)
Tests  14 passed (14)

The fix correctly filters junk topics from REM phase extraction:

  • Stop words (kept, theme)
  • Bare numbers (1.00, 42)
  • Number ranges (51-54)

The filter is pure and stateless with no configuration surface.

Note on CI: The previous checks-node-changed-2 and checks-node-changed-4 failures were a pre-existing infrastructure issue with extensions/memory-core/src/memory/index.test.ts hanging for 300+ seconds. This is unrelated to this PR's changes.

Ready for re-review. 🦞

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P1 High-priority user-facing bug, regression, or broken workflow. and removed P2 Normal backlog priority with limited blast radius. labels Aug 15, 2026
@synthalorian
synthalorian force-pushed the fix/dreaming-rem-junk-topics branch from ef9f59f to 4cc1e7d Compare August 16, 2026 20:27
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label Aug 16, 2026
@synthalorian
synthalorian force-pushed the fix/dreaming-rem-junk-topics branch from 4cc1e7d to a92ace5 Compare August 16, 2026 20:54
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 16, 2026
@steipete steipete self-assigned this Aug 27, 2026
@steipete
steipete force-pushed the fix/dreaming-rem-junk-topics branch from a92ace5 to 823cd7f Compare August 27, 2026 17:14
Share canonical concept normalization across extraction and REM; reject numeric noise, preserve protected technical terms, and avoid duplicate normalized counts.

Co-authored-by: synthclaw <[email protected]>
@steipete
steipete force-pushed the fix/dreaming-rem-junk-topics branch from 823cd7f to ae06208 Compare August 27, 2026 17:20
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Aug 27, 2026
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: memory-core Extension: memory-core merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants