SkillsReviewed · ArabelaTso

Bisect-Aware Instrumentation

Bisect-Aware Instrumentation is an assistant skill for developers tracing regressions through Git history, but its examples and bundled runners need corrections to avoid misleading results. It combines Git bisect guidance with Bash and Python scripts for test classification, time limits and per-commit logging.

Researched 17 Nov 2026

In short.

Bisect-Aware Instrumentation is an assistant skill for developers finding which Git commit introduced a regression, but several examples and runner behaviors can misclassify commits unless corrected. Its useful features include explicit result codes, repeated test attempts, time limits, JSON logs and an optional command-duration threshold. Important limitations include an uninitialized result variable in a documentation example, lost skip codes in both runners and automatic skipping based on commit-message words. Nothing was executed; runtime compatibility, reliability and effectiveness were not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied skills/bisect-aware-instrumentation folder at commit 4f38503747e0617504bce5329283ef837d375c09: SKILL.md, both reference documents and both scripts, plus the repository-level LICENSE above that folder. Other Skills-4-SE resources, external documentation linked by the guides and changes after this snapshot were not assessed. No commands or scripts were executed; runtime behavior, compatibility, performance and successful regression detection remain unverified.

The overview

Identity

The resource is the skills/bisect-aware-instrumentation folder in ArabelaTso/Skills-4-SE. Its original location is [https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/bisect-aware-instrumentation].

It contains SKILL.md, two Git bisect reference documents, a Bash test template and a Python runner. The instructions are intended for an assistant helping instrument regression tests; the scripts can also be invoked directly. A specific assistant host or installation format beyond SKILL.md is not documented.

Assessment

The bundle offers a useful starting point when a regression has a repeatable test and known working and broken commits. It explains how to distinguish a detected regression from a commit that cannot be evaluated, and supplies concrete scripts rather than only conceptual advice.

It needs careful adaptation before use. Some documentation examples contradict their stated classification rules, and the supplied runners do not preserve every meaningful test exit code. Their behavior could direct the search toward the wrong commit or exclude relevant commits. No measured debugging-time improvement or successful regression investigation is established by the supplied material.

Users

The intended users are developers investigating failing tests, changed program output, broken builds or slower execution across Git history. Test and release engineers could use the same patterns when they already have a command that detects the change.

Beginners get explanations of manual bisection, automated bisection and result codes, but still need command-line Git and basic scripting knowledge. Experienced developers gain editable starting points for project-specific build handling, logging and repeated attempts. The resource does not provide a reproducible test for an arbitrary bug.

Capabilities

The Bash template runs make clean and make build, skips failures in those preparation steps, runs make test with a default 30-second limit and writes a timestamped text log named for the current commit.

The Python runner accepts one shell command, repeats it, captures its output and writes a per-commit JSON log containing attempt results, durations and the final classification. Its default is one attempt. Despite the option name, --retries 3 means three total attempts, not an initial attempt plus three retries.

The Python runner can classify otherwise successful attempts as a performance regression when their average command duration exceeds a configured positive threshold. It does not automatically install dependencies, isolate the environment or manage a collection of separate test commands.

Using it

Requirements

A usable investigation needs enough Git history to include known working and broken endpoints, a repeatable regression check, and dependencies that can support the historical commits being evaluated.

The Bash template assumes Bash, Git, make, timeout, tee, mktemp and ordinary Unix utilities, plus project-specific clean, build and test targets. The Python runner uses Python 3 standard-library modules and Git, together with whatever tools its supplied shell command needs. Supported operating systems and exact interpreter or Git versions are not specified.

No model API calls appear in the scripts. Loading the instructions into an assistant depends on that assistant's skill support; host-specific compatibility and installation requirements are unknown.

Mechanism

Git bisect narrows a range of commits by checking intermediate revisions. An automated test communicates its judgment through an exit code: 0 means good, 125 means untestable and therefore skipped, and the documented ordinary failure codes mean bad. The quality of the result depends on those judgments matching the regression being investigated.

In the Python runner, all attempts passing produces GOOD, all attempts failing produces BAD, and a mixture produces SKIP. A detected timeout stops further attempts and produces SKIP. Both runners also contain commit-message filters that can skip a revision before testing.

A build failure needs interpretation in context. An unrelated build problem can make a functional regression untestable, while a build failure is the actual BAD result when investigating a broken build. The supplied material contains examples of both, despite some reference advice treating build failures categorically as skips.

Setup

The documented Bash approach is to copy the template, replace its build and test commands, make the copy executable and supply it to git bisect run. Its default Make targets and temporary-directory cleanup require review for the particular project.

The Python approach requires --test-command, with optional --retries, --timeout and --performance-threshold arguments. Build preparation and dependency checks must be supplied separately or incorporated into the command with deliberate result handling.

Before starting a search, establish the intended result on both endpoints and decide which failures count as untestable. A practical adaptation is to keep the runner and retained logs somewhere that remains available while Git switches historical revisions. No assistant-specific installation procedure is supplied.

Example

