feat: add logs-to-training pipeline prototype (PII-safe ingest, SFT/DPO export, validation, split integrity)#4
Open
theUtkarshRaj wants to merge 3 commits into
Conversation
…te CLI) Adds logs_to_training package: Langfuse-style ingest, redaction, complexity tags, tool consistency checks, LoRA-ready SFT JSONL, DPO candidates with hard-negative templates, disjoint split export, gold_examples fixtures, and pytest coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
5 tasks
Author
|
Built this as a full implementation-first prototype for the complete DMP midpoint slice, but with particular emphasis beyond baseline ingest/export on downstream governance layers:
My intent was to complement core prototype directions with stronger training-readiness, quality safeguards, and reviewer tooling. Happy to modularize or split advanced layers if narrower review boundaries are preferred. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds an implementation-first prototype for transforming production QA + agentic logs into privacy-safe, trajectory-aware training datasets.
Included
Motivation
This aligns directly with the DMP 2026 project goal of converting production logs into safe, trajectory-aware datasets suitable for SFT (LoRA) and DPO workflows, with emphasis on data quality, privacy, and downstream training readiness.
Validation
Notes
This is designed as a modular prototype aligned with midpoint milestone goals. If preferred, I’m happy to split this into smaller PRs (core pipeline / validation / DPO extensions) for easier review.