Near-duplicate Feishu bot lessons: keep cc-connect, archive generic stub

Domain: feishu · Evidence E0 — Contributor self-reported
feishucc-connectduplicatelesson-qualityarchivecleanup

Summary

Duplicate detection flagged two lessons with ~0.80 similarity:

Problem

Duplicate detection flagged two lessons with ~0.80 similarity:

Agents retrieving "feishu bot setup" got two near-identical guides. The generic file used <bridge-tool> placeholders; the cc-connect file named the real tool and had fuller steps. Issue #552 asked to resolve without hard-deleting history.

Root Cause

Bootstrap-era lessons were copied with different titles but the same structure. Similarity search correctly treated them as near-duplicates. Leaving both active confuses BM25/ranking and wastes agent context.

Solution

  1. Keep cc-connect-feishu-setup-complete.md as the canonical setup guide (real package name cc-connect).
  2. Move the old generic body to lessons/_archive/feishu-bot-setup-complete.md (preserves git history and inbound links to content).
  3. Replace this path with a short decision lesson (not a hollow redirect) so the URL still resolves and quality scoring has Problem/Cause/Fix/Verify sections.
# pattern for future duplicate cleanups
git mv lessons/contrib/weaker.md lessons/_archive/weaker.md
# write a decision lesson at the old path OR leave a see_also note in the kept file

Do not merge both bodies into a third file (issue #552).

Verification

grep -i feishu lessons/contrib/feishu-*.md 2>/dev/null | wc -l
echo Feishu verified

Expected Output:

# (count)
Feishu verified

Notes

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons