lean-bisect

Bisect Lean toolchain versions to pinpoint regression-causing commits.

2|Updated May 26, 2026
One-click install
npx skills add https://github.com/r-irbe/proof-skills --skill lean-bisect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean-bisect
Source: https://github.com/r-irbe/proof-skills/tree/main/skills/_overrides/lean-bisect
Command: npx skills add https://github.com/r-irbe/proof-skills --skill lean-bisect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bisects Lean toolchain versions to pinpoint regression-causing commits or nightly changes in behaviour, enabling rapid isolation of regressions.

Core Features & Use Cases

  • Automated regression discovery: Use lean-bisect to compare endpoints across toolchain ranges and identify the exact commit that changed behaviour.
  • Flexible workflow: Supports self-contained test files, #guard_msgs, and flags like --ignore-messages, --nightly-only, and --timeout to tailor the search.
  • Operator handoffs and reporting: Guides users to produce a Zettelkasten note or upstream report via @lean-zettelkasten / @lean-pr.

Quick Start

Run the lean-bisect script on a minimal test file to locate the regression between two toolchain versions.

Frequently Asked Questions about lean-bisect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the exact commit that caused a Lean toolchain regression?

To find a Lean toolchain regression, you provide a self-contained test file and two endpoint versions. The bisect process automatically compares toolchain versions to pinpoint the exact commit that changed behavior.

Can I bisect Lean nightly builds using a #guard_msgs test file?

Yes, you can bisect Lean nightly builds using a #guard_msgs test file. The toolchain bisecting process supports #guard_msgs workflows and includes --nightly-only and --ignore-messages flags to tailor the search.

What do I need to prepare before bisecting Lean toolchain versions?

Before bisecting Lean toolchain versions, you need a self-contained Lean test file isolating the regression and access to the targeted toolchain environment. The test file must reproduce the behavior change across the specified commit or nightly range.

What is the best way to isolate a behavior change across Lean nightly versions?

The best way to isolate a behavior change across Lean nightly versions is automated bisecting across the toolchain range. This process compares nightly endpoints to identify the exact commit or nightly change that altered behavior.

Does Lean toolchain bisecting work with custom timeout and message filtering flags?

Lean toolchain bisecting works with custom timeout and message filtering flags. It supports --timeout to manage execution limits and --ignore-messages to filter message-specific behavior during the regression search.

How do I report a Lean regression after locating the responsible commit?

After locating the responsible commit, you report a Lean regression by producing a Zettelkasten note or upstream report. The process guides users to generate these reports via @lean-zettelkasten or @lean-pr for upstream submission.