An illustrative investigation could begin with git bisect start BAD_REF GOOD_REF, replacing the two placeholders with validated repository references. A corresponding runner command is git bisect run python3 /stable/path/bisect_wrapper.py --test-command "pytest tests/" --retries 3 --timeout 30, with the runner path and test command adapted to the project.

For a commit that reaches testing, the Python logic labels three passes GOOD, three failures BAD, mixed results SKIP and a detected timeout SKIP. The guide then describes inspecting git bisect log and ending the session with git bisect reset. This is an example of intended use, not an executed investigation or evidence that the sample test exists.

Assessment & evidence

Limitations

The initial SKILL.md test-script example assigns TEST_RESULT only when the command fails. On success, an unset variable can make its comparisons fail and send execution to the BAD branch. Other examples map every nonzero test result to SKIP or BAD, even where the surrounding explanation calls for distinguishing timeouts from actual regressions.

Neither bundled runner preserves a test command's explicit 125 skip result. The Bash runner maps it to BAD; the Python runner treats it as a failed attempt. Missing commands and other infrastructure failures can similarly become BAD classifications unless handled separately. The Python runner does not validate a positive attempt count: --retries 0 can produce GOOD without executing a test when no active performance threshold is used.

Commit-message filters skip words such as broken regardless of test behavior, so even a commit described as fixing a broken build can be excluded. The Python performance check measures elapsed time for the entire shell command, and a threshold of 0 is ignored because the condition uses its truth value.

The Bash template removes every path matching /tmp/test_cache_*, hides build output and exits on timeout before saving test output to its main log. The Python JSON filename is reused for the same commit, so a later invocation can overwrite an earlier record. These observations come from the supplied source; their runtime impact was not assessed.

Reasoning

The resource's practical value is bringing test classification, repeated attempts and per-commit records into one regression-debugging package. Those details address concrete causes of misleading bisections described in its guides.

The implementation limitations matter because each GOOD or BAD result changes the search, while a SKIP excludes a commit from direct evaluation and may leave the culprit uncertain. A dependable adaptation must tie every classification to the chosen regression and validate the runner against known outcomes. The presence of retries and logs alone does not establish accurate results.

Alternatives

The supplied guide describes manual Git bisect for cases requiring human observation, and native git bisect run with a small project-specific script for an existing deterministic test. These approaches can be sufficient without the Python runner's repeated attempts or duration checks.

Within the bundle, the Bash template suits a Make-based preparation sequence, while the Python runner supplies structured attempt records and configurable repetition. Neither is established as superior by comparative results. Other assistant skills and commercial debugging tools were not assessed.

Evidence

The available source comprises SKILL.md, references/exit_codes.md, references/git_bisect_guide.md, scripts/bisect_template.sh and scripts/bisect_wrapper.py, together with the repository-level LICENSE. The instructions establish intended use, and the script contents support the implementation observations.

No recorded executions, successful regression investigations, compatibility results or measured benchmarks accompany these files. Example thresholds and estimates in the guides are illustrative, not measured results for this resource. Nothing was executed, so actual runtime behavior and effectiveness remain unverified.

Access & freshness

Costs

The Apache 2.0 notice grants copyright permissions without a license charge. The supplied material gives no subscription, hosting, support or assistant-provider pricing.

Actual operating cost is unknown. It depends on historical builds, repeated test attempts, dependency installation, computing resources and any assistant service used with the instructions. No cost measurements or measured speed savings are supplied.

Rights

The captured repository-level LICENSE contains Apache License 2.0. It permits reproduction, modification and redistribution subject to its conditions. Redistribution requires a license copy, retention of applicable notices and prominent change notices in modified files. If an applicable NOTICE file accompanies the work, its required attribution notices must also be preserved.

The license includes a limited contributor patent grant, excludes general trademark permission and disclaims warranties. No separate license or NOTICE file appears in the supplied selected files.

Freshness

The supplied snapshot identifies source commit 4f38503747e0617504bce5329283ef837d375c09 and capture time 2026-11-17T02:19:29.876Z. The corresponding fixed source location is [https://github.com/ArabelaTso/Skills-4-SE/tree/4f38503747e0617504bce5329283ef837d375c09/skills/bisect-aware-instrumentation].

No release number or last-maintained date for this skill is stated in the supplied files. The capture timestamp does not establish when the code was written or updated. Subsequent changes and current assistant or operating-system compatibility are unknown.

Actions

Before adopting the runners, correct result initialization, preserve intentional skip codes, reject nonpositive attempt counts and replace broad commit-message skipping with project-specific criteria. Define explicitly whether build failures and timeouts represent the target regression or an inability to evaluate it.

Adapt build commands and cleanup paths, retain useful failure output and preserve distinct records for repeated investigations. Then verify the adapted runner on known working, broken and untestable cases before allowing it to classify a historical range. These are recommended next steps; none was performed here.

Obtain the complete five-file skill folder when using its referenced scripts and guides. Preserve the applicable license and notices when copying or redistributing it.

Evidence for this report

LICENSEnotice · checked 2026-11-17
skills/bisect-aware-instrumentation/SKILL.mdselected · checked 2026-11-17