feat(annotate-mlflow-trace): add trace tagging and feedback skill - #20
feat(annotate-mlflow-trace): add trace tagging and feedback skill#20V-3604 wants to merge 1 commit into
Conversation
|
@B-Step62 can we route this to someone to look at please |
|
@B-Step62 Hi, I updated this to fit MLflow 3.14. Trace selection now scopes to the current project using the |
fb9ebcb to
39bf60e
Compare
There was a problem hiding this comment.
@V-3604 Do we need this script? The native CLI should support the primitive operations. We would like to avoid having many bespoke scripts.
There was a problem hiding this comment.
If there is a missing primitive, let's add it to the CLI.
There was a problem hiding this comment.
Agreed, dropped the script. mlflow traces set-tag, log-feedback, and search already cover everything it did, including --source-type HUMAN, --rationale, and --source-id.
The one thing I thought might be missing was scoping trace selection to the current project, but that filters on the mlflow.trace.working_directory metadata, so there is nothing to add to the CLI.
SKILL.md now documents the annotation surface directly: the tag and feedback commands, how to find the trace to annotate, tagging alongside feedback so assessments stay searchable, and log-expectation for ground truth. The PR is one SKILL.md plus the three registration lines.
Signed-off-by: Varshith <kvarshithgowda@gmail.com>
39bf60e to
59ef943
Compare
annotate-mlflow-tracelets a coding agent tag and leave feedback on the current session's MLflow trace from the same conversation, so sessions can be labeled for evaluation without opening the UI. A single script (trace_annotate.py) exposestag,feedback, andlist.Fixes #13
Trace selection (updated for MLflow 3.14)
tagandfeedbackdefault to the most recent trace from the current project, resolved by themlflow.trace.working_directorymetadata thatmlflow.claude_codewrites in 3.14, so a shared experiment does not surface another project's trace. Selection falls back to the most recent trace on older versions, and--trace-idtargets a specific trace. This is the agent and CLI path for writing assessments; it complements Review Queues, which is the UI path for the same data.Decisions on the open questions in #13
tag-traceandfeedback-traceshare a workflow and a script, so they are a singleannotate-mlflow-traceskill with subcommands rather than two directories.skip_skill_traces.pyis included here as an optional Stop-hook pre-filter so annotation turns do not log their own trace. A native skip list instop_hook_handleris probably the better long-term home, and I can move it there if that is preferred. The skill works without the hook; the hook only suppresses the administrative trace.Notes
Base directory for this skill:marker Claude Code injects, so it is specific to Claude Code. Other agents can still annotate by--trace-id.