Skip to content

fix push override#251

Merged
moshe-kabala merged 5 commits into
masterfrom
fix-push-override
Jun 21, 2026
Merged

fix push override#251
moshe-kabala merged 5 commits into
masterfrom
fix-push-override

Conversation

@moshe-kabala

Copy link
Copy Markdown
Contributor
  • Update api
  • CLI: consolidate metric direction + insights into update_metric_config
  • CLI: prompt to run evaluation on push when --eval is omitted (default Yes)

moshe-kabala and others added 3 commits June 21, 2026 15:42
The engine contract merged update_metric_direction + update_insights into a
single update_metric_config (recalculates metric direction AND insights).
Match it in the CLI:
- updateActionAliases: metric_config is canonical; the old metric_direction /
  direction / insights values are kept as back-compat aliases that map to
  update_metric_config.
- change-option picker: "Metric direction" + "Insights" become one
  "Metric config" option.
- FormatEvaluatePlan switch + push --update help text updated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… Yes)

When `leap push` runs without --eval (or -u, which implies it), interactively
ask whether to run evaluation after the push, defaulting to Yes:
- New version: "Run evaluate after push?"
- Overwrite: ask "What do you want to update?" FIRST, then "Run update-evaluate
  after push?" (or "Run evaluate after push?" when the changes trigger a full
  re-evaluate) — so the label matches what will actually run.
Skipped when stdin isn't a terminal, so scripted/piped pushes keep the explicit
--eval requirement.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread pkg/model/evaluate.go Outdated
"metric-config": tensorleapapi.UPDATEACTION_UPDATE_METRIC_CONFIG,
// update_metric_config recalculates metric direction AND insights, so the
// former metric-direction / insights values map onto it (back-compat).
"metric_direction": tensorleapapi.UPDATEACTION_UPDATE_METRIC_CONFIG,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is "metric_direction" appearing twice? Also, what is the difference between "direction" and "metric_direction"

@roytl roytl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left some commends

moshe-kabala and others added 2 commits June 21, 2026 16:21
metric_config is the canonical value after the consolidation; the old
metric_direction / metric-direction / direction / insights aliases all mapped
to it redundantly. Keep only metadata, metric, metric_config (metric-config),
visualization (viz). Old values now produce a clear "invalid --update value"
error instead of silently aliasing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
triggerEvaluate gates on in.runEval, but the prompt only returned a bool without
setting it — so answering Yes built the right dispatch yet triggerEvaluate bailed
out and nothing ran. Set in.runEval = true on confirm (new + overwrite). Also
un-gate the canUpdateEvaluate->reset conversion so the prompt label and dispatch
are correct without --eval too (a version with no eval data runs a fresh
evaluate instead of a doomed update-evaluate).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@moshe-kabala moshe-kabala merged commit 32aedf2 into master Jun 21, 2026
2 checks passed
@moshe-kabala moshe-kabala deleted the fix-push-override branch June 21, 2026 15:12
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