# Benchmarks Generated by `bench/bench.py report` from `bench/results/`. Rows measured under an older protocol are marked ⚠ and left out of the means. Protocol 2 (2026-09-02) fixed the comparison so both sides do the same work. Protocol 3 (2026-09-04) added the SCIP-covered useful-line ratio next to the strict one, and changed no earlier number. ## Exact-search defaults (2026-09-22) Originating PR: [#13](https://github.com/thiagodmont/greeg/pull/13). Measurement time: 2026-09-22T16:33:52Z (estimate from first dataset commit [468e287](https://github.com/thiagodmont/greeg/commit/468e287304d20e056e8f1cf8a55f97983efb30a3); execution time was not recorded). Focused comparison of `greeg 0.6.0+1acde07fa` against `greeg 0.6.0+1acde07fa.dirty`. The candidate contains the exact/discovery policy change. These measurements are separate from the older full-corpus tables below. macOS-26.5-arm64-arm-64bit-Mach-O, 12 logical CPUs; 256 generated Rust files (1,287,368 bytes). 31 randomized paired runs per case after 3 warmups; release binaries, one reader thread, warm caches, `--fresh stat`, sessions/statistics disabled. Times include process startup. Tokens count stdout plus stderr with `o200k_base`. **Correctness:** stdout and exit-status parity with ripgrep 15.2.0 improved from 10/16 to 16/16 machine-output cases. The improvement removes unwanted suggestions on exact misses; it is not a general ripgrep-compatibility score. ### Exact misses | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 10.756 → 7.019 | 14.078 → 10.384 | 68 → 3 | | scan | word miss count | 10.724 → 7.096 | 14.488 → 11.627 | 84 → 3 | | scan | split miss unlimited | 13.219 → 7.183 | 17.523 → 10.568 | 3 → 3 | | scan | fuzzy miss unlimited | 13.435 → 7.525 | 18.319 → 12.364 | 3 → 3 | | scan | absent files | 12.394 → 6.980 | 16.308 → 9.427 | 3 → 3 | | index | case miss files | 7.720 → 6.906 | 9.431 → 7.861 | 68 → 3 | | index | word miss count | 7.720 → 6.921 | 9.180 → 8.804 | 84 → 3 | | index | split miss unlimited | 9.013 → 7.022 | 10.272 → 8.013 | 310 → 3 | | index | fuzzy miss unlimited | 10.825 → 6.451 | 12.255 → 8.432 | 309 → 3 | | index | absent files | 11.198 → 6.612 | 14.374 → 7.785 | 3 → 3 | Successful machine-query stdout and status unchanged: **yes**. Median latency changes ranged from -0.8% to +0.6%. ### Ranked-query recheck Originating PR: [#13](https://github.com/thiagodmont/greeg/pull/13). Measurement time: 2026-09-22T16:33:52Z (estimate from first dataset commit [468e287](https://github.com/thiagodmont/greeg/commit/468e287304d20e056e8f1cf8a55f97983efb30a3); execution time was not recorded). The first run's scan-ranked-hit p95 changed +39.0%, triggering a 151-pair recheck. Both runs are retained. Recheck cases exceeding the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | |---|---|---:|---:| | scan | ranked hit | 7.689 → 7.520 | 10.967 → 11.898 | | scan | ranked discovery | 10.167 → 10.172 | 13.963 → 13.036 | | index | ranked hit | 6.758 → 6.821 | 7.844 → 7.837 | | index | ranked discovery | 7.580 → 7.593 | 8.646 → 8.957 | [Ranked recheck and raw samples](../bench/results/exact-search-ranked-recheck-2026-09-22-darwin-arm64.json). [Original matrix and raw samples](../bench/results/exact-search-matching-2026-09-22-darwin-arm64.json) include binary/corpus digests. Reproduce with `python3 bench/matching.py BASELINE CANDIDATE --runs 31 --tokens --output matrix.json`; for the recheck use `python3 bench/matching.py BASELINE CANDIDATE --runs 151 --cases ranked_hit ranked_discovery --tokens --output recheck.json`. **Limits:** this is a warm synthetic-corpus comparison, not a new full-corpus result or whole-agent-task token estimate. Cold cache, peak RSS, concurrency, and agent-task savings were not measured here. The older corpus results below retain their original versions and dates. ## JSON exact-default coverage Originating PR: [#13](https://github.com/thiagodmont/greeg/pull/13). Measurement time: 2026-09-22T18:38:06Z (estimate from first dataset commit [8d428dd](https://github.com/thiagodmont/greeg/commit/8d428ddd8903c773a643510a2d929eed848093f9); execution time was not recorded). `greeg 0.6.0+1acde07fa` → `greeg 0.6.0+b116aa6c3.dirty`; 31 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **2/4 → 4/4**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss json | 10.471 → 7.488 | 17.752 → 10.874 | 2689 → 224 | | scan | hit json | 7.538 → 7.590 | 10.601 → 11.386 | 2695 → 2699 | | index | case miss json | 7.711 → 6.898 | 9.488 → 8.510 | 2657 → 224 | | index | hit json | 6.870 → 7.070 | 9.052 → 8.465 | 2695 → 2699 | [Raw samples, environment, and binary/corpus digests](../bench/results/exact-search-json-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_json hit_json --runs 31 --tokens --output exact-search-json-darwin-arm64.json`. ## Review fixes: initial measurements Originating PR: [#13](https://github.com/thiagodmont/greeg/pull/13). Measurement time: 2026-09-22T18:38:06Z (estimate from first dataset commit [8d428dd](https://github.com/thiagodmont/greeg/commit/8d428ddd8903c773a643510a2d929eed848093f9); execution time was not recorded). `greeg 0.6.0+1acde07fa.dirty` → `greeg 0.6.0+b116aa6c3.dirty`; 31 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **25/26 → 26/26**. Cases above the 10% median / 20% p95 investigation thresholds: **5**. [Raw samples, environment, and binary/corpus digests](../bench/results/exact-search-review-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 31 --tokens --output exact-search-review-darwin-arm64.json`. ## Review fixes: optimized lookup recheck Originating PR: [#13](https://github.com/thiagodmont/greeg/pull/13). Measurement time: 2026-09-22T18:38:06Z (estimate from first dataset commit [8d428dd](https://github.com/thiagodmont/greeg/commit/8d428ddd8903c773a643510a2d929eed848093f9); execution time was not recorded). The initial review run used a full name-table case-fold scan; this recheck uses prefix ranges. Both runs remain available. The corrected indexed case-insensitive hit now returns definitions instead of an empty answer, so its increased output is expected. Non-ASCII definition names absent from the symbol/module index use a scan fallback; its latency on large repositories is not measured here. `greeg 0.6.0+1acde07fa.dirty` → `greeg 0.6.0+b116aa6c3.dirty`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **11/12 → 12/12**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | hit files | 6.696 → 6.835 | 10.851 → 10.305 | 55 → 55 | | scan | case miss json | 6.724 → 6.747 | 10.716 → 10.538 | 224 → 228 | | scan | split miss unlimited | 6.758 → 6.777 | 10.250 → 10.197 | 3 → 3 | | scan | def hit | 7.276 → 7.293 | 10.745 → 10.925 | 214 → 214 | | scan | def case hit | 7.362 → 7.420 | 9.300 → 9.380 | 214 → 214 | | scan | def case miss | 6.993 → 7.024 | 8.194 → 8.067 | 35 → 35 | | index | hit files | 6.489 → 6.510 | 9.114 → 8.819 | 55 → 55 | | index | case miss json | 6.736 → 6.818 | 8.295 → 8.536 | 224 → 224 | | index | split miss unlimited | 6.724 → 6.573 | 8.721 → 8.552 | 3 → 3 | | index | def hit | 6.788 → 6.748 | 8.548 → 8.677 | 254 → 254 | | index | def case hit | 6.494 → 6.675 | 8.511 → 8.942 | 29 → 278 | | index | def case miss | 6.292 → 6.303 | 7.746 → 7.922 | 35 → 35 | [Raw samples, environment, and binary/corpus digests](../bench/results/exact-search-review-recheck-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases hit_files case_miss_json split_miss_unlimited def_hit def_case_hit def_case_miss --runs 151 --tokens --output exact-search-review-recheck-darwin-arm64.json`. ## Quick correctness fixes: exact-search regression (2026-09-23) Originating PR: [#24](https://github.com/thiagodmont/greeg/pull/24). Merged main against the JSON exit status, detached index directory, generated-file, ignore-input digest and regular-file fixes. `--fresh stat` runs the freshness check, including the ignore-input digest, on every query. All 30 cases keep the same exit status and the same stdout once JSON elapsed fields are removed, and every ripgrep comparison passes. Tokens are unchanged except index hit_json, whose first raw sample differs by one byte of timing value. Scan medians change by +0.4% and index medians by +1.8% (median across cases). One p95 flag, scan case_miss_files +36.4% with a +0.5% median, is on a path that never computes the digest. Host load average was 10.8–11.5 from an unrelated workload. The harness records no execution time; the result file was written at 2026-09-23T19:02:41Z. `greeg 0.6.0+808df48ff` → `greeg 0.6.0+33655c624`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **26/26 → 26/26**. Cases above the 10% median / 20% p95 investigation thresholds: **1**. [Raw samples, environment, and binary/corpus digests](../bench/results/quick-correctness-fixes-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output quick-correctness-fixes-2026-09-23-darwin-arm64.json`. ## Quick correctness fixes: confirmation (2026-09-23) Originating PR: [#24](https://github.com/thiagodmont/greeg/pull/24). Same binaries, 151 pairs. Exit status and elapsed-normalized stdout are unchanged in 30/30 cases, and ripgrep comparisons pass. Token counts are unchanged except the two case_miss_json rows (scan 227 → 224, index 224 → 228), whose first raw samples differ only in elapsed timing values. The earlier scan tail flag does not repeat. The only flag is scan fuzzy_miss_unlimited p95 +20.4% (9.96 → 11.99 ms, +0.5% median), again on the scan path. Index medians rise by +0.9% (+0.066 ms) across cases, with a range of −0.5% to +3.4%: the cost of the per-check ignore digest and the descriptor type check on candidate reads, accepted as a safety cost. The harness uses a private HOME (no global git config) and a synthetic 256-file warm corpus, so these numbers exclude reading global git configs: each check reads every existing config in full to find excludesFile, and deeper trees add stat calls for ancestor ignore files. No cold-cache, RSS or large-repository claim is made. The result file was written at 2026-09-23T19:04:58Z; load average was 9.5–13.3. `greeg 0.6.0+808df48ff` → `greeg 0.6.0+33655c624`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **26/26 → 26/26**. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 8.098 → 8.223 | 13.298 → 13.098 | 3 → 3 | | scan | word miss count | 10.287 → 10.021 | 22.768 → 24.641 | 3 → 3 | | scan | split miss unlimited | 8.397 → 8.402 | 12.008 → 11.562 | 3 → 3 | | scan | fuzzy miss unlimited | 7.915 → 7.957 | 9.960 → 11.987 | 3 → 3 | | scan | absent files | 10.592 → 10.079 | 20.956 → 18.829 | 3 → 3 | | scan | hit files | 8.621 → 8.370 | 13.083 → 13.122 | 55 → 55 | | scan | hit count | 8.394 → 8.446 | 13.252 → 14.017 | 71 → 71 | | scan | hit unlimited | 9.858 → 9.532 | 19.186 → 16.805 | 295 → 295 | | scan | case miss json | 8.283 → 8.481 | 14.418 → 14.796 | 227 → 224 | | scan | hit json | 8.713 → 8.648 | 14.947 → 14.460 | 2695 → 2695 | | scan | def hit | 10.060 → 10.435 | 19.202 → 19.036 | 214 → 214 | | scan | def case hit | 9.572 → 9.428 | 16.412 → 16.768 | 214 → 214 | | scan | def case miss | 9.347 → 9.034 | 14.286 → 15.563 | 35 → 35 | | scan | ranked hit | 8.774 → 8.938 | 16.486 → 15.454 | 295 → 295 | | scan | ranked discovery | 13.794 → 13.895 | 23.375 → 24.328 | 308 → 308 | | index | case miss files | 7.404 → 7.469 | 11.133 → 11.587 | 3 → 3 | | index | word miss count | 7.236 → 7.240 | 9.146 → 9.446 | 3 → 3 | | index | split miss unlimited | 7.703 → 7.823 | 10.404 → 10.084 | 3 → 3 | | index | fuzzy miss unlimited | 7.594 → 7.728 | 10.484 → 10.040 | 3 → 3 | | index | absent files | 7.143 → 7.385 | 9.154 → 9.183 | 3 → 3 | | index | hit files | 7.493 → 7.542 | 15.695 → 15.918 | 55 → 55 | | index | hit count | 8.365 → 8.423 | 12.589 → 13.128 | 71 → 71 | | index | hit unlimited | 7.460 → 7.641 | 10.458 → 10.349 | 295 → 295 | | index | case miss json | 7.259 → 7.416 | 9.270 → 9.247 | 224 → 228 | | index | hit json | 7.652 → 7.725 | 9.326 → 9.681 | 2699 → 2699 | | index | def hit | 7.307 → 7.274 | 8.585 → 8.362 | 254 → 254 | | index | def case hit | 7.057 → 7.045 | 9.080 → 8.985 | 278 → 278 | | index | def case miss | 6.882 → 7.010 | 8.610 → 9.329 | 35 → 35 | | index | ranked hit | 7.095 → 7.080 | 8.448 → 8.719 | 295 → 295 | | index | ranked discovery | 8.689 → 8.750 | 15.213 → 14.282 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/quick-correctness-fixes-confirmation-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 151 --tokens --output quick-correctness-fixes-confirmation-2026-09-23-darwin-arm64.json`. ## Query selection, coverage and classification: exact-search regression (2026-09-23) Originating PR: [#26](https://github.com/thiagodmont/greeg/pull/26). Merged main against the branch that applies request filters to indexed symbol verbs, checks index coverage through the skipped-entries record, classifies every occurrence before caps and counts, and ranks complete symbol sets. The new type_files and glob_files cases select files with a positive -t or -g, so every indexed run reads the skipped record. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every ripgrep, JSON and definition contract passes. No case crosses the 10% median / 20% p95 thresholds: medians range from −11.2% to +6.1%, and the largest p95 is +15.5% (index word_miss_count, +2.3% median). Token counts are unchanged except JSON rows whose first raw samples differ only in elapsed values. The synthetic corpus has no hidden or ignored files, so the skipped record is empty here; larger-corpus costs are reported in the pull request. Load average was 8.0–12.1 from an unrelated workload. The harness records no execution time; the result file was written at 2026-09-23T21:44:02Z. `greeg 0.6.0+244d792e4` → `greeg 0.6.0+a7851dd01`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.885 → 7.108 | 9.460 → 8.022 | 3 → 3 | | scan | word miss count | 7.021 → 6.911 | 11.134 → 11.200 | 3 → 3 | | scan | split miss unlimited | 9.924 → 9.257 | 17.927 → 20.465 | 3 → 3 | | scan | fuzzy miss unlimited | 7.764 → 7.798 | 13.224 → 10.931 | 3 → 3 | | scan | absent files | 8.581 → 7.618 | 11.301 → 11.545 | 3 → 3 | | scan | hit files | 6.803 → 6.526 | 8.152 → 7.840 | 55 → 55 | | scan | type files | 6.684 → 6.614 | 7.823 → 7.650 | 55 → 55 | | scan | glob files | 6.225 → 6.294 | 9.532 → 8.675 | 55 → 55 | | scan | hit count | 6.333 → 6.392 | 10.628 → 9.365 | 71 → 71 | | scan | hit unlimited | 6.911 → 6.701 | 10.404 → 10.407 | 295 → 295 | | scan | case miss json | 6.226 → 6.238 | 8.976 → 7.881 | 224 → 224 | | scan | hit json | 9.455 → 9.062 | 16.660 → 14.424 | 2695 → 2699 | | scan | def hit | 7.294 → 7.517 | 10.935 → 10.647 | 214 → 214 | | scan | def case hit | 7.383 → 7.570 | 8.630 → 9.216 | 214 → 214 | | scan | def case miss | 6.750 → 7.160 | 9.209 → 8.604 | 35 → 35 | | scan | ranked hit | 6.694 → 6.688 | 7.893 → 7.901 | 295 → 295 | | scan | ranked discovery | 9.593 → 9.634 | 10.867 → 11.406 | 308 → 308 | | index | case miss files | 5.287 → 5.293 | 6.701 → 6.941 | 3 → 3 | | index | word miss count | 5.126 → 5.241 | 6.618 → 7.641 | 3 → 3 | | index | split miss unlimited | 6.218 → 6.014 | 7.535 → 7.559 | 3 → 3 | | index | fuzzy miss unlimited | 5.919 → 5.882 | 7.404 → 7.544 | 3 → 3 | | index | absent files | 5.214 → 5.184 | 6.386 → 6.730 | 3 → 3 | | index | hit files | 5.631 → 5.721 | 9.114 → 8.886 | 55 → 55 | | index | type files | 6.533 → 6.368 | 9.444 → 8.952 | 55 → 55 | | index | glob files | 6.169 → 5.993 | 11.233 → 10.109 | 55 → 55 | | index | hit count | 5.793 → 5.891 | 7.340 → 7.394 | 71 → 71 | | index | hit unlimited | 5.686 → 5.861 | 7.373 → 7.246 | 295 → 295 | | index | case miss json | 5.775 → 5.675 | 6.809 → 6.802 | 228 → 224 | | index | hit json | 5.836 → 5.797 | 7.349 → 7.255 | 2695 → 2695 | | index | def hit | 5.442 → 5.444 | 7.025 → 7.331 | 254 → 254 | | index | def case hit | 5.447 → 5.439 | 7.235 → 7.236 | 278 → 278 | | index | def case miss | 6.506 → 6.379 | 8.698 → 8.697 | 35 → 35 | | index | ranked hit | 7.302 → 7.673 | 9.093 → 9.096 | 295 → 295 | | index | ranked discovery | 7.282 → 7.296 | 10.161 → 10.615 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/query-selection-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output query-selection-2026-09-23-darwin-arm64.json`. ## Query selection, coverage and classification: review fixes (2026-09-23) Originating PR: [#26](https://github.com/thiagodmont/greeg/pull/26). Merged main against the review fixes: the index maps the skipped record when it opens, span-classified files keep definition lines past the per-file cap as scans do, and unlisted directories are recorded as unknown. All 34 cases keep their exit status and stdout, and every contract passes. Two p95 flags have small medians: scan type_files +23.0% p95 (−1.8% median), a path the fixes do not touch, and index fuzzy_miss_unlimited +22.7% p95 (+2.8% median). The 151-pair confirmation below re-measures both. Load average was 4.1–5.9. The harness records no execution time; the result file was written at 2026-09-23T21:56:58Z. `greeg 0.6.0+244d792e4` → `greeg 0.6.0+80469feed`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **2**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 7.008 → 6.960 | 7.843 → 8.080 | 3 → 3 | | scan | word miss count | 6.085 → 6.085 | 7.080 → 6.634 | 3 → 3 | | scan | split miss unlimited | 6.114 → 6.217 | 8.005 → 8.192 | 3 → 3 | | scan | fuzzy miss unlimited | 6.323 → 6.332 | 8.219 → 8.252 | 3 → 3 | | scan | absent files | 6.475 → 6.271 | 10.018 → 9.774 | 3 → 3 | | scan | hit files | 8.831 → 8.305 | 19.380 → 14.485 | 55 → 55 | | scan | type files | 6.426 → 6.310 | 8.141 → 10.012 | 55 → 55 | | scan | glob files | 5.942 → 5.907 | 7.322 → 7.277 | 55 → 55 | | scan | hit count | 6.832 → 6.882 | 9.420 → 8.364 | 71 → 71 | | scan | hit unlimited | 7.763 → 8.097 | 9.741 → 10.170 | 295 → 295 | | scan | case miss json | 6.650 → 6.562 | 9.044 → 8.647 | 224 → 224 | | scan | hit json | 6.520 → 6.506 | 9.297 → 9.220 | 2695 → 2695 | | scan | def hit | 6.483 → 6.907 | 7.993 → 8.434 | 214 → 214 | | scan | def case hit | 6.883 → 7.254 | 8.244 → 8.584 | 214 → 214 | | scan | def case miss | 6.403 → 6.909 | 9.369 → 9.368 | 35 → 35 | | scan | ranked hit | 6.551 → 6.704 | 9.076 → 9.229 | 295 → 295 | | scan | ranked discovery | 9.310 → 9.295 | 9.965 → 10.577 | 308 → 308 | | index | case miss files | 4.848 → 4.842 | 5.376 → 6.131 | 3 → 3 | | index | word miss count | 4.989 → 5.112 | 6.254 → 6.514 | 3 → 3 | | index | split miss unlimited | 4.873 → 4.844 | 6.086 → 5.803 | 3 → 3 | | index | fuzzy miss unlimited | 5.087 → 5.230 | 8.691 → 10.668 | 3 → 3 | | index | absent files | 6.112 → 6.183 | 17.938 → 17.558 | 3 → 3 | | index | hit files | 5.123 → 5.423 | 8.297 → 8.341 | 55 → 55 | | index | type files | 5.631 → 5.740 | 7.014 → 7.196 | 55 → 55 | | index | glob files | 5.105 → 5.209 | 7.073 → 7.059 | 55 → 55 | | index | hit count | 5.155 → 5.127 | 5.890 → 6.118 | 71 → 71 | | index | hit unlimited | 5.204 → 5.143 | 6.811 → 7.467 | 295 → 295 | | index | case miss json | 5.666 → 5.681 | 7.174 → 7.291 | 223 → 228 | | index | hit json | 5.708 → 5.732 | 7.144 → 7.365 | 2695 → 2695 | | index | def hit | 5.265 → 5.395 | 7.138 → 7.082 | 254 → 254 | | index | def case hit | 5.412 → 5.527 | 7.057 → 6.579 | 278 → 278 | | index | def case miss | 4.814 → 4.892 | 6.216 → 5.913 | 35 → 35 | | index | ranked hit | 5.649 → 5.374 | 6.767 → 7.318 | 295 → 295 | | index | ranked discovery | 6.240 → 6.427 | 9.476 → 10.246 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/query-selection-review-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output query-selection-review-2026-09-23-darwin-arm64.json`. ## Query selection, coverage and classification: confirmation (2026-09-23) Originating PR: [#26](https://github.com/thiagodmont/greeg/pull/26). Same binaries, 151 pairs. Exit status and elapsed-normalized stdout are unchanged in 34/34 cases, and every ripgrep, JSON and definition contract passes. No case crosses a threshold, and neither earlier p95 flag repeats (scan type_files +0.9%, index fuzzy_miss_unlimited +3.7%). Index medians range from −1.1% to +2.4%. Scan-mode definition lookups rise +6.7% to +8.1% (0.4–0.6 ms): the definition filter now lexes each matched file from its start, so text inside block comments and docstrings is classified correctly. scan split_miss_unlimited is +9.7% median (+1.7% in the 51-pair run) on a query with no hits. Token counts are unchanged except JSON rows whose first raw samples differ only in elapsed values. Load average was 3.8–5.5. The harness records no execution time; the result file was written at 2026-09-23T21:58:18Z. `greeg 0.6.0+244d792e4` → `greeg 0.6.0+80469feed`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.145 → 6.195 | 9.436 → 9.385 | 3 → 3 | | scan | word miss count | 6.066 → 6.126 | 8.515 → 8.165 | 3 → 3 | | scan | split miss unlimited | 7.307 → 8.019 | 13.740 → 14.786 | 3 → 3 | | scan | fuzzy miss unlimited | 6.901 → 6.971 | 11.114 → 11.287 | 3 → 3 | | scan | absent files | 6.475 → 6.398 | 11.793 → 11.239 | 3 → 3 | | scan | hit files | 5.838 → 5.891 | 10.482 → 10.574 | 55 → 55 | | scan | type files | 5.939 → 5.963 | 7.545 → 7.613 | 55 → 55 | | scan | glob files | 5.870 → 5.911 | 9.733 → 10.463 | 55 → 55 | | scan | hit count | 6.491 → 6.570 | 10.427 → 10.530 | 71 → 71 | | scan | hit unlimited | 6.463 → 6.569 | 9.316 → 8.519 | 295 → 295 | | scan | case miss json | 5.915 → 5.867 | 9.524 → 8.977 | 224 → 228 | | scan | hit json | 8.270 → 7.903 | 17.075 → 14.136 | 2695 → 2699 | | scan | def hit | 6.811 → 7.365 | 9.144 → 9.628 | 214 → 214 | | scan | def case hit | 6.891 → 7.350 | 8.426 → 8.833 | 214 → 214 | | scan | def case miss | 6.204 → 6.631 | 7.775 → 8.190 | 35 → 35 | | scan | ranked hit | 6.307 → 6.340 | 7.707 → 7.658 | 295 → 295 | | scan | ranked discovery | 9.414 → 9.423 | 16.754 → 16.706 | 308 → 308 | | index | case miss files | 5.262 → 5.318 | 8.103 → 7.161 | 3 → 3 | | index | word miss count | 5.184 → 5.249 | 7.182 → 7.118 | 3 → 3 | | index | split miss unlimited | 4.880 → 4.943 | 6.479 → 6.641 | 3 → 3 | | index | fuzzy miss unlimited | 4.995 → 5.012 | 7.131 → 7.397 | 3 → 3 | | index | absent files | 4.892 → 5.011 | 7.441 → 7.213 | 3 → 3 | | index | hit files | 5.070 → 5.141 | 7.190 → 6.910 | 55 → 55 | | index | type files | 5.463 → 5.460 | 7.489 → 7.467 | 55 → 55 | | index | glob files | 6.256 → 6.186 | 9.331 → 9.425 | 55 → 55 | | index | hit count | 5.567 → 5.604 | 8.235 → 7.761 | 71 → 71 | | index | hit unlimited | 5.094 → 5.136 | 6.241 → 6.347 | 295 → 295 | | index | case miss json | 5.013 → 5.025 | 5.890 → 6.019 | 224 → 224 | | index | hit json | 5.248 → 5.267 | 6.402 → 6.235 | 2695 → 2695 | | index | def hit | 5.039 → 5.090 | 7.271 → 7.466 | 254 → 254 | | index | def case hit | 4.960 → 5.025 | 6.299 → 6.386 | 278 → 278 | | index | def case miss | 4.824 → 4.901 | 6.740 → 6.871 | 35 → 35 | | index | ranked hit | 5.183 → 5.215 | 7.251 → 6.865 | 295 → 295 | | index | ranked discovery | 5.774 → 5.820 | 6.964 → 7.390 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/query-selection-confirmation-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 151 --tokens --output query-selection-confirmation-2026-09-23-darwin-arm64.json`. ## Nested definitions and SIGBUS re-run: exact-search regression (2026-09-23) Originating PR: [#27](https://github.com/thiagodmont/greeg/pull/27). Merged main against the branch that finds definitions nested after a brace on one line in scan mode and passes SIGBUS recovery flags before the user's arguments. All 34 cases keep their exit status and stdout, and every contract passes. One p95 flag: scan case_miss_json +21.6% p95 with a +0.3% median, on a query that classifies no definitions, measured while the load average reached 19.0. On tokio, scan-mode def spawn_blocking was measured separately (21 pairs) at +6.4% wall / +5.8% CPU with unchanged output. Load average was 7.7–19.0. The harness records no execution time; the result file was written at 2026-09-24T00:41:42Z. `greeg 0.6.0+3ec576860` → `greeg 0.6.0+44a5e3e4c`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 8.145 → 7.934 | 11.674 → 12.597 | 3 → 3 | | scan | word miss count | 7.002 → 7.229 | 8.031 → 8.063 | 3 → 3 | | scan | split miss unlimited | 6.408 → 6.488 | 7.934 → 8.068 | 3 → 3 | | scan | fuzzy miss unlimited | 6.564 → 6.423 | 8.287 → 8.555 | 3 → 3 | | scan | absent files | 7.648 → 7.460 | 10.980 → 11.008 | 3 → 3 | | scan | hit files | 6.032 → 6.057 | 7.470 → 7.660 | 55 → 55 | | scan | type files | 6.363 → 6.263 | 8.715 → 7.652 | 55 → 55 | | scan | glob files | 5.794 → 5.788 | 6.836 → 6.532 | 55 → 55 | | scan | hit count | 6.215 → 6.186 | 8.262 → 8.969 | 71 → 71 | | scan | hit unlimited | 6.564 → 6.594 | 7.489 → 8.256 | 295 → 295 | | scan | case miss json | 5.993 → 6.009 | 7.022 → 8.541 | 224 → 224 | | scan | hit json | 6.584 → 6.610 | 7.427 → 7.359 | 2699 → 2699 | | scan | def hit | 7.217 → 7.319 | 13.427 → 11.827 | 214 → 214 | | scan | def case hit | 8.024 → 7.954 | 13.814 → 11.507 | 214 → 214 | | scan | def case miss | 7.334 → 7.329 | 10.988 → 12.300 | 35 → 35 | | scan | ranked hit | 6.755 → 6.710 | 7.433 → 7.338 | 295 → 295 | | scan | ranked discovery | 9.777 → 10.004 | 11.978 → 11.579 | 308 → 308 | | index | case miss files | 5.717 → 5.621 | 8.264 → 7.957 | 3 → 3 | | index | word miss count | 5.530 → 5.453 | 7.540 → 7.306 | 3 → 3 | | index | split miss unlimited | 5.562 → 5.470 | 7.524 → 7.216 | 3 → 3 | | index | fuzzy miss unlimited | 6.112 → 5.840 | 7.350 → 7.741 | 3 → 3 | | index | absent files | 5.728 → 5.537 | 7.656 → 7.406 | 3 → 3 | | index | hit files | 5.530 → 5.535 | 8.370 → 8.232 | 55 → 55 | | index | type files | 5.968 → 5.922 | 8.688 → 9.845 | 55 → 55 | | index | glob files | 5.756 → 5.673 | 10.470 → 7.547 | 55 → 55 | | index | hit count | 6.151 → 6.113 | 12.097 → 10.994 | 71 → 71 | | index | hit unlimited | 7.464 → 7.624 | 14.234 → 13.306 | 295 → 295 | | index | case miss json | 6.880 → 6.915 | 8.795 → 8.640 | 228 → 224 | | index | hit json | 8.079 → 7.779 | 11.181 → 10.862 | 2699 → 2699 | | index | def hit | 5.593 → 5.608 | 7.157 → 7.483 | 254 → 254 | | index | def case hit | 5.893 → 5.992 | 7.962 → 7.645 | 278 → 278 | | index | def case miss | 6.622 → 6.698 | 8.169 → 7.843 | 35 → 35 | | index | ranked hit | 6.530 → 6.162 | 8.216 → 7.834 | 295 → 295 | | index | ranked discovery | 6.515 → 6.491 | 8.764 → 8.447 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/nested-definitions-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output nested-definitions-2026-09-23-darwin-arm64.json`. ## Nested definitions and SIGBUS re-run: confirmation (2026-09-23) Originating PR: [#27](https://github.com/thiagodmont/greeg/pull/27). Same binaries, 151 pairs. Exit status and elapsed-normalized stdout are unchanged in 34/34 cases, and every contract passes. Medians range from −2.3% to +2.3%. The case_miss_json flag does not repeat (+16.8% p95, +0.1% median). A different p95-only flag appears: scan hit_count +22.5% p95 with a −0.2% median; like the first, it did not show in the other run. Load average was 6.6–9.6. The harness records no execution time; the result file was written at 2026-09-24T00:44:41Z. `greeg 0.6.0+3ec576860` → `greeg 0.6.0+44a5e3e4c`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 5.926 → 5.932 | 6.743 → 7.092 | 3 → 3 | | scan | word miss count | 6.151 → 6.204 | 7.562 → 7.610 | 3 → 3 | | scan | split miss unlimited | 7.132 → 6.971 | 13.732 → 13.510 | 3 → 3 | | scan | fuzzy miss unlimited | 6.165 → 6.265 | 8.736 → 9.331 | 3 → 3 | | scan | absent files | 5.832 → 5.762 | 6.947 → 6.610 | 3 → 3 | | scan | hit files | 5.935 → 5.903 | 8.963 → 10.228 | 55 → 55 | | scan | type files | 6.103 → 6.107 | 9.284 → 9.557 | 55 → 55 | | scan | glob files | 5.871 → 5.884 | 9.395 → 9.105 | 55 → 55 | | scan | hit count | 6.089 → 6.080 | 7.434 → 9.110 | 71 → 71 | | scan | hit unlimited | 6.515 → 6.537 | 7.453 → 7.671 | 295 → 295 | | scan | case miss json | 5.932 → 5.939 | 7.964 → 9.299 | 224 → 224 | | scan | hit json | 6.766 → 6.699 | 7.592 → 7.875 | 2699 → 2695 | | scan | def hit | 7.293 → 7.282 | 8.091 → 8.415 | 214 → 214 | | scan | def case hit | 7.693 → 7.715 | 8.693 → 8.591 | 214 → 214 | | scan | def case miss | 6.914 → 6.889 | 9.660 → 9.946 | 35 → 35 | | scan | ranked hit | 6.592 → 6.582 | 7.486 → 7.550 | 295 → 295 | | scan | ranked discovery | 9.847 → 9.940 | 17.088 → 17.539 | 308 → 308 | | index | case miss files | 5.210 → 5.208 | 6.278 → 6.449 | 3 → 3 | | index | word miss count | 5.177 → 5.171 | 6.808 → 6.589 | 3 → 3 | | index | split miss unlimited | 5.358 → 5.356 | 6.897 → 7.142 | 3 → 3 | | index | fuzzy miss unlimited | 5.239 → 5.238 | 6.524 → 6.593 | 3 → 3 | | index | absent files | 5.096 → 5.094 | 6.843 → 6.904 | 3 → 3 | | index | hit files | 5.172 → 5.185 | 6.368 → 6.476 | 55 → 55 | | index | type files | 5.464 → 5.459 | 6.628 → 6.563 | 55 → 55 | | index | glob files | 5.321 → 5.342 | 6.886 → 6.551 | 55 → 55 | | index | hit count | 5.484 → 5.463 | 6.852 → 7.055 | 71 → 71 | | index | hit unlimited | 5.615 → 5.661 | 7.486 → 7.814 | 295 → 295 | | index | case miss json | 5.483 → 5.507 | 7.155 → 7.117 | 224 → 224 | | index | hit json | 5.693 → 5.676 | 7.272 → 7.379 | 2695 → 2695 | | index | def hit | 5.541 → 5.668 | 7.447 → 7.486 | 254 → 254 | | index | def case hit | 5.362 → 5.379 | 7.854 → 8.131 | 278 → 278 | | index | def case miss | 5.553 → 5.544 | 8.692 → 8.547 | 35 → 35 | | index | ranked hit | 5.435 → 5.449 | 7.276 → 7.079 | 295 → 295 | | index | ranked discovery | 6.112 → 6.133 | 7.741 → 7.529 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/nested-definitions-confirmation-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 151 --tokens --output nested-definitions-confirmation-2026-09-23-darwin-arm64.json`. ## Nested definitions: review fixes (2026-09-23) Originating PR: [#27](https://github.com/thiagodmont/greeg/pull/27). Merged main against the review fixes: sibling definitions after }, ; and a leading {, file-level code spans in scan mode, an allocation-free overlap check and brace depth as nested indentation. All 34 cases keep their exit status and stdout, and every contract passes. Medians range from −10.9% (scan hit_unlimited, faster) to +8.2%; the investigation thresholds apply to slowdowns only. One p95 flag: index hit_count +36.5% p95 with a −5.6% median, on the index path, which these changes do not touch. On tokio (21 pairs, measured separately), scan-mode def spawn_blocking fell from +6.4% to +0.7% wall (+3.8% CPU) with unchanged output. Load average was 4.4–9.6. The harness records no execution time; the result file was written at 2026-09-24T01:02:15Z. `greeg 0.6.0+3ec576860` → `greeg 0.6.0+f2c235922`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.329 → 6.403 | 7.595 → 8.124 | 3 → 3 | | scan | word miss count | 7.072 → 6.965 | 8.354 → 8.697 | 3 → 3 | | scan | split miss unlimited | 5.967 → 5.987 | 7.069 → 7.155 | 3 → 3 | | scan | fuzzy miss unlimited | 5.858 → 5.835 | 6.986 → 6.843 | 3 → 3 | | scan | absent files | 5.753 → 5.803 | 8.007 → 7.642 | 3 → 3 | | scan | hit files | 5.919 → 5.894 | 7.096 → 6.834 | 55 → 55 | | scan | type files | 6.489 → 6.156 | 10.568 → 10.621 | 55 → 55 | | scan | glob files | 7.032 → 6.676 | 11.566 → 11.391 | 55 → 55 | | scan | hit count | 7.510 → 7.635 | 10.025 → 10.889 | 71 → 71 | | scan | hit unlimited | 8.140 → 7.249 | 10.486 → 9.933 | 295 → 295 | | scan | case miss json | 8.637 → 8.232 | 12.410 → 13.792 | 223 → 224 | | scan | hit json | 7.048 → 7.424 | 8.442 → 8.399 | 2695 → 2695 | | scan | def hit | 9.091 → 8.953 | 11.913 → 11.778 | 214 → 214 | | scan | def case hit | 7.998 → 7.946 | 16.779 → 14.981 | 214 → 214 | | scan | def case miss | 8.360 → 9.048 | 14.289 → 14.890 | 35 → 35 | | scan | ranked hit | 7.188 → 6.936 | 9.546 → 8.534 | 295 → 295 | | scan | ranked discovery | 10.770 → 10.682 | 18.874 → 21.198 | 308 → 308 | | index | case miss files | 5.329 → 5.417 | 6.551 → 7.690 | 3 → 3 | | index | word miss count | 5.116 → 5.196 | 6.593 → 6.394 | 3 → 3 | | index | split miss unlimited | 6.853 → 7.228 | 9.091 → 8.566 | 3 → 3 | | index | fuzzy miss unlimited | 6.680 → 6.579 | 11.272 → 8.792 | 3 → 3 | | index | absent files | 6.592 → 6.518 | 8.261 → 8.195 | 3 → 3 | | index | hit files | 5.434 → 5.516 | 7.077 → 7.009 | 55 → 55 | | index | type files | 7.148 → 6.804 | 10.099 → 10.069 | 55 → 55 | | index | glob files | 7.526 → 7.507 | 9.380 → 9.442 | 55 → 55 | | index | hit count | 8.153 → 7.693 | 19.897 → 27.161 | 71 → 71 | | index | hit unlimited | 7.539 → 7.583 | 9.459 → 9.381 | 295 → 295 | | index | case miss json | 6.801 → 6.812 | 8.092 → 7.519 | 224 → 228 | | index | hit json | 6.808 → 6.644 | 7.547 → 7.427 | 2695 → 2695 | | index | def hit | 5.647 → 5.716 | 7.165 → 7.346 | 254 → 254 | | index | def case hit | 6.528 → 6.373 | 7.863 → 7.773 | 278 → 278 | | index | def case miss | 7.453 → 7.383 | 15.681 → 18.493 | 35 → 35 | | index | ranked hit | 6.758 → 6.631 | 8.694 → 8.450 | 295 → 295 | | index | ranked discovery | 6.899 → 6.810 | 8.020 → 7.867 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/nested-definitions-review-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output nested-definitions-review-2026-09-23-darwin-arm64.json`. ## Typed query outcome: exact-search regression (2026-09-23) Originating PR: [#28](https://github.com/thiagodmont/greeg/pull/28). The nested-definitions branch (PR 27) against the branch that decides every search answer's exit status from one typed outcome and adds it to JSON footers. No case crosses a threshold. Text output and exit status are unchanged in all 30 text cases. The four JSON cases change only by the added footer outcome object: +35 to +45 o200k tokens per answer (hit_json 2699 → 2734/2736, case_miss_json 224 → 267/269), and their JSON contracts pass. Load average was 3.4–7.2. The harness records no execution time; the result file was written at 2026-09-24T00:52:52Z. `greeg 0.6.0+44a5e3e4c` → `greeg 0.6.0+c3c3e2e89`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.510 → 6.786 | 8.388 → 8.633 | 3 → 3 | | scan | word miss count | 7.283 → 6.978 | 9.938 → 9.527 | 3 → 3 | | scan | split miss unlimited | 7.202 → 7.362 | 11.251 → 11.087 | 3 → 3 | | scan | fuzzy miss unlimited | 6.866 → 6.944 | 7.859 → 7.707 | 3 → 3 | | scan | absent files | 6.840 → 6.891 | 10.406 → 10.579 | 3 → 3 | | scan | hit files | 6.662 → 6.296 | 10.175 → 9.302 | 55 → 55 | | scan | type files | 6.998 → 6.750 | 10.931 → 10.029 | 55 → 55 | | scan | glob files | 6.252 → 6.245 | 9.943 → 8.967 | 55 → 55 | | scan | hit count | 6.525 → 6.782 | 9.523 → 9.009 | 71 → 71 | | scan | hit unlimited | 6.782 → 6.705 | 11.163 → 9.758 | 295 → 295 | | scan | case miss json | 8.444 → 7.495 | 15.786 → 17.477 | 224 → 267 | | scan | hit json | 8.183 → 7.970 | 10.415 → 9.729 | 2699 → 2734 | | scan | def hit | 9.722 → 9.806 | 16.041 → 16.909 | 214 → 214 | | scan | def case hit | 14.243 → 13.739 | 21.940 → 20.149 | 214 → 214 | | scan | def case miss | 12.411 → 11.167 | 21.239 → 24.444 | 35 → 35 | | scan | ranked hit | 7.953 → 7.988 | 16.668 → 19.444 | 295 → 295 | | scan | ranked discovery | 10.058 → 9.946 | 11.766 → 12.104 | 308 → 308 | | index | case miss files | 5.200 → 5.094 | 7.051 → 6.893 | 3 → 3 | | index | word miss count | 6.256 → 5.958 | 6.989 → 6.828 | 3 → 3 | | index | split miss unlimited | 5.166 → 5.237 | 7.224 → 7.174 | 3 → 3 | | index | fuzzy miss unlimited | 5.295 → 5.426 | 6.543 → 7.372 | 3 → 3 | | index | absent files | 4.928 → 4.927 | 7.010 → 6.689 | 3 → 3 | | index | hit files | 5.179 → 5.159 | 7.391 → 7.214 | 55 → 55 | | index | type files | 5.573 → 5.526 | 8.089 → 8.177 | 55 → 55 | | index | glob files | 5.116 → 5.082 | 6.422 → 6.536 | 55 → 55 | | index | hit count | 5.553 → 5.497 | 8.983 → 8.844 | 71 → 71 | | index | hit unlimited | 5.503 → 5.430 | 6.992 → 6.752 | 295 → 295 | | index | case miss json | 5.309 → 5.253 | 6.501 → 5.787 | 224 → 269 | | index | hit json | 5.528 → 5.603 | 6.773 → 6.835 | 2699 → 2736 | | index | def hit | 5.176 → 5.142 | 6.625 → 6.393 | 254 → 254 | | index | def case hit | 5.181 → 5.206 | 6.909 → 6.726 | 278 → 278 | | index | def case miss | 5.219 → 5.216 | 6.545 → 6.739 | 35 → 35 | | index | ranked hit | 5.300 → 5.257 | 7.185 → 7.494 | 295 → 295 | | index | ranked discovery | 6.703 → 6.509 | 8.203 → 8.724 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/query-outcome-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output query-outcome-2026-09-23-darwin-arm64.json`. ## Per-layout index directory and root identity: exact-search regression (2026-09-24) Originating PR: [#31](https://github.com/thiagodmont/greeg/pull/31). v0.7.0 against the branch that keeps each index layout in v/, widens component headers to 48 bytes and checks the manifest's root identity before using an index. All 34 cases keep their exit status and stdout, and every contract passes; JSON tokens move by ±4 only through elapsed fields. Medians range from −8.4% to +7.4%. One p95 flag: index word_miss_count +60.7% p95 with a +7.4% median. Index build, disk, open, freshness and post-edit costs on tokio, django, ktor and TypeScript-5.9 (bench/index_costs.py) are in the PR. Load average was 5.6–8.8. The harness records no execution time; the result file was written at 2026-09-24T15:50:44Z. `greeg 0.7.0` → `greeg 0.7.0+ec7ffe9f9`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.349 → 6.365 | 10.944 → 10.146 | 3 → 3 | | scan | word miss count | 6.905 → 6.655 | 12.243 → 12.483 | 3 → 3 | | scan | split miss unlimited | 6.346 → 6.484 | 9.509 → 9.336 | 3 → 3 | | scan | fuzzy miss unlimited | 8.499 → 8.368 | 10.105 → 10.379 | 3 → 3 | | scan | absent files | 7.660 → 7.015 | 11.769 → 12.551 | 3 → 3 | | scan | hit files | 9.590 → 10.002 | 32.796 → 25.617 | 55 → 55 | | scan | type files | 7.169 → 7.058 | 7.951 → 8.006 | 55 → 55 | | scan | glob files | 6.671 → 6.633 | 12.673 → 12.700 | 55 → 55 | | scan | hit count | 6.943 → 7.005 | 7.938 → 8.043 | 71 → 71 | | scan | hit unlimited | 7.474 → 7.432 | 10.435 → 10.722 | 295 → 295 | | scan | case miss json | 7.415 → 7.488 | 14.219 → 12.358 | 267 → 263 | | scan | hit json | 7.686 → 7.630 | 12.237 → 12.233 | 2734 → 2738 | | scan | def hit | 8.053 → 8.040 | 8.855 → 8.806 | 214 → 214 | | scan | def case hit | 8.341 → 8.293 | 8.878 → 8.941 | 214 → 214 | | scan | def case miss | 8.664 → 8.793 | 12.746 → 13.692 | 35 → 35 | | scan | ranked hit | 8.496 → 8.708 | 31.268 → 24.516 | 295 → 295 | | scan | ranked discovery | 11.290 → 11.103 | 16.623 → 15.183 | 308 → 308 | | index | case miss files | 6.496 → 6.402 | 8.010 → 8.255 | 3 → 3 | | index | word miss count | 6.648 → 7.139 | 8.930 → 14.352 | 3 → 3 | | index | split miss unlimited | 7.281 → 7.399 | 11.970 → 11.790 | 3 → 3 | | index | fuzzy miss unlimited | 6.612 → 6.649 | 9.001 → 8.463 | 3 → 3 | | index | absent files | 6.351 → 6.453 | 7.458 → 7.489 | 3 → 3 | | index | hit files | 6.618 → 6.633 | 7.990 → 7.652 | 55 → 55 | | index | type files | 6.900 → 7.051 | 7.595 → 7.886 | 55 → 55 | | index | glob files | 6.378 → 6.282 | 7.776 → 7.423 | 55 → 55 | | index | hit count | 7.667 → 7.729 | 8.533 → 9.465 | 71 → 71 | | index | hit unlimited | 7.205 → 6.813 | 9.224 → 8.993 | 295 → 295 | | index | case miss json | 6.838 → 7.036 | 8.250 → 8.616 | 269 → 265 | | index | hit json | 6.513 → 6.394 | 7.357 → 7.191 | 2736 → 2740 | | index | def hit | 6.499 → 6.414 | 7.809 → 7.697 | 254 → 254 | | index | def case hit | 7.325 → 7.612 | 10.303 → 11.706 | 278 → 278 | | index | def case miss | 6.646 → 6.722 | 16.601 → 13.763 | 35 → 35 | | index | ranked hit | 6.988 → 6.962 | 8.040 → 8.352 | 295 → 295 | | index | ranked discovery | 7.325 → 7.572 | 8.276 → 8.374 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/index-layout-namespace-2026-09-24-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output index-layout-namespace-2026-09-24-darwin-arm64.json`. ## Per-layout index directory and root identity: confirmation (2026-09-24) Originating PR: [#31](https://github.com/thiagodmont/greeg/pull/31). Same binaries, 151 pairs, on the flagged case and two other miss cases in both backends. Exit status and stdout are unchanged and every contract passes. The flag does not repeat: index word_miss_count +1.1% median, −5.9% p95. Medians range from −2.1% to +1.6%. Load average was 7.1–8.5. The harness records no execution time; the result file was written at 2026-09-24T15:59:05Z. `greeg 0.7.0` → `greeg 0.7.0+ec7ffe9f9`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **6/6 → 6/6**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | word miss count | 7.642 → 7.671 | 12.180 → 12.866 | 3 → 3 | | scan | case miss files | 6.536 → 6.433 | 11.343 → 10.836 | 3 → 3 | | scan | absent files | 8.360 → 8.494 | 14.408 → 15.313 | 3 → 3 | | index | word miss count | 7.287 → 7.370 | 12.736 → 11.979 | 3 → 3 | | index | case miss files | 7.600 → 7.439 | 11.325 → 10.531 | 3 → 3 | | index | absent files | 7.463 → 7.381 | 20.705 → 16.217 | 3 → 3 | [Raw samples, environment, and binary/corpus digests](../bench/results/index-layout-namespace-confirmation-2026-09-24-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases word_miss_count case_miss_files absent_files --runs 151 --tokens --output index-layout-namespace-confirmation-2026-09-24-darwin-arm64.json`. ## Whole file stamps: exact-search regression (2026-09-24) Originating PR: [#32](https://github.com/thiagodmont/greeg/pull/32). v0.7.0 against the branch that records size, mtime, ctime, inode and device from the descriptor a file is read through (format 7). All 34 cases keep their exit status and stdout, and every contract passes. Medians range from −9.7% to +15.0%. Flags: scan word_miss_count +12.7% and scan type_files +15.0% median, scan glob_files and index absent_files p95 only; scan mode does not use stamps. Index build, disk, open, freshness and post-edit costs on tokio, django, ktor and TypeScript-5.9 (bench/index_costs.py) are in the PR. Load average was 5.0–10.4. The harness records no execution time; the result file was written at 2026-09-24T17:43:11Z. `greeg 0.7.0` → `greeg 0.7.0+ad2d418d8`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **4**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.945 → 6.779 | 8.493 → 8.323 | 3 → 3 | | scan | word miss count | 6.569 → 7.403 | 10.447 → 11.182 | 3 → 3 | | scan | split miss unlimited | 7.251 → 7.004 | 10.777 → 11.604 | 3 → 3 | | scan | fuzzy miss unlimited | 6.840 → 7.206 | 9.757 → 11.405 | 3 → 3 | | scan | absent files | 6.074 → 6.309 | 9.329 → 8.386 | 3 → 3 | | scan | hit files | 6.304 → 6.378 | 10.459 → 10.008 | 55 → 55 | | scan | type files | 7.139 → 8.213 | 11.529 → 11.689 | 55 → 55 | | scan | glob files | 6.778 → 7.007 | 10.037 → 12.560 | 55 → 55 | | scan | hit count | 7.107 → 7.032 | 8.202 → 9.707 | 71 → 71 | | scan | hit unlimited | 7.262 → 7.183 | 9.352 → 8.912 | 295 → 295 | | scan | case miss json | 5.886 → 5.970 | 7.223 → 7.345 | 267 → 263 | | scan | hit json | 6.985 → 6.864 | 8.599 → 8.392 | 2734 → 2738 | | scan | def hit | 7.577 → 7.677 | 8.562 → 8.729 | 214 → 214 | | scan | def case hit | 7.481 → 7.539 | 8.566 → 8.706 | 214 → 214 | | scan | def case miss | 7.641 → 7.485 | 11.939 → 11.903 | 35 → 35 | | scan | ranked hit | 7.002 → 6.993 | 10.682 → 9.237 | 295 → 295 | | scan | ranked discovery | 13.478 → 12.175 | 24.557 → 22.850 | 308 → 308 | | index | case miss files | 6.419 → 6.456 | 8.073 → 8.232 | 3 → 3 | | index | word miss count | 6.826 → 6.663 | 8.401 → 8.523 | 3 → 3 | | index | split miss unlimited | 6.119 → 6.263 | 8.171 → 8.738 | 3 → 3 | | index | fuzzy miss unlimited | 5.978 → 5.850 | 6.836 → 7.702 | 3 → 3 | | index | absent files | 5.573 → 5.696 | 7.623 → 9.298 | 3 → 3 | | index | hit files | 5.388 → 5.444 | 6.763 → 7.499 | 55 → 55 | | index | type files | 6.090 → 6.126 | 8.006 → 7.776 | 55 → 55 | | index | glob files | 6.191 → 6.200 | 8.304 → 8.052 | 55 → 55 | | index | hit count | 5.767 → 5.895 | 7.103 → 7.319 | 71 → 71 | | index | hit unlimited | 5.816 → 5.787 | 8.601 → 8.058 | 295 → 295 | | index | case miss json | 5.579 → 5.554 | 5.980 → 6.043 | 265 → 265 | | index | hit json | 6.028 → 5.863 | 8.904 → 8.739 | 2736 → 2736 | | index | def hit | 6.535 → 6.629 | 9.193 → 8.216 | 254 → 254 | | index | def case hit | 6.222 → 6.302 | 8.416 → 8.279 | 278 → 278 | | index | def case miss | 6.172 → 6.174 | 8.328 → 9.152 | 35 → 35 | | index | ranked hit | 6.784 → 6.819 | 8.982 → 8.449 | 295 → 295 | | index | ranked discovery | 7.604 → 7.528 | 8.818 → 9.164 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/file-stamps-2026-09-24-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output file-stamps-2026-09-24-darwin-arm64.json`. ## Whole file stamps: confirmation (2026-09-24) Originating PR: [#32](https://github.com/thiagodmont/greeg/pull/32). Same binaries, 151 pairs, on the four flagged cases in both backends. Exit status and stdout are unchanged and every contract passes. No flag repeats: medians range from −2.4% to +1.5%, p95 at most +9.7%. Load average was 8.3–11.8. The harness records no execution time; the result file was written at 2026-09-24T17:51:39Z. `greeg 0.7.0` → `greeg 0.7.0+ad2d418d8`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **8/8 → 8/8**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | word miss count | 7.734 → 7.698 | 11.221 → 11.949 | 3 → 3 | | scan | type files | 7.281 → 7.225 | 11.950 → 11.668 | 55 → 55 | | scan | glob files | 7.625 → 7.671 | 11.292 → 10.701 | 55 → 55 | | scan | absent files | 7.225 → 7.053 | 12.685 → 13.244 | 3 → 3 | | index | word miss count | 6.848 → 6.796 | 9.169 → 9.328 | 3 → 3 | | index | type files | 6.881 → 6.888 | 8.606 → 8.820 | 55 → 55 | | index | glob files | 6.669 → 6.743 | 7.686 → 7.908 | 55 → 55 | | index | absent files | 6.888 → 6.990 | 17.299 → 18.977 | 3 → 3 | [Raw samples, environment, and binary/corpus digests](../bench/results/file-stamps-confirmation-2026-09-24-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases word_miss_count type_files glob_files absent_files --runs 151 --tokens --output file-stamps-confirmation-2026-09-24-darwin-arm64.json`. ## Raw path bytes: exact-search regression (2026-09-24) Originating PR: [#33](https://github.com/thiagodmont/greeg/pull/33). v0.7.0 against the branch that keeps paths as their bytes from the walk to the output (format 8). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), token counts are unchanged, and every contract passes. Medians range from −10.7% to +13.9%. Flags: scan fuzzy_miss_unlimited +13.9% median, scan split_miss_unlimited p95 only. Index build, disk, open, freshness and post-edit costs on tokio, django, ktor and TypeScript-5.9 (bench/index_costs.py, against v0.7.0 and against main) are in the PR. Load average was 5.2–14.7. The harness records no execution time; the result file was written at 2026-09-24T19:04:51Z. `greeg 0.7.0` → `greeg 0.7.0+49ed1934b.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **2**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.631 → 6.944 | 9.181 → 10.806 | 3 → 3 | | scan | word miss count | 9.240 → 9.294 | 12.218 → 13.153 | 3 → 3 | | scan | split miss unlimited | 8.830 → 7.888 | 13.398 → 22.133 | 3 → 3 | | scan | fuzzy miss unlimited | 12.332 → 14.040 | 128.275 → 95.153 | 3 → 3 | | scan | absent files | 17.933 → 18.664 | 96.961 → 39.624 | 3 → 3 | | scan | hit files | 18.006 → 16.528 | 72.305 → 42.064 | 55 → 55 | | scan | type files | 6.811 → 6.752 | 11.428 → 10.566 | 55 → 55 | | scan | glob files | 6.322 → 6.268 | 7.111 → 7.469 | 55 → 55 | | scan | hit count | 6.541 → 6.570 | 7.125 → 7.382 | 71 → 71 | | scan | hit unlimited | 6.929 → 6.883 | 7.655 → 7.899 | 295 → 295 | | scan | case miss json | 6.435 → 6.427 | 10.690 → 9.505 | 263 → 263 | | scan | hit json | 6.768 → 6.590 | 7.806 → 7.960 | 2734 → 2734 | | scan | def hit | 7.292 → 7.330 | 7.753 → 7.800 | 214 → 214 | | scan | def case hit | 8.037 → 7.867 | 9.371 → 9.531 | 214 → 214 | | scan | def case miss | 7.008 → 6.947 | 7.752 → 7.565 | 35 → 35 | | scan | ranked hit | 7.070 → 7.103 | 8.382 → 8.407 | 295 → 295 | | scan | ranked discovery | 10.327 → 10.421 | 11.317 → 11.736 | 308 → 308 | | index | case miss files | 6.309 → 6.873 | 7.951 → 8.688 | 3 → 3 | | index | word miss count | 9.329 → 9.720 | 33.087 → 26.584 | 3 → 3 | | index | split miss unlimited | 5.281 → 5.275 | 6.801 → 6.545 | 3 → 3 | | index | fuzzy miss unlimited | 6.211 → 6.373 | 7.102 → 7.141 | 3 → 3 | | index | absent files | 5.744 → 5.776 | 8.049 → 7.414 | 3 → 3 | | index | hit files | 5.312 → 5.316 | 6.059 → 5.666 | 55 → 55 | | index | type files | 5.579 → 5.580 | 5.993 → 6.512 | 55 → 55 | | index | glob files | 5.286 → 5.345 | 5.677 → 5.865 | 55 → 55 | | index | hit count | 5.499 → 5.509 | 6.122 → 5.837 | 71 → 71 | | index | hit unlimited | 5.438 → 5.454 | 5.877 → 6.122 | 295 → 295 | | index | case miss json | 5.367 → 5.398 | 5.668 → 5.753 | 265 → 265 | | index | hit json | 5.551 → 5.574 | 6.222 → 6.180 | 2736 → 2736 | | index | def hit | 5.333 → 5.387 | 7.319 → 6.711 | 254 → 254 | | index | def case hit | 5.129 → 5.149 | 5.567 → 5.909 | 278 → 278 | | index | def case miss | 4.912 → 4.955 | 5.696 → 5.769 | 35 → 35 | | index | ranked hit | 5.263 → 5.282 | 5.969 → 5.873 | 295 → 295 | | index | ranked discovery | 6.003 → 6.022 | 7.726 → 7.788 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/raw-path-bytes-2026-09-24-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output raw-path-bytes-2026-09-24-darwin-arm64.json`. ## Raw path bytes: confirmation (2026-09-24) Originating PR: [#33](https://github.com/thiagodmont/greeg/pull/33). Same binaries, 151 pairs, on the two flagged cases and case_miss_files in both backends. Exit status and stdout (JSON compared without elapsed fields) are unchanged and every contract passes. No flag repeats: medians range from −0.6% to +1.8%, p95 at most +1.9%. Load average was 3.7–3.9. The harness records no execution time; the result file was written at 2026-09-24T19:14:57Z. `greeg 0.7.0` → `greeg 0.7.0+49ed1934b.dirty`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **6/6 → 6/6**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | split miss unlimited | 6.128 → 6.126 | 6.739 → 6.670 | 3 → 3 | | scan | fuzzy miss unlimited | 6.226 → 6.186 | 9.282 → 8.627 | 3 → 3 | | scan | case miss files | 6.001 → 5.963 | 9.532 → 9.145 | 3 → 3 | | index | split miss unlimited | 5.289 → 5.326 | 6.917 → 7.021 | 3 → 3 | | index | fuzzy miss unlimited | 5.199 → 5.227 | 6.669 → 6.474 | 3 → 3 | | index | case miss files | 5.307 → 5.402 | 6.750 → 6.880 | 3 → 3 | [Raw samples, environment, and binary/corpus digests](../bench/results/raw-path-bytes-confirmation-2026-09-24-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases split_miss_unlimited fuzzy_miss_unlimited case_miss_files --runs 151 --tokens --output raw-path-bytes-confirmation-2026-09-24-darwin-arm64.json`. ## Generation snapshots: exact-search regression (2026-09-24) Originating PR: [#34](https://github.com/thiagodmont/greeg/pull/34). v0.7.0 against the branch that opens whole index snapshots from per-build directories with identified components, bounded retry and deferred cleanup (format 9). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), token counts are unchanged, and every contract passes. Medians range from −12.2% to +6.7%. One flag: scan def_hit p95 only (+36.5%, median −6.9%); scan mode does not read the index. Index build, disk, open, freshness and post-edit costs on tokio, django, ktor and TypeScript-5.9 (bench/index_costs.py, against main) are in the PR. Load average was 7.8–10.6. The harness records no execution time; the result file was written at 2026-09-24T22:17:19Z. `greeg 0.7.0` → `greeg 0.7.0+3ebae948c.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.481 → 6.331 | 8.372 → 8.108 | 3 → 3 | | scan | word miss count | 6.452 → 6.386 | 8.084 → 8.171 | 3 → 3 | | scan | split miss unlimited | 6.422 → 6.420 | 8.242 → 8.920 | 3 → 3 | | scan | fuzzy miss unlimited | 7.042 → 7.001 | 8.544 → 8.487 | 3 → 3 | | scan | absent files | 6.484 → 6.427 | 8.882 → 7.467 | 3 → 3 | | scan | hit files | 9.567 → 8.402 | 32.322 → 35.658 | 55 → 55 | | scan | type files | 8.429 → 7.952 | 14.195 → 12.149 | 55 → 55 | | scan | glob files | 9.414 → 9.486 | 22.145 → 23.621 | 55 → 55 | | scan | hit count | 7.789 → 7.877 | 8.656 → 8.573 | 71 → 71 | | scan | hit unlimited | 7.894 → 7.912 | 8.523 → 8.572 | 295 → 295 | | scan | case miss json | 7.065 → 7.114 | 7.932 → 7.972 | 263 → 263 | | scan | hit json | 7.898 → 7.769 | 9.242 → 9.797 | 2734 → 2734 | | scan | def hit | 11.887 → 11.069 | 29.550 → 40.351 | 214 → 214 | | scan | def case hit | 8.794 → 8.901 | 14.299 → 12.827 | 214 → 214 | | scan | def case miss | 9.765 → 10.420 | 16.904 → 14.387 | 35 → 35 | | scan | ranked hit | 7.949 → 8.022 | 11.822 → 11.712 | 295 → 295 | | scan | ranked discovery | 11.679 → 11.795 | 16.904 → 17.498 | 308 → 308 | | index | case miss files | 8.101 → 7.907 | 10.909 → 11.472 | 3 → 3 | | index | word miss count | 7.791 → 7.664 | 9.732 → 10.120 | 3 → 3 | | index | split miss unlimited | 7.518 → 7.501 | 12.875 → 12.794 | 3 → 3 | | index | fuzzy miss unlimited | 7.593 → 7.390 | 11.345 → 11.883 | 3 → 3 | | index | absent files | 8.051 → 7.560 | 11.705 → 13.023 | 3 → 3 | | index | hit files | 7.291 → 7.360 | 9.052 → 8.648 | 55 → 55 | | index | type files | 7.625 → 7.565 | 8.568 → 8.828 | 55 → 55 | | index | glob files | 7.726 → 7.996 | 10.138 → 10.156 | 55 → 55 | | index | hit count | 7.431 → 7.377 | 8.874 → 8.898 | 71 → 71 | | index | hit unlimited | 6.839 → 7.071 | 7.733 → 7.904 | 295 → 295 | | index | case miss json | 6.762 → 6.868 | 7.169 → 7.369 | 265 → 265 | | index | hit json | 6.573 → 6.688 | 7.624 → 7.711 | 2736 → 2736 | | index | def hit | 6.530 → 6.597 | 8.876 → 9.290 | 254 → 254 | | index | def case hit | 6.660 → 6.792 | 8.355 → 8.334 | 278 → 278 | | index | def case miss | 7.160 → 6.943 | 9.531 → 8.803 | 35 → 35 | | index | ranked hit | 7.036 → 7.122 | 8.359 → 8.449 | 295 → 295 | | index | ranked discovery | 8.212 → 8.461 | 9.190 → 10.056 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/generation-snapshots-2026-09-24-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output generation-snapshots-2026-09-24-darwin-arm64.json`. ## Generation snapshots: confirmation (2026-09-24) Originating PR: [#34](https://github.com/thiagodmont/greeg/pull/34). Same binaries, 151 pairs, on def_hit in both backends. Exit status and stdout are unchanged and the definition contract passes. The flag does not repeat: medians +0.7% (scan) and +0.6% (index), p95 −3.0% and +0.7%. Load average was 8.9–10.7. The harness records no execution time; the result file was written at 2026-09-24T22:17:52Z. `greeg 0.7.0` → `greeg 0.7.0+3ebae948c.dirty`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **2/2 → 2/2**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | def hit | 11.566 → 11.647 | 17.868 → 17.323 | 214 → 214 | | index | def hit | 6.960 → 7.003 | 7.732 → 7.786 | 254 → 254 | [Raw samples, environment, and binary/corpus digests](../bench/results/generation-snapshots-confirmation-2026-09-24-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases def_hit --runs 151 --tokens --output generation-snapshots-confirmation-2026-09-24-darwin-arm64.json`. ## Derivation fingerprints: exact-search regression (2026-09-27) Originating PR: [#35](https://github.com/thiagodmont/greeg/pull/35). v0.7.0 against the branch that rebuilds on resolver input, derivation and ignore changes with typed reasons, records language keys, and lets graph verbs wait for a short rebuild (format 10). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), token counts are unchanged, and every contract passes. Medians range from −1.5% to +2.6%, with no flag. Index build, disk, open, freshness and post-edit costs on tokio, django, ktor and TypeScript-5.9 (bench/index_costs.py, against main) are in the PR. Load average was 5.8–7.8. The harness records no execution time; the result file was written at 2026-09-27T18:31:09Z. `greeg 0.7.0` → `greeg 0.7.0+971980d8d`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.145 → 6.114 | 6.541 → 6.669 | 3 → 3 | | scan | word miss count | 6.386 → 6.434 | 7.560 → 7.424 | 3 → 3 | | scan | split miss unlimited | 6.182 → 6.209 | 6.889 → 6.594 | 3 → 3 | | scan | fuzzy miss unlimited | 6.282 → 6.218 | 6.608 → 6.635 | 3 → 3 | | scan | absent files | 6.124 → 6.071 | 6.898 → 6.461 | 3 → 3 | | scan | hit files | 6.155 → 6.158 | 6.654 → 6.566 | 55 → 55 | | scan | type files | 6.332 → 6.325 | 6.616 → 6.883 | 55 → 55 | | scan | glob files | 6.133 → 6.170 | 6.610 → 6.601 | 55 → 55 | | scan | hit count | 6.411 → 6.316 | 6.762 → 6.787 | 71 → 71 | | scan | hit unlimited | 6.697 → 6.627 | 7.275 → 6.987 | 295 → 295 | | scan | case miss json | 6.253 → 6.284 | 6.799 → 6.787 | 263 → 263 | | scan | hit json | 6.821 → 6.716 | 7.156 → 7.212 | 2734 → 2734 | | scan | def hit | 7.242 → 7.226 | 7.667 → 7.558 | 214 → 214 | | scan | def case hit | 7.465 → 7.488 | 7.866 → 7.944 | 214 → 214 | | scan | def case miss | 7.011 → 7.012 | 7.398 → 7.365 | 35 → 35 | | scan | ranked hit | 6.804 → 6.710 | 8.231 → 7.780 | 295 → 295 | | scan | ranked discovery | 9.547 → 9.529 | 10.119 → 10.068 | 308 → 308 | | index | case miss files | 5.404 → 5.498 | 5.901 → 6.054 | 3 → 3 | | index | word miss count | 5.495 → 5.460 | 6.156 → 6.139 | 3 → 3 | | index | split miss unlimited | 5.410 → 5.507 | 6.250 → 6.057 | 3 → 3 | | index | fuzzy miss unlimited | 5.480 → 5.520 | 6.178 → 6.143 | 3 → 3 | | index | absent files | 5.398 → 5.406 | 6.082 → 6.126 | 3 → 3 | | index | hit files | 5.405 → 5.507 | 5.891 → 6.056 | 55 → 55 | | index | type files | 5.697 → 5.803 | 6.137 → 6.460 | 55 → 55 | | index | glob files | 5.503 → 5.489 | 5.953 → 6.093 | 55 → 55 | | index | hit count | 5.630 → 5.649 | 6.192 → 6.255 | 71 → 71 | | index | hit unlimited | 5.689 → 5.768 | 6.293 → 6.297 | 295 → 295 | | index | case miss json | 5.552 → 5.642 | 6.269 → 6.310 | 265 → 265 | | index | hit json | 5.774 → 5.812 | 6.344 → 6.243 | 2736 → 2736 | | index | def hit | 5.421 → 5.471 | 6.360 → 6.023 | 254 → 254 | | index | def case hit | 5.432 → 5.451 | 6.214 → 5.914 | 278 → 278 | | index | def case miss | 5.329 → 5.419 | 5.762 → 6.102 | 35 → 35 | | index | ranked hit | 5.608 → 5.752 | 6.203 → 6.296 | 295 → 295 | | index | ranked discovery | 6.336 → 6.428 | 7.019 → 6.931 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/derivation-fingerprints-2026-09-27-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output derivation-fingerprints-2026-09-27-darwin-arm64.json`. ## Component integrity: exact-search regression (2026-09-27) Originating PR: [#36](https://github.com/thiagodmont/greeg/pull/36). v0.7.0 against the branch that verifies every component against per-block XXH3-64 digests whose trailer digests the manifest records, block by block as a query reads them, and answers from a scan when a check fails (format 11). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except hit_json, ±4 tokens in both backends, from the digits of its elapsed fields. Medians range from −0.8% to +3.3%, with no flag. Index build, disk, open, freshness and post-edit costs on tokio, django, ktor and TypeScript-5.9 (bench/index_costs.py, against main), are in the PR. Block size: 16 KiB. Measured on tokio, django and TypeScript-5.9 with blake3 block digests, no query was more than 3.8% slower at 4 KiB than at 16 KiB, which writes a quarter of its trailer; 64 KiB was slower on most small queries (open +3.7% to +6.0%, django def +9.5%); and verifying every block at open took TypeScript-5.9's open from 5.6 ms to 53 ms. Load average was 6.2–7.1. The harness records no execution time; the result file was written at 2026-09-27T21:36:31Z. `greeg 0.7.0` → `greeg 0.7.0+1392c2043`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.025 → 6.033 | 6.775 → 6.652 | 3 → 3 | | scan | word miss count | 6.025 → 6.128 | 6.628 → 6.842 | 3 → 3 | | scan | split miss unlimited | 6.109 → 6.101 | 6.560 → 6.603 | 3 → 3 | | scan | fuzzy miss unlimited | 6.090 → 6.086 | 6.636 → 6.618 | 3 → 3 | | scan | absent files | 5.957 → 5.976 | 6.555 → 6.761 | 3 → 3 | | scan | hit files | 6.051 → 6.031 | 6.483 → 6.843 | 55 → 55 | | scan | type files | 6.177 → 6.277 | 7.142 → 6.840 | 55 → 55 | | scan | glob files | 6.029 → 5.994 | 6.826 → 6.770 | 55 → 55 | | scan | hit count | 6.311 → 6.382 | 7.102 → 7.045 | 71 → 71 | | scan | hit unlimited | 6.599 → 6.647 | 7.605 → 7.414 | 295 → 295 | | scan | case miss json | 6.139 → 6.240 | 6.668 → 6.679 | 267 → 267 | | scan | hit json | 6.652 → 6.622 | 6.915 → 7.160 | 2738 → 2734 | | scan | def hit | 7.123 → 7.203 | 7.736 → 7.982 | 214 → 214 | | scan | def case hit | 7.423 → 7.367 | 7.692 → 8.084 | 214 → 214 | | scan | def case miss | 6.989 → 6.961 | 7.644 → 7.629 | 35 → 35 | | scan | ranked hit | 6.686 → 6.662 | 7.427 → 7.667 | 295 → 295 | | scan | ranked discovery | 9.461 → 9.521 | 9.820 → 9.846 | 308 → 308 | | index | case miss files | 5.470 → 5.609 | 6.038 → 6.131 | 3 → 3 | | index | word miss count | 5.460 → 5.464 | 6.877 → 6.097 | 3 → 3 | | index | split miss unlimited | 5.383 → 5.560 | 5.976 → 6.061 | 3 → 3 | | index | fuzzy miss unlimited | 5.523 → 5.537 | 6.096 → 6.573 | 3 → 3 | | index | absent files | 5.297 → 5.347 | 6.036 → 5.932 | 3 → 3 | | index | hit files | 5.510 → 5.672 | 6.199 → 6.468 | 55 → 55 | | index | type files | 5.736 → 5.779 | 6.319 → 6.388 | 55 → 55 | | index | glob files | 5.514 → 5.580 | 6.300 → 6.341 | 55 → 55 | | index | hit count | 5.712 → 5.839 | 6.725 → 6.374 | 71 → 71 | | index | hit unlimited | 5.661 → 5.710 | 5.958 → 6.094 | 295 → 295 | | index | case miss json | 5.607 → 5.782 | 6.162 → 6.075 | 265 → 265 | | index | hit json | 5.881 → 5.888 | 6.579 → 6.574 | 2736 → 2740 | | index | def hit | 5.427 → 5.566 | 6.291 → 6.439 | 254 → 254 | | index | def case hit | 5.458 → 5.535 | 6.218 → 6.527 | 278 → 278 | | index | def case miss | 5.352 → 5.431 | 6.182 → 6.379 | 35 → 35 | | index | ranked hit | 5.645 → 5.733 | 6.052 → 6.264 | 295 → 295 | | index | ranked discovery | 6.412 → 6.528 | 7.069 → 6.998 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/component-integrity-2026-09-27-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output component-integrity-2026-09-27-darwin-arm64.json`. ## Recovery before output: exact-search regression (2026-09-28) Originating PR: [#37](https://github.com/thiagodmont/greeg/pull/37). v0.7.0 against the branch that commits the output at its first byte, closes the index before it, recovers from a fault at most once and never re-runs after output started. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except case_miss_json and hit_json in the index backend, ±4 tokens from the digits of their elapsed fields. Medians range from −1.9% to +3.2%, with no flag. Index costs on tokio, django, ktor and TypeScript-5.9 (bench/index_costs.py, against main) and recovery latency are in the PR. The harness records no execution time; the result file was written at 2026-09-28T15:04:41Z. `greeg 0.7.0` → `greeg 0.7.0+ae39eb1af`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 5.756 → 5.784 | 6.387 → 6.489 | 3 → 3 | | scan | word miss count | 5.861 → 5.872 | 6.596 → 6.531 | 3 → 3 | | scan | split miss unlimited | 6.032 → 6.121 | 6.901 → 6.778 | 3 → 3 | | scan | fuzzy miss unlimited | 6.279 → 6.398 | 7.517 → 7.657 | 3 → 3 | | scan | absent files | 5.781 → 5.769 | 6.267 → 6.177 | 3 → 3 | | scan | hit files | 5.835 → 5.808 | 6.447 → 6.271 | 55 → 55 | | scan | type files | 6.082 → 6.029 | 6.662 → 6.761 | 55 → 55 | | scan | glob files | 5.878 → 5.869 | 6.189 → 6.250 | 55 → 55 | | scan | hit count | 6.153 → 6.134 | 6.571 → 6.509 | 71 → 71 | | scan | hit unlimited | 6.571 → 6.713 | 7.461 → 7.395 | 295 → 295 | | scan | case miss json | 6.062 → 6.018 | 6.588 → 6.748 | 263 → 263 | | scan | hit json | 6.678 → 6.735 | 7.641 → 7.705 | 2734 → 2734 | | scan | def hit | 7.082 → 7.146 | 7.936 → 7.824 | 214 → 214 | | scan | def case hit | 7.421 → 7.438 | 8.371 → 8.061 | 214 → 214 | | scan | def case miss | 7.000 → 6.866 | 7.795 → 7.706 | 35 → 35 | | scan | ranked hit | 6.750 → 6.666 | 8.377 → 8.208 | 295 → 295 | | scan | ranked discovery | 9.994 → 9.932 | 10.851 → 10.888 | 308 → 308 | | index | case miss files | 5.198 → 5.365 | 6.436 → 6.202 | 3 → 3 | | index | word miss count | 5.622 → 5.576 | 6.973 → 7.214 | 3 → 3 | | index | split miss unlimited | 5.005 → 5.134 | 5.763 → 5.496 | 3 → 3 | | index | fuzzy miss unlimited | 5.180 → 5.214 | 7.164 → 6.471 | 3 → 3 | | index | absent files | 4.866 → 5.010 | 6.077 → 6.054 | 3 → 3 | | index | hit files | 5.361 → 5.505 | 6.942 → 6.649 | 55 → 55 | | index | type files | 5.386 → 5.469 | 6.146 → 6.330 | 55 → 55 | | index | glob files | 4.982 → 5.053 | 5.803 → 5.754 | 55 → 55 | | index | hit count | 5.235 → 5.331 | 5.902 → 5.995 | 71 → 71 | | index | hit unlimited | 5.301 → 5.415 | 5.928 → 6.171 | 295 → 295 | | index | case miss json | 5.238 → 5.330 | 5.761 → 6.012 | 265 → 269 | | index | hit json | 5.337 → 5.399 | 6.131 → 5.997 | 2740 → 2736 | | index | def hit | 4.887 → 5.010 | 5.582 → 5.747 | 254 → 254 | | index | def case hit | 5.018 → 5.068 | 5.535 → 5.628 | 278 → 278 | | index | def case miss | 4.797 → 4.901 | 5.192 → 5.453 | 35 → 35 | | index | ranked hit | 5.210 → 5.334 | 5.652 → 5.754 | 295 → 295 | | index | ranked discovery | 5.848 → 6.022 | 6.561 → 6.696 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/recovery-before-output-2026-09-28-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output recovery-before-output-2026-09-28-darwin-arm64.json`. ## Symlinked ancestors: exact-search regression (2026-09-28) Originating PR: [#38](https://github.com/thiagodmont/greeg/pull/38). v0.7.0 against the branch that opens and stats every file below the root without following a symlink in any component (O_NOFOLLOW_ANY on macOS 11+, openat2 on Linux 5.6+, a no-follow directory walk otherwise). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except case_miss_json in the index backend, ±4 tokens from the digits of its elapsed fields. Medians range from −1.8% to +5.7%, with no flag. Index costs on tokio, django, ktor and TypeScript-5.9 (bench/index_costs.py, against main), including the fast path and fallback stat pass, are in the PR. The harness records no execution time; the result file was written at 2026-09-28T16:37:09Z. `greeg 0.7.0` → `greeg 0.7.0+3d8721be7`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.350 → 6.573 | 7.223 → 7.427 | 3 → 3 | | scan | word miss count | 6.463 → 6.603 | 7.382 → 7.359 | 3 → 3 | | scan | split miss unlimited | 6.486 → 6.679 | 7.516 → 7.592 | 3 → 3 | | scan | fuzzy miss unlimited | 6.608 → 6.758 | 7.419 → 7.775 | 3 → 3 | | scan | absent files | 6.416 → 6.598 | 7.380 → 7.518 | 3 → 3 | | scan | hit files | 6.524 → 6.708 | 7.261 → 7.834 | 55 → 55 | | scan | type files | 6.854 → 6.981 | 7.554 → 7.766 | 55 → 55 | | scan | glob files | 6.971 → 7.136 | 7.656 → 8.642 | 55 → 55 | | scan | hit count | 6.947 → 7.105 | 7.828 → 8.058 | 71 → 71 | | scan | hit unlimited | 7.073 → 7.088 | 7.863 → 7.764 | 295 → 295 | | scan | case miss json | 6.917 → 7.311 | 7.994 → 8.644 | 267 → 267 | | scan | hit json | 7.612 → 7.721 | 9.335 → 9.334 | 2734 → 2734 | | scan | def hit | 7.983 → 8.105 | 8.782 → 8.887 | 214 → 214 | | scan | def case hit | 8.562 → 8.624 | 9.324 → 9.504 | 214 → 214 | | scan | def case miss | 7.883 → 8.118 | 8.738 → 9.209 | 35 → 35 | | scan | ranked hit | 7.624 → 7.865 | 8.643 → 8.513 | 295 → 295 | | scan | ranked discovery | 10.647 → 10.820 | 11.240 → 11.683 | 308 → 308 | | index | case miss files | 5.885 → 5.980 | 6.641 → 6.726 | 3 → 3 | | index | word miss count | 5.909 → 6.193 | 6.770 → 7.023 | 3 → 3 | | index | split miss unlimited | 6.104 → 6.297 | 6.830 → 7.262 | 3 → 3 | | index | fuzzy miss unlimited | 6.551 → 6.717 | 7.361 → 7.430 | 3 → 3 | | index | absent files | 6.319 → 6.596 | 7.273 → 7.319 | 3 → 3 | | index | hit files | 5.928 → 6.071 | 6.923 → 7.164 | 55 → 55 | | index | type files | 6.767 → 7.049 | 8.626 → 8.279 | 55 → 55 | | index | glob files | 6.745 → 6.624 | 7.990 → 8.751 | 55 → 55 | | index | hit count | 6.573 → 6.615 | 7.825 → 8.001 | 71 → 71 | | index | hit unlimited | 6.642 → 6.733 | 7.229 → 7.580 | 295 → 295 | | index | case miss json | 6.782 → 7.065 | 7.771 → 8.075 | 269 → 265 | | index | hit json | 6.679 → 6.786 | 7.791 → 7.825 | 2736 → 2736 | | index | def hit | 7.155 → 7.414 | 8.134 → 8.117 | 254 → 254 | | index | def case hit | 6.512 → 6.607 | 7.468 → 7.442 | 278 → 278 | | index | def case miss | 6.477 → 6.619 | 8.029 → 8.551 | 35 → 35 | | index | ranked hit | 7.021 → 7.148 | 7.687 → 7.889 | 295 → 295 | | index | ranked discovery | 7.960 → 8.158 | 8.695 → 8.850 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/symlinked-ancestors-2026-09-28-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output symlinked-ancestors-2026-09-28-darwin-arm64.json`. ## Linux stat pass: exact-search regression (2026-09-28) Originating PR: [#39](https://github.com/thiagodmont/greeg/pull/39). v0.7.0 against the branch whose freshness pass stats by name where a stat cannot refuse symlinks in one call (Linux), and drops what lies below a directory that is no longer one. macOS keeps the one-call stat. All 34 cases keep their exit status and stdout, token counts are unchanged, and every contract passes. Medians range from −0.8% to +4.1%, with no flag. Index costs on Linux (tokio, django, TypeScript-5.9 on a hosted runner) and macOS (django, TypeScript-5.9) are in the PR. The harness records no execution time; the result file was written at 2026-09-28T20:13:48Z. `greeg 0.7.0` → `greeg 0.7.0+4a11582aa`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.899 → 7.149 | 7.856 → 7.976 | 3 → 3 | | scan | word miss count | 7.110 → 7.082 | 7.548 → 7.720 | 3 → 3 | | scan | split miss unlimited | 6.947 → 7.161 | 7.816 → 7.876 | 3 → 3 | | scan | fuzzy miss unlimited | 7.041 → 7.268 | 7.603 → 7.722 | 3 → 3 | | scan | absent files | 7.270 → 7.356 | 8.089 → 8.118 | 3 → 3 | | scan | hit files | 6.927 → 7.212 | 7.737 → 7.923 | 55 → 55 | | scan | type files | 7.170 → 7.342 | 7.939 → 8.055 | 55 → 55 | | scan | glob files | 7.098 → 7.243 | 8.678 → 9.249 | 55 → 55 | | scan | hit count | 7.212 → 7.404 | 7.863 → 8.146 | 71 → 71 | | scan | hit unlimited | 7.534 → 7.529 | 8.114 → 8.401 | 295 → 295 | | scan | case miss json | 7.069 → 7.202 | 7.709 → 8.298 | 263 → 263 | | scan | hit json | 7.589 → 7.767 | 8.228 → 8.391 | 2734 → 2734 | | scan | def hit | 8.039 → 8.264 | 8.793 → 9.095 | 214 → 214 | | scan | def case hit | 8.285 → 8.459 | 8.885 → 9.144 | 214 → 214 | | scan | def case miss | 7.900 → 8.063 | 8.476 → 8.764 | 35 → 35 | | scan | ranked hit | 7.393 → 7.506 | 7.951 → 8.234 | 295 → 295 | | scan | ranked discovery | 10.723 → 11.008 | 11.667 → 11.744 | 308 → 308 | | index | case miss files | 6.088 → 6.190 | 6.707 → 7.009 | 3 → 3 | | index | word miss count | 6.017 → 6.093 | 6.822 → 7.000 | 3 → 3 | | index | split miss unlimited | 6.116 → 6.128 | 6.665 → 6.738 | 3 → 3 | | index | fuzzy miss unlimited | 6.033 → 6.103 | 6.778 → 6.794 | 3 → 3 | | index | absent files | 6.122 → 6.257 | 7.165 → 7.060 | 3 → 3 | | index | hit files | 6.222 → 6.214 | 7.002 → 7.132 | 55 → 55 | | index | type files | 6.468 → 6.416 | 7.350 → 7.675 | 55 → 55 | | index | glob files | 6.223 → 6.289 | 6.864 → 7.075 | 55 → 55 | | index | hit count | 6.431 → 6.400 | 7.390 → 7.251 | 71 → 71 | | index | hit unlimited | 6.371 → 6.375 | 6.974 → 6.870 | 295 → 295 | | index | case miss json | 6.396 → 6.482 | 6.988 → 6.933 | 265 → 265 | | index | hit json | 6.467 → 6.585 | 7.162 → 7.060 | 2736 → 2736 | | index | def hit | 6.029 → 6.269 | 6.789 → 7.096 | 254 → 254 | | index | def case hit | 6.080 → 6.304 | 6.827 → 6.949 | 278 → 278 | | index | def case miss | 6.049 → 6.232 | 6.780 → 7.004 | 35 → 35 | | index | ranked hit | 6.335 → 6.349 | 6.931 → 7.108 | 295 → 295 | | index | ranked discovery | 7.098 → 7.353 | 7.771 → 8.062 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/linux-stat-pass-2026-09-28-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output linux-stat-pass-2026-09-28-darwin-arm64.json`. ## Legacy cleanup: exact-search regression (2026-09-29) Originating PR: [#42](https://github.com/thiagodmont/greeg/pull/42). v0.8.0 against the branch that tightens greeg's default cache and repository directories to 0700 when it writes, and removes other layouts' indexes once unverified for 14 days. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except case_miss_json and hit_json in the scan backend, 3 to 4 tokens from the digits of their elapsed fields. Medians range from −2.1% to +4.2%, with no flag. Index costs on tokio and django (bench/index_costs.py, against main) are in the PR. The harness records no execution time; the result file was written at 2026-09-29T17:17:30Z. `greeg 0.8.0` → `greeg 0.8.0+a12866742`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.634 → 6.675 | 8.081 → 7.797 | 3 → 3 | | scan | word miss count | 7.658 → 7.592 | 8.638 → 8.542 | 3 → 3 | | scan | split miss unlimited | 7.529 → 7.509 | 8.598 → 8.744 | 3 → 3 | | scan | fuzzy miss unlimited | 7.317 → 7.314 | 8.363 → 8.332 | 3 → 3 | | scan | absent files | 7.429 → 7.291 | 10.126 → 10.008 | 3 → 3 | | scan | hit files | 7.458 → 7.487 | 8.524 → 8.214 | 55 → 55 | | scan | type files | 8.129 → 7.992 | 9.349 → 10.826 | 55 → 55 | | scan | glob files | 7.523 → 7.430 | 8.588 → 8.306 | 55 → 55 | | scan | hit count | 8.106 → 8.026 | 9.153 → 8.970 | 71 → 71 | | scan | hit unlimited | 7.813 → 7.870 | 9.473 → 8.968 | 295 → 295 | | scan | case miss json | 7.576 → 7.842 | 10.231 → 9.419 | 267 → 263 | | scan | hit json | 8.517 → 8.479 | 9.371 → 9.356 | 2737 → 2734 | | scan | def hit | 8.964 → 9.173 | 10.269 → 10.531 | 214 → 214 | | scan | def case hit | 9.261 → 9.326 | 10.611 → 10.299 | 214 → 214 | | scan | def case miss | 8.695 → 8.746 | 9.600 → 9.562 | 35 → 35 | | scan | ranked hit | 8.453 → 8.446 | 9.628 → 9.217 | 295 → 295 | | scan | ranked discovery | 11.367 → 11.391 | 13.021 → 12.463 | 308 → 308 | | index | case miss files | 5.939 → 5.998 | 6.676 → 7.006 | 3 → 3 | | index | word miss count | 6.035 → 6.056 | 7.277 → 7.212 | 3 → 3 | | index | split miss unlimited | 6.572 → 6.485 | 7.596 → 7.450 | 3 → 3 | | index | fuzzy miss unlimited | 6.261 → 6.241 | 6.935 → 7.086 | 3 → 3 | | index | absent files | 6.974 → 7.013 | 8.714 → 8.545 | 3 → 3 | | index | hit files | 6.302 → 6.286 | 7.034 → 7.336 | 55 → 55 | | index | type files | 6.514 → 6.516 | 7.694 → 7.434 | 55 → 55 | | index | glob files | 6.335 → 6.288 | 7.462 → 7.583 | 55 → 55 | | index | hit count | 6.550 → 6.656 | 7.385 → 7.621 | 71 → 71 | | index | hit unlimited | 6.742 → 7.028 | 7.776 → 7.995 | 295 → 295 | | index | case miss json | 6.543 → 6.485 | 7.337 → 7.605 | 265 → 265 | | index | hit json | 6.787 → 6.897 | 7.471 → 7.731 | 2736 → 2736 | | index | def hit | 6.389 → 6.418 | 7.405 → 7.568 | 254 → 254 | | index | def case hit | 6.499 → 6.531 | 7.677 → 7.458 | 278 → 278 | | index | def case miss | 6.140 → 6.160 | 7.912 → 7.451 | 35 → 35 | | index | ranked hit | 6.437 → 6.320 | 7.295 → 7.116 | 295 → 295 | | index | ranked discovery | 7.518 → 7.357 | 8.404 → 8.311 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/legacy-cleanup-2026-09-29-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output legacy-cleanup-2026-09-29-darwin-arm64.json`. ## No-persist: exact-search regression (2026-09-29) Originating PR: [#43](https://github.com/thiagodmont/greeg/pull/43). v0.8.0 against the branch that adds --no-persist, measured in the default mode. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except hit_json in both backends, 4 to 5 tokens from the digits of its elapsed fields. Medians range from −2.0% to +2.0%, with no flag. Index costs on tokio and django against main, and no-persist against default on django, are in the PR. The harness records no execution time; the result file was written at 2026-09-29T18:00:56Z. `greeg 0.8.0` → `greeg 0.8.0+5f23b08f2`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 7.222 → 7.181 | 8.409 → 8.617 | 3 → 3 | | scan | word miss count | 7.217 → 7.261 | 8.147 → 8.125 | 3 → 3 | | scan | split miss unlimited | 6.839 → 6.906 | 7.953 → 7.920 | 3 → 3 | | scan | fuzzy miss unlimited | 6.870 → 6.830 | 7.398 → 7.564 | 3 → 3 | | scan | absent files | 6.776 → 6.867 | 7.635 → 7.756 | 3 → 3 | | scan | hit files | 6.852 → 6.868 | 7.676 → 7.592 | 55 → 55 | | scan | type files | 7.105 → 7.143 | 8.057 → 8.123 | 55 → 55 | | scan | glob files | 7.540 → 7.601 | 8.600 → 8.290 | 55 → 55 | | scan | hit count | 7.663 → 7.636 | 8.724 → 8.458 | 71 → 71 | | scan | hit unlimited | 7.811 → 7.827 | 8.946 → 8.870 | 295 → 295 | | scan | case miss json | 7.105 → 7.115 | 8.062 → 8.250 | 263 → 263 | | scan | hit json | 7.752 → 7.787 | 8.321 → 8.567 | 2734 → 2738 | | scan | def hit | 8.391 → 8.447 | 9.077 → 9.332 | 214 → 214 | | scan | def case hit | 8.857 → 8.899 | 9.532 → 9.525 | 214 → 214 | | scan | def case miss | 8.138 → 8.215 | 8.906 → 8.957 | 35 → 35 | | scan | ranked hit | 7.611 → 7.526 | 8.423 → 8.168 | 295 → 295 | | scan | ranked discovery | 11.205 → 10.981 | 12.275 → 12.797 | 308 → 308 | | index | case miss files | 5.606 → 5.676 | 6.488 → 6.966 | 3 → 3 | | index | word miss count | 5.554 → 5.665 | 6.549 → 6.579 | 3 → 3 | | index | split miss unlimited | 6.238 → 6.174 | 7.154 → 6.915 | 3 → 3 | | index | fuzzy miss unlimited | 6.374 → 6.326 | 7.048 → 7.090 | 3 → 3 | | index | absent files | 5.631 → 5.739 | 6.446 → 6.658 | 3 → 3 | | index | hit files | 5.763 → 5.795 | 6.812 → 6.768 | 55 → 55 | | index | type files | 5.920 → 5.942 | 7.176 → 6.994 | 55 → 55 | | index | glob files | 5.569 → 5.620 | 6.531 → 6.692 | 55 → 55 | | index | hit count | 6.171 → 6.180 | 7.411 → 7.510 | 71 → 71 | | index | hit unlimited | 6.089 → 6.087 | 7.199 → 6.871 | 295 → 295 | | index | case miss json | 6.463 → 6.572 | 7.888 → 7.719 | 265 → 265 | | index | hit json | 6.849 → 6.934 | 7.570 → 8.079 | 2740 → 2735 | | index | def hit | 5.970 → 5.941 | 7.184 → 6.928 | 254 → 254 | | index | def case hit | 5.872 → 5.807 | 7.100 → 7.085 | 278 → 278 | | index | def case miss | 6.686 → 6.605 | 7.365 → 7.622 | 35 → 35 | | index | ranked hit | 6.912 → 6.860 | 7.609 → 7.563 | 295 → 295 | | index | ranked discovery | 7.932 → 7.911 | 8.840 → 8.733 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/no-persist-2026-09-29-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output no-persist-2026-09-29-darwin-arm64.json`. ## Purge: exact-search regression (2026-09-29) Originating PR: [#44](https://github.com/thiagodmont/greeg/pull/44). v0.8.0 against the branch that adds greeg purge (query paths unchanged apart from the legacy cleanup's shared removal helper). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except hit_json in the scan backend, 4 tokens from the digits of its elapsed fields. Medians range from −6.0% to +4.3%, with no flag. Purge over 100 synthetic repository directories is in the PR. The harness records no execution time; the result file was written at 2026-09-29T18:16:24Z. `greeg 0.8.0` → `greeg 0.8.0+7c5e63a39`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.713 → 6.801 | 7.527 → 7.622 | 3 → 3 | | scan | word miss count | 6.532 → 6.656 | 7.185 → 7.418 | 3 → 3 | | scan | split miss unlimited | 6.906 → 6.932 | 7.672 → 7.661 | 3 → 3 | | scan | fuzzy miss unlimited | 6.804 → 6.878 | 7.597 → 7.682 | 3 → 3 | | scan | absent files | 6.698 → 6.680 | 7.663 → 8.370 | 3 → 3 | | scan | hit files | 7.036 → 6.942 | 8.154 → 8.106 | 55 → 55 | | scan | type files | 7.152 → 7.171 | 7.939 → 7.993 | 55 → 55 | | scan | glob files | 6.924 → 6.860 | 7.816 → 7.502 | 55 → 55 | | scan | hit count | 6.716 → 6.689 | 7.721 → 7.741 | 71 → 71 | | scan | hit unlimited | 7.259 → 7.181 | 7.999 → 8.063 | 295 → 295 | | scan | case miss json | 6.738 → 6.840 | 7.515 → 7.634 | 263 → 263 | | scan | hit json | 7.361 → 7.304 | 8.032 → 8.149 | 2734 → 2738 | | scan | def hit | 7.902 → 7.828 | 8.784 → 8.693 | 214 → 214 | | scan | def case hit | 8.129 → 7.971 | 9.025 → 8.838 | 214 → 214 | | scan | def case miss | 7.592 → 7.531 | 8.255 → 8.354 | 35 → 35 | | scan | ranked hit | 7.369 → 7.274 | 8.032 → 8.268 | 295 → 295 | | scan | ranked discovery | 10.350 → 10.383 | 11.403 → 11.216 | 308 → 308 | | index | case miss files | 5.655 → 5.750 | 6.812 → 7.142 | 3 → 3 | | index | word miss count | 5.721 → 5.729 | 6.805 → 7.197 | 3 → 3 | | index | split miss unlimited | 5.697 → 5.940 | 6.789 → 7.219 | 3 → 3 | | index | fuzzy miss unlimited | 5.841 → 5.689 | 6.928 → 6.643 | 3 → 3 | | index | absent files | 5.653 → 5.733 | 6.832 → 6.996 | 3 → 3 | | index | hit files | 6.042 → 5.679 | 7.022 → 6.975 | 55 → 55 | | index | type files | 6.367 → 6.332 | 7.820 → 8.535 | 55 → 55 | | index | glob files | 6.079 → 5.831 | 7.067 → 7.016 | 55 → 55 | | index | hit count | 6.058 → 6.157 | 7.478 → 7.174 | 71 → 71 | | index | hit unlimited | 6.032 → 6.121 | 7.054 → 6.932 | 295 → 295 | | index | case miss json | 6.285 → 6.052 | 7.263 → 7.042 | 265 → 265 | | index | hit json | 6.161 → 6.354 | 7.829 → 7.305 | 2736 → 2736 | | index | def hit | 6.000 → 5.841 | 6.697 → 6.610 | 254 → 254 | | index | def case hit | 6.045 → 5.896 | 7.325 → 6.662 | 278 → 278 | | index | def case miss | 5.756 → 5.793 | 6.670 → 6.740 | 35 → 35 | | index | ranked hit | 6.001 → 6.091 | 7.069 → 7.164 | 295 → 295 | | index | ranked discovery | 7.672 → 7.313 | 11.052 → 11.342 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/purge-2026-09-29-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output purge-2026-09-29-darwin-arm64.json`. ## Per-build index directories: exact-search regression (2026-09-29) Originating PR: [#45](https://github.com/thiagodmont/greeg/pull/45). v0.8.0 against the branch that keeps each build's index in v-/ and adds the mixed-version CI job. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except case_miss_json in the scan backend, 4 tokens from the digits of its elapsed fields. Medians range from −4.5% to +4.2%, with no flag. Rebuilds and first-query cost when alternating two versions on django are in the PR. The harness records no execution time; the result file was written at 2026-09-29T18:38:19Z. `greeg 0.8.0` → `greeg 0.8.0+e295e944b.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.226 → 6.192 | 6.876 → 7.177 | 3 → 3 | | scan | word miss count | 6.259 → 6.378 | 7.304 → 7.244 | 3 → 3 | | scan | split miss unlimited | 6.362 → 6.396 | 7.211 → 7.440 | 3 → 3 | | scan | fuzzy miss unlimited | 6.291 → 6.327 | 7.121 → 7.030 | 3 → 3 | | scan | absent files | 6.151 → 6.251 | 6.949 → 7.132 | 3 → 3 | | scan | hit files | 6.131 → 6.389 | 7.390 → 7.053 | 55 → 55 | | scan | type files | 6.798 → 6.611 | 7.273 → 7.291 | 55 → 55 | | scan | glob files | 6.293 → 6.256 | 6.872 → 6.953 | 55 → 55 | | scan | hit count | 6.807 → 6.811 | 7.940 → 7.611 | 71 → 71 | | scan | hit unlimited | 6.940 → 7.051 | 8.304 → 8.137 | 295 → 295 | | scan | case miss json | 6.679 → 6.734 | 8.026 → 7.934 | 263 → 267 | | scan | hit json | 7.132 → 7.128 | 8.125 → 8.100 | 2734 → 2734 | | scan | def hit | 7.641 → 7.642 | 8.420 → 8.266 | 214 → 214 | | scan | def case hit | 7.834 → 7.874 | 8.572 → 8.758 | 214 → 214 | | scan | def case miss | 7.357 → 7.447 | 8.388 → 8.433 | 35 → 35 | | scan | ranked hit | 7.090 → 7.187 | 7.924 → 7.758 | 295 → 295 | | scan | ranked discovery | 10.198 → 10.131 | 10.901 → 10.882 | 308 → 308 | | index | case miss files | 5.519 → 5.709 | 6.213 → 6.631 | 3 → 3 | | index | word miss count | 5.533 → 5.711 | 6.847 → 6.547 | 3 → 3 | | index | split miss unlimited | 5.479 → 5.571 | 6.705 → 6.326 | 3 → 3 | | index | fuzzy miss unlimited | 5.611 → 5.640 | 6.638 → 6.292 | 3 → 3 | | index | absent files | 5.428 → 5.427 | 6.149 → 6.314 | 3 → 3 | | index | hit files | 5.616 → 5.532 | 6.444 → 6.267 | 55 → 55 | | index | type files | 6.014 → 6.008 | 6.959 → 7.323 | 55 → 55 | | index | glob files | 5.620 → 5.726 | 6.526 → 6.337 | 55 → 55 | | index | hit count | 6.758 → 6.836 | 9.177 → 9.074 | 71 → 71 | | index | hit unlimited | 5.912 → 5.900 | 6.779 → 7.006 | 295 → 295 | | index | case miss json | 5.773 → 5.766 | 6.452 → 6.448 | 265 → 265 | | index | hit json | 5.942 → 5.983 | 6.794 → 6.737 | 2736 → 2736 | | index | def hit | 5.696 → 5.645 | 6.742 → 6.722 | 254 → 254 | | index | def case hit | 5.736 → 5.697 | 6.453 → 6.634 | 278 → 278 | | index | def case miss | 6.104 → 5.831 | 7.088 → 7.025 | 35 → 35 | | index | ranked hit | 5.823 → 6.029 | 6.930 → 6.759 | 295 → 295 | | index | ranked discovery | 7.211 → 7.166 | 8.781 → 9.914 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/mixed-versions-2026-09-29-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output mixed-versions-2026-09-29-darwin-arm64.json`. ## Graph repair after added and deleted files: exact-search regression (2026-09-29) Originating PR: [#46](https://github.com/thiagodmont/greeg/pull/46). v0.8.0 against the branch that resolves the stored imports of unchanged files again when a check adds or deletes files (format 12). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except hit_json in the index backend, 4 tokens from the digits of its elapsed fields. Medians range from −5.2% to +5.2%, with no flag. The first query after an added file, and the edge-equality gate on django, tokio, ui and TypeScript-5.9, are in the PR. The harness records no execution time; the result file was written at 2026-09-29T20:13:29Z. `greeg 0.8.0` → `greeg 0.8.0+bc43947cb.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.875 → 6.517 | 7.923 → 8.164 | 3 → 3 | | scan | word miss count | 7.142 → 7.033 | 8.241 → 8.083 | 3 → 3 | | scan | split miss unlimited | 6.831 → 6.768 | 7.587 → 7.671 | 3 → 3 | | scan | fuzzy miss unlimited | 6.702 → 6.840 | 7.458 → 7.553 | 3 → 3 | | scan | absent files | 6.679 → 6.686 | 7.577 → 7.471 | 3 → 3 | | scan | hit files | 6.811 → 6.803 | 7.782 → 7.612 | 55 → 55 | | scan | type files | 6.976 → 7.012 | 8.006 → 7.752 | 55 → 55 | | scan | glob files | 6.809 → 6.786 | 7.561 → 7.736 | 55 → 55 | | scan | hit count | 7.094 → 7.010 | 7.763 → 8.020 | 71 → 71 | | scan | hit unlimited | 7.601 → 7.465 | 8.494 → 8.285 | 295 → 295 | | scan | case miss json | 6.996 → 7.053 | 7.763 → 7.695 | 263 → 263 | | scan | hit json | 7.725 → 7.751 | 8.629 → 8.746 | 2734 → 2734 | | scan | def hit | 8.038 → 8.139 | 8.961 → 8.717 | 214 → 214 | | scan | def case hit | 8.303 → 8.248 | 8.987 → 9.107 | 214 → 214 | | scan | def case miss | 7.726 → 7.902 | 8.988 → 8.798 | 35 → 35 | | scan | ranked hit | 7.608 → 7.576 | 8.329 → 8.478 | 295 → 295 | | scan | ranked discovery | 10.688 → 10.752 | 11.703 → 11.467 | 308 → 308 | | index | case miss files | 6.304 → 6.415 | 7.649 → 7.386 | 3 → 3 | | index | word miss count | 6.876 → 6.879 | 9.497 → 9.453 | 3 → 3 | | index | split miss unlimited | 5.984 → 6.297 | 7.223 → 7.351 | 3 → 3 | | index | fuzzy miss unlimited | 5.383 → 5.599 | 6.734 → 6.764 | 3 → 3 | | index | absent files | 5.502 → 5.358 | 6.484 → 6.855 | 3 → 3 | | index | hit files | 5.518 → 5.618 | 6.477 → 7.017 | 55 → 55 | | index | type files | 5.835 → 5.878 | 6.603 → 7.150 | 55 → 55 | | index | glob files | 5.561 → 5.566 | 6.802 → 6.718 | 55 → 55 | | index | hit count | 5.720 → 5.752 | 7.003 → 6.721 | 71 → 71 | | index | hit unlimited | 5.651 → 5.623 | 7.285 → 6.934 | 295 → 295 | | index | case miss json | 5.609 → 5.653 | 6.572 → 7.197 | 269 → 269 | | index | hit json | 5.798 → 5.897 | 7.027 → 7.263 | 2736 → 2740 | | index | def hit | 5.405 → 5.407 | 6.316 → 6.726 | 254 → 254 | | index | def case hit | 5.474 → 5.522 | 6.743 → 7.271 | 278 → 278 | | index | def case miss | 5.677 → 5.593 | 8.116 → 8.998 | 35 → 35 | | index | ranked hit | 5.694 → 5.696 | 7.774 → 7.467 | 295 → 295 | | index | ranked discovery | 6.463 → 6.444 | 7.642 → 8.286 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/graph-repair-2026-09-29-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output graph-repair-2026-09-29-darwin-arm64.json`. ## greeg's own directories left out of walks: exact-search regression (2026-09-29) Originating PR: [#48](https://github.com/thiagodmont/greeg/pull/48). v0.8.0 against the branch that leaves greeg's own directories (a chosen index directory, the cache) out of every walk when they lie inside the tree. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except hit_json in the index backend, 4 tokens from the digits of its elapsed fields. Medians range from −3.8% to +5.4%, with no flag. Index build, freshness and post-edit costs against main are in the PR. The harness records no execution time; the result file was written at 2026-09-29T23:53:17Z. `greeg 0.8.0` → `greeg 0.8.0+ab7b957f7.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 5.883 → 5.914 | 6.977 → 6.641 | 3 → 3 | | scan | word miss count | 5.951 → 6.024 | 6.711 → 6.629 | 3 → 3 | | scan | split miss unlimited | 6.053 → 6.015 | 7.337 → 6.979 | 3 → 3 | | scan | fuzzy miss unlimited | 6.065 → 6.062 | 6.865 → 7.079 | 3 → 3 | | scan | absent files | 5.809 → 5.973 | 6.833 → 7.008 | 3 → 3 | | scan | hit files | 6.075 → 6.011 | 6.833 → 7.271 | 55 → 55 | | scan | type files | 7.360 → 7.385 | 9.393 → 8.919 | 55 → 55 | | scan | glob files | 6.688 → 6.758 | 7.401 → 7.601 | 55 → 55 | | scan | hit count | 6.652 → 6.600 | 7.450 → 7.941 | 71 → 71 | | scan | hit unlimited | 6.770 → 6.835 | 7.974 → 8.076 | 295 → 295 | | scan | case miss json | 6.914 → 6.899 | 7.942 → 7.760 | 263 → 263 | | scan | hit json | 7.420 → 7.458 | 8.194 → 8.175 | 2734 → 2734 | | scan | def hit | 7.141 → 7.125 | 8.242 → 8.080 | 214 → 214 | | scan | def case hit | 7.488 → 7.617 | 8.660 → 8.451 | 214 → 214 | | scan | def case miss | 7.119 → 7.076 | 8.521 → 7.916 | 35 → 35 | | scan | ranked hit | 6.819 → 6.701 | 7.827 → 7.882 | 295 → 295 | | scan | ranked discovery | 9.675 → 9.474 | 10.602 → 10.564 | 308 → 308 | | index | case miss files | 5.242 → 5.403 | 6.404 → 6.571 | 3 → 3 | | index | word miss count | 5.710 → 5.663 | 6.783 → 6.837 | 3 → 3 | | index | split miss unlimited | 5.751 → 5.773 | 6.942 → 7.361 | 3 → 3 | | index | fuzzy miss unlimited | 6.190 → 6.112 | 7.667 → 7.681 | 3 → 3 | | index | absent files | 6.067 → 5.834 | 7.710 → 7.577 | 3 → 3 | | index | hit files | 5.520 → 5.468 | 6.753 → 7.036 | 55 → 55 | | index | type files | 6.082 → 6.067 | 7.551 → 7.314 | 55 → 55 | | index | glob files | 5.535 → 5.603 | 6.940 → 6.649 | 55 → 55 | | index | hit count | 5.761 → 5.835 | 6.667 → 7.034 | 71 → 71 | | index | hit unlimited | 6.032 → 6.010 | 6.937 → 7.030 | 295 → 295 | | index | case miss json | 6.036 → 6.004 | 7.278 → 6.823 | 269 → 269 | | index | hit json | 6.123 → 6.117 | 7.791 → 7.295 | 2740 → 2736 | | index | def hit | 5.695 → 5.727 | 6.848 → 6.601 | 254 → 254 | | index | def case hit | 5.637 → 5.742 | 6.787 → 7.036 | 278 → 278 | | index | def case miss | 5.654 → 5.560 | 6.686 → 6.505 | 35 → 35 | | index | ranked hit | 5.998 → 6.321 | 7.549 → 7.376 | 295 → 295 | | index | ranked discovery | 6.281 → 6.411 | 7.735 → 7.744 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/owned-dirs-2026-09-29-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output owned-dirs-2026-09-29-darwin-arm64.json`. ## Counted parse budget: exact-search regression (2026-09-30) Originating PR: [#49](https://github.com/thiagodmont/greeg/pull/49). v0.8.0 against the branch that bounds extraction parses by 20,000 tree-sitter progress reports instead of a 200 ms clock (query paths unchanged; --precise keeps its clock). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except case_miss_json in the index backend, 4 tokens from the digits of its elapsed fields. Medians range from −2.6% to +4.2%, with no flag. Build determinism under load and build cost against main are in the PR. The harness records no execution time; the result file was written at 2026-09-30T00:16:26Z. `greeg 0.8.0` → `greeg 0.8.0+ab7b957f7.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.953 → 6.863 | 7.906 → 7.435 | 3 → 3 | | scan | word miss count | 6.845 → 6.830 | 7.575 → 8.010 | 3 → 3 | | scan | split miss unlimited | 6.898 → 6.910 | 7.778 → 7.519 | 3 → 3 | | scan | fuzzy miss unlimited | 6.867 → 6.827 | 7.979 → 8.342 | 3 → 3 | | scan | absent files | 7.634 → 7.624 | 8.179 → 8.603 | 3 → 3 | | scan | hit files | 7.919 → 7.950 | 12.106 → 11.544 | 55 → 55 | | scan | type files | 8.183 → 8.243 | 8.670 → 8.895 | 55 → 55 | | scan | glob files | 6.884 → 6.960 | 7.963 → 7.972 | 55 → 55 | | scan | hit count | 7.723 → 7.561 | 8.789 → 9.083 | 71 → 71 | | scan | hit unlimited | 8.333 → 8.451 | 8.949 → 8.996 | 295 → 295 | | scan | case miss json | 7.207 → 7.225 | 8.093 → 8.489 | 263 → 263 | | scan | hit json | 7.681 → 7.710 | 8.303 → 8.548 | 2734 → 2734 | | scan | def hit | 8.172 → 8.196 | 8.890 → 8.701 | 214 → 214 | | scan | def case hit | 8.350 → 8.446 | 9.347 → 9.768 | 214 → 214 | | scan | def case miss | 7.821 → 7.846 | 8.674 → 8.565 | 35 → 35 | | scan | ranked hit | 7.292 → 7.421 | 8.046 → 8.041 | 295 → 295 | | scan | ranked discovery | 11.052 → 10.852 | 11.895 → 12.303 | 308 → 308 | | index | case miss files | 6.496 → 6.551 | 7.559 → 7.606 | 3 → 3 | | index | word miss count | 7.416 → 7.359 | 8.675 → 9.493 | 3 → 3 | | index | split miss unlimited | 7.006 → 7.059 | 7.917 → 8.143 | 3 → 3 | | index | fuzzy miss unlimited | 6.743 → 6.767 | 7.568 → 7.473 | 3 → 3 | | index | absent files | 7.013 → 7.103 | 7.788 → 7.701 | 3 → 3 | | index | hit files | 7.547 → 7.507 | 8.005 → 8.194 | 55 → 55 | | index | type files | 7.441 → 7.421 | 8.043 → 7.912 | 55 → 55 | | index | glob files | 7.249 → 7.239 | 7.810 → 8.019 | 55 → 55 | | index | hit count | 7.010 → 7.116 | 7.621 → 7.645 | 71 → 71 | | index | hit unlimited | 6.802 → 6.842 | 7.619 → 7.617 | 295 → 295 | | index | case miss json | 7.193 → 7.275 | 7.880 → 7.921 | 265 → 269 | | index | hit json | 6.638 → 6.585 | 7.694 → 7.926 | 2740 → 2740 | | index | def hit | 5.415 → 5.460 | 5.948 → 5.967 | 254 → 254 | | index | def case hit | 5.541 → 5.564 | 6.306 → 6.710 | 278 → 278 | | index | def case miss | 5.470 → 5.622 | 7.260 → 7.527 | 35 → 35 | | index | ranked hit | 6.190 → 6.452 | 7.754 → 7.615 | 295 → 295 | | index | ranked discovery | 7.191 → 7.006 | 8.726 → 9.112 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/parse-budget-2026-09-30-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output parse-budget-2026-09-30-darwin-arm64.json`. ## Verification stamped when the tree was read: exact-search regression (2026-09-30) Originating PR: [#51](https://github.com/thiagodmont/greeg/pull/51). v0.8.0 against the branch that stamps an index verified when its walk or check began rather than when it was published. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except hit_json in both backends, 1 and 4 tokens from the digits of its elapsed fields. Medians range from −6.5% to +5.6%, with no flag. Index costs against main are in the PR. The harness records no execution time; the result file was written at 2026-09-30T18:33:59Z. `greeg 0.8.0` → `greeg 0.8.0+c2751cc50`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 8.017 → 7.874 | 10.407 → 10.188 | 3 → 3 | | scan | word miss count | 8.867 → 8.293 | 10.567 → 10.631 | 3 → 3 | | scan | split miss unlimited | 8.902 → 8.787 | 10.608 → 10.748 | 3 → 3 | | scan | fuzzy miss unlimited | 8.731 → 8.613 | 10.791 → 10.882 | 3 → 3 | | scan | absent files | 8.063 → 8.517 | 10.222 → 10.428 | 3 → 3 | | scan | hit files | 7.577 → 7.686 | 8.626 → 8.339 | 55 → 55 | | scan | type files | 7.351 → 7.522 | 7.914 → 8.018 | 55 → 55 | | scan | glob files | 6.928 → 6.979 | 7.795 → 7.699 | 55 → 55 | | scan | hit count | 7.166 → 7.236 | 7.975 → 8.031 | 71 → 71 | | scan | hit unlimited | 7.660 → 7.663 | 8.108 → 8.240 | 295 → 295 | | scan | case miss json | 7.142 → 7.126 | 7.784 → 7.911 | 263 → 263 | | scan | hit json | 7.674 → 7.660 | 8.658 → 8.816 | 2734 → 2733 | | scan | def hit | 8.258 → 8.263 | 8.892 → 9.067 | 214 → 214 | | scan | def case hit | 8.645 → 8.498 | 9.190 → 9.430 | 214 → 214 | | scan | def case miss | 7.959 → 7.878 | 8.524 → 8.705 | 35 → 35 | | scan | ranked hit | 8.014 → 8.085 | 8.605 → 8.732 | 295 → 295 | | scan | ranked discovery | 13.666 → 13.698 | 16.134 → 16.824 | 308 → 308 | | index | case miss files | 6.798 → 6.948 | 7.619 → 7.665 | 3 → 3 | | index | word miss count | 6.625 → 6.810 | 7.524 → 7.617 | 3 → 3 | | index | split miss unlimited | 6.622 → 6.727 | 7.488 → 7.573 | 3 → 3 | | index | fuzzy miss unlimited | 6.575 → 6.720 | 7.402 → 7.399 | 3 → 3 | | index | absent files | 6.998 → 7.051 | 7.755 → 7.915 | 3 → 3 | | index | hit files | 6.503 → 6.415 | 7.307 → 7.471 | 55 → 55 | | index | type files | 6.564 → 6.519 | 7.675 → 7.559 | 55 → 55 | | index | glob files | 6.499 → 6.379 | 7.132 → 7.236 | 55 → 55 | | index | hit count | 6.819 → 6.734 | 7.486 → 7.506 | 71 → 71 | | index | hit unlimited | 6.491 → 6.658 | 7.425 → 7.359 | 295 → 295 | | index | case miss json | 6.300 → 6.524 | 7.522 → 7.689 | 265 → 265 | | index | hit json | 6.479 → 6.697 | 7.699 → 7.666 | 2740 → 2736 | | index | def hit | 6.626 → 6.542 | 7.778 → 7.704 | 254 → 254 | | index | def case hit | 6.412 → 6.452 | 7.116 → 7.328 | 278 → 278 | | index | def case miss | 6.423 → 6.267 | 7.209 → 7.132 | 35 → 35 | | index | ranked hit | 6.737 → 6.586 | 7.373 → 7.516 | 295 → 295 | | index | ranked discovery | 7.392 → 7.580 | 8.410 → 8.470 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/verified-at-walk-2026-09-30-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output verified-at-walk-2026-09-30-darwin-arm64.json`. ## Byte-safe file content in JSON and --budget 0: exact-search regression (2026-10-01) Originating PR: [#53](https://github.com/thiagodmont/greeg/pull/53). v0.8.0 against the branch that keeps file content that is not UTF-8 as {"bytes"} in JSON and byte for byte under --budget 0 (F12b). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Token counts are unchanged except case_miss_json in the scan backend and hit_json in both backends, 4 tokens each from the digits of their elapsed fields. Medians range from −1.8% to +2.4%, with no flag. The harness records no execution time; the result file was written at 2026-10-01T19:46:04Z. `greeg 0.8.0` → `greeg 0.8.0+bda6cc862`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.816 → 6.714 | 7.865 → 7.632 | 3 → 3 | | scan | word miss count | 7.590 → 7.634 | 8.321 → 8.229 | 3 → 3 | | scan | split miss unlimited | 7.246 → 7.375 | 7.918 → 8.026 | 3 → 3 | | scan | fuzzy miss unlimited | 7.595 → 7.776 | 9.207 → 10.335 | 3 → 3 | | scan | absent files | 7.613 → 7.702 | 8.123 → 8.796 | 3 → 3 | | scan | hit files | 7.729 → 7.591 | 10.136 → 10.549 | 55 → 55 | | scan | type files | 7.007 → 6.998 | 7.684 → 7.702 | 55 → 55 | | scan | glob files | 7.091 → 7.157 | 7.983 → 7.873 | 55 → 55 | | scan | hit count | 8.041 → 8.001 | 9.312 → 9.374 | 71 → 71 | | scan | hit unlimited | 8.076 → 8.117 | 8.648 → 9.038 | 295 → 295 | | scan | case miss json | 7.586 → 7.665 | 8.700 → 8.219 | 263 → 267 | | scan | hit json | 8.216 → 8.294 | 9.173 → 8.992 | 2738 → 2734 | | scan | def hit | 8.678 → 8.531 | 9.424 → 9.440 | 214 → 214 | | scan | def case hit | 8.523 → 8.582 | 9.583 → 9.420 | 214 → 214 | | scan | def case miss | 8.265 → 8.227 | 8.881 → 8.893 | 35 → 35 | | scan | ranked hit | 7.891 → 7.910 | 8.694 → 8.517 | 295 → 295 | | scan | ranked discovery | 11.138 → 11.130 | 11.861 → 12.092 | 308 → 308 | | index | case miss files | 7.159 → 7.330 | 7.697 → 8.090 | 3 → 3 | | index | word miss count | 6.897 → 6.894 | 8.588 → 8.061 | 3 → 3 | | index | split miss unlimited | 6.828 → 6.859 | 7.484 → 7.808 | 3 → 3 | | index | fuzzy miss unlimited | 6.237 → 6.331 | 7.076 → 7.435 | 3 → 3 | | index | absent files | 6.372 → 6.436 | 7.162 → 7.407 | 3 → 3 | | index | hit files | 6.539 → 6.605 | 7.333 → 7.464 | 55 → 55 | | index | type files | 6.822 → 6.840 | 7.929 → 8.078 | 55 → 55 | | index | glob files | 6.771 → 6.808 | 7.360 → 7.447 | 55 → 55 | | index | hit count | 7.365 → 7.413 | 8.200 → 8.605 | 71 → 71 | | index | hit unlimited | 7.654 → 7.558 | 8.574 → 8.424 | 295 → 295 | | index | case miss json | 6.647 → 6.566 | 7.458 → 7.360 | 265 → 265 | | index | hit json | 7.026 → 6.932 | 8.062 → 8.096 | 2740 → 2736 | | index | def hit | 6.796 → 6.753 | 8.220 → 8.299 | 254 → 254 | | index | def case hit | 6.925 → 7.023 | 8.074 → 7.823 | 278 → 278 | | index | def case miss | 5.995 → 6.126 | 7.059 → 7.143 | 35 → 35 | | index | ranked hit | 6.867 → 7.025 | 8.836 → 8.190 | 295 → 295 | | index | ranked discovery | 8.063 → 8.059 | 8.733 → 8.981 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/json-bytes-2026-10-01-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output json-bytes-2026-10-01-darwin-arm64.json`. ## `--json=rg` dialect: exact-search regression and ripgrep equality (2026-10-01) Originating PR: [#54](https://github.com/thiagodmont/greeg/pull/54). v0.9.0 against the branch that adds --json=rg, ripgrep's JSON records and semantics only, after its review fixes (every occurrence kept under unlimited output, no bytes counted for a file skipped as binary). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), and every contract passes. Under --json=rg, all 14 search cases equal rg --json byte for byte in both backends, timings aside (28/28); under the index only the summary's searches and bytes_searched may count fewer files. Token counts are unchanged except case_miss_json in the index backend, 4 tokens from the digits of its elapsed fields. Medians range from −2.3% to +2.6%. The index def_hit p95 changed +64.5% (median −1.0%); a 151-pair recheck of def_hit did not reproduce it (index p95 −3.7%, scan −23.1%), and def does not run the changed code. The harness records no execution time; the result file was written at 2026-10-01T21:38:02Z. `greeg 0.9.0+ffc5a7151` → `greeg 0.9.0+986822b60.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.983 → 6.971 | 8.933 → 8.228 | 3 → 3 | | scan | word miss count | 6.974 → 6.990 | 8.132 → 7.848 | 3 → 3 | | scan | split miss unlimited | 6.827 → 6.859 | 8.010 → 7.803 | 3 → 3 | | scan | fuzzy miss unlimited | 7.305 → 7.158 | 8.852 → 8.200 | 3 → 3 | | scan | absent files | 6.652 → 6.738 | 7.537 → 7.587 | 3 → 3 | | scan | hit files | 7.160 → 7.103 | 7.903 → 7.906 | 55 → 55 | | scan | type files | 7.050 → 7.024 | 8.281 → 8.250 | 55 → 55 | | scan | glob files | 7.132 → 7.059 | 7.963 → 8.170 | 55 → 55 | | scan | hit count | 7.001 → 7.122 | 8.087 → 8.364 | 71 → 71 | | scan | hit unlimited | 7.324 → 7.515 | 8.569 → 8.594 | 295 → 295 | | scan | case miss json | 7.268 → 7.100 | 9.360 → 8.314 | 263 → 263 | | scan | hit json | 7.656 → 7.637 | 8.331 → 8.441 | 2734 → 2734 | | scan | def hit | 8.351 → 8.207 | 9.114 → 9.033 | 214 → 214 | | scan | def case hit | 8.559 → 8.436 | 9.490 → 9.423 | 214 → 214 | | scan | def case miss | 7.783 → 7.735 | 8.614 → 8.756 | 35 → 35 | | scan | ranked hit | 7.409 → 7.495 | 8.232 → 8.036 | 295 → 295 | | scan | ranked discovery | 10.746 → 10.601 | 11.923 → 11.625 | 308 → 308 | | index | case miss files | 6.502 → 6.440 | 7.478 → 7.457 | 3 → 3 | | index | word miss count | 6.091 → 6.082 | 6.776 → 6.849 | 3 → 3 | | index | split miss unlimited | 6.408 → 6.427 | 7.163 → 7.469 | 3 → 3 | | index | fuzzy miss unlimited | 6.193 → 6.128 | 7.375 → 6.980 | 3 → 3 | | index | absent files | 6.000 → 5.932 | 6.988 → 7.057 | 3 → 3 | | index | hit files | 6.308 → 6.169 | 7.664 → 7.471 | 55 → 55 | | index | type files | 6.695 → 6.581 | 7.754 → 7.689 | 55 → 55 | | index | glob files | 7.165 → 7.107 | 7.874 → 8.564 | 55 → 55 | | index | hit count | 6.999 → 6.934 | 8.072 → 8.075 | 71 → 71 | | index | hit unlimited | 7.013 → 6.873 | 8.763 → 8.874 | 295 → 295 | | index | case miss json | 7.470 → 7.615 | 11.938 → 13.459 | 265 → 269 | | index | hit json | 7.157 → 7.083 | 8.206 → 7.987 | 2736 → 2736 | | index | def hit | 6.726 → 6.660 | 8.120 → 13.358 | 254 → 254 | | index | def case hit | 6.394 → 6.377 | 7.224 → 7.069 | 278 → 278 | | index | def case miss | 6.704 → 6.731 | 11.547 → 11.456 | 35 → 35 | | index | ranked hit | 6.804 → 6.813 | 7.745 → 7.692 | 295 → 295 | | index | ranked discovery | 7.743 → 7.644 | 8.636 → 8.652 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/json-rg-dialect-2026-10-01-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output json-rg-dialect-2026-10-01-darwin-arm64.json`. ## `--json=rg` dialect: def_hit p95 recheck (2026-10-01) Originating PR: [#54](https://github.com/thiagodmont/greeg/pull/54). 151-pair recheck of def_hit after its index p95 changed +64.5% in the 51-pair run. Medians −0.4% (scan) and −0.5% (index); p95 −23.1% and −3.7%. The flag did not reproduce. Run without --tokens. The harness records no execution time; the result file was written at 2026-10-01T21:38:54Z. `greeg 0.9.0+ffc5a7151` → `greeg 0.9.0+986822b60.dirty`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **2/2 → 2/2**. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | def hit | 8.264 → 8.231 | 12.349 → 9.501 | n/a → n/a | | index | def hit | 6.467 → 6.436 | 7.395 → 7.120 | n/a → n/a | [Raw samples, environment, and binary/corpus digests](../bench/results/json-rg-dialect-def-recheck-2026-10-01-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases def_hit --runs 151 --output json-rg-dialect-def-recheck-2026-10-01-darwin-arm64.json`. ## `--json=greeg` schema 1: exact-search regression and ripgrep equality (2026-10-01) Originating PR: [#55](https://github.com/thiagodmont/greeg/pull/55). v0.9.0 against the branch that adds --json=greeg, greeg's own JSON records (schema 1). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), every contract passes, and token counts are unchanged. Under --json=rg all 14 search cases equal rg --json in both backends, timings aside (28/28); under --json=greeg --budget 0 every case holds ripgrep's matches, lines and submatches, and its status (28/28). Medians range from −2.3% to +2.9% and p95 from −13.9% to +5.4%, with no flag. Output size and timing of --json=greeg against --json on tokio are in the PR. The harness records no execution time; the result file was written at 2026-10-01T22:06:09Z. `greeg 0.9.0+ffc5a7151` → `greeg 0.9.0+4ec5aad61.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 7.058 → 6.914 | 7.467 → 7.835 | 3 → 3 | | scan | word miss count | 6.938 → 7.010 | 7.967 → 8.262 | 3 → 3 | | scan | split miss unlimited | 7.025 → 7.076 | 7.823 → 7.575 | 3 → 3 | | scan | fuzzy miss unlimited | 7.338 → 7.547 | 9.451 → 8.960 | 3 → 3 | | scan | absent files | 7.210 → 7.211 | 8.303 → 8.607 | 3 → 3 | | scan | hit files | 6.676 → 6.791 | 7.624 → 7.354 | 55 → 55 | | scan | type files | 6.883 → 6.968 | 7.726 → 7.461 | 55 → 55 | | scan | glob files | 7.412 → 7.389 | 9.485 → 9.953 | 55 → 55 | | scan | hit count | 7.593 → 7.528 | 9.364 → 8.303 | 71 → 71 | | scan | hit unlimited | 7.912 → 7.968 | 8.476 → 8.733 | 295 → 295 | | scan | case miss json | 7.014 → 6.901 | 7.841 → 7.788 | 263 → 263 | | scan | hit json | 7.613 → 7.647 | 8.670 → 8.404 | 2734 → 2734 | | scan | def hit | 8.767 → 8.728 | 10.805 → 11.027 | 214 → 214 | | scan | def case hit | 9.296 → 9.365 | 11.419 → 11.070 | 214 → 214 | | scan | def case miss | 8.239 → 8.297 | 9.212 → 8.848 | 35 → 35 | | scan | ranked hit | 7.623 → 7.570 | 10.161 → 8.745 | 295 → 295 | | scan | ranked discovery | 11.575 → 11.651 | 12.355 → 12.394 | 308 → 308 | | index | case miss files | 6.373 → 6.299 | 7.352 → 7.067 | 3 → 3 | | index | word miss count | 6.559 → 6.546 | 7.478 → 7.709 | 3 → 3 | | index | split miss unlimited | 6.948 → 6.977 | 8.040 → 7.998 | 3 → 3 | | index | fuzzy miss unlimited | 6.963 → 7.005 | 7.977 → 7.662 | 3 → 3 | | index | absent files | 6.275 → 6.275 | 7.078 → 7.263 | 3 → 3 | | index | hit files | 6.879 → 6.946 | 8.178 → 8.114 | 55 → 55 | | index | type files | 7.260 → 7.096 | 7.886 → 7.832 | 55 → 55 | | index | glob files | 7.034 → 7.138 | 8.251 → 7.958 | 55 → 55 | | index | hit count | 6.960 → 7.005 | 8.183 → 8.502 | 71 → 71 | | index | hit unlimited | 6.640 → 6.728 | 7.532 → 7.572 | 295 → 295 | | index | case miss json | 6.766 → 6.691 | 7.602 → 7.426 | 265 → 265 | | index | hit json | 7.341 → 7.337 | 8.011 → 8.188 | 2736 → 2736 | | index | def hit | 6.763 → 6.864 | 7.890 → 7.609 | 254 → 254 | | index | def case hit | 6.541 → 6.582 | 7.650 → 7.584 | 278 → 278 | | index | def case miss | 6.311 → 6.286 | 7.115 → 7.159 | 35 → 35 | | index | ranked hit | 7.365 → 7.255 | 8.066 → 8.502 | 295 → 295 | | index | ranked discovery | 7.861 → 7.918 | 8.856 → 8.505 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/json-greeg-schema-2026-10-01-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output json-greeg-schema-2026-10-01-darwin-arm64.json`. ## Bare `--json` migration notice: exact-search regression (2026-10-01) Originating PR: [#56](https://github.com/thiagodmont/greeg/pull/56). v0.9.0 against the branch where bare --json prints, on a terminal only, that it becomes --json=greeg in 0.11, and the repository's own consumers name their dialect. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), every contract passes, and token counts are unchanged; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Run under a 5-minute load near 10: medians range from −3.6% to +5.3% and p95 from −51.1% to +52.0%. The one flag, index ranked_discovery p95 +52.0%, did not reproduce in a 151-pair recheck at a lower load (see below). The harness records no execution time; the result file was written at 2026-10-01T22:44:16Z. `greeg 0.9.0+ffc5a7151` → `greeg 0.9.0+857ca26e4.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 5.866 → 5.965 | 6.527 → 6.570 | 3 → 3 | | scan | word miss count | 6.045 → 5.979 | 6.506 → 6.566 | 3 → 3 | | scan | split miss unlimited | 6.032 → 6.096 | 6.544 → 6.672 | 3 → 3 | | scan | fuzzy miss unlimited | 6.165 → 6.081 | 8.366 → 7.853 | 3 → 3 | | scan | absent files | 6.778 → 6.689 | 7.359 → 7.194 | 3 → 3 | | scan | hit files | 6.726 → 6.630 | 7.365 → 7.240 | 55 → 55 | | scan | type files | 7.180 → 7.226 | 9.046 → 7.951 | 55 → 55 | | scan | glob files | 7.531 → 7.338 | 11.110 → 11.374 | 55 → 55 | | scan | hit count | 7.791 → 7.797 | 12.809 → 10.967 | 71 → 71 | | scan | hit unlimited | 7.746 → 7.674 | 10.675 → 8.752 | 295 → 295 | | scan | case miss json | 6.933 → 6.969 | 7.633 → 7.594 | 263 → 263 | | scan | hit json | 7.551 → 7.659 | 8.186 → 8.246 | 2734 → 2734 | | scan | def hit | 8.218 → 8.142 | 8.705 → 8.731 | 214 → 214 | | scan | def case hit | 8.315 → 8.273 | 8.813 → 8.840 | 214 → 214 | | scan | def case miss | 7.794 → 7.769 | 9.359 → 9.836 | 35 → 35 | | scan | ranked hit | 7.433 → 7.537 | 8.156 → 8.220 | 295 → 295 | | scan | ranked discovery | 10.818 → 10.867 | 11.701 → 11.532 | 308 → 308 | | index | case miss files | 6.211 → 6.474 | 7.248 → 7.393 | 3 → 3 | | index | word miss count | 6.550 → 6.418 | 7.329 → 7.209 | 3 → 3 | | index | split miss unlimited | 6.536 → 6.593 | 7.605 → 7.473 | 3 → 3 | | index | fuzzy miss unlimited | 6.540 → 6.365 | 7.136 → 7.163 | 3 → 3 | | index | absent files | 6.396 → 6.438 | 7.368 → 7.183 | 3 → 3 | | index | hit files | 6.690 → 6.693 | 7.860 → 7.622 | 55 → 55 | | index | type files | 6.718 → 6.694 | 7.534 → 7.525 | 55 → 55 | | index | glob files | 6.565 → 6.655 | 7.815 → 7.628 | 55 → 55 | | index | hit count | 6.722 → 6.644 | 7.758 → 7.811 | 71 → 71 | | index | hit unlimited | 6.408 → 6.439 | 7.403 → 7.506 | 295 → 295 | | index | case miss json | 6.652 → 6.759 | 7.492 → 7.448 | 265 → 265 | | index | hit json | 6.930 → 6.823 | 7.573 → 7.472 | 2736 → 2736 | | index | def hit | 6.873 → 6.738 | 7.553 → 7.458 | 254 → 254 | | index | def case hit | 7.269 → 7.362 | 22.378 → 10.941 | 278 → 278 | | index | def case miss | 7.040 → 7.136 | 7.655 → 7.579 | 35 → 35 | | index | ranked hit | 6.933 → 6.683 | 8.298 → 7.769 | 295 → 295 | | index | ranked discovery | 7.794 → 8.210 | 13.400 → 20.364 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/json-migration-2026-10-01-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output json-migration-2026-10-01-darwin-arm64.json`. ## Bare `--json` migration notice: ranked_discovery recheck (2026-10-01) Originating PR: [#56](https://github.com/thiagodmont/greeg/pull/56). 151-pair recheck of ranked_discovery, started once the 1- and 5-minute loads were below 5. Medians +0.1% (scan) and +1.5% (index); p95 −1.4% and −1.7%. The flag did not reproduce. Run without --tokens. The harness records no execution time; the result file was written at 2026-10-01T22:58:56Z. `greeg 0.9.0+ffc5a7151` → `greeg 0.9.0+857ca26e4.dirty`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **not measured → not measured**. `--json=rg` equal to `rg --json` (timings aside): **2/2** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **2/2** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | ranked discovery | 9.035 → 9.042 | 9.757 → 9.623 | n/a → n/a | | index | ranked discovery | 6.197 → 6.289 | 6.956 → 6.839 | n/a → n/a | [Raw samples, environment, and binary/corpus digests](../bench/results/json-migration-recheck-2026-10-01-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases ranked_discovery --runs 151 --output json-migration-recheck-2026-10-01-darwin-arm64.json`. ## A NUL past 64 KiB ends a file's search: exact-search regression (2026-10-01) Originating PR: [#57](https://github.com/thiagodmont/greeg/pull/57). v0.9.0 against the branch where a NUL past a file's first 64 KiB ends its search at the start of its line (both backends, -U, stdin), with binary_offset in every JSON dialect and ripgrep's warning under --budget 0. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Token counts are unchanged except hit_json (scan) and case_miss_json (index), 4 tokens each from the digits of elapsed fields. Started with the 1- and 5-minute loads at 1.9 and 4.8: medians range from −3.2% to +2.3% and p95 from −6.6% to +11.7%, with no flag. The harness records no execution time; the result file was written at 2026-10-02T00:43:17Z. `greeg 0.9.0+ffc5a7151` → `greeg 0.9.0+f8e8ef4c6.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 5.758 → 5.655 | 6.544 → 6.780 | 3 → 3 | | scan | word miss count | 5.749 → 5.858 | 6.418 → 6.382 | 3 → 3 | | scan | split miss unlimited | 5.866 → 5.869 | 6.611 → 6.641 | 3 → 3 | | scan | fuzzy miss unlimited | 5.845 → 5.881 | 7.073 → 6.682 | 3 → 3 | | scan | absent files | 5.674 → 5.618 | 6.494 → 6.319 | 3 → 3 | | scan | hit files | 5.832 → 5.799 | 6.719 → 6.446 | 55 → 55 | | scan | type files | 6.006 → 6.122 | 7.259 → 7.118 | 55 → 55 | | scan | glob files | 5.755 → 5.749 | 6.650 → 6.663 | 55 → 55 | | scan | hit count | 6.101 → 6.160 | 6.975 → 6.899 | 71 → 71 | | scan | hit unlimited | 6.683 → 6.667 | 8.053 → 7.690 | 295 → 295 | | scan | case miss json | 6.068 → 6.151 | 7.130 → 7.083 | 263 → 263 | | scan | hit json | 6.687 → 6.640 | 7.625 → 7.756 | 2738 → 2734 | | scan | def hit | 7.226 → 7.237 | 8.405 → 8.557 | 214 → 214 | | scan | def case hit | 7.574 → 7.524 | 8.354 → 8.338 | 214 → 214 | | scan | def case miss | 6.844 → 6.829 | 7.656 → 7.910 | 35 → 35 | | scan | ranked hit | 6.854 → 6.758 | 7.884 → 7.661 | 295 → 295 | | scan | ranked discovery | 9.717 → 9.757 | 11.030 → 10.528 | 308 → 308 | | index | case miss files | 5.425 → 5.253 | 6.761 → 6.963 | 3 → 3 | | index | word miss count | 5.216 → 5.224 | 6.357 → 6.416 | 3 → 3 | | index | split miss unlimited | 5.186 → 5.270 | 6.094 → 6.326 | 3 → 3 | | index | fuzzy miss unlimited | 5.289 → 5.305 | 6.152 → 6.502 | 3 → 3 | | index | absent files | 5.107 → 5.089 | 5.850 → 5.780 | 3 → 3 | | index | hit files | 5.172 → 5.146 | 6.421 → 6.404 | 55 → 55 | | index | type files | 5.600 → 5.531 | 6.376 → 6.552 | 55 → 55 | | index | glob files | 5.280 → 5.314 | 6.422 → 5.999 | 55 → 55 | | index | hit count | 5.437 → 5.353 | 5.983 → 6.165 | 71 → 71 | | index | hit unlimited | 5.474 → 5.454 | 6.633 → 6.496 | 295 → 295 | | index | case miss json | 5.486 → 5.392 | 6.078 → 6.410 | 269 → 265 | | index | hit json | 5.687 → 5.688 | 6.549 → 6.409 | 2736 → 2736 | | index | def hit | 5.269 → 5.250 | 6.438 → 6.353 | 254 → 254 | | index | def case hit | 5.261 → 5.281 | 6.116 → 6.319 | 278 → 278 | | index | def case miss | 5.155 → 5.095 | 5.715 → 6.140 | 35 → 35 | | index | ranked hit | 5.545 → 5.673 | 7.865 → 8.788 | 295 → 295 | | index | ranked discovery | 6.240 → 6.267 | 7.396 → 7.119 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/nul-past-64kib-2026-10-01-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output nul-past-64kib-2026-10-01-darwin-arm64.json`. ## Release 0.10.0 against 0.9.0: exact-search regression (2026-10-01) Originating PR: [#59](https://github.com/thiagodmont/greeg/pull/59). v0.9.0 against the 0.10.0 release commit (phase 4.1 JSON dialects and the NUL fix). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Token counts are unchanged except three JSON cases, 4 tokens each from the digits of elapsed fields. Started with the 1- and 5-minute loads at 4.6 and 4.8: medians range from −3.9% to +3.1% and p95 from −5.9% to +5.3%, with no flag. The harness records no execution time; the result file was written at 2026-10-02T01:22:56Z. `greeg 0.9.0+ffc5a7151` → `greeg 0.10.0+eec7db869`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 7.578 → 7.558 | 8.194 → 8.100 | 3 → 3 | | scan | word miss count | 7.393 → 7.389 | 8.294 → 8.262 | 3 → 3 | | scan | split miss unlimited | 7.834 → 7.864 | 8.424 → 8.558 | 3 → 3 | | scan | fuzzy miss unlimited | 7.832 → 7.775 | 8.553 → 8.612 | 3 → 3 | | scan | absent files | 7.755 → 7.585 | 8.753 → 8.234 | 3 → 3 | | scan | hit files | 7.638 → 7.758 | 8.546 → 8.415 | 55 → 55 | | scan | type files | 7.877 → 7.921 | 8.656 → 8.554 | 55 → 55 | | scan | glob files | 7.527 → 7.487 | 8.204 → 8.391 | 55 → 55 | | scan | hit count | 8.208 → 8.240 | 9.212 → 8.689 | 71 → 71 | | scan | hit unlimited | 8.362 → 8.257 | 8.914 → 8.959 | 295 → 295 | | scan | case miss json | 7.722 → 7.649 | 8.642 → 8.720 | 263 → 263 | | scan | hit json | 8.242 → 8.214 | 9.072 → 8.880 | 2734 → 2738 | | scan | def hit | 8.946 → 8.783 | 9.849 → 9.656 | 214 → 214 | | scan | def case hit | 9.308 → 9.180 | 9.771 → 9.733 | 214 → 214 | | scan | def case miss | 8.582 → 8.610 | 9.415 → 9.272 | 35 → 35 | | scan | ranked hit | 8.364 → 8.067 | 9.354 → 8.847 | 295 → 295 | | scan | ranked discovery | 11.514 → 11.570 | 12.790 → 12.863 | 308 → 308 | | index | case miss files | 7.408 → 7.238 | 7.925 → 7.998 | 3 → 3 | | index | word miss count | 7.103 → 6.938 | 7.840 → 7.980 | 3 → 3 | | index | split miss unlimited | 6.940 → 7.039 | 7.893 → 7.909 | 3 → 3 | | index | fuzzy miss unlimited | 6.944 → 7.096 | 7.945 → 7.842 | 3 → 3 | | index | absent files | 6.831 → 6.568 | 7.741 → 7.510 | 3 → 3 | | index | hit files | 7.466 → 7.431 | 8.065 → 8.020 | 55 → 55 | | index | type files | 7.152 → 7.078 | 8.204 → 8.211 | 55 → 55 | | index | glob files | 7.347 → 7.346 | 8.097 → 8.098 | 55 → 55 | | index | hit count | 7.142 → 7.027 | 8.337 → 8.236 | 71 → 71 | | index | hit unlimited | 7.198 → 7.266 | 8.037 → 8.116 | 295 → 295 | | index | case miss json | 7.421 → 7.456 | 8.107 → 8.049 | 265 → 269 | | index | hit json | 7.087 → 7.307 | 7.979 → 8.403 | 2736 → 2740 | | index | def hit | 7.403 → 7.301 | 8.077 → 8.178 | 254 → 254 | | index | def case hit | 6.999 → 6.964 | 8.006 → 7.971 | 278 → 278 | | index | def case miss | 7.058 → 7.101 | 7.909 → 7.777 | 35 → 35 | | index | ranked hit | 7.561 → 7.485 | 7.994 → 8.184 | 295 → 295 | | index | ranked discovery | 7.956 → 8.026 | 9.023 → 8.782 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/release-0.10.0-2026-10-01-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output release-0.10.0-2026-10-01-darwin-arm64.json`. ## Outcome fixes: impact callers and file-verb freshness, exact-search regression (2026-10-02) Originating PR: [#60](https://github.com/thiagodmont/greeg/pull/60). v0.10.0 (built from eec7db8, the tag's code) against the branch where impact counts the callers it leaves out and outline, show and map report their freshness check. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Token counts are unchanged except hit_json (scan), 4 tokens from the digits of elapsed fields. Started with the 1- and 5-minute loads at 2.4 and 4.9: medians range from −1.8% to +2.3% and p95 from −21.0% to +2.5%, with no flag. The harness records no execution time; the result file was written at 2026-10-02T02:54:34Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+3b83a8344`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 7.418 → 7.387 | 7.841 → 7.980 | 3 → 3 | | scan | word miss count | 7.570 → 7.581 | 7.998 → 8.033 | 3 → 3 | | scan | split miss unlimited | 7.554 → 7.513 | 8.051 → 7.952 | 3 → 3 | | scan | fuzzy miss unlimited | 7.507 → 7.620 | 7.898 → 7.911 | 3 → 3 | | scan | absent files | 7.455 → 7.351 | 7.918 → 7.756 | 3 → 3 | | scan | hit files | 7.427 → 7.463 | 8.115 → 8.272 | 55 → 55 | | scan | type files | 7.719 → 7.734 | 8.134 → 8.123 | 55 → 55 | | scan | glob files | 7.451 → 7.501 | 7.915 → 7.974 | 55 → 55 | | scan | hit count | 7.798 → 7.850 | 8.259 → 8.171 | 71 → 71 | | scan | hit unlimited | 8.028 → 8.011 | 8.411 → 8.384 | 295 → 295 | | scan | case miss json | 7.607 → 7.698 | 8.050 → 8.249 | 263 → 263 | | scan | hit json | 8.209 → 8.229 | 8.835 → 8.540 | 2738 → 2734 | | scan | def hit | 8.740 → 8.918 | 9.176 → 9.313 | 214 → 214 | | scan | def case hit | 8.959 → 8.991 | 9.500 → 9.384 | 214 → 214 | | scan | def case miss | 8.414 → 8.478 | 8.870 → 8.973 | 35 → 35 | | scan | ranked hit | 8.057 → 8.161 | 8.524 → 8.481 | 295 → 295 | | scan | ranked discovery | 11.400 → 11.458 | 12.044 → 11.879 | 308 → 308 | | index | case miss files | 7.399 → 7.316 | 9.919 → 7.831 | 3 → 3 | | index | word miss count | 7.274 → 7.176 | 7.726 → 7.627 | 3 → 3 | | index | split miss unlimited | 7.218 → 7.204 | 7.679 → 7.581 | 3 → 3 | | index | fuzzy miss unlimited | 7.226 → 7.223 | 7.551 → 7.562 | 3 → 3 | | index | absent files | 7.045 → 7.136 | 7.556 → 7.679 | 3 → 3 | | index | hit files | 7.143 → 7.243 | 7.874 → 7.693 | 55 → 55 | | index | type files | 7.630 → 7.499 | 8.193 → 7.878 | 55 → 55 | | index | glob files | 7.489 → 7.398 | 7.870 → 7.852 | 55 → 55 | | index | hit count | 7.628 → 7.655 | 8.084 → 8.043 | 71 → 71 | | index | hit unlimited | 7.168 → 7.234 | 7.755 → 7.725 | 295 → 295 | | index | case miss json | 7.327 → 7.431 | 7.829 → 7.752 | 265 → 265 | | index | hit json | 7.631 → 7.553 | 7.915 → 8.025 | 2736 → 2736 | | index | def hit | 7.329 → 7.234 | 7.782 → 7.711 | 254 → 254 | | index | def case hit | 7.617 → 7.655 | 8.204 → 8.175 | 278 → 278 | | index | def case miss | 7.176 → 7.341 | 7.691 → 7.715 | 35 → 35 | | index | ranked hit | 7.575 → 7.438 | 7.970 → 7.940 | 295 → 295 | | index | ranked discovery | 8.558 → 8.588 | 9.079 → 8.924 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/outcome-fixes-2026-10-02-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output outcome-fixes-2026-10-02-darwin-arm64.json`. ## One text outcome line for every answer: exact-search regression (2026-10-02) Originating PR: [#62](https://github.com/thiagodmont/greeg/pull/62). v0.10.0 (built from eec7db8, the tag's code) against the branch where every text answer ends with one outcome line (what was cut, a relaxed match, an index not checked for changes). All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Token counts are unchanged except hit_json (index), 4 tokens from the digits of elapsed fields. Started with the 1- and 5-minute loads at 4.4 and 5.0: medians range from −1.7% to +2.9% and p95 from −24.4% to +54.4%. The one flag, index fuzzy_miss_unlimited p95 +54.4% (median +1.1%), did not reproduce in a 151-pair paired recheck of its exact command measuring wall and rusage CPU at a 5-minute load of 6.5: wall median +0.9%, p95 +0.6%; CPU median +0.4%, p95 +2.2%. The gated matching.py recheck could not start within an hour because of background load. The harness records no execution time; the result file was written at 2026-10-02T05:30:49Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+d51cee129`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.590 → 6.620 | 9.078 → 10.540 | 3 → 3 | | scan | word miss count | 6.605 → 6.769 | 7.316 → 7.379 | 3 → 3 | | scan | split miss unlimited | 6.840 → 6.785 | 7.353 → 7.525 | 3 → 3 | | scan | fuzzy miss unlimited | 6.986 → 7.015 | 7.710 → 9.001 | 3 → 3 | | scan | absent files | 6.700 → 6.751 | 7.417 → 7.320 | 3 → 3 | | scan | hit files | 6.898 → 7.022 | 8.078 → 7.964 | 55 → 55 | | scan | type files | 7.066 → 7.003 | 8.950 → 7.683 | 55 → 55 | | scan | glob files | 6.625 → 6.607 | 7.472 → 7.682 | 55 → 55 | | scan | hit count | 7.356 → 7.432 | 11.074 → 11.104 | 71 → 71 | | scan | hit unlimited | 7.581 → 7.567 | 8.492 → 8.281 | 295 → 295 | | scan | case miss json | 7.117 → 7.104 | 7.917 → 7.645 | 263 → 263 | | scan | hit json | 7.769 → 7.787 | 8.848 → 8.704 | 2734 → 2734 | | scan | def hit | 8.110 → 8.166 | 8.638 → 8.769 | 214 → 214 | | scan | def case hit | 8.396 → 8.396 | 9.091 → 9.173 | 214 → 214 | | scan | def case miss | 7.726 → 7.611 | 8.301 → 8.195 | 35 → 35 | | scan | ranked hit | 7.275 → 7.279 | 7.880 → 7.833 | 295 → 295 | | scan | ranked discovery | 10.688 → 10.634 | 11.087 → 11.246 | 308 → 308 | | index | case miss files | 6.026 → 6.064 | 6.594 → 6.659 | 3 → 3 | | index | word miss count | 6.025 → 5.965 | 6.966 → 6.669 | 3 → 3 | | index | split miss unlimited | 5.971 → 5.989 | 6.749 → 6.409 | 3 → 3 | | index | fuzzy miss unlimited | 6.375 → 6.446 | 8.089 → 12.492 | 3 → 3 | | index | absent files | 6.108 → 6.155 | 7.132 → 6.678 | 3 → 3 | | index | hit files | 6.181 → 6.103 | 7.236 → 6.831 | 55 → 55 | | index | type files | 6.764 → 6.819 | 7.520 → 7.515 | 55 → 55 | | index | glob files | 6.646 → 6.839 | 14.498 → 10.960 | 55 → 55 | | index | hit count | 7.934 → 7.887 | 9.033 → 8.701 | 71 → 71 | | index | hit unlimited | 6.942 → 6.947 | 8.395 → 8.091 | 295 → 295 | | index | case miss json | 6.199 → 6.264 | 6.998 → 6.737 | 265 → 265 | | index | hit json | 6.809 → 6.780 | 7.683 → 7.665 | 2736 → 2740 | | index | def hit | 6.133 → 6.226 | 6.952 → 6.632 | 254 → 254 | | index | def case hit | 6.045 → 6.150 | 7.111 → 7.344 | 278 → 278 | | index | def case miss | 5.921 → 5.960 | 6.521 → 6.551 | 35 → 35 | | index | ranked hit | 6.684 → 6.568 | 7.184 → 7.268 | 295 → 295 | | index | ranked discovery | 7.513 → 7.535 | 8.248 → 8.057 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/text-outcome-line-2026-10-02-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output text-outcome-line-2026-10-02-darwin-arm64.json`. ## Evidence-graded impact and --json=greeg schema 2: exact-search regression (2026-10-02) Originating PR: [#64](https://github.com/thiagodmont/greeg/pull/64). v0.10.0 (built from eec7db8, the tag's code) against the branch where impact grades referring files by import evidence (likely affected, possible, review) and --json=greeg moves to schema 2. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Token counts are unchanged except case_miss_json (index), 1 token from the digits of elapsed fields. Started with the 1- and 5-minute loads at 3.6 and 4.5: medians range from −3.6% to +2.2% and p95 from −23.2% to +24.0%. The one flag, scan def_hit p95 +24.0% (median −0.6%), runs no changed code and did not reproduce in a 151-pair paired recheck of its exact command measuring wall and rusage CPU: wall median +0.2%, p95 −3.2%; CPU median +0.8%, p95 −0.8%. Impact group sizes, tokens and timing on tokio and django are in the PR. The harness records no execution time; the result file was written at 2026-10-02T10:51:49Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+4579b6291`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 5.914 → 5.923 | 6.800 → 7.030 | 3 → 3 | | scan | word miss count | 6.088 → 6.061 | 7.653 → 7.446 | 3 → 3 | | scan | split miss unlimited | 6.843 → 6.792 | 7.720 → 7.629 | 3 → 3 | | scan | fuzzy miss unlimited | 6.736 → 6.749 | 7.309 → 7.469 | 3 → 3 | | scan | absent files | 6.973 → 6.968 | 7.673 → 7.731 | 3 → 3 | | scan | hit files | 7.278 → 7.177 | 8.215 → 8.655 | 55 → 55 | | scan | type files | 7.520 → 7.687 | 12.968 → 10.001 | 55 → 55 | | scan | glob files | 7.000 → 7.040 | 7.753 → 7.690 | 55 → 55 | | scan | hit count | 7.303 → 7.302 | 7.770 → 7.842 | 71 → 71 | | scan | hit unlimited | 7.601 → 7.555 | 8.170 → 8.049 | 295 → 295 | | scan | case miss json | 7.166 → 7.046 | 7.713 → 7.706 | 263 → 263 | | scan | hit json | 8.611 → 8.498 | 12.637 → 10.461 | 2734 → 2734 | | scan | def hit | 9.004 → 8.946 | 11.440 → 14.184 | 214 → 214 | | scan | def case hit | 9.031 → 8.989 | 18.148 → 13.944 | 214 → 214 | | scan | def case miss | 8.484 → 8.447 | 8.938 → 9.009 | 35 → 35 | | scan | ranked hit | 8.068 → 8.021 | 8.560 → 8.477 | 295 → 295 | | scan | ranked discovery | 11.011 → 11.000 | 11.781 → 11.621 | 308 → 308 | | index | case miss files | 6.961 → 7.033 | 7.763 → 7.759 | 3 → 3 | | index | word miss count | 7.311 → 7.324 | 8.003 → 8.144 | 3 → 3 | | index | split miss unlimited | 6.971 → 6.852 | 7.532 → 7.485 | 3 → 3 | | index | fuzzy miss unlimited | 6.733 → 6.684 | 7.306 → 7.290 | 3 → 3 | | index | absent files | 6.474 → 6.554 | 7.344 → 7.350 | 3 → 3 | | index | hit files | 6.970 → 6.998 | 7.611 → 7.688 | 55 → 55 | | index | type files | 7.444 → 7.216 | 8.130 → 7.839 | 55 → 55 | | index | glob files | 6.968 → 6.974 | 7.799 → 7.525 | 55 → 55 | | index | hit count | 7.159 → 7.122 | 7.904 → 7.642 | 71 → 71 | | index | hit unlimited | 7.361 → 7.359 | 7.952 → 7.937 | 295 → 295 | | index | case miss json | 7.233 → 7.240 | 7.964 → 7.867 | 264 → 265 | | index | hit json | 7.369 → 7.102 | 7.861 → 7.890 | 2736 → 2736 | | index | def hit | 6.839 → 6.950 | 7.794 → 7.688 | 254 → 254 | | index | def case hit | 7.066 → 7.011 | 7.673 → 7.659 | 278 → 278 | | index | def case miss | 6.945 → 6.966 | 7.567 → 7.607 | 35 → 35 | | index | ranked hit | 7.170 → 7.231 | 7.739 → 7.781 | 295 → 295 | | index | ranked discovery | 7.902 → 8.041 | 8.833 → 8.718 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/impact-evidence-2026-10-02-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output impact-evidence-2026-10-02-darwin-arm64.json`. ## Impact review fixes, case-folded module definitions: exact-search regression (2026-10-02) Originating PR: [#65](https://github.com/thiagodmont/greeg/pull/65). v0.10.0 (built from eec7db8, the tag's code) against the branch where impact folds case for module definitions when its search folds case. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Token counts are unchanged except hit_json (index), 4 tokens from the digits of elapsed fields. Started with the 1- and 5-minute loads at 3.4 and 4.7: medians range from −1.7% to +3.5% and p95 from −69.9% to +24.2%. The one flag, scan type_files p95 +24.2% (median −0.7%), runs no changed code and did not reproduce in a 151-pair paired recheck of its exact command measuring wall and rusage CPU: wall median +0.9%, p95 +5.6%; CPU median +1.3%, p95 +6.3%. Impact group sizes, tokens and timing on tokio and rust are in the PR. The harness records no execution time; the result file was written at 2026-10-02T12:09:15Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+8da687f6e.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 7.132 → 7.137 | 9.073 → 9.264 | 3 → 3 | | scan | word miss count | 7.342 → 7.323 | 9.737 → 9.263 | 3 → 3 | | scan | split miss unlimited | 7.253 → 7.234 | 7.947 → 8.093 | 3 → 3 | | scan | fuzzy miss unlimited | 6.966 → 6.945 | 9.135 → 8.762 | 3 → 3 | | scan | absent files | 6.734 → 6.618 | 11.524 → 9.793 | 3 → 3 | | scan | hit files | 6.821 → 6.934 | 8.811 → 9.082 | 55 → 55 | | scan | type files | 7.342 → 7.287 | 13.712 → 17.033 | 55 → 55 | | scan | glob files | 6.778 → 6.889 | 7.567 → 7.503 | 55 → 55 | | scan | hit count | 7.037 → 7.181 | 7.868 → 7.849 | 71 → 71 | | scan | hit unlimited | 7.338 → 7.450 | 9.478 → 9.405 | 295 → 295 | | scan | case miss json | 6.896 → 6.831 | 8.894 → 9.892 | 263 → 263 | | scan | hit json | 7.715 → 7.779 | 8.606 → 8.557 | 2734 → 2734 | | scan | def hit | 8.140 → 8.096 | 10.035 → 10.351 | 214 → 214 | | scan | def case hit | 8.338 → 8.481 | 11.010 → 10.714 | 214 → 214 | | scan | def case miss | 7.667 → 7.698 | 8.536 → 8.533 | 35 → 35 | | scan | ranked hit | 7.533 → 7.444 | 12.762 → 11.496 | 295 → 295 | | scan | ranked discovery | 10.617 → 10.773 | 13.849 → 13.379 | 308 → 308 | | index | case miss files | 6.314 → 6.314 | 7.125 → 7.330 | 3 → 3 | | index | word miss count | 6.327 → 6.285 | 7.128 → 7.126 | 3 → 3 | | index | split miss unlimited | 6.191 → 6.296 | 6.760 → 6.908 | 3 → 3 | | index | fuzzy miss unlimited | 6.355 → 6.574 | 32.401 → 9.757 | 3 → 3 | | index | absent files | 6.172 → 6.175 | 7.245 → 7.183 | 3 → 3 | | index | hit files | 6.284 → 6.245 | 7.369 → 7.470 | 55 → 55 | | index | type files | 6.488 → 6.413 | 7.365 → 7.466 | 55 → 55 | | index | glob files | 6.188 → 6.158 | 7.712 → 7.338 | 55 → 55 | | index | hit count | 6.420 → 6.531 | 7.773 → 7.276 | 71 → 71 | | index | hit unlimited | 6.546 → 6.632 | 7.647 → 7.276 | 295 → 295 | | index | case miss json | 6.514 → 6.578 | 7.567 → 7.344 | 265 → 265 | | index | hit json | 6.607 → 6.657 | 7.543 → 7.456 | 2736 → 2740 | | index | def hit | 6.238 → 6.313 | 6.978 → 7.826 | 254 → 254 | | index | def case hit | 6.375 → 6.267 | 7.633 → 7.135 | 278 → 278 | | index | def case miss | 6.365 → 6.411 | 7.533 → 7.394 | 35 → 35 | | index | ranked hit | 6.613 → 6.671 | 7.402 → 7.435 | 295 → 295 | | index | ranked discovery | 7.456 → 7.627 | 8.357 → 8.608 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/impact-review-fixes-2026-10-02-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output impact-review-fixes-2026-10-02-darwin-arm64.json`. ## impls reads supertypes on a scan: exact-search regression (2026-10-02) Originating PR: [#66](https://github.com/thiagodmont/greeg/pull/66). v0.10.0 (built from eec7db8, the tag's code) against the branch where impls on a scan parses the files that mention the name and lists the definitions whose supertypes include it, as the index does. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Token counts are unchanged except hit_json (scan), 4 tokens from the digits of elapsed fields. Started with the 1- and 5-minute loads at 4.1 and 4.9: medians range from −1.7% to +2.0% and p95 from −14.5% to +5.4%, with no flag. impls scan/index parity and timing on tokio, django, ktor, TypeScript and rust are in the PR. The harness records no execution time; the result file was written at 2026-10-02T13:42:33Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+9b1cbf7be.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 5.677 → 5.650 | 6.070 → 5.967 | 3 → 3 | | scan | word miss count | 5.917 → 5.937 | 6.245 → 6.272 | 3 → 3 | | scan | split miss unlimited | 5.895 → 5.987 | 6.419 → 6.399 | 3 → 3 | | scan | fuzzy miss unlimited | 5.721 → 5.769 | 6.191 → 6.248 | 3 → 3 | | scan | absent files | 5.594 → 5.570 | 6.115 → 5.907 | 3 → 3 | | scan | hit files | 5.690 → 5.658 | 7.684 → 6.570 | 55 → 55 | | scan | type files | 5.771 → 5.830 | 6.523 → 6.440 | 55 → 55 | | scan | glob files | 5.705 → 5.701 | 6.616 → 6.647 | 55 → 55 | | scan | hit count | 6.081 → 5.978 | 6.655 → 6.661 | 71 → 71 | | scan | hit unlimited | 6.446 → 6.387 | 7.010 → 7.017 | 295 → 295 | | scan | case miss json | 5.729 → 5.739 | 6.624 → 6.306 | 263 → 263 | | scan | hit json | 6.418 → 6.332 | 6.847 → 6.773 | 2738 → 2734 | | scan | def hit | 6.869 → 6.918 | 7.480 → 7.370 | 214 → 214 | | scan | def case hit | 7.337 → 7.309 | 8.021 → 7.868 | 214 → 214 | | scan | def case miss | 6.705 → 6.678 | 7.316 → 7.333 | 35 → 35 | | scan | ranked hit | 6.381 → 6.329 | 6.813 → 6.595 | 295 → 295 | | scan | ranked discovery | 9.179 → 9.070 | 9.880 → 9.715 | 308 → 308 | | index | case miss files | 5.075 → 5.112 | 5.770 → 5.897 | 3 → 3 | | index | word miss count | 5.162 → 5.181 | 5.891 → 5.739 | 3 → 3 | | index | split miss unlimited | 5.165 → 5.127 | 5.709 → 5.603 | 3 → 3 | | index | fuzzy miss unlimited | 5.149 → 5.113 | 5.913 → 6.233 | 3 → 3 | | index | absent files | 5.000 → 4.933 | 5.721 → 5.707 | 3 → 3 | | index | hit files | 5.079 → 5.140 | 5.656 → 5.768 | 55 → 55 | | index | type files | 5.370 → 5.313 | 6.136 → 5.829 | 55 → 55 | | index | glob files | 5.131 → 5.124 | 5.863 → 5.769 | 55 → 55 | | index | hit count | 5.389 → 5.322 | 5.855 → 5.777 | 71 → 71 | | index | hit unlimited | 5.357 → 5.300 | 5.755 → 5.754 | 295 → 295 | | index | case miss json | 5.297 → 5.403 | 5.768 → 5.757 | 265 → 265 | | index | hit json | 5.461 → 5.487 | 6.157 → 6.147 | 2736 → 2736 | | index | def hit | 5.237 → 5.233 | 5.837 → 6.081 | 254 → 254 | | index | def case hit | 5.165 → 5.212 | 5.669 → 5.824 | 278 → 278 | | index | def case miss | 5.024 → 5.055 | 5.464 → 5.374 | 35 → 35 | | index | ranked hit | 5.335 → 5.345 | 5.893 → 6.102 | 295 → 295 | | index | ranked discovery | 6.112 → 6.019 | 6.643 → 6.691 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/impls-scan-parity-2026-10-02-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output impls-scan-parity-2026-10-02-darwin-arm64.json`. ## Verb text fitted to its budget: exact-search regression (2026-10-02) Originating PR: [#67](https://github.com/thiagodmont/greeg/pull/67). v0.10.0 (built from eec7db8, the tag's code) against the branch where every verb's text is rendered at the largest row allowance whose estimated tokens fit --budget. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Token counts are unchanged except case_miss_json (scan), 4 tokens from the digits of elapsed fields. The load gate stayed shut for 30 minutes, so the run started ungated at 1- and 5-minute loads of 17.7 and 30.4 (13.7 and 28.2 at the end): medians range from −2.4% to +2.5% and p95 from −22.7% to +13.1%, with no flag. Verb output, budget adherence and timing on tokio are in the PR. The harness records no execution time; the result file was written at 2026-10-02T16:20:18Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+cc0a9d7c2.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.520 → 6.543 | 7.163 → 7.139 | 3 → 3 | | scan | word miss count | 7.188 → 7.249 | 7.672 → 7.626 | 3 → 3 | | scan | split miss unlimited | 6.989 → 7.022 | 7.704 → 7.645 | 3 → 3 | | scan | fuzzy miss unlimited | 6.882 → 6.865 | 7.850 → 7.786 | 3 → 3 | | scan | absent files | 7.536 → 7.615 | 8.423 → 8.376 | 3 → 3 | | scan | hit files | 7.255 → 7.233 | 8.008 → 8.105 | 55 → 55 | | scan | type files | 7.590 → 7.477 | 8.123 → 8.062 | 55 → 55 | | scan | glob files | 7.664 → 7.743 | 8.456 → 9.562 | 55 → 55 | | scan | hit count | 7.682 → 7.725 | 10.097 → 10.295 | 71 → 71 | | scan | hit unlimited | 8.678 → 8.898 | 11.245 → 11.048 | 295 → 295 | | scan | case miss json | 7.361 → 7.381 | 9.851 → 10.126 | 267 → 263 | | scan | hit json | 7.231 → 7.282 | 7.952 → 8.009 | 2734 → 2734 | | scan | def hit | 8.492 → 8.421 | 11.255 → 10.871 | 214 → 214 | | scan | def case hit | 8.727 → 8.722 | 11.505 → 11.467 | 214 → 214 | | scan | def case miss | 7.673 → 7.490 | 8.298 → 8.447 | 35 → 35 | | scan | ranked hit | 7.192 → 7.336 | 8.837 → 8.406 | 295 → 295 | | scan | ranked discovery | 11.572 → 11.696 | 16.480 → 15.710 | 308 → 308 | | index | case miss files | 6.609 → 6.589 | 7.176 → 7.386 | 3 → 3 | | index | word miss count | 6.638 → 6.722 | 7.295 → 7.297 | 3 → 3 | | index | split miss unlimited | 6.583 → 6.572 | 7.017 → 6.981 | 3 → 3 | | index | fuzzy miss unlimited | 6.517 → 6.512 | 7.011 → 7.119 | 3 → 3 | | index | absent files | 6.470 → 6.482 | 6.981 → 6.966 | 3 → 3 | | index | hit files | 6.675 → 6.696 | 8.013 → 7.419 | 55 → 55 | | index | type files | 7.168 → 7.176 | 8.420 → 8.109 | 55 → 55 | | index | glob files | 6.658 → 6.760 | 7.357 → 7.156 | 55 → 55 | | index | hit count | 6.845 → 6.802 | 7.410 → 7.535 | 71 → 71 | | index | hit unlimited | 6.787 → 6.745 | 7.233 → 7.331 | 295 → 295 | | index | case miss json | 6.730 → 6.735 | 7.333 → 7.143 | 265 → 265 | | index | hit json | 6.872 → 6.849 | 9.828 → 7.595 | 2736 → 2736 | | index | def hit | 6.034 → 5.925 | 6.805 → 6.909 | 254 → 254 | | index | def case hit | 6.807 → 6.736 | 7.352 → 8.179 | 278 → 278 | | index | def case miss | 6.465 → 6.496 | 7.043 → 6.960 | 35 → 35 | | index | ranked hit | 6.901 → 6.828 | 8.040 → 7.280 | 295 → 295 | | index | ranked discovery | 7.601 → 7.511 | 8.194 → 8.213 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/verb-budget-fit-2026-10-02-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output verb-budget-fit-2026-10-02-darwin-arm64.json`. ## Budget levels and a saved default budget: exact-search regression (2026-10-02) Originating PR: [#68](https://github.com/thiagodmont/greeg/pull/68). v0.10.0 (built from eec7db8, the tag's code) against the branch where --budget takes levels (low, medium, high, none) and a run without it uses GREEG_BUDGET, then the level greeg budget saved, then 2000; the harness pins GREEG_BUDGET=2000. All 34 cases keep their exit status and stdout (JSON compared without elapsed fields), every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Token counts are unchanged except case_miss_json (scan) and hit_json (both backends), 4 tokens each from the digits of elapsed fields. The load gate stayed shut for 30 minutes, so the run started ungated at 1- and 5-minute loads of 6.3 and 8.6: medians range from −2.5% to +2.3% and p95 from −26.2% to +46.6%. The one flag, scan glob_files p95 +46.6% (median −0.3%), was rechecked with 151 paired runs of its exact command measuring wall and rusage CPU: against v0.10.0, wall median +0.2%, p95 +12.4%, CPU median +0.2%, p95 +19.8%; against main (cc0a9d7, isolating this change), wall median −0.7%, p95 +3.6%, CPU median +0.5%, p95 +8.8%; a same-binary run gave p95 within ±1%. The harness records no execution time; the result file was written at 2026-10-02T17:09:39Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+cc0a9d7c2.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 7.478 → 7.564 | 8.075 → 8.344 | 3 → 3 | | scan | word miss count | 7.351 → 7.365 | 7.867 → 8.049 | 3 → 3 | | scan | split miss unlimited | 7.437 → 7.473 | 8.369 → 8.568 | 3 → 3 | | scan | fuzzy miss unlimited | 7.470 → 7.457 | 7.829 → 7.866 | 3 → 3 | | scan | absent files | 7.503 → 7.421 | 8.042 → 8.201 | 3 → 3 | | scan | hit files | 7.392 → 7.433 | 7.735 → 7.834 | 55 → 55 | | scan | type files | 7.677 → 7.661 | 8.261 → 8.179 | 55 → 55 | | scan | glob files | 7.395 → 7.373 | 8.435 → 12.365 | 55 → 55 | | scan | hit count | 7.750 → 7.776 | 12.613 → 9.306 | 71 → 71 | | scan | hit unlimited | 8.126 → 8.174 | 8.709 → 8.776 | 295 → 295 | | scan | case miss json | 7.482 → 7.565 | 7.982 → 8.022 | 263 → 267 | | scan | hit json | 8.189 → 8.222 | 8.624 → 8.651 | 2738 → 2734 | | scan | def hit | 8.602 → 8.590 | 9.306 → 8.967 | 214 → 214 | | scan | def case hit | 8.845 → 8.862 | 9.588 → 9.213 | 214 → 214 | | scan | def case miss | 8.685 → 8.594 | 9.408 → 9.310 | 35 → 35 | | scan | ranked hit | 8.052 → 8.022 | 8.699 → 8.565 | 295 → 295 | | scan | ranked discovery | 11.406 → 11.437 | 11.781 → 12.213 | 308 → 308 | | index | case miss files | 6.745 → 6.683 | 7.508 → 7.446 | 3 → 3 | | index | word miss count | 6.776 → 6.854 | 7.415 → 7.773 | 3 → 3 | | index | split miss unlimited | 6.891 → 6.933 | 7.733 → 7.736 | 3 → 3 | | index | fuzzy miss unlimited | 7.201 → 7.088 | 8.121 → 8.065 | 3 → 3 | | index | absent files | 6.571 → 6.648 | 7.468 → 7.511 | 3 → 3 | | index | hit files | 6.820 → 6.849 | 7.274 → 7.565 | 55 → 55 | | index | type files | 6.988 → 7.151 | 7.508 → 7.681 | 55 → 55 | | index | glob files | 6.830 → 6.898 | 7.728 → 7.526 | 55 → 55 | | index | hit count | 7.045 → 7.053 | 7.955 → 7.751 | 71 → 71 | | index | hit unlimited | 6.947 → 7.004 | 7.403 → 7.767 | 295 → 295 | | index | case miss json | 6.936 → 6.958 | 7.435 → 7.366 | 265 → 265 | | index | hit json | 7.185 → 7.184 | 7.838 → 7.820 | 2740 → 2736 | | index | def hit | 6.989 → 6.963 | 7.775 → 7.546 | 254 → 254 | | index | def case hit | 7.220 → 7.331 | 8.132 → 7.949 | 278 → 278 | | index | def case miss | 6.497 → 6.547 | 7.308 → 7.166 | 35 → 35 | | index | ranked hit | 7.076 → 6.902 | 7.709 → 7.582 | 295 → 295 | | index | ranked discovery | 8.019 → 7.941 | 8.861 → 8.471 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/budget-levels-2026-10-02-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output budget-levels-2026-10-02-darwin-arm64.json`. ## Token estimate follows o200k's pre-tokenizer: exact-search regression (2026-10-02) Originating PR: [#69](https://github.com/thiagodmont/greeg/pull/69). v0.10.0 (built from eec7db8, the tag's code) against the branch where the token estimate splits text into o200k_base's pre-tokenizer pieces and weights each by kind and length. All 34 cases keep their exit status; stdout changes only in the estimate itself (est_tokens in hit_json's footer and ~N tokens in ranked_discovery's footer, both backends; JSON compared without elapsed fields); every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Token counts are unchanged except case_miss_json (both backends), 4 tokens from the digits of elapsed fields. The load gate stayed shut for 60 minutes, so the run started ungated at 1- and 5-minute loads of 3.1 and 9.5: medians range from −1.6% to +3.2% and p95 from −16.8% to +223.1%. The one flag, scan split_miss_unlimited p95 +223.1% (median +3.2%), runs --budget 0, which does not shape, and did not reproduce in 151-pair paired rechecks of its exact command measuring wall and rusage CPU: against v0.10.0, wall median −0.1%, p95 −4.4%, CPU median +0.1%, p95 −11.8%; against main (f051f2c), wall median −0.7%, p95 −0.5%, CPU median −0.3%, p95 −1.1%; a same-binary run gave wall median +0.2%, p95 −3.8%. Estimate accuracy, budget adherence and output changes on tokio are in the PR. The harness records no execution time; the result file was written at 2026-10-02T22:12:03Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+f051f2ccb.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.708 → 6.696 | 8.896 → 8.724 | 3 → 3 | | scan | word miss count | 6.654 → 6.722 | 7.500 → 8.821 | 3 → 3 | | scan | split miss unlimited | 6.613 → 6.824 | 7.714 → 24.921 | 3 → 3 | | scan | fuzzy miss unlimited | 6.619 → 6.632 | 7.439 → 7.415 | 3 → 3 | | scan | absent files | 6.466 → 6.414 | 7.063 → 6.876 | 3 → 3 | | scan | hit files | 6.742 → 6.768 | 8.698 → 8.532 | 55 → 55 | | scan | type files | 6.845 → 6.834 | 9.255 → 7.775 | 55 → 55 | | scan | glob files | 6.965 → 6.904 | 8.606 → 8.867 | 55 → 55 | | scan | hit count | 6.883 → 6.968 | 8.334 → 8.163 | 71 → 71 | | scan | hit unlimited | 7.247 → 7.211 | 7.935 → 7.927 | 295 → 295 | | scan | case miss json | 6.750 → 6.719 | 7.523 → 7.806 | 267 → 263 | | scan | hit json | 7.297 → 7.254 | 8.968 → 9.098 | 2734 → 2734 | | scan | def hit | 8.174 → 8.220 | 10.558 → 10.465 | 214 → 214 | | scan | def case hit | 8.033 → 8.112 | 9.140 → 10.676 | 214 → 214 | | scan | def case miss | 7.496 → 7.554 | 8.394 → 8.451 | 35 → 35 | | scan | ranked hit | 7.407 → 7.445 | 7.971 → 8.287 | 295 → 295 | | scan | ranked discovery | 10.264 → 10.489 | 13.035 → 13.165 | 308 → 308 | | index | case miss files | 5.848 → 5.959 | 6.567 → 6.428 | 3 → 3 | | index | word miss count | 6.245 → 6.177 | 7.136 → 7.261 | 3 → 3 | | index | split miss unlimited | 5.895 → 6.031 | 7.229 → 7.102 | 3 → 3 | | index | fuzzy miss unlimited | 5.889 → 5.915 | 7.027 → 6.554 | 3 → 3 | | index | absent files | 6.080 → 6.038 | 6.872 → 7.066 | 3 → 3 | | index | hit files | 6.061 → 5.961 | 7.334 → 7.069 | 55 → 55 | | index | type files | 6.184 → 6.161 | 7.454 → 6.832 | 55 → 55 | | index | glob files | 5.979 → 6.105 | 6.986 → 7.166 | 55 → 55 | | index | hit count | 6.111 → 6.158 | 7.055 → 7.131 | 71 → 71 | | index | hit unlimited | 6.112 → 6.187 | 6.627 → 6.712 | 295 → 295 | | index | case miss json | 6.041 → 6.161 | 9.381 → 7.808 | 269 → 265 | | index | hit json | 6.292 → 6.266 | 7.641 → 7.522 | 2736 → 2736 | | index | def hit | 5.993 → 6.088 | 6.699 → 6.937 | 254 → 254 | | index | def case hit | 6.123 → 6.268 | 6.891 → 7.085 | 278 → 278 | | index | def case miss | 5.705 → 5.731 | 6.652 → 6.581 | 35 → 35 | | index | ranked hit | 6.314 → 6.430 | 14.728 → 13.926 | 295 → 295 | | index | ranked discovery | 7.097 → 7.177 | 8.351 → 8.918 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/token-estimate-refit-2026-10-02-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output token-estimate-refit-2026-10-02-darwin-arm64.json`. ## JSON fits its budget by its own size: exact-search regression (2026-10-03) Originating PR: [#70](https://github.com/thiagodmont/greeg/pull/70). v0.10.0 (built from eec7db8, the tag's code) against the branch where --budget bounds search and verb JSON by its own size and every JSON outcome gains truncated_by. All 34 cases keep their exit status. stdout changes in hit_json (both backends: the JSON is fitted to the 2000 budget, 2,734 to 1,872 o200k tokens on a scan, 2,736 to 1,878 with the index), in case_miss_json (both backends: truncated_by, and est_tokens is the JSON's own estimate), and in ranked_discovery's ~N tokens footer, which #69 changed on main already (main 4012de5 and this branch print the same). JSON is compared without elapsed fields or est_tokens. Every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). The load gate stayed shut for 10 minutes, so the run started ungated at 1- and 5-minute loads of 30.3 and 33.5: medians range from −11.8% to +20.0% and p95 from −17.7% to +24.7%. hit_json (median +20.0% scan, +17.8% index) is the cost of reshaping: 151-pair paired rechecks against main (4012de5) measuring rusage CPU gave median +19.3% scan and +25.2% index, about 1.4 ms, from 11 shapes rendered twice each; the fit change at the top of the stack brings it to +2.6% and +3.4%. The other flags run code this PR does not change and did not reproduce in 151-pair rechecks against main: hit_unlimited scan (median +10.7%) CPU median −0.2%, p95 +0.4%; absent_files index (p95 +24.7%) median +0.6%, p95 −0.6%; hit_files index (p95 +20.1%) median −1.1%, p95 +4.1%; hit_unlimited against v0.10.0 median +0.7%, p95 +0.8%, and a same-binary run within ±1%. The harness records no execution time; the result file was written at 2026-10-03T03:40:17Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+f63e982f6`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **5**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 8.592 → 9.084 | 18.491 → 18.850 | 3 → 3 | | scan | word miss count | 12.657 → 11.937 | 23.841 → 19.609 | 3 → 3 | | scan | split miss unlimited | 14.567 → 15.383 | 21.818 → 23.392 | 3 → 3 | | scan | fuzzy miss unlimited | 7.820 → 7.823 | 10.664 → 11.248 | 3 → 3 | | scan | absent files | 7.946 → 7.639 | 9.480 → 9.767 | 3 → 3 | | scan | hit files | 9.005 → 8.744 | 17.915 → 17.578 | 55 → 55 | | scan | type files | 7.160 → 7.134 | 8.136 → 8.271 | 55 → 55 | | scan | glob files | 10.349 → 9.311 | 18.384 → 19.078 | 55 → 55 | | scan | hit count | 16.513 → 15.318 | 26.558 → 26.170 | 71 → 71 | | scan | hit unlimited | 12.332 → 13.655 | 18.687 → 21.033 | 295 → 295 | | scan | case miss json | 8.079 → 8.140 | 21.941 → 18.563 | 263 → 273 | | scan | hit json | 8.142 → 9.770 | 16.320 → 18.695 | 2734 → 1872 | | scan | def hit | 17.341 → 16.410 | 25.699 → 25.722 | 214 → 214 | | scan | def case hit | 18.144 → 19.223 | 27.213 → 25.963 | 214 → 214 | | scan | def case miss | 17.908 → 17.920 | 23.974 → 23.508 | 35 → 35 | | scan | ranked hit | 18.725 → 18.129 | 26.909 → 28.756 | 295 → 295 | | scan | ranked discovery | 19.897 → 20.149 | 33.105 → 36.381 | 308 → 308 | | index | case miss files | 6.027 → 6.108 | 7.665 → 7.503 | 3 → 3 | | index | word miss count | 7.143 → 7.236 | 17.656 → 18.882 | 3 → 3 | | index | split miss unlimited | 6.276 → 6.331 | 7.050 → 6.935 | 3 → 3 | | index | fuzzy miss unlimited | 13.871 → 12.231 | 20.697 → 19.337 | 3 → 3 | | index | absent files | 10.186 → 11.029 | 15.639 → 19.499 | 3 → 3 | | index | hit files | 10.179 → 9.846 | 14.572 → 17.506 | 55 → 55 | | index | type files | 7.853 → 7.927 | 8.921 → 8.842 | 55 → 55 | | index | glob files | 6.612 → 6.630 | 7.911 → 8.075 | 55 → 55 | | index | hit count | 6.085 → 6.197 | 7.643 → 7.733 | 71 → 71 | | index | hit unlimited | 6.527 → 6.708 | 7.464 → 7.663 | 295 → 295 | | index | case miss json | 6.819 → 7.001 | 16.752 → 17.723 | 265 → 271 | | index | hit json | 6.701 → 7.897 | 7.855 → 9.648 | 2736 → 1878 | | index | def hit | 6.046 → 5.984 | 6.624 → 6.717 | 254 → 254 | | index | def case hit | 5.899 → 5.917 | 6.638 → 6.757 | 278 → 278 | | index | def case miss | 5.723 → 5.791 | 6.127 → 6.553 | 35 → 35 | | index | ranked hit | 6.128 → 6.216 | 7.067 → 6.939 | 295 → 295 | | index | ranked discovery | 6.821 → 6.803 | 8.001 → 7.787 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/json-budget-fit-2026-10-03-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output json-budget-fit-2026-10-03-darwin-arm64.json`. ## Phase 4.3 to phase 5 stack, -c without kept hits: exact-search regression (2026-10-03) Originating PR: [#79](https://github.com/thiagodmont/greeg/pull/79). v0.10.0 (built from eec7db8, the tag's code) against f0b1929, the stack from JSON fitted to its budget through --max-bytes, --capabilities, --explain, whole UTF-8 characters in clipped lines, the last case and boundary flag winning, property tests, release qualification and hook fixtures, to -c keeping one line per file; the run covers #72 to #79. All 34 cases keep their exit status. stdout changes only where #70 changed it (hit_json fitted to the 2000 budget, 2,738 to 1,872 o200k tokens on a scan and 2,736 to 1,878 with the index; case_miss_json's truncated_by and own est_tokens) and in ranked_discovery's ~N tokens footer, which #69 changed on main already. JSON is compared without elapsed fields or est_tokens. Every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). The load gate stayed shut for 10 minutes, so the run started ungated at 1- and 5-minute loads of 19.2 and 18.3: medians range from −3.0% to +20.5% and p95 from −5.8% to +22.0%. The only flags are hit_json (median +20.2% scan, +20.5% index), the cost of #70's reshaping, which the fit change at the top of the stack (#80) brings to +2.6% and +3.4% CPU against main. The harness records no execution time; the result file was written at 2026-10-03T04:06:47Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+f0b1929e9`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **2**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.106 → 6.230 | 6.651 → 6.776 | 3 → 3 | | scan | word miss count | 6.399 → 6.320 | 7.643 → 7.199 | 3 → 3 | | scan | split miss unlimited | 6.283 → 6.263 | 6.973 → 7.395 | 3 → 3 | | scan | fuzzy miss unlimited | 6.256 → 6.246 | 6.826 → 6.816 | 3 → 3 | | scan | absent files | 6.091 → 6.113 | 6.722 → 6.634 | 3 → 3 | | scan | hit files | 6.226 → 6.256 | 6.717 → 6.944 | 55 → 55 | | scan | type files | 6.436 → 6.440 | 7.219 → 7.005 | 55 → 55 | | scan | glob files | 6.352 → 6.326 | 7.341 → 7.636 | 55 → 55 | | scan | hit count | 6.428 → 6.428 | 7.164 → 7.136 | 71 → 71 | | scan | hit unlimited | 6.865 → 6.916 | 8.086 → 8.221 | 295 → 295 | | scan | case miss json | 6.232 → 6.287 | 7.025 → 7.043 | 263 → 269 | | scan | hit json | 6.913 → 8.310 | 7.614 → 8.982 | 2738 → 1872 | | scan | def hit | 7.441 → 7.532 | 8.557 → 8.838 | 214 → 214 | | scan | def case hit | 7.699 → 7.703 | 8.379 → 8.908 | 214 → 214 | | scan | def case miss | 7.089 → 7.127 | 7.690 → 7.772 | 35 → 35 | | scan | ranked hit | 7.220 → 7.098 | 8.159 → 8.345 | 295 → 295 | | scan | ranked discovery | 11.647 → 11.332 | 13.511 → 14.027 | 308 → 308 | | index | case miss files | 6.304 → 6.312 | 7.342 → 7.301 | 3 → 3 | | index | word miss count | 5.440 → 5.439 | 6.060 → 5.975 | 3 → 3 | | index | split miss unlimited | 5.678 → 5.625 | 6.488 → 6.660 | 3 → 3 | | index | fuzzy miss unlimited | 5.440 → 5.387 | 6.455 → 6.201 | 3 → 3 | | index | absent files | 5.349 → 5.321 | 6.209 → 6.409 | 3 → 3 | | index | hit files | 5.447 → 5.519 | 6.491 → 6.196 | 55 → 55 | | index | type files | 6.337 → 6.217 | 7.511 → 7.189 | 55 → 55 | | index | glob files | 6.052 → 6.107 | 6.980 → 6.707 | 55 → 55 | | index | hit count | 6.298 → 6.295 | 7.327 → 7.591 | 71 → 71 | | index | hit unlimited | 6.665 → 6.755 | 7.417 → 7.604 | 295 → 295 | | index | case miss json | 6.190 → 6.318 | 7.276 → 7.369 | 265 → 271 | | index | hit json | 6.213 → 7.485 | 6.843 → 8.350 | 2736 → 1878 | | index | def hit | 5.864 → 5.876 | 6.665 → 6.528 | 254 → 254 | | index | def case hit | 6.151 → 6.149 | 7.262 → 7.303 | 278 → 278 | | index | def case miss | 6.126 → 5.945 | 7.261 → 7.345 | 35 → 35 | | index | ranked hit | 5.939 → 5.965 | 8.697 → 9.357 | 295 → 295 | | index | ranked discovery | 6.477 → 6.518 | 7.203 → 7.348 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/stack-tip-2026-10-03-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output stack-tip-2026-10-03-darwin-arm64.json`. ## JSON fit renders each shape once: exact-search regression (2026-10-03) Originating PR: [#80](https://github.com/thiagodmont/greeg/pull/80). v0.10.0 (built from eec7db8, the tag's code) against the branch where the JSON fit renders each shape once and starts at the budget where the text answer stops growing (the candidate reports 0.10.0+f0b1929e9.dirty: built from the stack tip plus this change, before its commit; the code is this PR's). All 34 cases keep their exit status. stdout changes only where #70 changed it (hit_json fitted to the 2000 budget, 2,734 to 1,876 o200k tokens on a scan and 2,736 to 1,982 with the index; case_miss_json's truncated_by and own est_tokens). The index answer holds one record more than #79's (1,878 tokens): the fit now starts at the budget where the text answer stops growing, and fills more of the budget and in ranked_discovery's ~N tokens footer, which #69 changed on main already. JSON is compared without elapsed fields or est_tokens. Every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). The load gate stayed shut for 10 minutes, so the run started ungated at 1- and 5-minute loads of 28.2 and 12.9 (37.6 and 17.6 at the end): medians range from −8.7% to +18.9% and p95 from −74.9% to +415.9%. hit_json is no longer flagged (median +4.3% scan, +3.1% index). The flags, on paths this change does not touch (ranked_discovery scan median +18.9%; def_hit scan, hit_files both backends and absent_files index on p95 only), did not reproduce in 151-pair paired rechecks against f0b1929 measuring rusage CPU at loads of 35 to 48: CPU medians −0.5% to +6.3%, p95 −6.2% to +9.6%; the same rechecks gave hit_json −10.4% (scan) and −14.2% (index). The harness records no execution time; the result file was written at 2026-10-03T04:39:11Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+f0b1929e9.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **5**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 8.413 → 8.560 | 11.313 → 11.937 | 3 → 3 | | scan | word miss count | 9.636 → 9.846 | 100.426 → 46.964 | 3 → 3 | | scan | split miss unlimited | 10.045 → 9.708 | 16.085 → 18.711 | 3 → 3 | | scan | fuzzy miss unlimited | 10.002 → 9.890 | 52.675 → 23.837 | 3 → 3 | | scan | absent files | 7.958 → 8.043 | 12.342 → 11.197 | 3 → 3 | | scan | hit files | 10.637 → 10.748 | 22.723 → 28.541 | 55 → 55 | | scan | type files | 7.863 → 7.812 | 13.374 → 11.720 | 55 → 55 | | scan | glob files | 8.582 → 8.634 | 12.154 → 13.383 | 55 → 55 | | scan | hit count | 14.712 → 16.034 | 100.716 → 70.451 | 71 → 71 | | scan | hit unlimited | 8.649 → 8.569 | 10.892 → 11.868 | 295 → 295 | | scan | case miss json | 9.637 → 9.960 | 13.049 → 13.129 | 263 → 268 | | scan | hit json | 8.376 → 8.739 | 18.077 → 14.498 | 2734 → 1876 | | scan | def hit | 11.236 → 11.159 | 25.131 → 129.661 | 214 → 214 | | scan | def case hit | 10.968 → 11.130 | 16.384 → 14.235 | 214 → 214 | | scan | def case miss | 13.380 → 13.097 | 117.099 → 29.349 | 35 → 35 | | scan | ranked hit | 10.137 → 10.403 | 17.409 → 16.619 | 295 → 295 | | scan | ranked discovery | 14.746 → 17.531 | 92.706 → 98.103 | 308 → 308 | | index | case miss files | 7.985 → 8.019 | 14.312 → 12.790 | 3 → 3 | | index | word miss count | 7.092 → 7.108 | 9.511 → 8.986 | 3 → 3 | | index | split miss unlimited | 7.325 → 7.530 | 12.157 → 13.951 | 3 → 3 | | index | fuzzy miss unlimited | 6.913 → 6.863 | 8.069 → 8.337 | 3 → 3 | | index | absent files | 8.981 → 8.283 | 14.796 → 17.833 | 3 → 3 | | index | hit files | 10.785 → 10.430 | 47.649 → 74.993 | 55 → 55 | | index | type files | 10.094 → 10.689 | 16.347 → 18.126 | 55 → 55 | | index | glob files | 9.327 → 9.182 | 12.057 → 10.686 | 55 → 55 | | index | hit count | 7.907 → 8.098 | 8.935 → 8.909 | 71 → 71 | | index | hit unlimited | 7.068 → 7.102 | 7.598 → 7.555 | 295 → 295 | | index | case miss json | 7.694 → 7.898 | 11.865 → 13.450 | 265 → 271 | | index | hit json | 7.713 → 7.953 | 11.163 → 11.889 | 2736 → 1982 | | index | def hit | 8.765 → 8.733 | 11.622 → 12.043 | 254 → 254 | | index | def case hit | 11.085 → 10.115 | 85.304 → 41.292 | 278 → 278 | | index | def case miss | 8.379 → 8.678 | 18.375 → 16.920 | 35 → 35 | | index | ranked hit | 7.181 → 7.203 | 8.172 → 7.963 | 295 → 295 | | index | ranked discovery | 8.861 → 8.917 | 13.923 → 14.277 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/json-fit-single-render-2026-10-03-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output json-fit-single-render-2026-10-03-darwin-arm64.json`. ## Hits without a display copy, fits measured at fixed-width timings: exact-search regression (2026-10-03) Originating PR: [#83](https://github.com/thiagodmont/greeg/pull/83). v0.10.0 (built from eec7db8, the tag's code) against 055a4aa, the top of the stack: #80's review fixes, hits that keep no display copy (#82) and fits that measure timings at a fixed width (#83). All 34 cases keep their exit status. stdout changes only where #70 changed it (hit_json fitted to the 2000 budget, 2,738 to 1,872 o200k tokens on a scan and 2,736 to 1,878 with the index; case_miss_json's truncated_by and own est_tokens) and in ranked_discovery's ~N tokens footer, which #69 changed on main already. With timings measured at the width of their stand-ins, the index hit_json answer keeps #79's records again (1,878 tokens; #80 kept one more, 1,982). JSON is compared without elapsed fields or est_tokens. Every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). The load gate stayed shut for 10 minutes, so the run started ungated at 1- and 5-minute loads of 8.4 and 9.3: medians range from −3.1% to +7.3%. The flags are on p95 only (fuzzy_miss_unlimited scan +57.6%, def_case_hit scan +77.2%, hit_count index +214.5%, medians +0.5% to +1.4%) and did not reproduce in 151-pair paired rechecks against #82 measuring rusage CPU at load 6.6–8.4: medians −0.6% to −0.2%, p95 −2.4% to +3.0%. The same rechecks gave hit_json +1.6% (scan) and +0.1% (index) median CPU. The harness records no execution time; the result file was written at 2026-10-03T06:15:55Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+055a4aabf`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **3**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.500 → 6.560 | 7.825 → 7.970 | 3 → 3 | | scan | word miss count | 6.555 → 6.648 | 9.747 → 8.482 | 3 → 3 | | scan | split miss unlimited | 6.647 → 6.800 | 29.267 → 15.550 | 3 → 3 | | scan | fuzzy miss unlimited | 8.423 → 8.468 | 16.915 → 26.660 | 3 → 3 | | scan | absent files | 6.936 → 6.849 | 9.354 → 9.533 | 3 → 3 | | scan | hit files | 6.579 → 6.574 | 7.726 → 7.591 | 55 → 55 | | scan | type files | 7.101 → 7.023 | 9.385 → 8.088 | 55 → 55 | | scan | glob files | 6.526 → 6.560 | 7.131 → 7.525 | 55 → 55 | | scan | hit count | 6.998 → 7.062 | 16.164 → 16.874 | 71 → 71 | | scan | hit unlimited | 7.111 → 7.080 | 8.056 → 8.105 | 295 → 295 | | scan | case miss json | 6.650 → 6.795 | 7.662 → 7.431 | 267 → 269 | | scan | hit json | 7.293 → 7.827 | 8.221 → 8.658 | 2738 → 1872 | | scan | def hit | 7.798 → 7.899 | 8.882 → 10.048 | 214 → 214 | | scan | def case hit | 8.304 → 8.423 | 19.658 → 34.831 | 214 → 214 | | scan | def case miss | 7.446 → 7.648 | 8.494 → 8.728 | 35 → 35 | | scan | ranked hit | 7.192 → 7.174 | 8.250 → 8.248 | 295 → 295 | | scan | ranked discovery | 10.537 → 10.338 | 13.035 → 13.200 | 308 → 308 | | index | case miss files | 5.783 → 5.817 | 6.808 → 7.044 | 3 → 3 | | index | word miss count | 6.006 → 6.135 | 18.928 → 13.100 | 3 → 3 | | index | split miss unlimited | 5.779 → 5.829 | 6.693 → 6.508 | 3 → 3 | | index | fuzzy miss unlimited | 5.826 → 5.784 | 7.149 → 7.191 | 3 → 3 | | index | absent files | 5.779 → 5.697 | 6.814 → 6.922 | 3 → 3 | | index | hit files | 5.795 → 5.818 | 7.123 → 7.391 | 55 → 55 | | index | type files | 6.268 → 6.226 | 7.272 → 6.730 | 55 → 55 | | index | glob files | 5.874 → 5.880 | 6.694 → 6.723 | 55 → 55 | | index | hit count | 6.280 → 6.317 | 15.854 → 49.861 | 71 → 71 | | index | hit unlimited | 6.180 → 6.248 | 7.503 → 7.523 | 295 → 295 | | index | case miss json | 6.046 → 6.115 | 7.359 → 7.409 | 269 → 271 | | index | hit json | 6.122 → 6.445 | 6.637 → 6.982 | 2736 → 1878 | | index | def hit | 6.145 → 6.236 | 7.116 → 7.282 | 254 → 254 | | index | def case hit | 6.051 → 6.022 | 7.114 → 7.160 | 278 → 278 | | index | def case miss | 6.095 → 5.907 | 14.515 → 15.288 | 35 → 35 | | index | ranked hit | 6.122 → 6.169 | 7.281 → 7.208 | 295 → 295 | | index | ranked discovery | 7.002 → 7.149 | 8.279 → 8.275 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/fit-ignores-elapsed-2026-10-03-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output fit-ignores-elapsed-2026-10-03-darwin-arm64.json`. ## Compact hits: exact-search regression (2026-10-03) Originating PR: [#84](https://github.com/thiagodmont/greeg/pull/84). v0.10.0 (built from eec7db8, the tag's code) against the branch where a kept hit stores one match range inline and its enclosing chain, extra ranges and line in exact-size boxes (Hit 104 to 80 bytes; the candidate reports 0.10.0+2026fb789.dirty: built from #83 plus this change, before its commit). All 34 cases keep their exit status. stdout changes only where #70 changed it (hit_json fitted to the 2000 budget, 2,734 to 1,872 o200k tokens on a scan and 2,740 to 1,874 with the index; case_miss_json's truncated_by and own est_tokens) and in ranked_discovery's ~N tokens footer, which #69 changed on main already. JSON is compared without elapsed fields or est_tokens. Every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). The load gate opened at 1- and 5-minute loads of 2.1 and 4.9: medians range from −2.5% to +7.4% and p95 from −4.8% to +10.6%, with no flag. The harness records no execution time; the result file was written at 2026-10-03T15:03:21Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+2026fb789.dirty`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 5.808 → 5.869 | 7.522 → 7.167 | 3 → 3 | | scan | word miss count | 5.795 → 5.885 | 6.885 → 6.711 | 3 → 3 | | scan | split miss unlimited | 5.830 → 5.802 | 6.521 → 6.329 | 3 → 3 | | scan | fuzzy miss unlimited | 5.808 → 5.851 | 6.393 → 6.777 | 3 → 3 | | scan | absent files | 5.727 → 5.720 | 6.430 → 6.118 | 3 → 3 | | scan | hit files | 5.763 → 5.857 | 6.920 → 7.176 | 55 → 55 | | scan | type files | 6.190 → 6.120 | 7.338 → 7.534 | 55 → 55 | | scan | glob files | 5.684 → 5.743 | 6.386 → 6.366 | 55 → 55 | | scan | hit count | 5.954 → 6.006 | 6.415 → 6.733 | 71 → 71 | | scan | hit unlimited | 6.411 → 6.457 | 7.200 → 7.278 | 295 → 295 | | scan | case miss json | 6.156 → 6.094 | 7.937 → 7.777 | 263 → 269 | | scan | hit json | 6.523 → 7.007 | 7.210 → 7.619 | 2734 → 1872 | | scan | def hit | 6.984 → 7.144 | 8.330 → 8.334 | 214 → 214 | | scan | def case hit | 7.583 → 7.651 | 8.644 → 8.743 | 214 → 214 | | scan | def case miss | 6.755 → 6.758 | 7.798 → 7.571 | 35 → 35 | | scan | ranked hit | 7.010 → 6.838 | 8.855 → 8.500 | 295 → 295 | | scan | ranked discovery | 10.466 → 10.399 | 11.466 → 11.395 | 308 → 308 | | index | case miss files | 5.997 → 6.190 | 7.620 → 7.329 | 3 → 3 | | index | word miss count | 5.397 → 5.369 | 6.719 → 6.719 | 3 → 3 | | index | split miss unlimited | 5.337 → 5.234 | 5.832 → 6.451 | 3 → 3 | | index | fuzzy miss unlimited | 5.272 → 5.374 | 6.738 → 6.706 | 3 → 3 | | index | absent files | 5.405 → 5.522 | 7.650 → 7.861 | 3 → 3 | | index | hit files | 5.243 → 5.232 | 6.344 → 6.038 | 55 → 55 | | index | type files | 5.388 → 5.386 | 6.115 → 6.352 | 55 → 55 | | index | glob files | 5.325 → 5.211 | 6.052 → 6.498 | 55 → 55 | | index | hit count | 5.372 → 5.394 | 6.289 → 6.476 | 71 → 71 | | index | hit unlimited | 5.340 → 5.376 | 7.304 → 6.976 | 295 → 295 | | index | case miss json | 5.295 → 5.336 | 6.065 → 5.883 | 269 → 271 | | index | hit json | 5.430 → 5.700 | 5.886 → 6.375 | 2740 → 1874 | | index | def hit | 5.203 → 5.218 | 6.842 → 6.582 | 254 → 254 | | index | def case hit | 5.189 → 5.229 | 6.227 → 6.583 | 278 → 278 | | index | def case miss | 5.057 → 5.107 | 5.660 → 6.250 | 35 → 35 | | index | ranked hit | 5.358 → 5.459 | 6.203 → 6.462 | 295 → 295 | | index | ranked discovery | 6.073 → 6.132 | 6.678 → 6.605 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/compact-hit-2026-10-03-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output compact-hit-2026-10-03-darwin-arm64.json`. ## Streamed --budget 0: exact-search regression (2026-10-03) Originating PR: [#85](https://github.com/thiagodmont/greeg/pull/85). v0.10.0 (built from eec7db8, the tag's code) against cf40506, the branch where a --budget 0 content search writes each matched file once the files before it are, in both backends. All 34 cases keep their exit status. stdout changes only where #70 changed it (hit_json fitted to the 2000 budget, 2,738 to 1,872 o200k tokens on a scan and 2,740 to 1,874 with the index; case_miss_json's truncated_by and own est_tokens) and in ranked_discovery's ~N tokens footer, which #69 changed on main already. JSON is compared without elapsed fields or est_tokens. Every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28), both now streamed. The load gate opened at 1- and 5-minute loads of 5.7 and 15.0: medians range from −4.6% to +5.6% and p95 from −12.3% to +11.2%, with no flag. The harness records no execution time; the result file was written at 2026-10-03T17:09:37Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+cf4050677`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.623 → 6.588 | 7.679 → 7.438 | 3 → 3 | | scan | word miss count | 6.296 → 6.253 | 7.051 → 7.203 | 3 → 3 | | scan | split miss unlimited | 6.130 → 6.303 | 7.083 → 7.125 | 3 → 3 | | scan | fuzzy miss unlimited | 6.085 → 6.256 | 7.280 → 7.143 | 3 → 3 | | scan | absent files | 6.026 → 6.140 | 6.992 → 6.982 | 3 → 3 | | scan | hit files | 6.069 → 6.219 | 7.328 → 6.980 | 55 → 55 | | scan | type files | 6.254 → 6.313 | 7.223 → 7.190 | 55 → 55 | | scan | glob files | 6.013 → 6.008 | 7.058 → 6.670 | 55 → 55 | | scan | hit count | 6.347 → 6.331 | 7.686 → 8.073 | 71 → 71 | | scan | hit unlimited | 8.444 → 8.054 | 11.592 → 10.861 | 295 → 295 | | scan | case miss json | 7.800 → 7.882 | 8.372 → 8.569 | 263 → 269 | | scan | hit json | 8.527 → 9.000 | 9.367 → 9.739 | 2738 → 1872 | | scan | def hit | 9.047 → 8.953 | 10.233 → 9.622 | 214 → 214 | | scan | def case hit | 9.203 → 9.098 | 10.413 → 11.010 | 214 → 214 | | scan | def case miss | 7.366 → 7.429 | 8.387 → 8.653 | 35 → 35 | | scan | ranked hit | 6.697 → 6.694 | 7.320 → 7.320 | 295 → 295 | | scan | ranked discovery | 10.013 → 10.075 | 12.177 → 11.597 | 308 → 308 | | index | case miss files | 5.516 → 5.669 | 6.834 → 6.369 | 3 → 3 | | index | word miss count | 5.527 → 5.601 | 6.697 → 6.950 | 3 → 3 | | index | split miss unlimited | 5.767 → 5.860 | 10.385 → 9.110 | 3 → 3 | | index | fuzzy miss unlimited | 5.415 → 5.416 | 6.109 → 6.139 | 3 → 3 | | index | absent files | 5.132 → 5.252 | 5.859 → 6.306 | 3 → 3 | | index | hit files | 5.321 → 5.340 | 6.199 → 6.264 | 55 → 55 | | index | type files | 5.645 → 5.615 | 6.708 → 6.615 | 55 → 55 | | index | glob files | 5.338 → 5.357 | 6.247 → 6.575 | 55 → 55 | | index | hit count | 5.906 → 5.972 | 6.897 → 7.224 | 71 → 71 | | index | hit unlimited | 6.048 → 5.988 | 6.898 → 7.257 | 295 → 295 | | index | case miss json | 5.727 → 5.751 | 6.494 → 7.013 | 265 → 271 | | index | hit json | 5.949 → 6.177 | 7.377 → 8.207 | 2740 → 1874 | | index | def hit | 5.765 → 5.809 | 6.701 → 6.968 | 254 → 254 | | index | def case hit | 5.559 → 5.565 | 6.431 → 6.473 | 278 → 278 | | index | def case miss | 5.830 → 5.883 | 7.051 → 7.019 | 35 → 35 | | index | ranked hit | 5.809 → 5.933 | 7.030 → 6.761 | 295 → 295 | | index | ranked discovery | 7.841 → 7.805 | 8.565 → 8.691 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/stream-unbudgeted-2026-10-03-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output stream-unbudgeted-2026-10-03-darwin-arm64.json`. ## Ranked search counts every line, keeps the best: exact-search regression (2026-10-03) Originating PR: [#86](https://github.com/thiagodmont/greeg/pull/86). v0.10.0 (built from eec7db8, the tag's code) against 46a9e36, the branch where a ranked search classifies and counts every matched line and keeps per file the 16 best whole-word lines, the 16 best others and up to 64 definitions (a few-file answer reads its files again, keeping their first 64 lines too). All 34 cases keep their exit status. stdout changes only where #70 changed it (hit_json fitted to the 2000 budget, 2,738 to 1,872 o200k tokens on a scan and 2,736 to 1,877 with the index; case_miss_json's truncated_by and own est_tokens) and in ranked_discovery's ~N tokens footer, which #69 changed on main already. JSON is compared without elapsed fields or est_tokens. Every contract passes; --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). The load gate stayed shut for 10 minutes, so the run started ungated at 1- and 5-minute loads of 83.6 and 40.3: medians range from −15.4% to +8.2%. The flags are on p95 only (glob_files scan +27.5%, case_miss_json index +127.9%, hit_json index +29.2%, def_case_hit index +32.3%, def_case_miss index +20.7%; medians −2.8% to +5.8%) and did not reproduce in 151-pair paired rechecks against #85 measuring rusage CPU at load 20–38: medians −0.3% to +0.5%, p95 −1.5% to +2.8%. The harness records no execution time; the result file was written at 2026-10-03T18:21:42Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+46a9e361a`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **5**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 11.500 → 11.909 | 21.650 → 18.732 | 3 → 3 | | scan | word miss count | 13.462 → 14.010 | 23.765 → 22.463 | 3 → 3 | | scan | split miss unlimited | 12.402 → 13.226 | 19.757 → 21.490 | 3 → 3 | | scan | fuzzy miss unlimited | 11.347 → 11.675 | 19.748 → 17.029 | 3 → 3 | | scan | absent files | 11.517 → 11.553 | 16.120 → 16.968 | 3 → 3 | | scan | hit files | 13.496 → 12.896 | 24.065 → 20.813 | 55 → 55 | | scan | type files | 10.290 → 10.997 | 17.707 → 16.732 | 55 → 55 | | scan | glob files | 10.468 → 10.391 | 15.662 → 19.966 | 55 → 55 | | scan | hit count | 13.302 → 11.248 | 24.583 → 24.675 | 71 → 71 | | scan | hit unlimited | 10.882 → 11.031 | 14.982 → 15.208 | 295 → 295 | | scan | case miss json | 10.455 → 9.871 | 13.233 → 15.357 | 263 → 269 | | scan | hit json | 12.654 → 13.662 | 22.608 → 23.952 | 2738 → 1872 | | scan | def hit | 13.854 → 13.318 | 19.739 → 22.589 | 214 → 214 | | scan | def case hit | 17.627 → 19.065 | 25.910 → 25.798 | 214 → 214 | | scan | def case miss | 25.105 → 23.694 | 93.084 → 91.977 | 35 → 35 | | scan | ranked hit | 29.437 → 26.943 | 104.929 → 114.515 | 295 → 295 | | scan | ranked discovery | 26.583 → 27.917 | 47.444 → 55.462 | 308 → 308 | | index | case miss files | 8.641 → 8.339 | 10.434 → 12.291 | 3 → 3 | | index | word miss count | 7.600 → 7.645 | 10.195 → 10.171 | 3 → 3 | | index | split miss unlimited | 7.837 → 7.891 | 11.884 → 12.584 | 3 → 3 | | index | fuzzy miss unlimited | 7.618 → 7.889 | 18.559 → 14.842 | 3 → 3 | | index | absent files | 7.750 → 7.766 | 10.949 → 12.037 | 3 → 3 | | index | hit files | 12.694 → 12.793 | 57.166 → 40.475 | 55 → 55 | | index | type files | 11.338 → 11.162 | 20.773 → 18.749 | 55 → 55 | | index | glob files | 9.020 → 8.609 | 37.665 → 36.573 | 55 → 55 | | index | hit count | 10.740 → 9.860 | 35.714 → 26.160 | 71 → 71 | | index | hit unlimited | 8.450 → 8.670 | 15.686 → 14.635 | 295 → 295 | | index | case miss json | 11.528 → 11.207 | 23.558 → 53.684 | 265 → 275 | | index | hit json | 15.672 → 15.310 | 53.597 → 69.262 | 2736 → 1877 | | index | def hit | 10.706 → 10.297 | 16.173 → 16.995 | 254 → 254 | | index | def case hit | 7.987 → 8.449 | 10.658 → 14.098 | 278 → 278 | | index | def case miss | 8.577 → 8.745 | 17.814 → 21.495 | 35 → 35 | | index | ranked hit | 9.830 → 9.309 | 15.084 → 13.119 | 295 → 295 | | index | ranked discovery | 11.855 → 11.940 | 62.918 → 44.644 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/ranked-retention-2026-10-03-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output ranked-retention-2026-10-03-darwin-arm64.json`. ## Symbol verbs take --explain: exact-search regression (2026-10-03) Originating PR: [#89](https://github.com/thiagodmont/greeg/pull/89). v0.10.0 (built from eec7db8, the tag's code) against 22de3c6, the branch where def, refs, callers, impls, impact, outline, show and map take --explain (the def score is now kept as its terms, multiplied in the same order). All 34 cases keep their exit status. stdout changes only where #70 changed it (hit_json fitted to the 2000 budget, 2,734 to 1,872 o200k tokens on a scan and 2,736 to 1,874 with the index; case_miss_json's truncated_by and own est_tokens) and in ranked_discovery's ~N tokens footer, which #69 changed on main already. JSON is compared without elapsed fields or est_tokens. Every contract passes (30/30); --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). The load gate stayed shut for 10 minutes, so the run started ungated at 1- and 5-minute loads of 105.6 and 88.5: medians range from −9.3% to +8.2%. The one flag is on p95 only (glob_files scan +38.4%) and did not reproduce in a 151-pair paired recheck against #88 measuring rusage CPU at load 7.6: median +1.0%, p95 −1.3%. The harness records no execution time; the result file was written at 2026-10-03T20:02:49Z. `greeg 0.10.0+eec7db869` → `greeg 0.10.0+22de3c63f`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 11.017 → 9.996 | 14.494 → 14.410 | 3 → 3 | | scan | word miss count | 10.355 → 10.212 | 15.458 → 14.876 | 3 → 3 | | scan | split miss unlimited | 11.643 → 11.789 | 16.936 → 16.728 | 3 → 3 | | scan | fuzzy miss unlimited | 10.911 → 10.832 | 14.220 → 15.312 | 3 → 3 | | scan | absent files | 10.279 → 10.111 | 14.877 → 14.334 | 3 → 3 | | scan | hit files | 9.367 → 9.499 | 12.864 → 13.854 | 55 → 55 | | scan | type files | 9.489 → 9.400 | 12.325 → 12.368 | 55 → 55 | | scan | glob files | 10.888 → 11.630 | 17.668 → 24.444 | 55 → 55 | | scan | hit count | 12.881 → 12.885 | 18.991 → 17.845 | 71 → 71 | | scan | hit unlimited | 13.010 → 12.753 | 19.584 → 19.696 | 295 → 295 | | scan | case miss json | 10.378 → 10.437 | 12.557 → 13.827 | 263 → 269 | | scan | hit json | 11.265 → 11.689 | 14.185 → 16.077 | 2734 → 1872 | | scan | def hit | 12.295 → 12.467 | 16.896 → 18.235 | 214 → 214 | | scan | def case hit | 12.950 → 12.760 | 16.631 → 16.377 | 214 → 214 | | scan | def case miss | 11.017 → 11.306 | 13.446 → 13.239 | 35 → 35 | | scan | ranked hit | 11.214 → 11.261 | 12.429 → 13.593 | 295 → 295 | | scan | ranked discovery | 15.720 → 14.978 | 18.842 → 19.991 | 308 → 308 | | index | case miss files | 8.098 → 7.952 | 9.002 → 10.339 | 3 → 3 | | index | word miss count | 7.872 → 7.925 | 8.608 → 8.661 | 3 → 3 | | index | split miss unlimited | 7.770 → 7.771 | 8.504 → 8.796 | 3 → 3 | | index | fuzzy miss unlimited | 8.032 → 8.154 | 9.945 → 11.235 | 3 → 3 | | index | absent files | 8.059 → 8.308 | 12.921 → 11.821 | 3 → 3 | | index | hit files | 10.324 → 10.203 | 17.985 → 17.889 | 55 → 55 | | index | type files | 8.302 → 8.307 | 12.524 → 11.237 | 55 → 55 | | index | glob files | 7.841 → 8.102 | 10.629 → 11.858 | 55 → 55 | | index | hit count | 7.912 → 8.012 | 9.447 → 8.841 | 71 → 71 | | index | hit unlimited | 7.790 → 7.948 | 12.442 → 10.809 | 295 → 295 | | index | case miss json | 7.962 → 8.100 | 8.818 → 9.187 | 265 → 271 | | index | hit json | 7.847 → 8.491 | 9.447 → 10.116 | 2736 → 1874 | | index | def hit | 7.756 → 7.701 | 9.207 → 9.001 | 254 → 254 | | index | def case hit | 8.556 → 8.006 | 10.084 → 9.758 | 278 → 278 | | index | def case miss | 7.674 → 7.678 | 9.458 → 9.258 | 35 → 35 | | index | ranked hit | 7.869 → 7.737 | 8.652 → 9.286 | 295 → 295 | | index | ranked discovery | 9.166 → 9.040 | 11.570 → 10.737 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/verb-explain-2026-10-03-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output verb-explain-2026-10-03-darwin-arm64.json`. ## Release 0.11.0 against 0.10.0: exact-search regression (2026-10-15) Originating PR: [#96](https://github.com/thiagodmont/greeg/pull/96). v0.10.0 (built from the tag, ca4d5e0) against the 0.11.0 release commit (--budget and the --max-bytes ceiling in text, --json=greeg and --json=legacy, which --json=rg refuses; --explain, --capabilities, evidence-graded impact, streaming --budget 0, bare --json as greeg's records for searches and verbs while commands with their own JSON keep it). All 34 cases keep their exit status. stdout changes only in the JSON cases (hit_json fitted to the 2000 budget, 2,738 to 1,876 o200k tokens on a scan and 2,740 to 1,878 with the index; case_miss_json's truncated_by and own est_tokens) and in ranked_discovery's ~N tokens footer, from the new token estimate. The JSON cases name --json=legacy, which both binaries print. JSON is compared without elapsed fields or est_tokens. Every contract passes (30/30); --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Started at 1- and 5-minute loads of 3.3 and 3.4: medians range from −2.5% to +5.7% and p95 from −6.4% to +11.8%, with no flag. The harness records no execution time; the result file was written at 2026-10-15T16:38:31Z. `greeg 0.10.0` → `greeg 0.11.0+696e13e32`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 7.228 → 7.375 | 8.533 → 8.705 | 3 → 3 | | scan | word miss count | 7.693 → 7.727 | 9.227 → 8.635 | 3 → 3 | | scan | split miss unlimited | 7.835 → 7.901 | 8.823 → 8.636 | 3 → 3 | | scan | fuzzy miss unlimited | 8.255 → 8.119 | 8.718 → 8.921 | 3 → 3 | | scan | absent files | 8.223 → 8.192 | 9.052 → 8.867 | 3 → 3 | | scan | hit files | 7.866 → 8.066 | 8.919 → 8.698 | 55 → 55 | | scan | type files | 8.100 → 8.109 | 8.637 → 8.893 | 55 → 55 | | scan | glob files | 7.728 → 7.772 | 8.345 → 8.399 | 55 → 55 | | scan | hit count | 8.071 → 8.101 | 8.803 → 8.724 | 71 → 71 | | scan | hit unlimited | 8.664 → 8.445 | 9.574 → 9.483 | 295 → 295 | | scan | case miss json | 8.429 → 8.357 | 9.954 → 9.440 | 263 → 269 | | scan | hit json | 9.050 → 9.567 | 19.114 → 20.418 | 2738 → 1876 | | scan | def hit | 8.986 → 9.145 | 10.503 → 10.132 | 214 → 214 | | scan | def case hit | 9.112 → 9.184 | 9.581 → 9.626 | 214 → 214 | | scan | def case miss | 9.639 → 9.730 | 11.158 → 11.068 | 35 → 35 | | scan | ranked hit | 8.449 → 8.448 | 9.201 → 9.322 | 295 → 295 | | scan | ranked discovery | 11.622 → 11.475 | 13.804 → 13.169 | 308 → 308 | | index | case miss files | 6.536 → 6.523 | 7.516 → 8.055 | 3 → 3 | | index | word miss count | 6.494 → 6.557 | 7.506 → 7.489 | 3 → 3 | | index | split miss unlimited | 6.833 → 6.904 | 7.778 → 7.560 | 3 → 3 | | index | fuzzy miss unlimited | 6.575 → 6.579 | 7.459 → 7.514 | 3 → 3 | | index | absent files | 6.585 → 6.623 | 7.706 → 7.641 | 3 → 3 | | index | hit files | 6.998 → 7.040 | 8.301 → 9.278 | 55 → 55 | | index | type files | 7.443 → 7.506 | 8.304 → 8.908 | 55 → 55 | | index | glob files | 7.061 → 7.081 | 8.488 → 8.075 | 55 → 55 | | index | hit count | 7.453 → 7.532 | 8.053 → 8.658 | 71 → 71 | | index | hit unlimited | 7.147 → 7.197 | 7.852 → 8.348 | 295 → 295 | | index | case miss json | 6.711 → 6.899 | 7.715 → 7.769 | 265 → 271 | | index | hit json | 7.508 → 7.883 | 8.580 → 8.607 | 2740 → 1878 | | index | def hit | 7.244 → 7.253 | 8.934 → 9.621 | 254 → 254 | | index | def case hit | 7.055 → 7.208 | 7.891 → 7.862 | 278 → 278 | | index | def case miss | 6.697 → 6.899 | 7.505 → 7.520 | 35 → 35 | | index | ranked hit | 6.920 → 6.971 | 7.653 → 7.605 | 295 → 295 | | index | ranked discovery | 8.125 → 8.153 | 9.137 → 9.196 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/release-0.11.0-2026-10-15-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output release-0.11.0-2026-10-15-darwin-arm64.json`. ## Release 0.12.0 against 0.11.0: exact-search regression (2026-10-16) Originating PR: [#118](https://github.com/thiagodmont/greeg/pull/118). v0.11.0 (built from the tag, 19cd7db) against the 0.12.0 release commit (Linux archives on glibc 2.35, hook rewrites for lists, grep -r, | head and kept redirections, single-flight builds, bounded phase-2 parses, stale-span fixes in def/impls). All 34 cases keep their stdout and exit status. JSON is compared without elapsed fields or est_tokens. Every contract passes (30/30); --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Started at 1- and 5-minute loads of 4.2 and 6.8: medians range from −2.4% to +3.9% and p95 from −3.5% to +13.8% (glob_files with the index), with no flag. The harness records no execution time; the result file was written at 2026-10-16T22:03:10Z. `greeg 0.11.0` → `greeg 0.12.0+0e5164f2d`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.081 → 6.114 | 6.928 → 6.683 | 3 → 3 | | scan | word miss count | 6.229 → 6.260 | 7.046 → 7.006 | 3 → 3 | | scan | split miss unlimited | 6.367 → 6.356 | 7.212 → 7.637 | 3 → 3 | | scan | fuzzy miss unlimited | 6.441 → 6.567 | 7.758 → 7.995 | 3 → 3 | | scan | absent files | 6.077 → 6.060 | 6.839 → 6.768 | 3 → 3 | | scan | hit files | 6.281 → 6.232 | 7.343 → 7.265 | 55 → 55 | | scan | type files | 6.801 → 6.690 | 7.762 → 7.603 | 55 → 55 | | scan | glob files | 6.331 → 6.432 | 7.243 → 7.232 | 55 → 55 | | scan | hit count | 7.092 → 7.110 | 7.873 → 7.940 | 71 → 71 | | scan | hit unlimited | 6.706 → 6.893 | 7.897 → 7.713 | 295 → 295 | | scan | case miss json | 6.553 → 6.527 | 7.379 → 7.400 | 269 → 269 | | scan | hit json | 7.555 → 7.449 | 8.267 → 8.354 | 1872 → 1872 | | scan | def hit | 7.785 → 7.870 | 8.796 → 9.598 | 214 → 214 | | scan | def case hit | 7.636 → 7.933 | 8.640 → 8.679 | 214 → 214 | | scan | def case miss | 7.098 → 7.350 | 7.856 → 8.122 | 35 → 35 | | scan | ranked hit | 6.978 → 7.018 | 8.317 → 8.096 | 295 → 295 | | scan | ranked discovery | 9.958 → 10.057 | 10.963 → 11.007 | 308 → 308 | | index | case miss files | 5.986 → 5.955 | 7.299 → 7.485 | 3 → 3 | | index | word miss count | 5.801 → 5.761 | 7.001 → 6.880 | 3 → 3 | | index | split miss unlimited | 5.525 → 5.721 | 6.973 → 6.885 | 3 → 3 | | index | fuzzy miss unlimited | 5.561 → 5.496 | 6.456 → 6.573 | 3 → 3 | | index | absent files | 5.393 → 5.264 | 6.464 → 6.550 | 3 → 3 | | index | hit files | 5.421 → 5.482 | 6.368 → 6.655 | 55 → 55 | | index | type files | 5.700 → 5.633 | 6.722 → 6.926 | 55 → 55 | | index | glob files | 5.433 → 5.540 | 6.989 → 7.952 | 55 → 55 | | index | hit count | 5.676 → 5.590 | 6.883 → 6.788 | 71 → 71 | | index | hit unlimited | 5.584 → 5.567 | 6.696 → 6.912 | 295 → 295 | | index | case miss json | 5.700 → 5.692 | 7.115 → 6.911 | 271 → 271 | | index | hit json | 6.175 → 6.085 | 7.160 → 7.591 | 1878 → 1874 | | index | def hit | 6.031 → 5.971 | 7.141 → 7.021 | 254 → 254 | | index | def case hit | 5.827 → 5.947 | 7.293 → 7.291 | 278 → 278 | | index | def case miss | 5.216 → 5.325 | 6.092 → 6.168 | 35 → 35 | | index | ranked hit | 5.655 → 5.693 | 6.850 → 6.995 | 295 → 295 | | index | ranked discovery | 6.609 → 6.465 | 8.190 → 8.010 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/release-0.12.0-2026-10-16-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output release-0.12.0-2026-10-16-darwin-arm64.json`. ## Release 0.12.1 against 0.12.0: exact-search regression (2026-10-16) Originating PR: [#122](https://github.com/thiagodmont/greeg/pull/122). v0.12.0 (built from the tag, 0e5164f) against the 0.12.1 release commit (--json=legacy removed: it exits 2 and names --json). All 34 cases keep their exit status, and their stdout once the JSON header's version is set aside: the comparison now ignores that field, the only one in which the two releases' output differs. The JSON cases now name --json=greeg, where the 0.12.0 run named --json=legacy, so their token counts (193 and 1,624 on a scan) are not comparable with the 0.12.0 rows (269 and 1,872). Every contract passes (30/30); --json=rg equals rg --json (28/28) and --json=greeg --budget 0 holds ripgrep's matches (28/28). Started at 1- and 5-minute loads of 2.9 and 2.5: medians range from −3.8% to +2.1% and p95 from −7.4% to +9.9% (word_miss_count on a scan), with no flag. The harness records no execution time; shell date stamps around it read 02:47:51Z and 02:48:18Z on 2026-10-17, the second matching the result file's write time. `greeg 0.12.0+0e5164f2d` → `greeg 0.12.1+6304d5d18`; 51 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.371 → 6.258 | 7.324 → 7.442 | 3 → 3 | | scan | word miss count | 6.262 → 6.369 | 7.262 → 7.983 | 3 → 3 | | scan | split miss unlimited | 6.759 → 6.528 | 8.358 → 8.061 | 3 → 3 | | scan | fuzzy miss unlimited | 6.543 → 6.632 | 8.130 → 8.100 | 3 → 3 | | scan | absent files | 6.443 → 6.504 | 7.788 → 8.156 | 3 → 3 | | scan | hit files | 6.548 → 6.683 | 7.757 → 7.903 | 55 → 55 | | scan | type files | 6.641 → 6.739 | 7.960 → 7.928 | 55 → 55 | | scan | glob files | 7.061 → 7.065 | 8.326 → 7.845 | 55 → 55 | | scan | hit count | 7.154 → 7.055 | 7.966 → 7.976 | 71 → 71 | | scan | hit unlimited | 7.652 → 7.511 | 8.786 → 9.289 | 295 → 295 | | scan | case miss json | 8.387 → 8.066 | 13.306 → 13.192 | 193 → 193 | | scan | hit json | 7.576 → 7.631 | 9.167 → 8.786 | 1624 → 1624 | | scan | def hit | 8.434 → 8.358 | 10.223 → 9.802 | 214 → 214 | | scan | def case hit | 8.207 → 8.128 | 8.955 → 8.768 | 214 → 214 | | scan | def case miss | 7.724 → 7.675 | 8.205 → 8.485 | 35 → 35 | | scan | ranked hit | 7.255 → 7.210 | 7.846 → 8.048 | 295 → 295 | | scan | ranked discovery | 10.423 → 10.371 | 11.666 → 11.658 | 308 → 308 | | index | case miss files | 6.063 → 6.005 | 6.985 → 6.830 | 3 → 3 | | index | word miss count | 5.888 → 5.938 | 6.422 → 6.786 | 3 → 3 | | index | split miss unlimited | 5.886 → 5.850 | 6.872 → 6.865 | 3 → 3 | | index | fuzzy miss unlimited | 5.996 → 6.051 | 6.763 → 6.899 | 3 → 3 | | index | absent files | 6.023 → 5.909 | 6.940 → 6.532 | 3 → 3 | | index | hit files | 6.097 → 6.120 | 7.110 → 7.132 | 55 → 55 | | index | type files | 6.505 → 6.507 | 7.204 → 7.097 | 55 → 55 | | index | glob files | 6.303 → 6.393 | 7.129 → 7.238 | 55 → 55 | | index | hit count | 6.295 → 6.354 | 7.838 → 7.259 | 71 → 71 | | index | hit unlimited | 6.425 → 6.383 | 6.984 → 6.941 | 295 → 295 | | index | case miss json | 6.312 → 6.446 | 7.149 → 7.399 | 195 → 195 | | index | hit json | 6.585 → 6.676 | 7.382 → 7.462 | 1626 → 1626 | | index | def hit | 6.360 → 6.445 | 7.231 → 7.356 | 254 → 254 | | index | def case hit | 6.294 → 6.292 | 6.900 → 6.717 | 278 → 278 | | index | def case miss | 6.035 → 6.046 | 6.775 → 6.788 | 35 → 35 | | index | ranked hit | 6.695 → 6.690 | 7.398 → 7.194 | 295 → 295 | | index | ranked discovery | 7.292 → 7.280 | 8.078 → 8.138 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/release-0.12.1-2026-10-16-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 51 --tokens --output release-0.12.1-2026-10-16-darwin-arm64.json`. ## Release 0.13.0 against 0.12.1: exact-search regression (2026-10-22) Originating PR: [#129](https://github.com/thiagodmont/greeg/pull/129). v0.12.1 (built from its release commit, 6304d5d) against the 0.13.0 release commit (a22a935), which adds `greeg find` and the hook's reader pipelines. All 34 cases keep their stdout and exit status, and every contract passes: rg stdout and status 20/20, JSON exact 4/4, definitions 6/6. --json=rg equals rg --json (28/28), and --json=greeg --budget 0 holds ripgrep's matches (28/28). The run started at 1- and 5-minute loads of 5.7 and 13.0. Medians range from −3.2% to +2.3%. One p95 crossed the 20% threshold: word_miss_count on a scan, +27.9%, from two samples. A 151-run recheck of that case put its p95 at +0.8% on a scan and −0.1% on the index, with medians within 1.3%: noise. The run took 20 s; the result file was written at 2026-10-22T22:17:28Z. `greeg 0.12.1+6304d5d18` → `greeg 0.13.0+a22a93564`; 31 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 7.125 → 7.148 | 8.223 → 7.981 | 3 → 3 | | scan | word miss count | 7.299 → 7.395 | 8.480 → 10.845 | 3 → 3 | | scan | split miss unlimited | 7.568 → 7.562 | 8.602 → 8.406 | 3 → 3 | | scan | fuzzy miss unlimited | 7.506 → 7.388 | 8.277 → 8.276 | 3 → 3 | | scan | absent files | 7.190 → 7.301 | 7.980 → 8.151 | 3 → 3 | | scan | hit files | 7.616 → 7.585 | 8.389 → 8.134 | 55 → 55 | | scan | type files | 8.012 → 8.021 | 8.767 → 8.588 | 55 → 55 | | scan | glob files | 7.790 → 7.778 | 8.278 → 8.224 | 55 → 55 | | scan | hit count | 8.164 → 8.213 | 8.539 → 8.836 | 71 → 71 | | scan | hit unlimited | 8.242 → 8.307 | 8.793 → 8.700 | 295 → 295 | | scan | case miss json | 7.878 → 7.868 | 8.492 → 8.606 | 193 → 193 | | scan | hit json | 8.476 → 8.613 | 9.217 → 9.145 | 1624 → 1624 | | scan | def hit | 9.295 → 9.189 | 10.008 → 10.058 | 214 → 214 | | scan | def case hit | 8.969 → 9.010 | 9.455 → 9.462 | 214 → 214 | | scan | def case miss | 8.555 → 8.682 | 9.153 → 9.124 | 35 → 35 | | scan | ranked hit | 8.274 → 8.268 | 8.685 → 8.831 | 295 → 295 | | scan | ranked discovery | 11.765 → 11.681 | 12.565 → 12.956 | 308 → 308 | | index | case miss files | 6.896 → 6.852 | 7.866 → 8.219 | 3 → 3 | | index | word miss count | 6.851 → 6.788 | 7.468 → 7.673 | 3 → 3 | | index | split miss unlimited | 6.635 → 6.716 | 7.807 → 7.520 | 3 → 3 | | index | fuzzy miss unlimited | 6.669 → 6.775 | 7.233 → 7.462 | 3 → 3 | | index | absent files | 6.819 → 6.706 | 7.436 → 7.493 | 3 → 3 | | index | hit files | 7.140 → 7.285 | 8.223 → 8.198 | 55 → 55 | | index | type files | 7.414 → 7.475 | 8.165 → 7.993 | 55 → 55 | | index | glob files | 6.953 → 6.946 | 7.612 → 7.688 | 55 → 55 | | index | hit count | 7.909 → 7.940 | 8.408 → 8.345 | 71 → 71 | | index | hit unlimited | 6.954 → 6.962 | 7.771 → 7.833 | 295 → 295 | | index | case miss json | 7.051 → 6.982 | 7.971 → 7.976 | 195 → 195 | | index | hit json | 7.166 → 7.132 | 7.712 → 7.720 | 1626 → 1626 | | index | def hit | 6.945 → 6.877 | 7.485 → 8.032 | 254 → 254 | | index | def case hit | 6.792 → 6.939 | 7.251 → 7.335 | 278 → 278 | | index | def case miss | 6.798 → 6.951 | 7.322 → 7.667 | 35 → 35 | | index | ranked hit | 7.259 → 7.026 | 7.841 → 8.023 | 295 → 295 | | index | ranked discovery | 7.912 → 7.749 | 9.068 → 9.242 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/release-0.13.0-2026-10-22-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 31 --tokens --output release-0.13.0-2026-10-22-darwin-arm64.json`. ## Release 0.14.0 against 0.13.0: exact-search regression (2026-11-13) Originating PR: [#166](https://github.com/thiagodmont/greeg/pull/166). v0.13.0 (built from the tag, 6a406e6) against the 0.14.0 release commit (73cc38f), which adds the index-backed hidden-file search, `impact --diff` and the definition reads, and the index-freshness and build reliability fixes of #130–#165 (index format 13). All 34 cases keep their stdout and exit status, and every contract passes: rg stdout and status 20/20, JSON exact 4/4, definitions 6/6. --json=rg equals rg --json (28/28), and --json=greeg --budget 0 holds ripgrep's matches (28/28). The run started at 1- and 5-minute loads of 6.4 and 7.4. Medians range from −9.8% to +6.3%. Four p95s crossed the 20% threshold, all with lower medians: case_miss_files (+39.9%), split_miss_unlimited (+20.8%) and type_files (+35.9%) on a scan, and def_case_hit (+66.8%) on the index. A 151-run recheck of those four cases on both backends put every median within +2.7% and every p95 between −5.0% and +5.3%: noise. The result file was written at 2026-11-13T17:32Z. `greeg 0.13.0` → `greeg 0.14.0+73cc38f4c`; 31 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **4**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 9.449 → 8.696 | 11.939 → 16.707 | 3 → 3 | | scan | word miss count | 9.908 → 9.768 | 13.871 → 13.136 | 3 → 3 | | scan | split miss unlimited | 9.789 → 9.617 | 17.041 → 20.588 | 3 → 3 | | scan | fuzzy miss unlimited | 7.589 → 7.577 | 9.577 → 9.435 | 3 → 3 | | scan | absent files | 7.475 → 7.514 | 11.414 → 11.042 | 3 → 3 | | scan | hit files | 6.331 → 6.399 | 7.482 → 7.605 | 55 → 55 | | scan | type files | 7.734 → 7.443 | 9.368 → 12.732 | 55 → 55 | | scan | glob files | 6.267 → 6.399 | 7.911 → 8.527 | 55 → 55 | | scan | hit count | 7.461 → 7.499 | 18.080 → 14.046 | 71 → 71 | | scan | hit unlimited | 6.802 → 6.772 | 9.481 → 8.654 | 295 → 295 | | scan | case miss json | 6.502 → 6.519 | 11.632 → 13.065 | 193 → 193 | | scan | hit json | 7.017 → 6.970 | 7.736 → 8.157 | 1624 → 1624 | | scan | def hit | 7.724 → 7.705 | 9.232 → 9.432 | 214 → 214 | | scan | def case hit | 7.689 → 7.666 | 8.494 → 9.324 | 214 → 214 | | scan | def case miss | 7.132 → 7.171 | 7.641 → 7.625 | 35 → 35 | | scan | ranked hit | 6.810 → 6.748 | 8.859 → 9.921 | 295 → 295 | | scan | ranked discovery | 10.130 → 9.985 | 14.024 → 13.923 | 308 → 308 | | index | case miss files | 7.005 → 6.975 | 93.359 → 36.566 | 3 → 3 | | index | word miss count | 6.228 → 6.362 | 7.687 → 7.757 | 3 → 3 | | index | split miss unlimited | 6.439 → 6.221 | 8.161 → 8.282 | 3 → 3 | | index | fuzzy miss unlimited | 6.220 → 6.134 | 9.222 → 7.488 | 3 → 3 | | index | absent files | 5.923 → 6.296 | 6.990 → 7.513 | 3 → 3 | | index | hit files | 6.285 → 6.085 | 8.370 → 9.076 | 55 → 55 | | index | type files | 6.058 → 5.998 | 7.823 → 7.168 | 55 → 55 | | index | glob files | 5.513 → 5.599 | 9.077 → 7.823 | 55 → 55 | | index | hit count | 5.948 → 5.834 | 9.823 → 11.659 | 71 → 71 | | index | hit unlimited | 5.685 → 5.700 | 6.969 → 7.617 | 295 → 295 | | index | case miss json | 5.587 → 5.652 | 7.559 → 6.889 | 195 → 195 | | index | hit json | 5.798 → 5.818 | 8.111 → 6.807 | 1626 → 1626 | | index | def hit | 5.606 → 5.804 | 7.798 → 8.332 | 254 → 254 | | index | def case hit | 6.941 → 6.260 | 9.782 → 16.320 | 278 → 278 | | index | def case miss | 5.880 → 6.149 | 7.205 → 7.437 | 35 → 35 | | index | ranked hit | 6.026 → 5.974 | 8.069 → 7.704 | 295 → 295 | | index | ranked discovery | 7.074 → 7.144 | 8.631 → 8.666 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/release-0.14.0-2026-11-13-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 31 --tokens --output release-0.14.0-2026-11-13-darwin-arm64.json`. ## Release 0.14.0 against 0.13.0: recheck of the four p95 flags (2026-11-13) Originating PR: [#166](https://github.com/thiagodmont/greeg/pull/166). The same two binaries as the 0.14.0 release run, 151 randomized pairs, on the four cases whose p95 crossed 20% there: case_miss_files, split_miss_unlimited, type_files and def_case_hit, both backends. Every median is within +2.7% and every p95 between −5.0% and +5.3%, and stdout and exit status are unchanged: the release run's p95 flags were noise. The run started at 1- and 5-minute loads of 7.0 and 7.6. The result file was written at 2026-11-13T17:32Z. `greeg 0.13.0` → `greeg 0.14.0+73cc38f4c`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **8/8 → 8/8**. `--json=rg` equal to `rg --json` (timings aside): **6/6** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **6/6** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 6.918 → 6.949 | 12.260 → 12.906 | n/a → n/a | | scan | split miss unlimited | 6.981 → 7.164 | 12.797 → 13.394 | n/a → n/a | | scan | type files | 7.849 → 8.024 | 13.947 → 13.452 | n/a → n/a | | scan | def case hit | 8.887 → 8.880 | 16.205 → 16.638 | n/a → n/a | | index | case miss files | 6.551 → 6.719 | 8.439 → 8.634 | n/a → n/a | | index | split miss unlimited | 6.229 → 6.397 | 8.107 → 8.140 | n/a → n/a | | index | type files | 5.863 → 5.924 | 8.249 → 7.835 | n/a → n/a | | index | def case hit | 6.261 → 6.349 | 8.202 → 8.530 | n/a → n/a | [Raw samples, environment, and binary/corpus digests](../bench/results/release-0.14.0-recheck-2026-11-13-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files split_miss_unlimited type_files def_case_hit --runs 151 --output release-0.14.0-recheck-2026-11-13-darwin-arm64.json`. ## Release 0.14.1 against 0.14.0: exact-search regression (2026-11-13) Originating PR: [#169](https://github.com/thiagodmont/greeg/pull/169). v0.14.0 (built from the tag, d1b100c) against the 0.14.1 release commit (5e998e7), which makes the hook installer upgrade the skill text of 0.2.0–0.6.0 (#168), adds a skill line to doctor, and corrects the documents (#167); no search or index code differs. All 34 cases keep their stdout and exit status (the four JSON cases compared without their elapsed fields, the footer's token estimate and the header's version, which differ by design), and every contract passes: rg stdout and status 20/20, JSON exact 4/4, definitions 6/6. --json=rg equals rg --json (28/28), and --json=greeg --budget 0 holds ripgrep's matches (28/28). The run started at 1- and 5-minute loads of 5.7 and 8.1. Medians range from −8.7% to +10.1%. Three cases crossed a threshold: hit_files on a scan (p95 +22.4%, median −3.3%), and on the index word_miss_count (p95 +63.3%, median −8.7%) and glob_files (median +10.1%, p95 −2.6%). A 151-run recheck of those three cases on both backends put every median within +2.3% and every p95 between −2.8% and +4.4%: noise. The result file was written at 2026-11-13T19:12Z. `greeg 0.14.0` → `greeg 0.14.1+5e998e77e`; 31 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **30/30 → 30/30**. `--json=rg` equal to `rg --json` (timings aside): **28/28** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **28/28** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **3**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | case miss files | 8.428 → 8.076 | 10.206 → 10.058 | 3 → 3 | | scan | word miss count | 7.114 → 6.540 | 10.649 → 11.530 | 3 → 3 | | scan | split miss unlimited | 7.405 → 7.014 | 10.566 → 11.408 | 3 → 3 | | scan | fuzzy miss unlimited | 6.386 → 6.444 | 8.524 → 8.134 | 3 → 3 | | scan | absent files | 6.511 → 6.406 | 9.476 → 11.154 | 3 → 3 | | scan | hit files | 7.000 → 6.769 | 16.740 → 20.488 | 55 → 55 | | scan | type files | 8.178 → 8.518 | 13.387 → 13.002 | 55 → 55 | | scan | glob files | 7.913 → 8.056 | 13.468 → 11.975 | 55 → 55 | | scan | hit count | 8.007 → 8.344 | 10.964 → 12.568 | 71 → 71 | | scan | hit unlimited | 7.742 → 7.725 | 10.433 → 10.491 | 295 → 295 | | scan | case miss json | 7.619 → 7.258 | 12.762 → 9.396 | 193 → 193 | | scan | hit json | 8.655 → 8.423 | 12.816 → 12.360 | 1624 → 1624 | | scan | def hit | 8.603 → 8.755 | 14.099 → 11.078 | 214 → 214 | | scan | def case hit | 12.801 → 12.949 | 26.035 → 19.603 | 214 → 214 | | scan | def case miss | 10.967 → 10.171 | 34.211 → 20.347 | 35 → 35 | | scan | ranked hit | 9.951 → 10.207 | 17.667 → 20.130 | 295 → 295 | | scan | ranked discovery | 11.801 → 11.818 | 17.808 → 17.456 | 308 → 308 | | index | case miss files | 8.471 → 8.241 | 14.082 → 12.907 | 3 → 3 | | index | word miss count | 7.995 → 7.296 | 10.169 → 16.603 | 3 → 3 | | index | split miss unlimited | 6.262 → 6.460 | 11.227 → 9.140 | 3 → 3 | | index | fuzzy miss unlimited | 6.113 → 5.961 | 7.615 → 7.395 | 3 → 3 | | index | absent files | 6.437 → 6.565 | 8.346 → 8.873 | 3 → 3 | | index | hit files | 5.974 → 6.023 | 7.328 → 7.690 | 55 → 55 | | index | type files | 6.594 → 6.578 | 9.474 → 9.260 | 55 → 55 | | index | glob files | 6.155 → 6.776 | 8.314 → 8.095 | 55 → 55 | | index | hit count | 6.314 → 6.516 | 8.235 → 9.486 | 71 → 71 | | index | hit unlimited | 6.242 → 6.779 | 9.095 → 9.578 | 295 → 295 | | index | case miss json | 6.297 → 6.078 | 8.313 → 8.289 | 195 → 195 | | index | hit json | 7.419 → 7.584 | 8.495 → 8.706 | 1626 → 1626 | | index | def hit | 9.891 → 9.973 | 21.828 → 25.780 | 254 → 254 | | index | def case hit | 7.627 → 7.554 | 10.276 → 9.209 | 278 → 278 | | index | def case miss | 7.913 → 7.838 | 11.298 → 9.526 | 35 → 35 | | index | ranked hit | 6.661 → 6.590 | 9.276 → 9.375 | 295 → 295 | | index | ranked discovery | 7.362 → 7.252 | 8.975 → 8.426 | 308 → 308 | [Raw samples, environment, and binary/corpus digests](../bench/results/release-0.14.1-2026-11-13-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases case_miss_files word_miss_count split_miss_unlimited fuzzy_miss_unlimited absent_files hit_files type_files glob_files hit_count hit_unlimited case_miss_json hit_json def_hit def_case_hit def_case_miss ranked_hit ranked_discovery --runs 31 --tokens --output release-0.14.1-2026-11-13-darwin-arm64.json`. ## Release 0.14.1 against 0.14.0: recheck of the three flags (2026-11-13) Originating PR: [#169](https://github.com/thiagodmont/greeg/pull/169). The same two binaries as the 0.14.1 release run, 151 randomized pairs, on the three cases that crossed a threshold there: hit_files, word_miss_count and glob_files, both backends. Every median is between −2.0% and +2.3% and every p95 between −2.8% and +4.4%, and stdout and exit status are unchanged: the release run's flags were noise. The run started at 1- and 5-minute loads of 5.3 and 7.6. The result file was written at 2026-11-13T19:13Z. `greeg 0.14.0` → `greeg 0.14.1+5e998e77e`; 151 randomized pairs per case, 3 warmups on the same 256-file warm synthetic corpus. Contract checks passed: **6/6 → 6/6**. `--json=rg` equal to `rg --json` (timings aside): **6/6** case/backend pairs. `--json=greeg --budget 0` holds ripgrep's matches: **6/6** case/backend pairs. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Backend | Case | Median ms, before → after | p95 ms, before → after | Tokens, before → after | |---|---|---:|---:|---:| | scan | hit files | 6.344 → 6.462 | 8.632 → 8.522 | n/a → n/a | | scan | word miss count | 6.500 → 6.481 | 9.306 → 9.339 | n/a → n/a | | scan | glob files | 6.891 → 7.047 | 10.521 → 10.414 | n/a → n/a | | index | hit files | 5.598 → 5.488 | 6.714 → 6.526 | n/a → n/a | | index | word miss count | 5.721 → 5.761 | 7.867 → 8.213 | n/a → n/a | | index | glob files | 5.557 → 5.546 | 6.913 → 6.872 | n/a → n/a | [Raw samples, environment, and binary/corpus digests](../bench/results/release-0.14.1-recheck-2026-11-13-darwin-arm64.json). Reproduce: `python3 bench/matching.py BASELINE CANDIDATE --cases hit_files word_miss_count glob_files --runs 151 --output release-0.14.1-recheck-2026-11-13-darwin-arm64.json`. JSON contracts compare match paths, lines, offsets, submatches, status, exact rung, and total hit counts with ripgrep. Repeat-output checks remove only elapsed fields, the footer's token estimate and the header's version; byte/token measurements retain them and use the first raw sample, so small JSON size differences reflect timing values. Definition checks compare paths and status on this controlled fixture, not general symbol-resolution accuracy. ## Hook contract: initial measurements Originating PR: [#14](https://github.com/thiagodmont/greeg/pull/14). Measurement time: 2026-09-22T21:49:16Z (estimate from first dataset commit [1e15948](https://github.com/thiagodmont/greeg/commit/1e15948fe4229b921f0f07d2f59ac63448134ef7); execution time was not recorded). `greeg 0.6.0+caf52cda9` → `greeg 0.6.0+caf52cda9.dirty`; 31 randomized pairs per case after 3 warmups. The candidate passed 24/24 hook eligibility/explicit-policy checks. Protocol 1's search checks read empty stdin and do not establish corpus parity. Only its hook-process measurements remain valid; use protocol 2 below for search validation. Hook process median latency changes ranged from -3.2% to +2.7%. Cases above the 10% median / 20% p95 investigation thresholds: **4**. | Host protocol | Case | Median ms, before → after | p95 ms, before → after | Reply tokens, before → after | |---|---|---:|---:|---:| | claude | ranked | 3.037 → 3.071 | 4.456 → 4.904 | 31 → 34 | | claude | files | 3.107 → 3.118 | 4.237 → 4.266 | 33 → 36 | | claude | count miss | 3.012 → 3.092 | 4.009 → 4.421 | 34 → 37 | | claude | quoted | 3.103 → 3.149 | 4.790 → 3.757 | 36 → 39 | | claude | recursive grep | 3.057 → 3.076 | 4.194 → 4.492 | 34 → 0 | | claude | grep file | 3.106 → 3.152 | 4.322 → 4.213 | 33 → 0 | | claude | json | 3.086 → 3.090 | 3.407 → 4.132 | 33 → 0 | | claude | executable path | 3.016 → 2.978 | 3.926 → 3.768 | 31 → 0 | | claude | comment | 3.083 → 3.097 | 4.287 → 4.173 | 33 → 0 | | claude | pipeline | 3.691 → 3.755 | 6.610 → 5.844 | 35 → 0 | | claude | compound | 3.426 → 3.317 | 5.183 → 5.362 | 34 → 0 | | claude | config | 3.120 → 3.146 | 4.380 → 4.208 | 31 → 0 | | codex | ranked | 3.106 → 3.117 | 4.042 → 5.822 | 36 → 39 | | codex | files | 3.258 → 3.344 | 4.504 → 4.702 | 38 → 41 | | codex | count miss | 3.103 → 3.117 | 4.458 → 4.288 | 39 → 42 | | codex | quoted | 3.042 → 3.088 | 3.269 → 3.425 | 41 → 44 | | codex | recursive grep | 3.074 → 3.075 | 3.308 → 4.751 | 39 → 0 | | codex | grep file | 3.186 → 3.160 | 3.934 → 4.734 | 38 → 0 | | codex | json | 3.099 → 3.081 | 3.766 → 3.416 | 38 → 0 | | codex | executable path | 3.160 → 3.119 | 4.862 → 4.758 | 36 → 0 | | codex | comment | 3.132 → 3.115 | 4.147 → 3.397 | 38 → 0 | | codex | pipeline | 3.176 → 3.143 | 6.052 → 3.496 | 40 → 0 | | codex | compound | 3.127 → 3.078 | 3.840 → 3.316 | 39 → 0 | | codex | config | 3.071 → 3.079 | 4.245 → 3.315 | 36 → 0 | [Raw samples, reply sizes, and binary/corpus digests](../bench/results/hook-contract-darwin-arm64.json). Reproduce: `python3 bench/hooks.py BASELINE CANDIDATE --runs 31 --tokens --output hook-contract-darwin-arm64.json`. ## Hook contract: latency recheck Originating PR: [#14](https://github.com/thiagodmont/greeg/pull/14). Measurement time: 2026-09-22T21:49:16Z (estimate from first dataset commit [1e15948](https://github.com/thiagodmont/greeg/commit/1e15948fe4229b921f0f07d2f59ac63448134ef7); execution time was not recorded). `greeg 0.6.0+caf52cda9` → `greeg 0.6.0+caf52cda9.dirty`; 151 randomized pairs per case after 3 warmups. The candidate passed 24/24 hook eligibility/explicit-policy checks. Protocol 1's search checks read empty stdin and do not establish corpus parity. Only its hook-process measurements remain valid; use protocol 2 below for search validation. Hook process median latency changes ranged from -1.4% to +1.5%. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Host protocol | Case | Median ms, before → after | p95 ms, before → after | Reply tokens, before → after | |---|---|---:|---:|---:| | claude | ranked | 2.999 → 3.021 | 3.701 → 3.875 | 31 → 34 | | claude | files | 3.121 → 3.138 | 4.383 → 4.399 | 33 → 36 | | claude | count miss | 3.094 → 3.098 | 4.575 → 4.270 | 34 → 37 | | claude | quoted | 3.097 → 3.144 | 4.932 → 5.133 | 36 → 39 | | claude | recursive grep | 2.912 → 2.911 | 3.849 → 3.740 | 34 → 0 | | claude | grep file | 2.874 → 2.886 | 4.154 → 4.219 | 33 → 0 | | claude | json | 2.822 → 2.800 | 3.778 → 3.854 | 33 → 0 | | claude | executable path | 2.840 → 2.804 | 3.827 → 3.784 | 31 → 0 | | claude | comment | 2.878 → 2.869 | 4.436 → 4.600 | 33 → 0 | | claude | pipeline | 2.851 → 2.841 | 3.497 → 3.607 | 35 → 0 | | claude | compound | 2.870 → 2.883 | 3.840 → 3.798 | 34 → 0 | | claude | config | 2.899 → 2.858 | 3.811 → 3.691 | 31 → 0 | | codex | ranked | 2.835 → 2.836 | 3.529 → 3.510 | 36 → 39 | | codex | files | 2.805 → 2.814 | 3.557 → 3.284 | 38 → 41 | | codex | count miss | 2.824 → 2.862 | 3.252 → 3.394 | 39 → 42 | | codex | quoted | 2.835 → 2.876 | 3.833 → 4.066 | 41 → 44 | | codex | recursive grep | 2.824 → 2.818 | 4.303 → 5.033 | 39 → 0 | | codex | grep file | 2.840 → 2.830 | 4.802 → 4.983 | 38 → 0 | | codex | json | 2.841 → 2.845 | 3.693 → 3.841 | 38 → 0 | | codex | executable path | 2.868 → 2.833 | 4.152 → 4.207 | 36 → 0 | | codex | comment | 2.841 → 2.844 | 4.030 → 4.107 | 38 → 0 | | codex | pipeline | 2.845 → 2.828 | 3.167 → 3.190 | 40 → 0 | | codex | compound | 3.032 → 3.030 | 4.064 → 4.231 | 39 → 0 | | codex | config | 2.904 → 2.914 | 3.760 → 3.928 | 36 → 0 | [Raw samples, reply sizes, and binary/corpus digests](../bench/results/hook-contract-recheck-darwin-arm64.json). Reproduce: `python3 bench/hooks.py BASELINE CANDIDATE --runs 151 --tokens --output hook-contract-recheck-darwin-arm64.json`. ## Hook contract: review fixes Originating PR: [#14](https://github.com/thiagodmont/greeg/pull/14). Measurement time: 2026-09-22T22:13:30Z (estimate from first dataset commit [3b30322](https://github.com/thiagodmont/greeg/commit/3b30322348e8695720b7d04b4491bfb428d6e062); execution time was not recorded). `greeg 0.6.0+caf52cda9.dirty` → `greeg 0.6.0+50b2e4963.dirty`; 151 randomized pairs per case after 3 warmups. The candidate passed 28/28 hook eligibility/explicit-policy checks. Candidate file/count match-row and exit-status checks: 20/20 against ripgrep 15.2.0. Explicit source paths and expected hit/miss assertions exercise both scan and full-index searches, including files over 4 MiB and explicit size limits. The oracle ignores row ordering and does not require identical stderr. Hook process median latency changes ranged from -2.1% to +3.6%. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Host protocol | Case | Median ms, before → after | p95 ms, before → after | Reply tokens, before → after | |---|---|---:|---:|---:| | claude | ranked | 3.925 → 4.040 | 5.431 → 5.212 | 34 → 46 | | claude | files | 3.954 → 3.907 | 5.369 → 6.143 | 36 → 48 | | claude | count miss | 3.690 → 3.791 | 5.393 → 5.593 | 37 → 49 | | claude | quoted | 3.737 → 3.790 | 4.916 → 5.033 | 39 → 51 | | claude | trailing newline | 3.756 → 3.812 | 5.010 → 5.322 | 0 → 46 | | claude | size limit | 3.884 → 3.931 | 5.491 → 5.405 | 46 → 46 | | claude | recursive grep | 3.785 → 3.881 | 5.521 → 5.254 | 0 → 0 | | claude | grep file | 3.805 → 3.840 | 5.940 → 5.750 | 0 → 0 | | claude | json | 3.692 → 3.670 | 5.547 → 5.549 | 0 → 0 | | claude | executable path | 3.523 → 3.594 | 5.056 → 5.111 | 0 → 0 | | claude | comment | 3.696 → 3.658 | 5.343 → 5.220 | 0 → 0 | | claude | pipeline | 3.672 → 3.593 | 5.162 → 5.176 | 0 → 0 | | claude | compound | 3.655 → 3.754 | 4.245 → 4.563 | 0 → 0 | | claude | config | 3.656 → 3.727 | 4.620 → 5.337 | 0 → 0 | | codex | ranked | 3.691 → 3.743 | 4.589 → 5.016 | 39 → 51 | | codex | files | 3.707 → 3.774 | 4.353 → 4.564 | 41 → 53 | | codex | count miss | 4.234 → 4.260 | 6.131 → 5.799 | 42 → 54 | | codex | quoted | 3.802 → 3.762 | 5.612 → 5.418 | 44 → 56 | | codex | trailing newline | 3.649 → 3.724 | 5.072 → 5.839 | 0 → 51 | | codex | size limit | 3.757 → 3.827 | 5.085 → 5.240 | 51 → 51 | | codex | recursive grep | 3.490 → 3.616 | 5.047 → 4.905 | 0 → 0 | | codex | grep file | 3.884 → 3.831 | 5.303 → 5.108 | 0 → 0 | | codex | json | 3.539 → 3.626 | 5.141 → 5.052 | 0 → 0 | | codex | executable path | 3.661 → 3.693 | 5.347 → 5.118 | 0 → 0 | | codex | comment | 3.625 → 3.657 | 4.701 → 4.740 | 0 → 0 | | codex | pipeline | 3.802 → 3.748 | 5.152 → 4.871 | 0 → 0 | | codex | compound | 3.785 → 3.799 | 5.398 → 5.125 | 0 → 0 | | codex | config | 3.896 → 3.902 | 6.120 → 5.460 | 0 → 0 | [Raw samples, reply sizes, and binary/corpus digests](../bench/results/hook-review-darwin-arm64.json). Reproduce: `python3 bench/hooks.py BASELINE CANDIDATE --runs 151 --tokens --output hook-review-darwin-arm64.json`. ## Hook contract: rewrite regression Originating PR: [#17](https://github.com/thiagodmont/greeg/pull/17). Measurement time: 2026-09-23T02:04:37Z (estimate from first dataset commit [3d09de4](https://github.com/thiagodmont/greeg/commit/3d09de45e1f4d6bfdbba35968f2235c1aaf0ccd5); execution time was not recorded). `greeg 0.6.0+3dc7d33d3` → `greeg 0.6.0+3dc7d33d3.dirty`; 151 randomized pairs per case after 3 warmups. The candidate passed 28/28 hook eligibility/explicit-policy checks. Candidate file/count match-row and exit-status checks: 20/20 against ripgrep 15.2.0. Explicit source paths and expected hit/miss assertions exercise both scan and full-index searches, including files over 4 MiB and explicit size limits. The oracle ignores row ordering and does not require identical stderr. Hook process median latency changes ranged from -2.1% to +3.1%. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Host protocol | Case | Median ms, before → after | p95 ms, before → after | Reply tokens, before → after | |---|---|---:|---:|---:| | claude | ranked | 4.235 → 4.144 | 5.881 → 5.722 | 46 → 46 | | claude | files | 3.918 → 3.946 | 5.104 → 4.773 | 48 → 48 | | claude | count miss | 3.949 → 3.980 | 4.807 → 4.886 | 49 → 49 | | claude | quoted | 3.981 → 3.917 | 4.952 → 4.645 | 51 → 51 | | claude | trailing newline | 4.032 → 3.994 | 4.645 → 4.863 | 46 → 46 | | claude | size limit | 3.987 → 4.021 | 4.649 → 4.984 | 46 → 46 | | claude | recursive grep | 3.894 → 4.015 | 4.987 → 4.761 | 0 → 0 | | claude | grep file | 3.897 → 3.995 | 4.332 → 4.718 | 0 → 0 | | claude | json | 3.818 → 3.902 | 5.274 → 5.477 | 0 → 0 | | claude | executable path | 3.788 → 3.803 | 4.458 → 4.726 | 0 → 0 | | claude | comment | 3.716 → 3.720 | 4.729 → 4.670 | 0 → 0 | | claude | pipeline | 3.722 → 3.753 | 4.676 → 4.577 | 0 → 0 | | claude | compound | 3.720 → 3.708 | 5.190 → 4.928 | 0 → 0 | | claude | config | 3.845 → 3.809 | 5.059 → 4.969 | 0 → 0 | | codex | ranked | 3.887 → 3.926 | 4.836 → 4.676 | 51 → 51 | | codex | files | 3.884 → 3.891 | 5.103 → 5.375 | 53 → 53 | | codex | count miss | 3.943 → 3.963 | 5.639 → 5.731 | 54 → 54 | | codex | quoted | 3.841 → 3.879 | 4.481 → 4.611 | 56 → 56 | | codex | trailing newline | 4.222 → 4.221 | 6.343 → 5.969 | 51 → 51 | | codex | size limit | 4.014 → 4.067 | 4.445 → 4.492 | 51 → 51 | | codex | recursive grep | 3.785 → 3.777 | 5.429 → 5.631 | 0 → 0 | | codex | grep file | 3.901 → 3.927 | 5.108 → 4.976 | 0 → 0 | | codex | json | 3.856 → 3.890 | 5.203 → 5.636 | 0 → 0 | | codex | executable path | 3.684 → 3.775 | 5.264 → 5.153 | 0 → 0 | | codex | comment | 3.762 → 3.773 | 5.025 → 4.893 | 0 → 0 | | codex | pipeline | 3.957 → 4.005 | 5.439 → 5.333 | 0 → 0 | | codex | compound | 3.833 → 3.821 | 4.994 → 5.056 | 0 → 0 | | codex | config | 3.705 → 3.725 | 5.031 → 5.165 | 0 → 0 | [Raw samples, reply sizes, and binary/corpus digests](../bench/results/hook-config-rewrites-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hooks.py BASELINE CANDIDATE --runs 151 --tokens --output hook-config-rewrites-2026-09-23-darwin-arm64.json`. ## Hook contract: rewrite regression after atomic configuration Originating PR: [#18](https://github.com/thiagodmont/greeg/pull/18). Measurement time: 2026-09-23T02:59:39Z (estimate from first dataset commit [0086e80](https://github.com/thiagodmont/greeg/commit/0086e80e31315fdfd503ae09428c8c9b0d1113a2); execution time was not recorded). `greeg 0.6.0+5d2056d2f` → `greeg 0.6.0+5d2056d2f.dirty`; 151 randomized pairs per case after 3 warmups. The candidate passed 28/28 hook eligibility/explicit-policy checks. Candidate file/count match-row and exit-status checks: 20/20 against ripgrep 15.2.0. Explicit source paths and expected hit/miss assertions exercise both scan and full-index searches, including files over 4 MiB and explicit size limits. The oracle ignores row ordering and does not require identical stderr. Hook process median latency changes ranged from -1.1% to +3.6%. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Host protocol | Case | Median ms, before → after | p95 ms, before → after | Reply tokens, before → after | |---|---|---:|---:|---:| | claude | ranked | 4.440 → 4.599 | 5.483 → 5.940 | 46 → 46 | | claude | files | 4.266 → 4.290 | 5.932 → 6.066 | 48 → 48 | | claude | count miss | 4.152 → 4.294 | 5.512 → 5.753 | 49 → 49 | | claude | quoted | 4.107 → 4.191 | 4.999 → 5.273 | 51 → 51 | | claude | trailing newline | 4.184 → 4.247 | 5.231 → 6.088 | 46 → 46 | | claude | size limit | 4.087 → 4.138 | 5.390 → 5.242 | 46 → 46 | | claude | recursive grep | 3.961 → 4.022 | 4.549 → 4.577 | 0 → 0 | | claude | grep file | 3.993 → 4.062 | 4.420 → 4.523 | 0 → 0 | | claude | json | 4.077 → 4.108 | 5.362 → 5.418 | 0 → 0 | | claude | executable path | 3.925 → 3.962 | 5.034 → 5.120 | 0 → 0 | | claude | comment | 4.095 → 4.117 | 5.357 → 5.402 | 0 → 0 | | claude | pipeline | 3.939 → 4.040 | 5.260 → 5.468 | 0 → 0 | | claude | compound | 4.042 → 4.079 | 5.351 → 5.576 | 0 → 0 | | claude | config | 3.996 → 4.080 | 4.753 → 4.997 | 0 → 0 | | codex | ranked | 4.026 → 4.104 | 4.813 → 4.937 | 51 → 51 | | codex | files | 4.020 → 4.070 | 4.914 → 5.122 | 53 → 53 | | codex | count miss | 4.124 → 4.163 | 5.140 → 5.482 | 54 → 54 | | codex | quoted | 4.048 → 4.139 | 5.118 → 5.295 | 56 → 56 | | codex | trailing newline | 4.051 → 4.124 | 5.100 → 5.042 | 51 → 51 | | codex | size limit | 4.080 → 4.059 | 5.308 → 5.148 | 51 → 51 | | codex | recursive grep | 4.131 → 4.097 | 5.166 → 5.259 | 0 → 0 | | codex | grep file | 4.075 → 4.166 | 4.606 → 4.684 | 0 → 0 | | codex | json | 4.362 → 4.428 | 5.608 → 5.480 | 0 → 0 | | codex | executable path | 4.222 → 4.242 | 4.712 → 5.397 | 0 → 0 | | codex | comment | 4.230 → 4.295 | 5.405 → 5.356 | 0 → 0 | | codex | pipeline | 4.139 → 4.148 | 4.649 → 4.637 | 0 → 0 | | codex | compound | 3.950 → 4.025 | 4.773 → 4.779 | 0 → 0 | | codex | config | 4.350 → 4.303 | 5.605 → 5.475 | 0 → 0 | [Raw samples, reply sizes, and binary/corpus digests](../bench/results/atomic-config-rewrites-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hooks.py BASELINE CANDIDATE --runs 151 --tokens --output atomic-config-rewrites-2026-09-23-darwin-arm64.json`. ## Generated skills: recurring hook regression (2026-09-23) Originating PR: [#20](https://github.com/thiagodmont/greeg/pull/20). Measurement time: 2026-09-23T15:14:56.373966Z (recorded). Initial 151-pair run: all 28 hook contracts and 40 exact search comparisons pass, with identical reply bytes/tokens. One p95 exceeds the +20% investigation threshold: Codex count_miss changes 6.438 → 7.799 ms (+21.2%) while its median decreases. This run is retained alongside the larger confirmation below. `greeg 0.6.0+9fb9f030e` → `greeg 0.6.0+9fb9f030e.dirty`; 151 randomized pairs per case after 3 warmups. The candidate passed 28/28 hook eligibility/explicit-policy checks. Candidate file/count match-row and exit-status checks: 20/20 against ripgrep 15.2.0. Explicit source paths and expected hit/miss assertions exercise both scan and full-index searches, including files over 4 MiB and explicit size limits. The oracle ignores row ordering and does not require identical stderr. Hook process median latency changes ranged from -2.1% to +2.4%. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Host protocol | Case | Median ms, before → after | p95 ms, before → after | Reply tokens, before → after | |---|---|---:|---:|---:| | claude | ranked | 4.237 → 4.324 | 6.746 → 6.283 | 46 → 46 | | claude | files | 3.999 → 4.092 | 4.830 → 4.625 | 48 → 48 | | claude | count miss | 3.933 → 3.979 | 4.735 → 4.512 | 49 → 49 | | claude | quoted | 3.707 → 3.765 | 5.591 → 5.271 | 51 → 51 | | claude | trailing newline | 3.658 → 3.682 | 4.981 → 5.131 | 46 → 46 | | claude | size limit | 4.279 → 4.269 | 6.831 → 7.959 | 46 → 46 | | claude | recursive grep | 4.110 → 4.100 | 5.584 → 5.839 | 0 → 0 | | claude | grep file | 3.738 → 3.761 | 4.884 → 5.494 | 0 → 0 | | claude | json | 3.635 → 3.687 | 4.566 → 4.959 | 0 → 0 | | claude | executable path | 3.611 → 3.650 | 4.656 → 4.755 | 0 → 0 | | claude | comment | 4.031 → 4.104 | 6.316 → 5.467 | 0 → 0 | | claude | pipeline | 3.689 → 3.719 | 5.348 → 5.294 | 0 → 0 | | claude | compound | 3.710 → 3.713 | 5.603 → 5.478 | 0 → 0 | | claude | config | 3.396 → 3.406 | 4.172 → 4.646 | 0 → 0 | | codex | ranked | 3.565 → 3.616 | 4.194 → 4.331 | 51 → 51 | | codex | files | 3.738 → 3.767 | 4.418 → 4.301 | 53 → 53 | | codex | count miss | 4.556 → 4.480 | 6.438 → 7.799 | 54 → 54 | | codex | quoted | 3.894 → 3.960 | 7.016 → 7.348 | 56 → 56 | | codex | trailing newline | 3.894 → 3.987 | 6.297 → 6.426 | 51 → 51 | | codex | size limit | 3.757 → 3.771 | 4.322 → 4.669 | 51 → 51 | | codex | recursive grep | 3.832 → 3.902 | 4.740 → 4.868 | 0 → 0 | | codex | grep file | 3.522 → 3.571 | 4.543 → 4.398 | 0 → 0 | | codex | json | 3.667 → 3.723 | 4.536 → 5.090 | 0 → 0 | | codex | executable path | 3.858 → 3.908 | 5.458 → 5.091 | 0 → 0 | | codex | comment | 3.859 → 3.841 | 6.081 → 6.612 | 0 → 0 | | codex | pipeline | 4.264 → 4.175 | 6.659 → 6.149 | 0 → 0 | | codex | compound | 3.831 → 3.918 | 5.290 → 5.127 | 0 → 0 | | codex | config | 3.977 → 4.050 | 5.575 → 5.674 | 0 → 0 | [Raw samples, reply sizes, and binary/corpus digests](../bench/results/skill-hook-regression-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hooks.py BASELINE CANDIDATE --runs 151 --tokens --output skill-hook-regression-2026-09-23-darwin-arm64.json`. ## Generated skills: recurring hook confirmation (2026-09-23) Originating PR: [#20](https://github.com/thiagodmont/greeg/pull/20). Measurement time: 2026-09-23T15:16:49.229448Z (recorded). A 301-pair confirmation with the same binary digests has no cases above +10% median / +20% p95. Maximum median/p95 increases are +5.6%/+13.7%; Codex count_miss p95 is 4.686 → 4.780 ms (+2.0%). All 28 hook contracts and 40 search comparisons pass, with unchanged reply bytes/tokens. Both runs are retained; these warm synthetic measurements do not establish cold-cache or agent-task performance. `greeg 0.6.0+9fb9f030e` → `greeg 0.6.0+9fb9f030e.dirty`; 301 randomized pairs per case after 3 warmups. The candidate passed 28/28 hook eligibility/explicit-policy checks. Candidate file/count match-row and exit-status checks: 20/20 against ripgrep 15.2.0. Explicit source paths and expected hit/miss assertions exercise both scan and full-index searches, including files over 4 MiB and explicit size limits. The oracle ignores row ordering and does not require identical stderr. Hook process median latency changes ranged from -0.4% to +5.6%. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Host protocol | Case | Median ms, before → after | p95 ms, before → after | Reply tokens, before → after | |---|---|---:|---:|---:| | claude | ranked | 4.412 → 4.418 | 6.393 → 6.099 | 46 → 46 | | claude | files | 3.674 → 3.668 | 5.490 → 5.236 | 48 → 48 | | claude | count miss | 3.668 → 3.743 | 5.765 → 5.351 | 49 → 49 | | claude | quoted | 3.740 → 3.744 | 5.368 → 5.373 | 51 → 51 | | claude | trailing newline | 4.009 → 4.075 | 6.152 → 6.403 | 46 → 46 | | claude | size limit | 3.446 → 3.516 | 4.884 → 4.860 | 46 → 46 | | claude | recursive grep | 3.397 → 3.451 | 5.172 → 5.302 | 0 → 0 | | claude | grep file | 3.565 → 3.574 | 5.242 → 5.232 | 0 → 0 | | claude | json | 3.722 → 3.719 | 5.121 → 5.328 | 0 → 0 | | claude | executable path | 3.457 → 3.490 | 5.540 → 5.575 | 0 → 0 | | claude | comment | 4.054 → 4.039 | 5.839 → 6.072 | 0 → 0 | | claude | pipeline | 4.078 → 4.100 | 8.948 → 9.959 | 0 → 0 | | claude | compound | 3.591 → 3.612 | 4.110 → 4.270 | 0 → 0 | | claude | config | 3.749 → 3.806 | 5.528 → 5.425 | 0 → 0 | | codex | ranked | 3.550 → 3.603 | 4.998 → 4.873 | 51 → 51 | | codex | files | 3.827 → 3.900 | 6.278 → 6.372 | 53 → 53 | | codex | count miss | 3.696 → 3.719 | 4.686 → 4.780 | 54 → 54 | | codex | quoted | 3.939 → 3.988 | 5.604 → 5.655 | 56 → 56 | | codex | trailing newline | 3.672 → 3.749 | 5.348 → 5.313 | 51 → 51 | | codex | size limit | 3.817 → 3.859 | 5.454 → 5.267 | 51 → 51 | | codex | recursive grep | 4.084 → 4.276 | 6.397 → 6.558 | 0 → 0 | | codex | grep file | 4.806 → 4.888 | 8.809 → 9.129 | 0 → 0 | | codex | json | 4.398 → 4.620 | 9.104 → 8.172 | 0 → 0 | | codex | executable path | 4.295 → 4.402 | 8.159 → 8.196 | 0 → 0 | | codex | comment | 7.742 → 7.840 | 20.949 → 19.004 | 0 → 0 | | codex | pipeline | 7.065 → 7.304 | 10.963 → 11.512 | 0 → 0 | | codex | compound | 8.618 → 9.100 | 20.366 → 23.153 | 0 → 0 | | codex | config | 8.937 → 9.083 | 17.195 → 19.253 | 0 → 0 | [Raw samples, reply sizes, and binary/corpus digests](../bench/results/skill-hook-recheck-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hooks.py BASELINE CANDIDATE --runs 301 --tokens --output skill-hook-recheck-2026-09-23-darwin-arm64.json`. ## Generated skills: recurring hooks after review fixes (2026-09-23) Originating PR: [#20](https://github.com/thiagodmont/greeg/pull/20). Measurement time: 2026-09-23T15:34:23.615583Z (recorded). The 301-pair comparison isolates the review fixes against the original skill implementation. All 28 hook contracts and 40 scan/index search comparisons pass with identical reply bytes/tokens. No case exceeds +10% median / +20% p95; maximum increases are +3.8%/+10.4%. The earlier merged-main comparison remains above. These are warm synthetic measurements. `greeg 0.6.0+9fb9f030e.dirty` → `greeg 0.6.0+b85c1282d.dirty`; 301 randomized pairs per case after 3 warmups. The candidate passed 28/28 hook eligibility/explicit-policy checks. Candidate file/count match-row and exit-status checks: 20/20 against ripgrep 15.2.0. Explicit source paths and expected hit/miss assertions exercise both scan and full-index searches, including files over 4 MiB and explicit size limits. The oracle ignores row ordering and does not require identical stderr. Hook process median latency changes ranged from -1.8% to +3.8%. Cases above the 10% median / 20% p95 investigation thresholds: **0**. | Host protocol | Case | Median ms, before → after | p95 ms, before → after | Reply tokens, before → after | |---|---|---:|---:|---:| | claude | ranked | 4.472 → 4.547 | 6.303 → 6.431 | 46 → 46 | | claude | files | 4.531 → 4.498 | 8.108 → 8.568 | 48 → 48 | | claude | count miss | 4.288 → 4.300 | 5.392 → 5.391 | 49 → 49 | | claude | quoted | 4.263 → 4.291 | 5.011 → 5.139 | 51 → 51 | | claude | trailing newline | 4.295 → 4.273 | 5.733 → 6.003 | 46 → 46 | | claude | size limit | 4.351 → 4.315 | 6.019 → 6.033 | 46 → 46 | | claude | recursive grep | 4.207 → 4.264 | 6.058 → 6.007 | 0 → 0 | | claude | grep file | 4.204 → 4.228 | 5.630 → 5.892 | 0 → 0 | | claude | json | 4.184 → 4.320 | 5.857 → 6.057 | 0 → 0 | | claude | executable path | 4.306 → 4.437 | 6.075 → 6.295 | 0 → 0 | | claude | comment | 4.129 → 4.082 | 5.663 → 5.353 | 0 → 0 | | claude | pipeline | 4.171 → 4.255 | 6.092 → 6.727 | 0 → 0 | | claude | compound | 4.068 → 4.025 | 4.790 → 4.760 | 0 → 0 | | claude | config | 4.057 → 4.085 | 4.945 → 4.863 | 0 → 0 | | codex | ranked | 4.223 → 4.381 | 5.671 → 5.794 | 51 → 51 | | codex | files | 4.333 → 4.363 | 5.902 → 5.619 | 53 → 53 | | codex | count miss | 4.290 → 4.285 | 5.121 → 5.301 | 54 → 54 | | codex | quoted | 4.081 → 4.171 | 4.979 → 5.006 | 56 → 56 | | codex | trailing newline | 4.043 → 4.077 | 5.120 → 5.314 | 51 → 51 | | codex | size limit | 4.177 → 4.214 | 5.845 → 6.339 | 51 → 51 | | codex | recursive grep | 4.191 → 4.175 | 6.937 → 6.897 | 0 → 0 | | codex | grep file | 4.225 → 4.148 | 5.967 → 6.109 | 0 → 0 | | codex | json | 3.997 → 4.081 | 4.670 → 4.831 | 0 → 0 | | codex | executable path | 4.331 → 4.310 | 6.744 → 6.894 | 0 → 0 | | codex | comment | 4.238 → 4.248 | 5.708 → 5.882 | 0 → 0 | | codex | pipeline | 4.409 → 4.572 | 6.984 → 6.641 | 0 → 0 | | codex | compound | 4.223 → 4.218 | 5.391 → 5.568 | 0 → 0 | | codex | config | 4.457 → 4.454 | 5.469 → 5.483 | 0 → 0 | [Raw samples, reply sizes, and binary/corpus digests](../bench/results/skill-hook-final-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hooks.py BASELINE CANDIDATE --runs 301 --tokens --output skill-hook-final-2026-09-23-darwin-arm64.json`. ## Hook decline reasons: recurring hook regression (2026-09-23) Originating PR: [#22](https://github.com/thiagodmont/greeg/pull/22). Measurement time: 2026-09-23T18:04:58.145742Z (recorded). Initial 51-pair run of merged main against typed decline reasons and `greeg hook explain`. All 28 hook contracts and 40 scan/index search comparisons pass, with identical rewritten commands and reply bytes/tokens. No median exceeds +10% (maximum +5.1%). One p95 exceeds +20%: Codex grep_file 5.23 → 6.95 ms (+33.0%) on a host with load average ≈5.5. The recheck below tests whether it repeats. `greeg 0.6.0+69b112321` → `greeg 0.6.0+69b112321.dirty`; 51 randomized pairs per case after 3 warmups. The candidate passed 28/28 hook eligibility/explicit-policy checks. Candidate file/count match-row and exit-status checks: 20/20 against ripgrep 15.2.0. Explicit source paths and expected hit/miss assertions exercise both scan and full-index searches, including files over 4 MiB and explicit size limits. The oracle ignores row ordering and does not require identical stderr. Hook process median latency changes ranged from -5.1% to +5.1%. Cases above the 10% median / 20% p95 investigation thresholds: **1**. | Host protocol | Case | Median ms, before → after | p95 ms, before → after | Reply tokens, before → after | |---|---|---:|---:|---:| | claude | ranked | 6.232 → 6.005 | 28.063 → 16.531 | 46 → 46 | | claude | files | 4.909 → 4.976 | 6.777 → 6.872 | 48 → 48 | | claude | count miss | 4.530 → 4.705 | 6.224 → 5.707 | 49 → 49 | | claude | quoted | 3.983 → 4.018 | 7.033 → 5.791 | 51 → 51 | | claude | trailing newline | 4.131 → 4.131 | 6.634 → 5.660 | 46 → 46 | | claude | size limit | 4.464 → 4.637 | 9.875 → 8.367 | 46 → 46 | | claude | recursive grep | 4.251 → 4.368 | 6.747 → 6.920 | 0 → 0 | | claude | grep file | 4.227 → 4.206 | 6.007 → 6.743 | 0 → 0 | | claude | json | 4.188 → 4.219 | 6.320 → 5.996 | 0 → 0 | | claude | executable path | 3.928 → 3.979 | 5.498 → 5.385 | 0 → 0 | | claude | comment | 4.149 → 4.298 | 5.475 → 5.781 | 0 → 0 | | claude | pipeline | 4.264 → 4.257 | 5.592 → 5.931 | 0 → 0 | | claude | compound | 4.205 → 4.098 | 5.347 → 5.093 | 0 → 0 | | claude | config | 3.688 → 3.662 | 4.243 → 4.420 | 0 → 0 | | codex | ranked | 3.228 → 3.202 | 3.874 → 4.069 | 51 → 51 | | codex | files | 3.630 → 3.604 | 4.201 → 4.277 | 53 → 53 | | codex | count miss | 3.699 → 3.509 | 4.809 → 4.670 | 54 → 54 | | codex | quoted | 3.228 → 3.216 | 4.361 → 4.039 | 56 → 56 | | codex | trailing newline | 3.611 → 3.571 | 5.458 → 4.959 | 51 → 51 | | codex | size limit | 2.954 → 3.008 | 3.651 → 3.619 | 51 → 51 | | codex | recursive grep | 3.712 → 3.598 | 4.693 → 4.796 | 0 → 0 | | codex | grep file | 3.699 → 3.653 | 5.228 → 6.952 | 0 → 0 | | codex | json | 3.284 → 3.450 | 4.373 → 4.173 | 0 → 0 | | codex | executable path | 3.176 → 3.116 | 4.189 → 4.360 | 0 → 0 | | codex | comment | 3.216 → 3.201 | 4.008 → 4.080 | 0 → 0 | | codex | pipeline | 3.580 → 3.635 | 4.426 → 4.146 | 0 → 0 | | codex | compound | 3.435 → 3.489 | 4.024 → 4.189 | 0 → 0 | | codex | config | 3.167 → 3.233 | 3.656 → 3.771 | 0 → 0 | [Raw samples, reply sizes, and binary/corpus digests](../bench/results/hook-decline-reasons-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hooks.py BASELINE CANDIDATE --runs 51 --tokens --output hook-decline-reasons-2026-09-23-darwin-arm64.json`. ## Hook decline reasons: recheck (2026-09-23) Originating PR: [#22](https://github.com/thiagodmont/greeg/pull/22). Measurement time: 2026-09-23T18:05:44.259551Z (recorded). Same binary digests, same 51-pair protocol. 28/28 hook contracts and 40/40 search comparisons pass with identical replies. The Codex grep_file tail flag does not repeat (+11.6% p95, +0.9% median). Two other cases flag instead and did not flag in the first run: Claude count_miss p95 +45.3% and Claude comment median +10.8% (3.077 → 3.410 ms, 0.33 ms). The median change across cases is +1.0%. Non-repeating flags on a loaded host (load ≈5.2) are treated as noise. The decline path now allocates a reason string, and accepted rewrites are byte-identical. `greeg 0.6.0+69b112321` → `greeg 0.6.0+69b112321.dirty`; 51 randomized pairs per case after 3 warmups. The candidate passed 28/28 hook eligibility/explicit-policy checks. Candidate file/count match-row and exit-status checks: 20/20 against ripgrep 15.2.0. Explicit source paths and expected hit/miss assertions exercise both scan and full-index searches, including files over 4 MiB and explicit size limits. The oracle ignores row ordering and does not require identical stderr. Hook process median latency changes ranged from -2.9% to +10.8%. Cases above the 10% median / 20% p95 investigation thresholds: **2**. | Host protocol | Case | Median ms, before → after | p95 ms, before → after | Reply tokens, before → after | |---|---|---:|---:|---:| | claude | ranked | 4.197 → 4.286 | 11.155 → 9.604 | 46 → 46 | | claude | files | 4.564 → 4.433 | 6.292 → 5.585 | 48 → 48 | | claude | count miss | 3.642 → 3.940 | 8.293 → 12.049 | 49 → 49 | | claude | quoted | 4.441 → 4.333 | 5.563 → 5.836 | 51 → 51 | | claude | trailing newline | 4.081 → 4.127 | 5.397 → 5.762 | 46 → 46 | | claude | size limit | 4.129 → 4.139 | 5.401 → 5.462 | 46 → 46 | | claude | recursive grep | 3.480 → 3.456 | 4.630 → 4.324 | 0 → 0 | | claude | grep file | 3.139 → 3.273 | 3.788 → 4.323 | 0 → 0 | | claude | json | 3.211 → 3.138 | 5.278 → 4.774 | 0 → 0 | | claude | executable path | 3.098 → 3.083 | 3.942 → 3.958 | 0 → 0 | | claude | comment | 3.077 → 3.410 | 4.579 → 4.360 | 0 → 0 | | claude | pipeline | 2.988 → 3.060 | 4.872 → 5.265 | 0 → 0 | | claude | compound | 2.808 → 2.842 | 3.265 → 3.529 | 0 → 0 | | claude | config | 2.973 → 3.061 | 3.944 → 3.617 | 0 → 0 | | codex | ranked | 2.892 → 2.925 | 4.495 → 4.119 | 51 → 51 | | codex | files | 2.957 → 2.999 | 3.717 → 3.657 | 53 → 53 | | codex | count miss | 2.907 → 2.858 | 3.446 → 3.638 | 54 → 54 | | codex | quoted | 3.013 → 3.007 | 4.150 → 3.837 | 56 → 56 | | codex | trailing newline | 3.065 → 3.152 | 3.817 → 3.933 | 51 → 51 | | codex | size limit | 2.929 → 2.925 | 3.819 → 3.670 | 51 → 51 | | codex | recursive grep | 3.051 → 2.978 | 3.687 → 3.978 | 0 → 0 | | codex | grep file | 3.136 → 3.164 | 3.901 → 4.352 | 0 → 0 | | codex | json | 2.773 → 2.781 | 3.381 → 3.430 | 0 → 0 | | codex | executable path | 3.068 → 3.119 | 4.555 → 4.733 | 0 → 0 | | codex | comment | 3.047 → 3.056 | 4.688 → 4.344 | 0 → 0 | | codex | pipeline | 3.178 → 3.163 | 4.787 → 4.680 | 0 → 0 | | codex | compound | 3.158 → 3.215 | 4.324 → 3.943 | 0 → 0 | | codex | config | 2.950 → 3.004 | 4.309 → 4.532 | 0 → 0 | [Raw samples, reply sizes, and binary/corpus digests](../bench/results/hook-decline-reasons-recheck-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hooks.py BASELINE CANDIDATE --runs 51 --tokens --output hook-decline-reasons-recheck-2026-09-23-darwin-arm64.json`. The initial run triggered a longer paired recheck; both are retained. Reply tokens count only hook JSON with the recorded tokenizer, not search results or total agent usage. Explicit matching and file-size flags add reply cost; declined commands emit no reply and continue with the original tool. Tests use synthetic fixtures and the recorded response shapes, not live host approvals. No new cold-cache, RSS, native-search performance, or whole-task token claim is made. ## Disposable edit and soak corpora (2026-09-23) Source snapshot: 4,369 files, 263,914,347 bytes; source content/mode/mtime digest unchanged after both workloads: **True**. Test binary: `greeg 0.6.0+50b2e4963.dirty`. - EDITS PASS (exit 0). - SOAK PASS: 447 iterations in 0.5 min, 0 mismatches, 0 crashes, worst query 96 ms (exit 0). Warm setup (11 runs) copied the snapshot and working tree in **1563.0 ms median / 1713.4 ms p95**. This excludes index creation and cleanup; allow two corpus copies plus a private index. Copying and initialization precede the soak timer, while restores count toward it. These are harness-safety checks, not paired native-search performance or token measurements. Isolated configuration, fresh indexes and snapshot restores change the workload conditions; do not compare the query timings with historical in-place runs. A fixed seed does not make process scheduling or duration-limited iteration counts deterministic. [Commands, raw output, setup samples and binary/corpus/harness digests](../bench/results/disposable-corpora-review-2026-09-23-darwin-arm64.json). [Initial measurements](../bench/results/disposable-corpora-2026-09-23-darwin-arm64.json) are preserved verbatim. Their edit harness abbreviated freshness diagnostics to 53 characters. The recheck preserves complete emitted diagnostic lines (including the CLI’s explicit ellipsis for long plans) and exercises collision-safe fixtures. Setup samples are retained from the initial run; the corpus-copy implementation is unchanged. ## Hook configuration ownership (2026-09-23) Originating PR: [#17](https://github.com/thiagodmont/greeg/pull/17). Measurement time: 2026-09-23T02:04:37Z (estimate from first dataset commit [3d09de4](https://github.com/thiagodmont/greeg/commit/3d09de45e1f4d6bfdbba35968f2235c1aaf0ccd5); execution time was not recorded). `greeg 0.6.0+3dc7d33d3` → `greeg 0.6.0+3dc7d33d3.dirty`; 51 randomized paired runs per case after 3 warmups. Each invocation uses a reset disposable home and an isolated configuration/cache. Timing includes process startup and installation/removal, excluding fixture reset and validation. **Configuration contracts:** 4/14 → 14/14. Checks cover mixed handlers, prefix lookalikes, non-command handlers, wrong matchers, invalid UTF-8, missing-file uninstall and initial installation. Baseline failures are not equivalent successful work; their timing differences are not speedup claims. | Host | Case | Median ms, before → after | p95 ms, before → after | |---|---|---:|---:| | claude | mixed uninstall | 3.773 → 3.722 | 4.417 → 4.573 | | claude | prefix uninstall | 3.679 → 3.589 | 4.416 → 3.983 | | claude | prompt uninstall | 3.796 → 3.751 | 5.210 → 4.431 | | claude | wrong matcher install | 3.880 → 4.002 | 4.708 → 4.277 | | claude | invalid utf8 | 3.757 → 3.601 | 4.207 → 3.962 | | claude | absent uninstall | 3.637 → 3.522 | 4.189 → 3.872 | | claude | empty install | 3.853 → 3.829 | 4.287 → 4.121 | | codex | mixed uninstall | 3.459 → 3.531 | 4.284 → 4.287 | | codex | prefix uninstall | 3.615 → 3.512 | 4.964 → 5.058 | | codex | prompt uninstall | 3.462 → 3.510 | 4.431 → 5.046 | | codex | wrong matcher install | 3.790 → 3.873 | 4.565 → 4.899 | | codex | invalid utf8 | 3.819 → 3.872 | 13.709 → 14.051 | | codex | absent uninstall | 3.955 → 4.031 | 11.664 → 10.540 | | codex | empty install | 4.193 → 4.189 | 5.031 → 5.215 | [Raw samples, output bytes/statuses, fixture/harness hashes and binary digests](../bench/results/hook-config-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hook_config.py BASELINE CANDIDATE --runs 51 --output hook-config-2026-09-23-darwin-arm64.json`. These checks validate configuration editing, not live host approval behavior. No token, native-search latency, atomic-write or concurrent-edit safety claim is made. Positional hook IDs may shift on removal; stored trust records are retained unchanged. ## Hook configuration ownership: review fixes (2026-09-23) Originating PR: [#17](https://github.com/thiagodmont/greeg/pull/17). Measurement time: 2026-09-23T02:31:47Z (estimate from first dataset commit [9c1fea2](https://github.com/thiagodmont/greeg/commit/9c1fea2e0b57e1d90ba83c04d4739f26662b0904); execution time was not recorded). `greeg 0.6.0+3dc7d33d3.dirty` → `greeg 0.6.0+3d09de45e.dirty`; 51 randomized paired runs per case after 3 warmups. Each invocation uses a reset disposable home and an isolated configuration/cache. Timing includes process startup and installation/removal, excluding fixture reset and validation. **Configuration contracts:** 18/20 → 20/20. Checks cover mixed handlers, prefix lookalikes, non-command handlers, wrong matchers, invalid UTF-8, missing-file uninstall and initial installation. Protocol 2 also checks byte-identical installed no-ops, matcher-less cleanup, custom matcher preservation, and retained TOML comments/trust data. Baseline failures are not equivalent successful work; their timing differences are not speedup claims. | Host | Case | Median ms, before → after | p95 ms, before → after | |---|---|---:|---:| | claude | mixed uninstall | 3.972 → 3.985 | 7.016 → 6.400 | | claude | prefix uninstall | 3.807 → 3.840 | 5.168 → 5.119 | | claude | prompt uninstall | 3.948 → 4.264 | 5.227 → 5.837 | | claude | wrong matcher install | 4.091 → 4.254 | 5.304 → 5.599 | | claude | installed noop | 4.122 → 4.135 | 5.203 → 5.031 | | claude | matcherless uninstall | 3.876 → 3.972 | 4.402 → 4.271 | | claude | custom matcher uninstall | 3.934 → 3.921 | 4.345 → 4.293 | | claude | invalid utf8 | 3.782 → 3.759 | 4.124 → 4.038 | | claude | absent uninstall | 3.793 → 3.862 | 6.516 → 5.226 | | claude | empty install | 4.555 → 4.884 | 6.580 → 6.392 | | codex | mixed uninstall | 4.280 → 4.237 | 4.885 → 4.624 | | codex | prefix uninstall | 4.036 → 3.953 | 4.906 → 4.897 | | codex | prompt uninstall | 3.908 → 3.811 | 5.070 → 4.337 | | codex | wrong matcher install | 4.083 → 4.078 | 4.778 → 4.780 | | codex | installed noop | 3.869 → 3.956 | 4.227 → 4.280 | | codex | matcherless uninstall | 3.883 → 3.733 | 4.432 → 4.357 | | codex | custom matcher uninstall | 3.815 → 3.911 | 4.875 → 4.852 | | codex | invalid utf8 | 3.611 → 3.754 | 4.060 → 4.191 | | codex | absent uninstall | 3.601 → 3.523 | 4.179 → 4.150 | | codex | empty install | 4.051 → 4.171 | 4.518 → 4.676 | [Raw samples, output bytes/statuses, fixture/harness hashes and binary digests](../bench/results/hook-config-review-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hook_config.py BASELINE CANDIDATE --runs 51 --output hook-config-review-2026-09-23-darwin-arm64.json`. These checks validate configuration editing, not live host approval behavior. No token, native-search latency, atomic-write or concurrent-edit safety claim is made. Positional hook IDs may shift on removal; stored trust records are retained unchanged. Invocation failures: 0. Timeouts/launch failures retain their elapsed time and partial output sizes, fail the contract, and suppress the affected timing ratios. Version probes remain preflight checks. ## Atomic configuration: installer regression (2026-09-23) Originating PR: [#18](https://github.com/thiagodmont/greeg/pull/18). Measurement time: 2026-09-23T02:59:39Z (estimate from first dataset commit [0086e80](https://github.com/thiagodmont/greeg/commit/0086e80e31315fdfd503ae09428c8c9b0d1113a2); execution time was not recorded). `greeg 0.6.0+5d2056d2f` → `greeg 0.6.0+5d2056d2f.dirty`; 51 randomized paired runs per case after 3 warmups. Each invocation uses a reset disposable home and an isolated configuration/cache. Timing includes process startup and installation/removal, excluding fixture reset and validation. **Configuration contracts:** 20/20 → 20/20. Checks cover mixed handlers, prefix lookalikes, non-command handlers, wrong matchers, invalid UTF-8, missing-file uninstall and initial installation. Protocol 2 also checks byte-identical installed no-ops, matcher-less cleanup, custom matcher preservation, and retained TOML comments/trust data. Baseline failures are not equivalent successful work; their timing differences are not speedup claims. | Host | Case | Median ms, before → after | p95 ms, before → after | |---|---|---:|---:| | claude | mixed uninstall | 4.595 → 12.778 | 6.236 → 14.304 | | claude | prefix uninstall | 4.033 → 4.039 | 4.698 → 4.464 | | claude | prompt uninstall | 3.968 → 3.997 | 4.529 → 4.468 | | claude | wrong matcher install | 4.536 → 12.991 | 4.878 → 14.193 | | claude | installed noop | 4.053 → 4.074 | 4.442 → 4.493 | | claude | matcherless uninstall | 4.340 → 12.882 | 4.803 → 14.372 | | claude | custom matcher uninstall | 4.495 → 12.605 | 5.164 → 13.635 | | claude | invalid utf8 | 3.914 → 3.920 | 4.330 → 4.328 | | claude | absent uninstall | 3.711 → 3.879 | 4.201 → 4.383 | | claude | empty install | 4.566 → 12.519 | 5.354 → 13.790 | | codex | mixed uninstall | 4.546 → 13.026 | 8.840 → 16.960 | | codex | prefix uninstall | 3.864 → 3.968 | 4.882 → 5.186 | | codex | prompt uninstall | 3.768 → 3.839 | 5.149 → 4.605 | | codex | wrong matcher install | 4.463 → 13.139 | 5.360 → 14.818 | | codex | installed noop | 4.410 → 4.353 | 7.199 → 6.109 | | codex | matcherless uninstall | 4.298 → 12.700 | 6.146 → 16.081 | | codex | custom matcher uninstall | 4.369 → 12.364 | 4.795 → 13.273 | | codex | invalid utf8 | 3.877 → 3.881 | 4.128 → 4.456 | | codex | absent uninstall | 3.808 → 3.724 | 4.133 → 4.152 | | codex | empty install | 4.491 → 12.769 | 6.018 → 14.308 | [Raw samples, output bytes/statuses, fixture/harness hashes and binary digests](../bench/results/atomic-config-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hook_config.py BASELINE CANDIDATE --runs 51 --output atomic-config-2026-09-23-darwin-arm64.json`. These checks validate configuration editing, not live host approval behavior. No token, native-search latency, atomic-write or concurrent-edit safety claim is made. Positional hook IDs may shift on removal; stored trust records are retained unchanged. Invocation failures: 0. Timeouts/launch failures retain their elapsed time and partial output sizes, fail the contract, and suppress the affected timing ratios. Version probes remain preflight checks. **Latency investigation:** 10/20 cases exceed the +10% median or +20% p95 thresholds. Changed configurations add 7.95–8.68 ms at the median; no-op/error cases change by -0.08–+0.17 ms. The changed path now locks, rereads, preserves metadata, syncs a temporary file and syncs the directory; the baseline writes in place without these guarantees. This is an accepted installation/removal cost for reliability, not a speed improvement. These operations do not run during hook rewrites or searches; the separate rewrite regression measures the recurring hook path. Atomicity, conflicts and interruption are covered by deterministic Rust tests, not inferred from these timing fixtures. ## Atomic configuration: review fixes (2026-09-23) Originating PR: [#18](https://github.com/thiagodmont/greeg/pull/18). Measurement time: 2026-09-23T11:35:57Z (estimate from first dataset commit [7789b86](https://github.com/thiagodmont/greeg/commit/7789b8665e25c47ec5e7d3da861961d72bd66772); execution time was not recorded). `greeg 0.6.0+5d2056d2f.dirty` → `greeg 0.6.0+0086e80e3.dirty`; 51 randomized paired runs per case after 3 warmups. Each invocation uses a reset disposable home and an isolated configuration/cache. Timing includes process startup and installation/removal, excluding fixture reset and validation. **Configuration contracts:** 20/20 → 20/20. Checks cover mixed handlers, prefix lookalikes, non-command handlers, wrong matchers, invalid UTF-8, missing-file uninstall and initial installation. Protocol 2 also checks byte-identical installed no-ops, matcher-less cleanup, custom matcher preservation, and retained TOML comments/trust data. Baseline failures are not equivalent successful work; their timing differences are not speedup claims. | Host | Case | Median ms, before → after | p95 ms, before → after | |---|---|---:|---:| | claude | mixed uninstall | 12.783 → 12.319 | 14.272 → 15.184 | | claude | prefix uninstall | 4.890 → 4.876 | 7.637 → 8.295 | | claude | prompt uninstall | 3.700 → 3.761 | 6.483 → 5.408 | | claude | wrong matcher install | 12.388 → 12.266 | 14.074 → 14.099 | | claude | installed noop | 3.859 → 3.886 | 4.194 → 4.430 | | claude | matcherless uninstall | 12.460 → 12.570 | 14.019 → 14.358 | | claude | custom matcher uninstall | 12.526 → 12.679 | 14.671 → 14.462 | | claude | invalid utf8 | 3.785 → 3.837 | 5.274 → 5.484 | | claude | absent uninstall | 3.613 → 3.654 | 5.153 → 5.276 | | claude | empty install | 12.133 → 12.126 | 14.376 → 14.095 | | codex | mixed uninstall | 13.118 → 13.001 | 17.207 → 19.752 | | codex | prefix uninstall | 3.990 → 3.960 | 4.600 → 4.802 | | codex | prompt uninstall | 3.894 → 3.936 | 4.540 → 4.723 | | codex | wrong matcher install | 12.649 → 12.748 | 14.815 → 14.531 | | codex | installed noop | 4.121 → 4.059 | 5.306 → 7.442 | | codex | matcherless uninstall | 12.420 → 12.980 | 14.242 → 14.320 | | codex | custom matcher uninstall | 12.966 → 13.069 | 14.651 → 14.236 | | codex | invalid utf8 | 3.830 → 3.885 | 4.634 → 4.412 | | codex | absent uninstall | 3.676 → 3.724 | 4.803 → 4.883 | | codex | empty install | 12.265 → 12.062 | 13.420 → 13.784 | [Raw samples, output bytes/statuses, fixture/harness hashes and binary digests](../bench/results/atomic-config-review-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hook_config.py BASELINE CANDIDATE --runs 51 --output atomic-config-review-2026-09-23-darwin-arm64.json`. These checks validate configuration editing, not live host approval behavior. No token, native-search latency, atomic-write or concurrent-edit safety claim is made. Positional hook IDs may shift on removal; stored trust records are retained unchanged. Invocation failures: 0. Timeouts/launch failures retain their elapsed time and partial output sizes, fail the contract, and suppress the affected timing ratios. Version probes remain preflight checks. Cases above the +10% median / +20% p95 investigation thresholds: **1/20**. Maximum median/p95 increases: 4.5%/40.2%. ## Atomic configuration: review latency recheck (2026-09-23) Originating PR: [#18](https://github.com/thiagodmont/greeg/pull/18). Measurement time: 2026-09-23T11:35:57Z (estimate from first dataset commit [7789b86](https://github.com/thiagodmont/greeg/commit/7789b8665e25c47ec5e7d3da861961d72bd66772); execution time was not recorded). `greeg 0.6.0+5d2056d2f.dirty` → `greeg 0.6.0+0086e80e3.dirty`; 151 randomized paired runs per case after 3 warmups. Each invocation uses a reset disposable home and an isolated configuration/cache. Timing includes process startup and installation/removal, excluding fixture reset and validation. **Configuration contracts:** 20/20 → 20/20. Checks cover mixed handlers, prefix lookalikes, non-command handlers, wrong matchers, invalid UTF-8, missing-file uninstall and initial installation. Protocol 2 also checks byte-identical installed no-ops, matcher-less cleanup, custom matcher preservation, and retained TOML comments/trust data. Baseline failures are not equivalent successful work; their timing differences are not speedup claims. | Host | Case | Median ms, before → after | p95 ms, before → after | |---|---|---:|---:| | claude | mixed uninstall | 12.740 → 13.046 | 15.056 → 14.352 | | claude | prefix uninstall | 4.177 → 4.152 | 5.513 → 5.480 | | claude | prompt uninstall | 4.346 → 4.368 | 6.106 → 7.030 | | claude | wrong matcher install | 13.072 → 12.987 | 14.388 → 14.390 | | claude | installed noop | 3.881 → 3.929 | 4.496 → 4.870 | | claude | matcherless uninstall | 12.672 → 12.605 | 14.924 → 14.742 | | claude | custom matcher uninstall | 13.129 → 13.106 | 15.183 → 16.347 | | claude | invalid utf8 | 4.004 → 4.028 | 5.538 → 5.491 | | claude | absent uninstall | 3.571 → 3.609 | 4.073 → 4.152 | | claude | empty install | 12.504 → 12.903 | 13.954 → 14.622 | | codex | mixed uninstall | 12.815 → 12.898 | 15.164 → 15.112 | | codex | prefix uninstall | 3.938 → 4.052 | 4.476 → 4.631 | | codex | prompt uninstall | 3.868 → 3.883 | 4.519 → 4.587 | | codex | wrong matcher install | 12.858 → 12.702 | 14.200 → 14.297 | | codex | installed noop | 4.111 → 4.183 | 5.771 → 4.742 | | codex | matcherless uninstall | 13.050 → 13.075 | 14.948 → 14.471 | | codex | custom matcher uninstall | 13.088 → 13.107 | 14.583 → 14.994 | | codex | invalid utf8 | 3.889 → 3.878 | 4.511 → 4.690 | | codex | absent uninstall | 3.705 → 3.769 | 4.652 → 4.246 | | codex | empty install | 13.251 → 13.301 | 15.389 → 14.690 | [Raw samples, output bytes/statuses, fixture/harness hashes and binary digests](../bench/results/atomic-config-review-confirmation-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hook_config.py BASELINE CANDIDATE --runs 151 --output atomic-config-review-confirmation-2026-09-23-darwin-arm64.json`. These checks validate configuration editing, not live host approval behavior. No token, native-search latency, atomic-write or concurrent-edit safety claim is made. Positional hook IDs may shift on removal; stored trust records are retained unchanged. Invocation failures: 0. Timeouts/launch failures retain their elapsed time and partial output sizes, fail the contract, and suppress the affected timing ratios. Version probes remain preflight checks. Cases above the +10% median / +20% p95 investigation thresholds: **0/20**. Maximum median/p95 increases: 3.2%/15.1%. The review measurements compare the original atomic-write implementation with the no-op snapshot and umask fixes. Both the initial run and latency recheck are retained above. Both runs use the same binary digests. Restrictive-umask and stale-no-op guarantees are covered by Rust regression tests; these timing fixtures use an ordinary umask. Recurring hook and token measurements above predate these review fixes. ## Generated skill ownership (2026-09-23) Originating PR: [#20](https://github.com/thiagodmont/greeg/pull/20). Measurement time: 2026-09-23T15:13:27.993943Z (recorded). Atomic skill creation and legacy adoption add 6.9–8.2 ms at the median; managed/legacy removal adds 2.1–3.8 ms for snapshot checks, locking and directory sync. These exceed investigation thresholds and are an installation/removal reliability cost. Already-current skills remain near 4 ms without rewriting. The complete generated skill text increases from 789 to 840 o200k_base tokens for Claude and 764 to 818 for Codex (ownership marker only; not an agent-task savings measurement). Rust tests cover unsafe paths, conflicts and failed publication. `greeg 0.6.0+9fb9f030e` → `greeg 0.6.0+9fb9f030e.dirty`; 51 randomized paired runs per case after 3 warmups. Each invocation uses a reset disposable home and an isolated configuration/cache. Timing includes process startup and installation/removal, excluding fixture reset and validation. **Skill and configuration contracts:** 8/22 → 22/22. Checks cover skill creation, managed no-ops, legacy adoption, edited/custom preservation, managed/legacy removal, absent skills and dry runs, alongside configuration outcomes. Preservation and no-op cases require identical content, inode, mode, mtime and ctime. Baseline failures are not equivalent successful work; their timing differences are not speedup claims. | Host | Case | Median ms, before → after | p95 ms, before → after | |---|---|---:|---:| | claude | fresh install | 4.342 → 11.992 | 4.894 → 13.377 | | claude | managed noop | 4.082 → 3.962 | 5.224 → 5.162 | | claude | legacy upgrade | 4.165 → 12.414 | 5.173 → 13.928 | | claude | custom install | 4.110 → 3.993 | 5.340 → 5.057 | | claude | edited install | 3.762 → 3.845 | 4.946 → 4.879 | | claude | managed uninstall | 12.431 → 15.794 | 13.368 → 18.315 | | claude | legacy uninstall | 12.074 → 15.854 | 14.095 → 17.896 | | claude | custom uninstall | 12.049 → 12.090 | 13.715 → 13.883 | | claude | edited uninstall | 11.501 → 11.494 | 14.819 → 15.193 | | claude | absent skill uninstall | 11.938 → 12.110 | 13.062 → 12.852 | | claude | managed dry uninstall | 3.708 → 3.728 | 4.493 → 4.832 | | codex | fresh install | 4.286 → 11.160 | 5.009 → 12.874 | | codex | managed noop | 3.806 → 3.788 | 4.725 → 4.862 | | codex | legacy upgrade | 4.180 → 11.542 | 5.247 → 12.796 | | codex | custom install | 4.016 → 4.031 | 7.325 → 5.263 | | codex | edited install | 4.077 → 3.824 | 5.569 → 4.833 | | codex | managed uninstall | 12.965 → 15.055 | 14.422 → 17.725 | | codex | legacy uninstall | 12.832 → 15.586 | 13.849 → 17.723 | | codex | custom uninstall | 12.759 → 12.772 | 13.157 → 13.056 | | codex | edited uninstall | 12.804 → 12.787 | 13.128 → 13.082 | | codex | absent skill uninstall | 11.306 → 11.326 | 13.033 → 12.528 | | codex | managed dry uninstall | 3.939 → 4.013 | 4.612 → 4.533 | [Raw samples, output bytes/statuses, fixture/harness hashes and binary digests](../bench/results/skill-ownership-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hook_config.py BASELINE CANDIDATE --suite skills --runs 51 --output skill-ownership-2026-09-23-darwin-arm64.json`. These checks validate skill lifecycle and configuration editing, not live host approval behavior. No agent-task token, native-search latency, atomic-write or concurrent-edit safety claim is made. Positional hook IDs may shift on removal; stored trust records are retained unchanged. Invocation failures: 0. Timeouts/launch failures retain their elapsed time and partial output sizes, fail the contract, and suppress the affected timing ratios. Version probes remain preflight checks. ## Generated skills: configuration regression (2026-09-23) Originating PR: [#20](https://github.com/thiagodmont/greeg/pull/20). Measurement time: 2026-09-23T15:14:09.153688Z (recorded). All 20 existing configuration contracts remain valid. Six installation cases exceed latency thresholds because they now atomically publish a missing skill, adding 6.8–7.7 ms at the median. The fixture named installed_noop has an installed hook but no skill; it is only a configuration no-op. See the skill lifecycle suite for a true managed-skill no-op. Other configuration-case median increases stay below 10%. `greeg 0.6.0+9fb9f030e` → `greeg 0.6.0+9fb9f030e.dirty`; 51 randomized paired runs per case after 3 warmups. Each invocation uses a reset disposable home and an isolated configuration/cache. Timing includes process startup and installation/removal, excluding fixture reset and validation. **Configuration contracts:** 20/20 → 20/20. Checks cover mixed handlers, prefix lookalikes, non-command handlers, wrong matchers, invalid UTF-8, missing-file uninstall and initial installation. Protocol 2 also checks byte-identical installed no-ops, matcher-less cleanup, custom matcher preservation, and retained TOML comments/trust data. Baseline failures are not equivalent successful work; their timing differences are not speedup claims. | Host | Case | Median ms, before → after | p95 ms, before → after | |---|---|---:|---:| | claude | mixed uninstall | 12.231 → 12.264 | 15.006 → 14.412 | | claude | prefix uninstall | 3.881 → 3.946 | 4.873 → 5.812 | | claude | prompt uninstall | 3.485 → 3.661 | 4.606 → 4.571 | | claude | wrong matcher install | 12.960 → 19.935 | 13.491 → 21.759 | | claude | installed noop | 4.216 → 11.366 | 5.016 → 12.559 | | claude | matcherless uninstall | 11.302 → 11.429 | 12.532 → 12.951 | | claude | custom matcher uninstall | 11.509 → 11.785 | 13.290 → 13.216 | | claude | invalid utf8 | 3.702 → 3.588 | 4.023 → 4.158 | | claude | absent uninstall | 3.474 → 3.583 | 4.507 → 5.096 | | claude | empty install | 12.530 → 20.254 | 13.419 → 22.109 | | codex | mixed uninstall | 12.245 → 12.315 | 15.600 → 15.580 | | codex | prefix uninstall | 3.979 → 4.003 | 6.109 → 6.369 | | codex | prompt uninstall | 3.669 → 3.745 | 4.195 → 4.359 | | codex | wrong matcher install | 13.425 → 20.966 | 16.462 → 23.780 | | codex | installed noop | 4.216 → 11.387 | 11.161 → 15.139 | | codex | matcherless uninstall | 12.991 → 13.144 | 14.955 → 14.787 | | codex | custom matcher uninstall | 13.184 → 13.191 | 14.637 → 14.333 | | codex | invalid utf8 | 3.537 → 3.671 | 4.786 → 5.013 | | codex | absent uninstall | 3.835 → 4.054 | 5.878 → 5.767 | | codex | empty install | 13.510 → 20.358 | 25.550 → 28.162 | [Raw samples, output bytes/statuses, fixture/harness hashes and binary digests](../bench/results/skill-config-regression-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hook_config.py BASELINE CANDIDATE --runs 51 --output skill-config-regression-2026-09-23-darwin-arm64.json`. These checks validate configuration editing, not live host approval behavior. No token, native-search latency, atomic-write or concurrent-edit safety claim is made. Positional hook IDs may shift on removal; stored trust records are retained unchanged. Invocation failures: 0. Timeouts/launch failures retain their elapsed time and partial output sizes, fail the contract, and suppress the affected timing ratios. Version probes remain preflight checks. Cases above the +10% median / +20% p95 investigation thresholds: **6/20**. Maximum median/p95 increases: 170.1%/150.4%. ## Generated skills: lifecycle review fixes (2026-09-23) Originating PR: [#20](https://github.com/thiagodmont/greeg/pull/20). Measurement time: 2026-09-23T15:33:32.057350Z (recorded). The 51-pair comparison isolates the inherited-lock and read-only removal fixes against the original skill implementation. All 22 contracts pass in both versions. Maximum median increase is 4.2%; Codex custom_install p95 rises 23.0% with median +1.9%. The larger confirmation retains this run for comparison. `greeg 0.6.0+9fb9f030e.dirty` → `greeg 0.6.0+b85c1282d.dirty`; 51 randomized paired runs per case after 3 warmups. Each invocation uses a reset disposable home and an isolated configuration/cache. Timing includes process startup and installation/removal, excluding fixture reset and validation. **Skill and configuration contracts:** 22/22 → 22/22. Checks cover skill creation, managed no-ops, legacy adoption, edited/custom preservation, managed/legacy removal, absent skills and dry runs, alongside configuration outcomes. Preservation and no-op cases require identical content, inode, mode, mtime and ctime. Baseline failures are not equivalent successful work; their timing differences are not speedup claims. | Host | Case | Median ms, before → after | p95 ms, before → after | |---|---|---:|---:| | claude | fresh install | 12.230 → 12.075 | 13.230 → 13.983 | | claude | managed noop | 4.047 → 4.097 | 4.881 → 4.819 | | claude | legacy upgrade | 12.385 → 12.102 | 13.863 → 14.009 | | claude | custom install | 4.240 → 4.271 | 5.210 → 5.450 | | claude | edited install | 5.250 → 5.251 | 6.503 → 7.072 | | claude | managed uninstall | 17.787 → 17.631 | 20.110 → 19.782 | | claude | legacy uninstall | 17.577 → 17.634 | 18.987 → 19.614 | | claude | custom uninstall | 13.146 → 13.146 | 14.255 → 14.787 | | claude | edited uninstall | 12.706 → 12.570 | 13.826 → 14.185 | | claude | absent skill uninstall | 12.986 → 13.029 | 14.167 → 14.120 | | claude | managed dry uninstall | 4.093 → 3.986 | 5.807 → 6.058 | | codex | fresh install | 12.980 → 12.868 | 14.531 → 14.131 | | codex | managed noop | 4.009 → 4.141 | 5.260 → 5.153 | | codex | legacy upgrade | 13.410 → 13.240 | 16.077 → 15.223 | | codex | custom install | 3.973 → 4.048 | 4.542 → 5.586 | | codex | edited install | 4.496 → 4.685 | 5.604 → 5.965 | | codex | managed uninstall | 17.055 → 16.839 | 20.944 → 19.441 | | codex | legacy uninstall | 17.679 → 17.757 | 19.026 → 20.337 | | codex | custom uninstall | 12.981 → 13.055 | 13.892 → 15.604 | | codex | edited uninstall | 12.888 → 13.382 | 13.878 → 14.857 | | codex | absent skill uninstall | 13.100 → 13.176 | 14.161 → 15.198 | | codex | managed dry uninstall | 4.114 → 4.139 | 5.460 → 5.247 | [Raw samples, output bytes/statuses, fixture/harness hashes and binary digests](../bench/results/skill-lifecycle-review-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hook_config.py BASELINE CANDIDATE --suite skills --runs 51 --output skill-lifecycle-review-2026-09-23-darwin-arm64.json`. These checks validate skill lifecycle and configuration editing, not live host approval behavior. No agent-task token, native-search latency, atomic-write or concurrent-edit safety claim is made. Positional hook IDs may shift on removal; stored trust records are retained unchanged. Invocation failures: 0. Timeouts/launch failures retain their elapsed time and partial output sizes, fail the contract, and suppress the affected timing ratios. Version probes remain preflight checks. Cases above the +10% median / +20% p95 investigation thresholds: **1/22**. Maximum median/p95 increases: 4.2%/23.0%. ## Generated skills: lifecycle review confirmation (2026-09-23) Originating PR: [#20](https://github.com/thiagodmont/greeg/pull/20). Measurement time: 2026-09-23T15:38:35.296622Z (recorded). The 151-pair confirmation passes all 22 contracts in both versions, with no +10% median / +20% p95 crossings. Maximum increases are +4.7%/+15.0%; Codex custom_install p95 changes 5.143 → 5.174 ms (+0.6%), so its initial tail increase did not repeat. `greeg 0.6.0+9fb9f030e.dirty` → `greeg 0.6.0+b85c1282d.dirty`; 151 randomized paired runs per case after 3 warmups. Each invocation uses a reset disposable home and an isolated configuration/cache. Timing includes process startup and installation/removal, excluding fixture reset and validation. **Skill and configuration contracts:** 22/22 → 22/22. Checks cover skill creation, managed no-ops, legacy adoption, edited/custom preservation, managed/legacy removal, absent skills and dry runs, alongside configuration outcomes. Preservation and no-op cases require identical content, inode, mode, mtime and ctime. Baseline failures are not equivalent successful work; their timing differences are not speedup claims. | Host | Case | Median ms, before → after | p95 ms, before → after | |---|---|---:|---:| | claude | fresh install | 13.246 → 13.150 | 34.139 → 25.445 | | claude | managed noop | 4.078 → 4.129 | 8.413 → 9.195 | | claude | legacy upgrade | 13.315 → 13.387 | 16.139 → 16.477 | | claude | custom install | 3.973 → 3.997 | 4.464 → 4.578 | | claude | edited install | 4.289 → 4.352 | 5.857 → 5.841 | | claude | managed uninstall | 16.988 → 16.980 | 19.148 → 20.017 | | claude | legacy uninstall | 16.913 → 16.956 | 19.550 → 20.254 | | claude | custom uninstall | 12.693 → 12.591 | 14.589 → 14.565 | | claude | edited uninstall | 12.118 → 12.693 | 13.982 → 13.833 | | claude | absent skill uninstall | 13.002 → 13.093 | 15.213 → 15.076 | | claude | managed dry uninstall | 4.862 → 5.088 | 10.321 → 11.868 | | codex | fresh install | 12.079 → 12.082 | 13.171 → 13.287 | | codex | managed noop | 4.034 → 4.073 | 5.674 → 5.684 | | codex | legacy upgrade | 12.733 → 12.747 | 15.568 → 16.713 | | codex | custom install | 4.012 → 4.057 | 5.143 → 5.174 | | codex | edited install | 4.008 → 4.013 | 7.154 → 5.989 | | codex | managed uninstall | 16.791 → 16.822 | 17.912 → 18.146 | | codex | legacy uninstall | 15.758 → 15.879 | 17.983 → 18.882 | | codex | custom uninstall | 12.915 → 12.894 | 14.900 → 14.505 | | codex | edited uninstall | 12.877 → 12.850 | 13.918 → 14.062 | | codex | absent skill uninstall | 13.107 → 13.182 | 14.232 → 14.351 | | codex | managed dry uninstall | 3.704 → 3.816 | 4.344 → 4.208 | [Raw samples, output bytes/statuses, fixture/harness hashes and binary digests](../bench/results/skill-lifecycle-confirmation-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/hook_config.py BASELINE CANDIDATE --suite skills --runs 151 --output skill-lifecycle-confirmation-2026-09-23-darwin-arm64.json`. These checks validate skill lifecycle and configuration editing, not live host approval behavior. No agent-task token, native-search latency, atomic-write or concurrent-edit safety claim is made. Positional hook IDs may shift on removal; stored trust records are retained unchanged. Invocation failures: 0. Timeouts/launch failures retain their elapsed time and partial output sizes, fail the contract, and suppress the affected timing ratios. Version probes remain preflight checks. Cases above the +10% median / +20% p95 investigation thresholds: **0/22**. Maximum median/p95 increases: 4.7%/15.0%. These incremental measurements compare the original skill implementation with the explicit lock-release and read-only removal fixes. Both the initial run and latency recheck are retained above. Both runs use the same binary digests. Read-only removal and inherited-lock behavior are covered by Rust regressions; timing fixtures use ordinary permissions. Initial skill creation/removal costs versus merged main remain documented above. ## Private session memory (2026-09-23) Originating PR: [#21](https://github.com/thiagodmont/greeg/pull/21). Measurement time: 2026-09-23T16:30:04.831538Z (recorded). Initial 51-pair run: session/search contracts improve 6/14 → 14/14, while all search output comparisons pass and output tokens stay unchanged. Fresh/warm session median overhead is 0.1–0.4 ms. Compaction and expiry of 2,000 records add 0.8–0.9 ms (11.9–16.0%), exceeding the median threshold: writers re-read bounded current history under a lock and publish replacements atomically. One fresh scan p95 crosses +20%; the larger confirmation is retained below. Oversized-log timing is not an equivalent-work speedup because the candidate refuses that history. Scan/index matching-file parity: **pass** across both binaries. `greeg 0.6.0+8bd8ad24c` → `greeg 0.6.0+8bd8ad24c.dirty`; 51 randomized pairs per case after 3 warmups. Session/search contracts: **6/14 → 14/14**. Exact stdout/stderr/status comparisons against the same backend’s baseline: **14/14 → 14/14**. The disposable corpus and reset logs exercise scan and full-index queries with sessions disabled, fresh/100-record logs, 2,000-record compaction/expiry, an oversized log, and a symlink. Checks require private modes, bounded retained records, and untouched symlink targets. Fixture reset, validation and index builds are outside the timed process. Storage contract failures are not equivalent successful work; timing differences are not speedup claims. | Backend | Case | Median ms, before → after | p95 ms, before → after | Output tokens, before → after | |---|---|---:|---:|---:| | scan | no session | 7.258 → 7.462 | 54.462 → 46.688 | 199 → 199 | | scan | fresh | 6.112 → 6.490 | 8.029 → 9.665 | 199 → 199 | | scan | warm | 5.961 → 6.086 | 7.395 → 7.468 | 199 → 199 | | scan | compaction | 6.634 → 7.420 | 8.166 → 9.129 | 199 → 199 | | scan | expired | 6.629 → 7.454 | 8.320 → 9.233 | 199 → 199 | | scan | oversized | 8.152 → 7.019 | 10.131 → 8.702 | 199 → 199 | | scan | symlink | 5.943 → 5.912 | 7.108 → 6.980 | 199 → 199 | | index | no session | 4.457 → 4.565 | 4.896 → 5.043 | 202 → 202 | | index | fresh | 4.758 → 4.858 | 5.130 → 5.726 | 202 → 202 | | index | warm | 4.663 → 4.842 | 5.454 → 5.889 | 202 → 202 | | index | compaction | 5.531 → 6.349 | 6.932 → 7.811 | 202 → 202 | | index | expired | 5.379 → 6.242 | 7.598 → 8.592 | 202 → 202 | | index | oversized | 6.398 → 5.527 | 8.102 → 7.348 | 202 → 202 | | index | symlink | 4.726 → 4.665 | 5.170 → 5.249 | 202 → 202 | Cases above +10% median / +20% p95 investigation thresholds: **5/14**. Maximum median/p95 increases: 16.0%/20.4%. [Raw samples, binary/harness/corpus digests and fixtures](../bench/results/private-sessions-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/sessions.py BASELINE CANDIDATE --runs 51 --tokens --output private-sessions-2026-09-23-darwin-arm64.json`. Tokens count stdout plus stderr, not the stored log or whole agent tasks. Warm synthetic timings do not establish cold-cache latency, peak RSS, live agent quality, power-loss durability or concurrent-filesystem safety. Rust tests cover the storage safety contracts. ## Private session memory: confirmation (2026-09-23) Originating PR: [#21](https://github.com/thiagodmont/greeg/pull/21). Measurement time: 2026-09-23T16:31:06.495386Z (recorded). The 151-pair confirmation uses the same binary digests and passes all 14 candidate contracts with unchanged output bytes/tokens. Fresh/warm median overhead is 0.1–0.3 ms. Compaction/expiry retain four median flags (+10.9–14.2%, or 0.6–0.8 ms) from reloading bounded history under a lock and atomic replacement. This is an explicit session-persistence reliability cost, not a search speedup. No p95 exceeds +20%; the initial fresh scan tail flag did not repeat. Sessions-disabled median changes are +5.5% scan / +1.6% index. Both runs are retained; they do not measure whole-task quality or cold-cache behavior. Scan/index matching-file parity: **pass** across both binaries. `greeg 0.6.0+8bd8ad24c` → `greeg 0.6.0+8bd8ad24c.dirty`; 151 randomized pairs per case after 3 warmups. Session/search contracts: **6/14 → 14/14**. Exact stdout/stderr/status comparisons against the same backend’s baseline: **14/14 → 14/14**. The disposable corpus and reset logs exercise scan and full-index queries with sessions disabled, fresh/100-record logs, 2,000-record compaction/expiry, an oversized log, and a symlink. Checks require private modes, bounded retained records, and untouched symlink targets. Fixture reset, validation and index builds are outside the timed process. Storage contract failures are not equivalent successful work; timing differences are not speedup claims. | Backend | Case | Median ms, before → after | p95 ms, before → after | Output tokens, before → after | |---|---|---:|---:|---:| | scan | no session | 6.245 → 6.587 | 8.534 → 8.743 | 199 → 199 | | scan | fresh | 6.624 → 6.806 | 8.145 → 8.482 | 199 → 199 | | scan | warm | 5.875 → 6.139 | 7.298 → 7.646 | 199 → 199 | | scan | compaction | 6.626 → 7.372 | 7.942 → 8.930 | 199 → 199 | | scan | expired | 6.514 → 7.221 | 8.394 → 9.138 | 199 → 199 | | scan | oversized | 8.020 → 6.771 | 11.055 → 9.131 | 199 → 199 | | scan | symlink | 6.048 → 5.883 | 8.815 → 8.393 | 199 → 199 | | index | no session | 4.345 → 4.414 | 5.573 → 5.617 | 202 → 202 | | index | fresh | 4.722 → 4.858 | 6.088 → 6.286 | 202 → 202 | | index | warm | 4.771 → 4.933 | 5.966 → 6.350 | 202 → 202 | | index | compaction | 5.521 → 6.302 | 7.504 → 8.915 | 202 → 202 | | index | expired | 5.502 → 6.120 | 10.137 → 10.097 | 202 → 202 | | index | oversized | 7.170 → 5.744 | 8.444 → 7.360 | 202 → 202 | | index | symlink | 4.785 → 4.726 | 6.414 → 6.064 | 202 → 202 | Cases above +10% median / +20% p95 investigation thresholds: **4/14**. Maximum median/p95 increases: 14.2%/18.8%. [Raw samples, binary/harness/corpus digests and fixtures](../bench/results/private-sessions-confirmation-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/sessions.py BASELINE CANDIDATE --runs 151 --tokens --output private-sessions-confirmation-2026-09-23-darwin-arm64.json`. Tokens count stdout plus stderr, not the stored log or whole agent tasks. Warm synthetic timings do not establish cold-cache latency, peak RSS, live agent quality, power-loss durability or concurrent-filesystem safety. Rust tests cover the storage safety contracts. ## Private session memory: cleanup review (2026-09-23) Originating PR: [#21](https://github.com/thiagodmont/greeg/pull/21). Measurement time: 2026-09-23T16:57:25.076374Z (recorded). These 51-pair incremental measurements compare the retained original session binary with anchored cleanup and shorter lock scope. Both binaries pass 14/14 session/search contracts; stdout, stderr, statuses, bytes and tokens remain unchanged, with scan/index matching-file parity. No case exceeds +10% median or +20% p95: maximum increases are +2.4% median and +19.0% p95. Directory-rename and busy-writer cleanup safety are covered by deterministic Rust regressions; these small-directory timings do not establish a large-directory contention speedup. Original costs versus merged main remain documented above. Scan/index matching-file parity: **pass** across both binaries. `greeg 0.6.0+8bd8ad24c.dirty` → `greeg 0.6.0+f21b9d83c.dirty`; 51 randomized pairs per case after 3 warmups. Session/search contracts: **14/14 → 14/14**. Exact stdout/stderr/status comparisons against the same backend’s baseline: **14/14 → 14/14**. The disposable corpus and reset logs exercise scan and full-index queries with sessions disabled, fresh/100-record logs, 2,000-record compaction/expiry, an oversized log, and a symlink. Checks require private modes, bounded retained records, and untouched symlink targets. Fixture reset, validation and index builds are outside the timed process. Storage contract failures are not equivalent successful work; timing differences are not speedup claims. | Backend | Case | Median ms, before → after | p95 ms, before → after | Output tokens, before → after | |---|---|---:|---:|---:| | scan | no session | 5.953 → 5.949 | 10.072 → 11.172 | 199 → 199 | | scan | fresh | 6.902 → 6.825 | 8.747 → 10.233 | 199 → 199 | | scan | warm | 7.899 → 7.605 | 19.572 → 16.517 | 199 → 199 | | scan | compaction | 7.373 → 7.402 | 9.043 → 8.991 | 199 → 199 | | scan | expired | 7.448 → 7.461 | 10.166 → 11.426 | 199 → 199 | | scan | oversized | 7.498 → 7.680 | 9.698 → 9.686 | 199 → 199 | | scan | symlink | 7.331 → 7.128 | 19.624 → 20.829 | 199 → 199 | | index | no session | 4.594 → 4.631 | 5.984 → 6.032 | 202 → 202 | | index | fresh | 5.182 → 5.227 | 5.842 → 6.680 | 202 → 202 | | index | warm | 5.131 → 5.091 | 5.865 → 6.047 | 202 → 202 | | index | compaction | 6.313 → 6.384 | 8.539 → 8.374 | 202 → 202 | | index | expired | 6.119 → 6.151 | 7.140 → 6.724 | 202 → 202 | | index | oversized | 6.066 → 5.898 | 7.291 → 8.675 | 202 → 202 | | index | symlink | 4.897 → 4.961 | 7.069 → 6.459 | 202 → 202 | Cases above +10% median / +20% p95 investigation thresholds: **0/14**. Maximum median/p95 increases: 2.4%/19.0%. [Raw samples, binary/harness/corpus digests and fixtures](../bench/results/private-sessions-review-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/sessions.py BASELINE CANDIDATE --runs 51 --tokens --output private-sessions-review-2026-09-23-darwin-arm64.json`. Tokens count stdout plus stderr, not the stored log or whole agent tasks. Warm synthetic timings do not establish cold-cache latency, peak RSS, live agent quality, power-loss durability or concurrent-filesystem safety. Rust tests cover the storage safety contracts. ## Session cleanup: collect before deletion (2026-09-23) Originating PR: [#21](https://github.com/thiagodmont/greeg/pull/21). Measurement time: 2026-09-23T17:16:33.700442Z (recorded). Initial 51-pair comparison against the retained cleanup-review binary: 14/14 contracts pass on both binaries with unchanged stdout/stderr/status, bytes and tokens. All medians stay below +10%; scan expiry p95 increases 17.48 → 45.05 ms (+157.7%), so the larger confirmation is retained below. That case compacts an existing nonempty log and does not enter the directory sweep. The 512-log cleanup test passed before and after the change on this Mac; no filesystem-specific skipped-entry defect was reproduced. This is defensive separation of enumeration and deletion, not a proven speedup. Scan/index matching-file parity: **pass** across both binaries. `greeg 0.6.0+f21b9d83c.dirty` → `greeg 0.6.0+59b6e0ed5.dirty`; 51 randomized pairs per case after 3 warmups. Session/search contracts: **14/14 → 14/14**. Exact stdout/stderr/status comparisons against the same backend’s baseline: **14/14 → 14/14**. The disposable corpus and reset logs exercise scan and full-index queries with sessions disabled, fresh/100-record logs, 2,000-record compaction/expiry, an oversized log, and a symlink. Checks require private modes, bounded retained records, and untouched symlink targets. Fixture reset, validation and index builds are outside the timed process. Storage contract failures are not equivalent successful work; timing differences are not speedup claims. | Backend | Case | Median ms, before → after | p95 ms, before → after | Output tokens, before → after | |---|---|---:|---:|---:| | scan | no session | 6.444 → 6.358 | 8.620 → 7.728 | 199 → 199 | | scan | fresh | 6.828 → 6.871 | 8.368 → 8.029 | 199 → 199 | | scan | warm | 6.896 → 6.998 | 8.602 → 8.488 | 199 → 199 | | scan | compaction | 8.531 → 8.348 | 10.230 → 10.342 | 199 → 199 | | scan | expired | 8.169 → 8.317 | 17.481 → 45.049 | 199 → 199 | | scan | oversized | 6.940 → 7.215 | 9.603 → 8.721 | 199 → 199 | | scan | symlink | 6.461 → 6.278 | 7.990 → 8.051 | 199 → 199 | | index | no session | 4.668 → 4.501 | 6.093 → 6.218 | 202 → 202 | | index | fresh | 5.008 → 5.267 | 6.636 → 6.716 | 202 → 202 | | index | warm | 5.863 → 5.790 | 8.278 → 7.198 | 202 → 202 | | index | compaction | 6.319 → 6.290 | 8.245 → 8.386 | 202 → 202 | | index | expired | 6.142 → 6.199 | 7.237 → 7.661 | 202 → 202 | | index | oversized | 5.726 → 5.798 | 7.247 → 7.214 | 202 → 202 | | index | symlink | 4.843 → 4.945 | 10.161 → 9.404 | 202 → 202 | Cases above +10% median / +20% p95 investigation thresholds: **1/14**. Maximum median/p95 increases: 5.2%/157.7%. [Raw samples, binary/harness/corpus digests and fixtures](../bench/results/private-sessions-sweep-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/sessions.py BASELINE CANDIDATE --runs 51 --tokens --output private-sessions-sweep-2026-09-23-darwin-arm64.json`. Tokens count stdout plus stderr, not the stored log or whole agent tasks. Warm synthetic timings do not establish cold-cache latency, peak RSS, live agent quality, power-loss durability or concurrent-filesystem safety. Rust tests cover the storage safety contracts. ## Session cleanup: collect-before-delete confirmation (2026-09-23) Originating PR: [#21](https://github.com/thiagodmont/greeg/pull/21). Measurement time: 2026-09-23T17:17:29.216244Z (recorded). The 151-pair confirmation uses the same binary digests, passes 14/14 contracts on both binaries, and preserves exact output/status, bytes/tokens and scan/index matching-file parity. Maximum increases are +1.2% median and +7.1% p95; no investigation thresholds are crossed. The initial scan-expiry tail flag does not repeat (+1.6%, or 0.13 ms). Both runs remain available. These small-directory timing fixtures do not measure bulk-sweep latency or peak RSS; Rust coverage checks removal of 512 expired logs, fresh-file preservation, renamed directories and busy writers. Scan/index matching-file parity: **pass** across both binaries. `greeg 0.6.0+f21b9d83c.dirty` → `greeg 0.6.0+59b6e0ed5.dirty`; 151 randomized pairs per case after 3 warmups. Session/search contracts: **14/14 → 14/14**. Exact stdout/stderr/status comparisons against the same backend’s baseline: **14/14 → 14/14**. The disposable corpus and reset logs exercise scan and full-index queries with sessions disabled, fresh/100-record logs, 2,000-record compaction/expiry, an oversized log, and a symlink. Checks require private modes, bounded retained records, and untouched symlink targets. Fixture reset, validation and index builds are outside the timed process. Storage contract failures are not equivalent successful work; timing differences are not speedup claims. | Backend | Case | Median ms, before → after | p95 ms, before → after | Output tokens, before → after | |---|---|---:|---:|---:| | scan | no session | 6.138 → 6.149 | 7.505 → 7.491 | 199 → 199 | | scan | fresh | 6.499 → 6.495 | 7.981 → 7.989 | 199 → 199 | | scan | warm | 6.575 → 6.593 | 8.576 → 8.943 | 199 → 199 | | scan | compaction | 7.310 → 7.344 | 9.028 → 9.303 | 199 → 199 | | scan | expired | 7.085 → 7.090 | 8.501 → 8.635 | 199 → 199 | | scan | oversized | 6.716 → 6.671 | 9.113 → 8.847 | 199 → 199 | | scan | symlink | 6.058 → 5.976 | 7.563 → 7.278 | 199 → 199 | | index | no session | 4.343 → 4.304 | 5.726 → 5.340 | 202 → 202 | | index | fresh | 4.756 → 4.801 | 5.754 → 5.807 | 202 → 202 | | index | warm | 4.737 → 4.721 | 5.414 → 5.797 | 202 → 202 | | index | compaction | 6.087 → 6.020 | 7.355 → 7.111 | 202 → 202 | | index | expired | 6.007 → 5.969 | 7.839 → 7.385 | 202 → 202 | | index | oversized | 5.642 → 5.710 | 7.998 → 8.245 | 202 → 202 | | index | symlink | 4.607 → 4.617 | 7.479 → 6.538 | 202 → 202 | Cases above +10% median / +20% p95 investigation thresholds: **0/14**. Maximum median/p95 increases: 1.2%/7.1%. [Raw samples, binary/harness/corpus digests and fixtures](../bench/results/private-sessions-sweep-confirmation-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/sessions.py BASELINE CANDIDATE --runs 151 --tokens --output private-sessions-sweep-confirmation-2026-09-23-darwin-arm64.json`. Tokens count stdout plus stderr, not the stored log or whole agent tasks. Warm synthetic timings do not establish cold-cache latency, peak RSS, live agent quality, power-loss durability or concurrent-filesystem safety. Rust tests cover the storage safety contracts. ## Shared private storage: session regression (2026-09-23) Originating PR: [#25](https://github.com/thiagodmont/greeg/pull/25). Measurement time: 2026-09-23T20:30:37.615448Z (recorded). Merged main against the branch that moves session storage onto the shared private-directory helper and adds private stats and index files. 14/14 session/search contracts pass on both binaries, with unchanged stdout/stderr/status, bytes and tokens and scan/index matching-file parity. No median exceeds +10% (maximum +7.4%). One p95 exceeds +20%: index oversized 7.80 → 9.85 ms (+26.3%) with a +1.7% median, so the larger confirmation is retained below. The host load average was 13.7–15.2 from an unrelated workload. Scan/index matching-file parity: **pass** across both binaries. `greeg 0.6.0+0bf9b8be4` → `greeg 0.6.0+379b2452f`; 51 randomized pairs per case after 3 warmups. Session/search contracts: **14/14 → 14/14**. Exact stdout/stderr/status comparisons against the same backend’s baseline: **14/14 → 14/14**. The disposable corpus and reset logs exercise scan and full-index queries with sessions disabled, fresh/100-record logs, 2,000-record compaction/expiry, an oversized log, and a symlink. Checks require private modes, bounded retained records, and untouched symlink targets. Fixture reset, validation and index builds are outside the timed process. Storage contract failures are not equivalent successful work; timing differences are not speedup claims. | Backend | Case | Median ms, before → after | p95 ms, before → after | Output tokens, before → after | |---|---|---:|---:|---:| | scan | no session | 6.197 → 6.211 | 9.841 → 7.767 | 199 → 199 | | scan | fresh | 6.106 → 5.665 | 8.913 → 8.418 | 199 → 199 | | scan | warm | 6.028 → 6.250 | 7.748 → 7.711 | 199 → 199 | | scan | compaction | 7.354 → 7.518 | 10.091 → 9.225 | 199 → 199 | | scan | expired | 7.147 → 7.119 | 9.789 → 10.553 | 199 → 199 | | scan | oversized | 6.954 → 7.469 | 11.097 → 9.775 | 199 → 199 | | scan | symlink | 5.661 → 5.563 | 7.470 → 7.615 | 199 → 199 | | index | no session | 3.692 → 3.627 | 4.887 → 4.806 | 202 → 202 | | index | fresh | 3.804 → 3.981 | 4.776 → 4.711 | 202 → 202 | | index | warm | 4.518 → 4.259 | 5.829 → 5.824 | 202 → 202 | | index | compaction | 5.848 → 5.789 | 7.044 → 7.130 | 202 → 202 | | index | expired | 5.588 → 5.373 | 10.836 → 9.112 | 202 → 202 | | index | oversized | 5.883 → 5.982 | 7.805 → 9.854 | 202 → 202 | | index | symlink | 5.243 → 5.357 | 6.560 → 6.901 | 202 → 202 | Cases above +10% median / +20% p95 investigation thresholds: **1/14**. Maximum median/p95 increases: 7.4%/26.3%. [Raw samples, binary/harness/corpus digests and fixtures](../bench/results/private-storage-sessions-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/sessions.py BASELINE CANDIDATE --runs 51 --tokens --output private-storage-sessions-2026-09-23-darwin-arm64.json`. Tokens count stdout plus stderr, not the stored log or whole agent tasks. Warm synthetic timings do not establish cold-cache latency, peak RSS, live agent quality, power-loss durability or concurrent-filesystem safety. Rust tests cover the storage safety contracts. ## Shared private storage: session confirmation (2026-09-23) Originating PR: [#25](https://github.com/thiagodmont/greeg/pull/25). Measurement time: 2026-09-23T20:31:06.621760Z (recorded). Same binaries, 151 pairs. 14/14 contracts pass with unchanged output, bytes, tokens and matching-file parity. No case crosses a threshold: maximum increases are +1.9% median and +11.1% p95, and the index oversized tail flag does not repeat (+1.7% p95). The refactor keeps the same system calls on the session path. Statistics recording, measured separately and reported in the pull request, is opt-in and not part of these fixtures. Load average was 12.3–17.2. Scan/index matching-file parity: **pass** across both binaries. `greeg 0.6.0+0bf9b8be4` → `greeg 0.6.0+379b2452f`; 151 randomized pairs per case after 3 warmups. Session/search contracts: **14/14 → 14/14**. Exact stdout/stderr/status comparisons against the same backend’s baseline: **14/14 → 14/14**. The disposable corpus and reset logs exercise scan and full-index queries with sessions disabled, fresh/100-record logs, 2,000-record compaction/expiry, an oversized log, and a symlink. Checks require private modes, bounded retained records, and untouched symlink targets. Fixture reset, validation and index builds are outside the timed process. Storage contract failures are not equivalent successful work; timing differences are not speedup claims. | Backend | Case | Median ms, before → after | p95 ms, before → after | Output tokens, before → after | |---|---|---:|---:|---:| | scan | no session | 5.719 → 5.749 | 7.536 → 7.548 | 199 → 199 | | scan | fresh | 5.783 → 5.595 | 7.447 → 7.700 | 199 → 199 | | scan | warm | 4.972 → 5.068 | 6.148 → 6.205 | 199 → 199 | | scan | compaction | 5.949 → 5.902 | 7.663 → 7.237 | 199 → 199 | | scan | expired | 5.731 → 5.692 | 7.383 → 7.223 | 199 → 199 | | scan | oversized | 5.801 → 5.762 | 7.551 → 8.385 | 199 → 199 | | scan | symlink | 4.687 → 4.723 | 5.800 → 5.882 | 199 → 199 | | index | no session | 3.468 → 3.454 | 5.943 → 5.846 | 202 → 202 | | index | fresh | 3.982 → 3.979 | 4.690 → 4.607 | 202 → 202 | | index | warm | 4.383 → 4.416 | 6.310 → 6.080 | 202 → 202 | | index | compaction | 4.898 → 4.923 | 6.259 → 6.231 | 202 → 202 | | index | expired | 4.714 → 4.765 | 5.929 → 6.170 | 202 → 202 | | index | oversized | 4.849 → 4.894 | 6.912 → 7.027 | 202 → 202 | | index | symlink | 3.786 → 3.829 | 5.253 → 5.754 | 202 → 202 | Cases above +10% median / +20% p95 investigation thresholds: **0/14**. Maximum median/p95 increases: 1.9%/11.1%. [Raw samples, binary/harness/corpus digests and fixtures](../bench/results/private-storage-sessions-confirmation-2026-09-23-darwin-arm64.json). Reproduce: `python3 bench/sessions.py BASELINE CANDIDATE --runs 151 --tokens --output private-storage-sessions-confirmation-2026-09-23-darwin-arm64.json`. Tokens count stdout plus stderr, not the stored log or whole agent tasks. Warm synthetic timings do not establish cold-cache latency, peak RSS, live agent quality, power-loss durability or concurrent-filesystem safety. Rust tests cover the storage safety contracts. ## Speed Host `darwin-arm64-apple-m4-pro` (12 CPUs), 2026-09-06T14:35:26. `greeg 0.3.0`, `ripgrep 15.2.0`, `grep (BSD grep, GNU compatible) 2.6.0-Fr`, hyperfine 1.20.0. hyperfine `-N --warmup 3 --runs 10` with `--prepare 'sleep 0.15'` before every timing run, warm page cache. Cells are **medians** with min–max in parentheses. The `sleep` before every run buys a CPU wake-up too (idle state, frequency ramp) that the hot latency never pays. On this host, `greeg --version` 1.7 ms hot → 6.9 ms after the sleep, `rg --version` 2.4 ms hot → 7.8 ms after the sleep. That adds a few milliseconds to every cell. It barely moves the ratios on the large trees, but it accounts for 30–50 % of the small-tree greeg cells, so subtract it if you want to read those as hot latencies. What each column prints: * `grep`: `path:line:text` for every match (no .gitignore support: its match set can exceed rg's) * `rg`: `path:line:text` for every match, default thread count * `rg-j4`: `path:line:text` for every match, four threads * `greeg-scan`: every match, grouped by file with a kind tag, no index (`--no-index --budget 0`) * `greeg-full`: every match, grouped by file with a kind tag, from the index (`--budget 0`) * `greeg`: the budgeted digest an agent reads (facets, definitions, top hits, ~2k tokens; `--budget 2000`, the default) * `fresh`: the index freshness check every `greeg`/`greeg-full` run pays under this protocol (median of `--stats` samples, mode in parentheses: `fsevents` or `stat` walk); `--fresh none` skips it (JSON column `greeg-nofresh`). Match sets: `rg --json` is the reference. `greeg-full` gets verified from the text the timed command prints. The budgeted `greeg` digest can't be verified from its own output, so it's checked as `--json=greeg --budget 0` with the same query. Rows marked ⚠ in the matches column failed one of those checks. grep has no `.gitignore` support, so its count can run past rg's. ### Index build | corpus | files | source | build (median) | index | ratio | build RSS | |---|---:|---:|---:|---:|---:|---:| | TypeScript | 65,938 | 216 MB | 3.07 s | 75.0 MB | 0.37× | 660 MB | | TypeScript-5.9 | 74,268 | 368 MB | 5.90 s | 94.8 MB | 0.28× | 868 MB | | django | 7,031 | 47 MB | 761.2 ms | 28.7 MB | 0.79× | 269 MB | | kotlinx-coroutines | 1,314 | 13 MB | 230.4 ms | 5.7 MB | 1.05× | 125 MB | | ktor | 3,057 | 76 MB | 494.2 ms | 13.4 MB | 0.89× | 144 MB | | rust | 62,412 | 224 MB | 4.93 s | 109.8 MB | 0.61× | 960 MB | | tokio | 849 | 6 MB | 239.8 ms | 5.1 MB | 0.88× | 133 MB | ### Search latency (warm) | corpus | family | pattern | grep | rg | rg-j4 | greeg-scan | greeg-full | greeg | fresh | matches | |---|---|---|---:|---:|---:|---:|---:|---:|---:|---:| | TypeScript | ident | `createSourceFile` | 3.14 s (3.13 s–3.17 s) | 1.86 s (1.78 s–1.91 s) | 574.1 ms (530.8 ms–599.2 ms) | 568.0 ms (556.4 ms–607.3 ms) | 31.6 ms (29.3 ms–32.7 ms) | 28.4 ms (27.2 ms–29.4 ms) | 14.6 ms (fsevents) | 48 | | TypeScript | word | `node` | 3.34 s (3.33 s–3.35 s) | 1.81 s (1.66 s–1.89 s) | 572.8 ms (548.5 ms–599.0 ms) | 690.4 ms (654.0 ms–707.7 ms) | 94.5 ms (84.4 ms–97.7 ms) | 63.2 ms (57.6 ms–68.4 ms) | 13.9 ms (fsevents) | 48,361 | | TypeScript | phrase | `function createSourceFile(` | 2.98 s (2.97 s–3.00 s) | 1.83 s (1.70 s–1.94 s) | 564.2 ms (537.1 ms–600.1 ms) | 578.9 ms (550.0 ms–591.4 ms) | 31.1 ms (29.0 ms–32.4 ms) | 30.4 ms (29.8 ms–30.8 ms) | 14.1 ms (fsevents) | 6 | | TypeScript | regex | `\bcreate\w+Node\(` | 3.05 s (3.02 s–3.06 s) | 1.88 s (1.78 s–2.23 s) | 582.8 ms (545.0 ms–597.6 ms) | 600.8 ms (578.4 ms–613.6 ms) | 35.0 ms (30.3 ms–37.6 ms) | 34.7 ms (34.4 ms–36.0 ms) | 14.8 ms (fsevents) | 703 | | TypeScript-5.9 | ident | `createSourceFile` | 4.29 s (4.27 s–4.33 s) | 2.42 s (2.35 s–2.65 s) | 672.4 ms (656.4 ms–687.1 ms) | 669.8 ms (646.1 ms–679.2 ms) | 34.8 ms (31.1 ms–37.1 ms) | 30.5 ms (28.7 ms–32.1 ms) | 16.1 ms (fsevents) | 97 | | TypeScript-5.9 | word | `node` | 4.52 s (4.45 s–4.56 s) | 2.33 s (1.54 s–2.62 s) | 882.1 ms (870.6 ms–918.8 ms) | 972.0 ms (959.8 ms–980.9 ms) | 67.0 ms (63.1 ms–159.9 ms) | 42.8 ms (41.4 ms–43.7 ms) | 12.9 ms (fsevents) | 30,445 | | TypeScript-5.9 | phrase | `function createSourceFile(` | 4.13 s (4.10 s–4.16 s) | 2.41 s (2.28 s–2.48 s) | 661.1 ms (639.8 ms–685.5 ms) | 665.0 ms (645.3 ms–720.4 ms) | 29.6 ms (25.3 ms–31.2 ms) | 29.5 ms (27.7 ms–30.5 ms) | 14.2 ms (fsevents) | 5 | | TypeScript-5.9 | regex | `\bcreate\w+Node\(` | 3.97 s (3.95 s–3.98 s) | 2.39 s (2.34 s–2.45 s) | 673.1 ms (615.0 ms–700.3 ms) | 696.4 ms (674.0 ms–753.7 ms) | 33.9 ms (33.1 ms–36.1 ms) | 33.6 ms (25.0 ms–34.6 ms) | 14.1 ms (fsevents) | 683 | | django | ident | `get_queryset` | 441.6 ms (435.1 ms–458.8 ms) | 145.1 ms (139.9 ms–150.6 ms) | 88.6 ms (84.9 ms–95.8 ms) | 91.4 ms (87.5 ms–95.7 ms) | 27.2 ms (26.4 ms–30.0 ms) | 27.5 ms (23.8 ms–29.5 ms) | 16.6 ms (stat) | 357 | | django | word | `request` | 519.8 ms (496.1 ms–525.8 ms) | 153.1 ms (143.8 ms–153.5 ms) | 95.6 ms (85.8 ms–108.3 ms) | 107.3 ms (100.5 ms–112.1 ms) | 43.4 ms (42.1 ms–45.8 ms) | 36.9 ms (28.3 ms–39.1 ms) | 15.2 ms (stat) | 7,702 | | django | phrase | `def get_queryset` | 481.6 ms (472.8 ms–497.4 ms) | 147.4 ms (140.8 ms–149.4 ms) | 89.1 ms (81.6 ms–94.2 ms) | 86.7 ms (78.4 ms–96.6 ms) | 27.2 ms (19.9 ms–30.0 ms) | 28.0 ms (25.9 ms–30.2 ms) | 16.4 ms (stat) | 81 | | django | regex | `def test_\w+` | 469.2 ms (460.8 ms–485.5 ms) | 158.4 ms (152.5 ms–160.9 ms) | 96.0 ms (86.6 ms–99.4 ms) | 124.3 ms (118.0 ms–128.7 ms) | 56.5 ms (49.5 ms–60.0 ms) | 49.1 ms (41.0 ms–50.8 ms) | 13.0 ms (stat) | 18,196 | | kotlinx-coroutines | ident | `CoroutineScope` | 82.2 ms (73.7 ms–87.6 ms) | 42.7 ms (37.0 ms–70.1 ms) | 33.8 ms (32.2 ms–36.3 ms) | 38.5 ms (32.6 ms–42.2 ms) | 22.5 ms (21.8 ms–24.9 ms) | 20.4 ms (10.7 ms–21.7 ms) | 6.4 ms (stat) | 866 | | kotlinx-coroutines | word | `Job` | 75.6 ms (74.6 ms–81.3 ms) | 42.0 ms (35.3 ms–42.9 ms) | 34.5 ms (27.4 ms–36.0 ms) | 40.6 ms (39.0 ms–42.4 ms) | 22.4 ms (21.8 ms–22.8 ms) | 21.9 ms (19.3 ms–22.9 ms) | 6.7 ms (stat) | 1,103 | | kotlinx-coroutines | phrase | `suspend fun` | 92.0 ms (90.3 ms–106.0 ms) | 43.4 ms (39.1 ms–44.9 ms) | 33.1 ms (28.8 ms–36.7 ms) | 41.1 ms (38.7 ms–43.8 ms) | 22.0 ms (21.3 ms–24.0 ms) | 21.5 ms (19.9 ms–23.8 ms) | 7.1 ms (stat) | 855 | | kotlinx-coroutines | regex | `fun \w+Async\(` | 89.1 ms (86.8 ms–99.2 ms) | 44.6 ms (42.1 ms–47.1 ms) | 35.0 ms (24.8 ms–37.6 ms) | 33.9 ms (27.7 ms–36.3 ms) | 19.9 ms (17.7 ms–21.5 ms) | 19.9 ms (17.2 ms–20.7 ms) | 6.5 ms (stat) | 17 | | ktor | ident | `respond` | 267.9 ms (264.2 ms–271.8 ms) | 114.1 ms (111.3 ms–115.1 ms) | 70.1 ms (65.2 ms–74.1 ms) | 76.7 ms (73.2 ms–82.7 ms) | 36.6 ms (34.1 ms–37.9 ms) | 28.7 ms (21.1 ms–33.1 ms) | 12.1 ms (stat) | 2,898 | | ktor | word | `ApplicationCall` | 224.8 ms (222.4 ms–234.9 ms) | 110.7 ms (108.6 ms–112.5 ms) | 70.4 ms (59.1 ms–77.4 ms) | 71.6 ms (67.1 ms–75.0 ms) | 28.0 ms (26.8 ms–31.2 ms) | 27.2 ms (20.6 ms–28.9 ms) | 12.5 ms (stat) | 904 | | ktor | phrase | `fun respond` | 243.2 ms (232.2 ms–250.5 ms) | 110.0 ms (107.8 ms–111.8 ms) | 66.6 ms (59.7 ms–74.6 ms) | 67.7 ms (57.0 ms–74.3 ms) | 27.5 ms (26.4 ms–28.4 ms) | 26.7 ms (25.6 ms–28.5 ms) | 12.9 ms (stat) | 151 | | ktor | regex | `fun \w+Call\(` | 250.9 ms (249.6 ms–256.5 ms) | 112.3 ms (108.6 ms–114.0 ms) | 68.8 ms (64.4 ms–79.4 ms) | 68.8 ms (64.9 ms–76.8 ms) | 33.5 ms (23.1 ms–38.8 ms) | 35.0 ms (32.6 ms–36.8 ms) | 11.1 ms (stat) | 17 | | rust | ident | `mir_borrowck` | 2.80 s (2.77 s–2.81 s) | 1.96 s (1.82 s–2.32 s) | 550.9 ms (525.4 ms–582.3 ms) | 555.6 ms (534.1 ms–570.7 ms) | 28.6 ms (28.2 ms–30.2 ms) | 27.2 ms (15.1 ms–67.0 ms) | 15.8 ms (fsevents) | 64 | | rust | word | `HirId` | 2.40 s (2.37 s–2.43 s) | 1.98 s (1.92 s–2.39 s) | 557.6 ms (539.7 ms–582.1 ms) | 573.3 ms (551.1 ms–587.5 ms) | 37.0 ms (34.1 ms–39.9 ms) | 35.6 ms (33.8 ms–37.1 ms) | 13.5 ms (fsevents) | 1,852 | | rust | phrase | `fn visit_expr` | 2.86 s (2.84 s–2.89 s) | 1.95 s (1.81 s–2.08 s) | 554.2 ms (529.2 ms–559.9 ms) | 560.7 ms (544.5 ms–632.5 ms) | 35.5 ms (33.4 ms–36.3 ms) | 34.5 ms (27.2 ms–36.3 ms) | 13.9 ms (fsevents) | 156 | | rust | regex | `fn \w+_borrowck` | 2.90 s (2.88 s–2.92 s) | 1.97 s (1.78 s–2.06 s) | 555.0 ms (528.9 ms–576.1 ms) | 555.8 ms (538.8 ms–569.4 ms) | 32.5 ms (31.3 ms–34.1 ms) | 32.9 ms (31.9 ms–33.5 ms) | 13.4 ms (fsevents) | 15 | | tokio | ident | `spawn_blocking` | 191.2 ms (188.4 ms–193.9 ms) | 29.7 ms (22.1 ms–55.8 ms) | 24.3 ms (16.6 ms–26.1 ms) | 27.6 ms (24.4 ms–29.1 ms) | 17.6 ms (11.9 ms–19.0 ms) | 13.6 ms (9.6 ms–18.1 ms) | 6.0 ms (stat) | 295 | | tokio | word | `Waker` | 160.1 ms (157.6 ms–162.4 ms) | 32.9 ms (27.6 ms–33.6 ms) | 25.0 ms (23.1 ms–26.2 ms) | 17.3 ms (16.2 ms–18.6 ms) | 7.4 ms (7.0 ms–7.9 ms) | 7.3 ms (7.1 ms–7.5 ms) | 2.8 ms (stat) | 279 | | tokio | phrase | `Pin<&mut Self>` | 150.4 ms (147.3 ms–169.2 ms) | 19.6 ms (18.4 ms–31.8 ms) | 15.1 ms (14.5 ms–15.8 ms) | 19.0 ms (17.2 ms–20.8 ms) | 9.0 ms (8.4 ms–9.5 ms) | 8.8 ms (8.4 ms–9.7 ms) | 2.9 ms (stat) | 662 | | tokio | regex | `\bpoll_\w+\(` | 165.0 ms (162.8 ms–166.5 ms) | 21.4 ms (19.7 ms–32.8 ms) | 16.6 ms (16.0 ms–17.8 ms) | 21.9 ms (20.5 ms–23.2 ms) | 11.4 ms (10.4 ms–11.8 ms) | 10.7 ms (10.0 ms–11.3 ms) | 3.1 ms (stat) | 1,587 | ### Verbs | corpus | verb | name | greeg (median) | |---|---|---|---:| | TypeScript | def | `createSourceFile` | 27.2 ms (24.7 ms–29.0 ms) | | TypeScript | refs | `SyntaxKind` | 35.8 ms (24.9 ms–39.3 ms) | | TypeScript | callers | `createSourceFile` | 28.9 ms (28.1 ms–30.2 ms) | | TypeScript-5.9 | def | `createSourceFile` | 26.2 ms (25.1 ms–26.9 ms) | | TypeScript-5.9 | refs | `SyntaxKind` | 35.8 ms (26.8 ms–37.4 ms) | | TypeScript-5.9 | callers | `createSourceFile` | 28.6 ms (27.2 ms–29.4 ms) | | django | def | `HttpResponseRedirect` | 26.0 ms (20.4 ms–28.9 ms) | | django | refs | `ModelAdmin` | 29.0 ms (27.0 ms–31.1 ms) | | django | callers | `get_queryset` | 26.9 ms (22.0 ms–30.3 ms) | | kotlinx-coroutines | def | `CoroutineScope` | 16.4 ms (14.9 ms–17.3 ms) | | kotlinx-coroutines | refs | `Dispatchers` | 23.0 ms (22.1 ms–25.2 ms) | | kotlinx-coroutines | callers | `launch` | 23.7 ms (22.6 ms–26.1 ms) | | ktor | def | `ApplicationCall` | 21.5 ms (20.3 ms–26.8 ms) | | ktor | refs | `ContentNegotiation` | 26.5 ms (25.9 ms–28.5 ms) | | ktor | callers | `respond` | 29.2 ms (28.5 ms–30.5 ms) | | rust | def | `TyCtxt` | 25.2 ms (23.4 ms–27.3 ms) | | rust | refs | `DefId` | 42.3 ms (35.9 ms–45.6 ms) | | rust | callers | `mir_borrowck` | 28.6 ms (21.8 ms–29.9 ms) | | tokio | def | `JoinHandle` | 6.8 ms (5.9 ms–8.0 ms) | | tokio | refs | `Semaphore` | 7.5 ms (6.8 ms–8.0 ms) | | tokio | callers | `spawn_blocking` | 7.4 ms (6.5 ms–8.2 ms) | ### Geometric-mean speed relative to `rg -j4` (headline; > 1 = faster) Medians, over the 7 current-protocol corpora (TypeScript, TypeScript-5.9, django, kotlinx-coroutines, ktor, rust, tokio). `rg -j4` is the best-configured rg on macOS, where rg's default thread count spends most of each run inside the kernel. On Linux the two rg columns sit close together. | family | grep | rg | rg-j4 | greeg-scan | greeg-full | greeg | greeg-nofresh | |---|---:|---:|---:|---:|---:|---:|---:| | ident | 0.21× | 0.48× | 1.00× | 0.95× | 5.08× | 5.76× | 10.40× | | phrase | 0.20× | 0.47× | 1.00× | 0.93× | 5.36× | 5.44× | 9.53× | | regex | 0.20× | 0.48× | 1.00× | 0.92× | 4.70× | 4.81× | 7.55× | | word | 0.23× | 0.50× | 1.00× | 0.97× | 4.45× | 5.22× | 7.88× | ### Geometric-mean speed relative to default `rg` (secondary) | family | grep | rg | rg-j4 | greeg-scan | greeg-full | greeg | |---|---:|---:|---:|---:|---:|---:| | ident | 0.43× | 1.00× | 2.08× | 1.97× | 10.58× | 11.99× | | phrase | 0.41× | 1.00× | 2.12× | 1.98× | 11.37× | 11.54× | | regex | 0.42× | 1.00× | 2.10× | 1.94× | 9.86× | 10.10× | | word | 0.45× | 1.00× | 1.98× | 1.92× | 8.82× | 10.35× | ### Peak RSS (ident query) | corpus | rg | greeg-scan | greeg-full | greeg | |---|---:|---:|---:|---:| | TypeScript | 113 MB | 120 MB | 45 MB | 27 MB | | TypeScript-5.9 | 109 MB | 105 MB | 36 MB | 34 MB | | django | 9 MB | 11 MB | 19 MB | 20 MB | | kotlinx-coroutines | 8 MB | 12 MB | 16 MB | 16 MB | | ktor | 8 MB | 22 MB | 49 MB | 50 MB | | rust | 18 MB | 25 MB | 43 MB | 46 MB | | tokio | 8 MB | 9 MB | 16 MB | 16 MB | ## Quality (SCIP oracle) Ground truth: SCIP occurrences from `rust-analyzer scip`, `scip-python`, `scip-typescript`. The indexer name and version are recorded per corpus below. Names are sampled from symbols defined in the repository, stratified by ambiguity (how many definitions share that name). Within a bucket, names are drawn with probability ∝ log(1 + reference count) and need at least 3 references, so the sample leans toward the names an agent actually asks about. Zero-reference names get their own bucket, reported separately. Acc@k means a true definition is among the first k locations the tool prints. The columns: `greeg def NAME`; `rg -nw NAME` (thread order, first lines); `rg-def`, which is `rg -n --sort path` with the language's definition regex for NAME (what an agent types when it wants the definition); and `grep -rnw NAME`. Brackets are 95 % bootstrap intervals of Acc@1 (n ≈ 75 → ±10 pp). Reference recall: SCIP reference occurrences found by `greeg refs NAME --budget 0`. Classification: `greeg -w NAME --json=greeg` hit kinds against SCIP roles on the same line, from stored spans and with `--precise`. Context@500 reads the first 500 lines each tool prints for the bare name. Useful = distinct lines carrying a SCIP occurrence of the name, over the lines that name a location. Summary lines (header, facets, file headers, `+N more`, footer) are neutral and leave the denominator. Tokens are o200k_base counts. **useful lines, SCIP-covered** (protocol 3, reported beside the strict column) narrows that denominator to lines in files the SCIP index actually holds. The oracle can't adjudicate a line in `lib.dom.d.ts`, `tests/baselines/**` or a fixture `.js`, and scoring those as not-useful charges every tool for reading files the ground truth skipped. The classification metric already drops them for the same reason. Treat it as the stricter measure of ranking. Un-adjudicable lines still cost tokens, and the token columns keep counting them. Runs: `TypeScript-5.9` 2026-11-24 with greeg 0.14.1; `django` 2026-11-24 with greeg 0.14.1; `tokio` 2026-11-24 with greeg 0.14.1. A corpus is only re-measured when it's re-run, so rows carrying different dates can straddle a change to the shaper. Compare the answer shape across corpora within one date, never across two. | corpus | indexer | n | greeg Acc@1/5/10 | rg -nw Acc@1/5/10 | rg-def Acc@1/5/10 | grep Acc@1/5/10 | ref recall | def precision (spans / precise) | noncode precision | SCIP density | |---|---|---:|---|---|---|---|---:|---|---:|---:| | TypeScript-5.9 | scip-typescript 0.4.0 | 75 | 96 %/100 %/100 % [91–100] | 28 %/56 %/72 % [17–39] | 37 %/45 %/51 % [27–48] | 47 %/61 %/71 % [35–59] | 97 % | 96 % / 88 % | 100 % | 86 % | | django | scip-python 0.6.6 | 75 | 100 %/100 %/100 % [100–100] | 29 %/45 %/56 % [19–40] | 75 %/76 %/77 % [64–84] | 29 %/45 %/51 % [20–40] | 99 % | 99 % / 99 % | 100 % | 43 % | | tokio | rust-analyzer 1.94.0 (4a4ef493 2026-03-02) | 75 | 96 %/100 %/100 % [91–100] | 16 %/44 %/60 % [8–25] | 68 %/81 %/83 % [57–79] | 19 %/39 %/52 % [11–28] | 98 % | 95 % / 95 % | 100 % | 55 % | **SCIP density** is the share of greeg's code hits on the sampled names that the indexer marks as an occurrence at all. It's a measure of what the ground truth can see, and it swings far more per indexer than per tool (scip-typescript ≈ 86 %, rust-analyzer ≈ 55 %, scip-python ≈ 43 %). So the SCIP-covered useful-line ratio below is a per-indexer number. Compare it within a corpus, never across. | corpus | ambiguity 1 | ambiguity 2–5 | ambiguity 6+ | zero-reference names: greeg / rg -nw / rg-def Acc@1/5/10 | |---|---|---|---|---| | TypeScript-5.9 | 100 %/100 %/100 % (n=25) | 96 %/100 %/100 % (n=25) | 92 %/100 %/100 % (n=25) | 80 %/100 %/100 % [50–100] / 70 %/90 %/90 % [40–100] / 0 %/50 %/60 % [0–0] (n=10) | | django | 100 %/100 %/100 % (n=25) | 100 %/100 %/100 % (n=25) | 100 %/100 %/100 % (n=25) | 100 %/100 %/100 % [100–100] / 80 %/90 %/100 % [50–100] / 80 %/80 %/80 % [50–100] (n=10) | | tokio | 100 %/100 %/100 % (n=25) | 100 %/100 %/100 % (n=25) | 88 %/100 %/100 % (n=25) | 100 %/100 %/100 % [100–100] / 100 %/100 %/100 % [100–100] / 100 %/100 %/100 % [100–100] (n=10) | | corpus | tool | useful lines | useful lines, SCIP-covered [95 % CI] | neutral lines | coverage | tokens/query mean | tokens/query median [95 % CI] | distinct true locations per 1k tokens | tokens to first def (median) | def reached | tokens until all defs covered (median) | all defs reached | |---|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | TypeScript-5.9 | greeg | 77 % | 93 % [90–96] | 51 % | 64 % | 527 | 505 [429–551] | 23.4 | 29 | 100 % | 30 | 45 % | | TypeScript-5.9 | greeg6k | 69 % | 91 % [87–94] | 49 % | 67 % | 746 | 540 [496–680] | 21.6 | 29 | 100 % | 33 | 52 % | | TypeScript-5.9 | rg | 55 % | 84 % [77–89] | 0 % | 94 % | 7,036 | 1519 [653–2,258] | 20.3 | 102 | 100 % | 178 | 56 % | | TypeScript-5.9 | grep | 35 % | 83 % [76–89] | 0 % | 91 % | 7,616 | 2060 [1,350–3,155] | 12.8 | 53 | 97 % | 506 | 87 % | | django | greeg | 75 % | 84 % [79–89] | 51 % | 55 % | 555 | 486 [446–538] | 26.1 | 25 | 100 % | 38 | 69 % | | django | greeg6k | 72 % | 79 % [73–85] | 49 % | 60 % | 821 | 533 [483–636] | 25.7 | 24 | 100 % | 42 | 75 % | | django | rg | 58 % | 65 % [56–73] | 0 % | 88 % | 5,832 | 1253 [844–2,589] | 26.3 | 104 | 93 % | 602 | 83 % | | django | grep | 59 % | 64 % [56–72] | 0 % | 91 % | 5,686 | 1253 [844–2,588] | 26.8 | 195 | 97 % | 558 | 81 % | | tokio | greeg | 76 % | 81 % [76–85] | 50 % | 61 % | 631 | 525 [434–608] | 26.5 | 30 | 99 % | 68 | 75 % | | tokio | greeg6k | 73 % | 78 % [73–83] | 49 % | 67 % | 836 | 627 [504–756] | 26.2 | 29 | 99 % | 98 | 80 % | | tokio | rg | 62 % | 66 % [60–73] | 0 % | 92 % | 3,385 | 1097 [725–1,632] | 24.8 | 194 | 99 % | 350 | 79 % | | tokio | grep | 60 % | 66 % [60–73] | 0 % | 92 % | 8,045 | 1398 [741–2,506] | 21.6 | 250 | 97 % | 597 | 79 % |