chore(core): log replication-op emit failures in visibility/applicability mutators#1107
chore(core): log replication-op emit failures in visibility/applicability mutators#1107kunickiaj wants to merge 1 commit into
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
…lity mutators updateMemoryVisibility and updateMemoryApplicability both wrapped recordReplicationOp in a silent try/catch with "Non-fatal" as the only comment. The intent (don't fail the user-facing mutation on a replication hiccup) is correct, but the silence hides whatever actually broke the replication path — peers stop learning about the change and no signal reaches the operator. Replace the swallow with a structured console.warn using the existing [codemem] prefix convention. Includes the memory id and the error message so a failure leaves a forensic trail without crashing the caller. Behavior is otherwise unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
b241abf to
a68b608
Compare
97a4fd1 to
6dcf0ff
Compare
|
Scrapping the layered sticky-rules feature stack. The manual user-pinning premise — "user finds a memory in the feed and clicks a dropdown to broaden its scope" — is friction nobody will reach for. The valuable sticky rules ("use fish shell", "no praise filler") are not memories users would find and pin; they are recurring patterns the observer should infer, and the canonical homes for them already exist ( Salvaging the one pre-existing bug surfaced during this work as a focused standalone PR: the silent |

Description
updateMemoryVisibilityandupdateMemoryApplicabilityboth wrappedrecordReplicationOpin a silenttry/catchwith"Non-fatal"as the only comment. The intent (don't fail the user-facing mutation on a replication hiccup) is correct, but the silence hides whatever actually broke the replication path — peers stop learning about the change and no signal reaches the operator.This replaces the swallow with a structured
console.warnusing the existing[codemem]prefix convention (matches the rest of the codebase — e.g.,db.ts,observer-client.ts,sync-discovery.ts). The warning includes the memory id and the error message so a failure leaves a forensic trail without crashing the caller. Behavior is otherwise unchanged.Type of Change
Testing
pnpm run tsc,pnpm run lint,pnpm run test) — workspace 1995/1995[codemem]log linesChecklist
pnpm run lintpasses for touched files)