Skip to content

Feature/multi client distribution#4

Closed
nTEG-dev wants to merge 3 commits into
mainfrom
feature/multi-client-distribution
Closed

Feature/multi client distribution#4
nTEG-dev wants to merge 3 commits into
mainfrom
feature/multi-client-distribution

Conversation

@nTEG-dev

Copy link
Copy Markdown
Member

What

Brief description of what this PR does.

Why

Motivation — what problem does this solve?

How to Test

Steps to verify the change works:

  1. ...
  2. ...

Checklist

  • npm run test:unit passes
  • npm run test:e2e passes (if tool/CLI changes)
  • New tests added for new functionality
  • No breaking changes (or documented below)
  • Docs updated (if user-facing)

Breaking Changes

None / Describe what breaks and migration path.

Claude and others added 3 commits February 17, 2026 16:01
… tool

Tool descriptions and field hints now guide agents to frame scars as
knowledge discoveries rather than self-criticism. Baseline measured:
34% explicit, 43% passive, 21% dead weight. Target: explicit ↑ 45%+,
dead weight ↓ 10%.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
record_scar_usage and record_scar_usage_batch now fall back to
detectAgent() and getCurrentSession() when caller omits agent/session_id.
Reduces null entries in scar_usage table.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…horitative (OD-726)

Local-only threads (in threads.json but not in Supabase active set) were
being unconditionally preserved, assuming they were mid-session creates not
yet synced. In reality, most were resolved/archived in Supabase — the NOT-IN
query excluded them, making them indistinguishable from truly local threads.

Now only preserves local-only threads that have a valid ID and were created
within the last 24h. Stale ghosts are dropped with a log message.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nTEG-dev nTEG-dev closed this Feb 18, 2026
CLCrawford-dev pushed a commit that referenced this pull request May 25, 2026
Setup SQL now handles upgrades gracefully:
- ALTER TABLE ADD COLUMN IF NOT EXISTS for all columns (runs before
  indexes so embedding columns exist before ivfflat index creation)
- DROP POLICY IF EXISTS before CREATE POLICY (policies have no
  IF NOT EXISTS clause)
- DROP TRIGGER IF EXISTS before CREATE TRIGGER
- CREATE OR REPLACE FUNCTION for RPC functions (already idempotent)

Users can re-run `gitmem-mcp activate` or apply setup SQL again after
upgrading gitmem-mcp and any new columns/tables will be added without
errors or data loss.

Verified: schema applies cleanly on fresh DB and re-runs without error
on existing DB with data.

Resolves GIT-45 concern #6 (no schema migration path).
Also resolves concern #4 (pgvector confirmed available on Supabase free tier).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant