Skip to content

feat(hygiene 5/5): learning corpus → Graphiti episodes#10

Merged
cryptoxdog merged 2 commits into
mainfrom
claude/hygiene-5-learning-episodes
Jul 20, 2026
Merged

feat(hygiene 5/5): learning corpus → Graphiti episodes#10
cryptoxdog merged 2 commits into
mainfrom
claude/hygiene-5-learning-episodes

Conversation

@cryptoxdog

Copy link
Copy Markdown
Collaborator

Part 5 of 5 — scoped split of the Cursor-Governance Hygiene Commit Pack.

What

Transforms the learning/ corpus into 46 Graphiti-ingestible episode files (source/group_id/timestamp), keeping originals. Makes the learning signal queryable via the knowledge graph.

Split context

1 of 5 independent, disjoint PRs — any merge order. Applies cleanly on main (git am verified). Additive only (+836 lines across 7 files).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Rr6wpk9eehnJdRmh5BwWGG


Generated by Claude Code

… episodes

Added transform_learning_to_episodes.py script that converts:
- repeated-mistakes.md -> 7 episodes
- violations.jsonl -> 13 episodes
- audit_log.jsonl -> 21 episodes
- quick-fixes.md -> 3 episodes
- solutions/*.md -> 2 episodes

Output in learning/graphiti-episodes/ with manifest.json.
Original files preserved (signal data is sacred).
Ready for batch ingestion via graphiti_sink.emit_session().
Comment thread ops/scripts/transform_learning_to_episodes.py Fixed
@cursor

cursor Bot commented Jul 20, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@cryptoxdog

Copy link
Copy Markdown
Collaborator Author

Fixed (6f5b549): removed the unused import sys — confirmed no sys. usage anywhere in the file.

@sonarqubecloud

Copy link
Copy Markdown

@cryptoxdog
cryptoxdog merged commit 3fe1798 into main Jul 20, 2026
2 checks passed
@cryptoxdog
cryptoxdog deleted the claude/hygiene-5-learning-episodes branch July 20, 2026 02:30
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