Expand description
Find instruction-count steps that have already landed on a branch.
tak compare gates a pull request before it merges. Nothing looked at what
merged anyway: a gate that was not required, an override, a direct push, or
several changes that each stayed under the threshold. This walks a branch’s
recorded first-parent history and reports where each series stepped.
A step detector, deliberately, not a change-point engine. E-divisive means (Hunter) and its relatives exist to find shifts in noisy data. Instruction counts reproduce to ~0.02%, so a move between consecutive recorded points larger than a 1% gate is the change point, and a statistical model would only add ways to be wrong. Wall clock is noisy enough to need one, and it is exactly the metric that must never fail a build — so it is shown beside a step for context and never examined for one.
Everything below gather is a pure function over (sha, records)
sequences, so the rules are tested without a repository.
Structs§
- Detection
- Drift
- A rise that no single step explains.
- Step
- A move between two consecutive recorded points of one series.
Enums§
- Cutoff
- Why a walk stopped before its window filled, when the reason is the walk’s and not the project’s.
Constants§
- SCAN_
LIMIT - How many first-parent commits a walk may cover while filling its window.
Functions§
- analyze
- Find the steps in a walk.
walkedis oldest first and ends at the head. - cutoff
- Decide whether the walk was cut short, and by what.
- gather
- Walk
head’s first-parent history and read the notes along it. - markdown
- Render a detection as markdown, in the same shape as
compare’s report so the two read alike in a job summary. - select
- Choose the commits to walk: from the head back to the
window-th recorded commit, returned oldest first. - short
- The first 12 characters of a SHA, for display. Bounded rather than sliced at a fixed 12, so an abbreviated or empty name can never panic a report.
Type Aliases§
- Walk
- Commits oldest first, each with the records attached to it — empty where nothing was recorded, which is what makes a range visible.