Skip to content

WorkGraph production features#43

Merged
G9Pedro merged 1 commit intomainfrom
cursor/workgraph-production-features-6c6d
Mar 11, 2026
Merged

WorkGraph production features#43
G9Pedro merged 1 commit intomainfrom
cursor/workgraph-production-features-6c6d

Conversation

@G9Pedro
Copy link
Contributor

@G9Pedro G9Pedro commented Mar 11, 2026

Implement thread context store, webhook event deduplication, and standalone thread creation to improve WorkGraph's production usage and reliability.

This PR addresses three key areas:

  1. Thread Context Store: Adds per-thread searchable context, including wg_thread_context_add, wg_thread_context_search, wg_thread_context_list, wg_thread_context_prune MCP tools, and a context summary in workgraph_thread_claim responses, enabling agents to retrieve relevant thread-specific information.
  2. Webhook Event Deduplication: Introduces deliveryId and payloadDigest based deduplication in the webhook gateway with a bounded LRU cache, preventing duplicate processing of redelivered GitHub webhooks.
  3. Standalone Thread Creation: Adds a new wg_create_thread MCP tool, allowing the creation of top-level threads without requiring a parent, enhancing thread management flexibility.
Open in Web Open in Cursor 

Co-authored-by: G9Pedro <G9Pedro@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Mar 11, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@G9Pedro
Copy link
Contributor Author

G9Pedro commented Mar 11, 2026

🐘 Code Review — Approved

Clean PR. Three well-scoped production features with tests for each:

Thread Context Store — BM25 search, add/list/search/prune/summarize. Context summary auto-injected on thread_claim (good agent UX). Solid normalization and frontmatter handling throughout.

Webhook Dedup — In-memory LRU with TTL (5min, 1000 entries). Checks deliveryId then payloadDigest fallback. Acceptable for GitHub retry protection — resets on restart but retries happen within minutes.

Standalone Thread Creationwg_create_thread with idempotency key + replay conflict detection. Proper auth gates (thread:create + mcp:write).

CI failure is pre-existing — all errors in tests/stress/*.test.ts (missing tsconfig path mappings for @versatly/workgraph-kernel). Not caused by this PR.

Ready to merge. 👍

@G9Pedro G9Pedro marked this pull request as ready for review March 11, 2026 02:04
@G9Pedro G9Pedro merged commit da474d0 into main Mar 11, 2026
1 of 2 checks passed
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