Skip to content

Strip wiki and conflicts from shipping product - #78

Merged
jginorio merged 2 commits into
mainfrom
cursor/strip-wiki-conflicts-de63
Sep 15, 2026
Merged

jginorio merged 2 commits into
mainfrom
cursor/strip-wiki-conflicts-de63

Conversation

@jginorio

@jginorio jginorio commented Sep 15, 2026 •

Copy link
Copy Markdown
Owner

Product focus

Context101 mainline is sources + retrieve (library, connectors, ingest, brains, suggestions, MCP search_knowledge, admin POST /api/wiki/retrieve). Not a wiki app. Not a conflicts/Opus-on-query product.

Why

Wiki generation stays paused/beta. Conflicts detection burns Opus on query and ingest. PR #77 (#77, cursor/hide-wiki-ui-6639) only hid wiki UI behind WIKI_UI_ENABLED. That is not enough.

This PR supersedes #77. Do not merge #77 as-is. The useful Settings → Advanced cleanup (embeddings-only, no wiki model tab, no Wiki regeneration item) is folded in here. Wiki settings for isolated testing live on cursor/wiki-isolated-de63 at /wiki/settings, not Advanced.

What changed

Conflicts (Opus off the shipping path)

  • Removed Conflicts from admin nav.
  • /conflicts redirects to /knowledge.
  • Deleted web/lib/conflicts/, /api/conflicts/*, and the conflicts page so main cannot call the Opus judge.
  • Removed reportEvidence / conflictScope from web/lib/wiki-retrieve.ts, /api/wiki/retrieve, and /api/wiki/chat.
  • Removed ingest CONFLICT_EVIDENCE_URL posts (cdk/lambda/auto-ingest) and CDK env wiring.
  • Removed MCP search_knowledge conflict evidence posts.
  • CONFLICT_JUDGE=off is no longer the control — detect plumbing is gone.

Wiki (parked, not flagged)

  • Removed Wiki nav, Ask the brain, Go to wiki.
  • /wiki and /wiki/* redirect to /knowledge.
  • Settings has no wiki regeneration item and no wiki model tab. Advanced is embeddings-only.
  • EventBridge WikiGenSchedule stays disabled.
  • AUTO_TRIGGER_CODE_WIKI is false.
  • wiki-generator-ts/ and the CDK wiki image stay in the stack. See WIKI_PARKED.md.
  • Raw-first retrieve still excludes wiki/ and source=wiki / code-wiki.

Isolated restore (draft PRs)

  1. Wiki: Isolated restore: wiki UI + settings (no auto schedule) #79 (cursor/wiki-isolated-de63) — restores wiki UI + /wiki/settings. Does not enable EventBridge or AUTO_TRIGGER_CODE_WIKI.
  2. Conflicts: Isolated restore: conflicts UI + evidence + judge #80 (cursor/conflicts-isolated-de63) — restores conflicts UI + evidence hooks + judge.

Tests (re-run after strip)

web test:      103 pass, 0 fail
web tsc:       exit 0
web build:     exit 0
cdk test:      29 pass, 0 fail
search_filter: 11 tests OK

CDK synth asserts no Lambda CONFLICT_EVIDENCE_*, AUTO_TRIGGER_CODE_WIKI=false, and WikiGenSchedule State DISABLED.

Retrieve / ingest / MCP source proof: wiki-retrieve.ts, /api/wiki/retrieve, /api/wiki/chat, auto-ingest/index.mjs, and server.py have no conflictScope / reportEvidence / CONFLICT_EVIDENCE / _report_conflict_evidence. web/lib/conflicts is deleted.

Parked redirects on :3000:

/wiki           307 → /knowledge
/wiki/ask       307 → /knowledge
/wiki/settings  307 → /knowledge
/conflicts      307 → /knowledge
/conflicts/foo  307 → /knowledge

Authenticated admin chrome: nav is Knowledge / Suggestions / Sources / Brains only. Settings → Advanced is embeddings-only (no Wiki regeneration / Wiki model). /wiki and /conflicts land on Knowledge.

Knowledge nav without Wiki or Conflicts
Settings Advanced embeddings only
Sources page with four-item shipping nav
shipping_admin_nav_sources_settings_redirects.mp4

Open in Web Open in Cursor 

Mainline is sources + retrieve only. Remove Wiki/Conflicts from admin
chrome, stop conflict evidence/judge on query, ingest, and MCP, and park
wiki generation (schedule stays off, AUTO_TRIGGER_CODE_WIKI is false).

Supersedes #77, which only hid wiki UI behind a flag.

Co-authored-by: Jaime Ginorio <jaime.ginorio@finditpr.com>
@vercel

vercel Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
context101 Error Error Sep 15, 2026 10:53pm UTC

includes() on a narrowed label union rejected the Wiki/Conflicts
literals we assert are absent.

Co-authored-by: Jaime Ginorio <jaime.ginorio@finditpr.com>
@jginorio
jginorio marked this pull request as ready for review September 15, 2026 23:05
@jginorio
jginorio merged commit 91b0d46 into main Sep 15, 2026
2 of 3 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 8743c701 Deployed Sep 15, 2026 by vercel[bot]
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.

2 participants