| 1 | # Oak Perf Loop Ledger
|
| 2 |
|
| 3 | This ledger is repo-tracked memory for the propose-mode overnight performance
|
| 4 | loop. Every iteration appends a machine-readable `oak-perf-loop-entry` block
|
| 5 | plus a short human summary. The harness uses this to avoid retrying targets or
|
| 6 | levers that were already parked as no-payoff.
|
| 7 |
|
| 8 | ## Seed β core:large:many_small_files_50k/branch.create
|
| 9 |
|
| 10 | - Verdict: landed
|
| 11 | - Medians: before 24.9 ms, after 7.5 ms, delta -69.9%
|
| 12 | - Change: `oak switch -c` no longer eagerly loads the seed manifest when the new branch is seeded from the current head and no materialization can occur.
|
| 13 | - Diagnosis: Instrumentation showed the expected dirty scan was not hit; the O(N) cost was seed-manifest loading.
|
| 14 |
|
| 15 | <!-- oak-perf-loop-entry
|
| 16 | {
|
| 17 | "schema_version": 1,
|
| 18 | "timestamp": "2026-06-17T00:00:00+00:00",
|
| 19 | "target": {
|
| 20 | "lane": "core",
|
| 21 | "profile": "large",
|
| 22 | "scenario": "many_small_files_50k",
|
| 23 | "operation": "branch.create",
|
| 24 | "ratio": 2.15,
|
| 25 | "oak_median_ms": 24.9,
|
| 26 | "git_median_ms": 10.6
|
| 27 | },
|
| 28 | "diagnosis": "Instrumentation showed seed-manifest loading, not get_status dirty scanning, dominated the benchmark-shaped switch -c path.",
|
| 29 | "change_summary": "Lazy-load the seed manifest only when switch -c will materialize the worktree.",
|
| 30 | "before_after_medians": {
|
| 31 | "before_ms": 24.9,
|
| 32 | "after_ms": 7.5,
|
| 33 | "delta_pct": -69.9
|
| 34 | },
|
| 35 | "landed_or_parked": "landed",
|
| 36 | "reason": "merged_by_human",
|
| 37 | "levers_rejected": []
|
| 38 | }
|
| 39 | -->
|
| 40 |
|
| 41 | ## Seed β core:large:many_small_files_50k/status.dirty
|
| 42 |
|
| 43 | - Verdict: landed
|
| 44 | - Medians: before 171.5 ms, after 152.5 ms, delta -11.0%
|
| 45 | - Change: Status/commit change computation diffs scanned entries directly instead of constructing a throwaway `Manifest`.
|
| 46 | - Diagnosis: Instrumentation showed no single wasted scan; the paid structural pass was the full new-manifest construction plus manifest diff after entries were already resolved.
|
| 47 | - Levers rejected:
|
| 48 | - Walker metadata collapse: paired A/B on the same 50k/5k dirty fixtures was flat/slightly worse, so do not retry without new evidence.
|
| 49 |
|
| 50 | <!-- oak-perf-loop-entry
|
| 51 | {
|
| 52 | "schema_version": 1,
|
| 53 | "timestamp": "2026-06-17T00:00:01+00:00",
|
| 54 | "target": {
|
| 55 | "lane": "core",
|
| 56 | "profile": "large",
|
| 57 | "scenario": "many_small_files_50k",
|
| 58 | "operation": "status.dirty",
|
| 59 | "ratio": 1.85,
|
| 60 | "oak_median_ms": 171.5,
|
| 61 | "git_median_ms": 92.7
|
| 62 | },
|
| 63 | "diagnosis": "Instrumented breakdown: walk ~40 ms, cache load ~9 ms, resolve+hash ~48 ms, manifest diff/construction ~21 ms, rename ~0 ms.",
|
| 64 | "change_summary": "Diff scanned ManifestEntry values directly against HEAD and preserve exact-hash plus content-similarity rename detection.",
|
| 65 | "before_after_medians": {
|
| 66 | "before_ms": 171.5,
|
| 67 | "after_ms": 152.5,
|
| 68 | "delta_pct": -11.0
|
| 69 | },
|
| 70 | "landed_or_parked": "landed",
|
| 71 | "reason": "merged_by_human",
|
| 72 | "levers_rejected": [
|
| 73 | "walker_metadata_collapse_no_payoff"
|
| 74 | ]
|
| 75 | }
|
| 76 | -->
|
| 77 |
|
| 78 | ## 2026-06-17T07:12:13.154425+00:00 β core:large:many_small_files_50k/status.dirty
|
| 79 |
|
| 80 | - Verdict: parked
|
| 81 | - Reason: dry_run_no_candidate_branch
|
| 82 | - Current median: 152.5 ms
|
| 83 | - Change: dry-run parked candidate
|
| 84 | - Diagnosis: dry-run: target selection and ledger plumbing exercised; no Rust edit attempted
|
| 85 |
|
| 86 | <!-- oak-perf-loop-entry
|
| 87 | {
|
| 88 | "before_after_medians": {
|
| 89 | "after_ms": null,
|
| 90 | "before_ms": 152.5,
|
| 91 | "delta_pct": null
|
| 92 | },
|
| 93 | "change_summary": "dry-run parked candidate",
|
| 94 | "correctness_gate": [
|
| 95 | {
|
| 96 | "command": "dry-run",
|
| 97 | "returncode": 0
|
| 98 | }
|
| 99 | ],
|
| 100 | "diagnosis": "dry-run: target selection and ledger plumbing exercised; no Rust edit attempted",
|
| 101 | "fleet_reliability_gate": "PASS",
|
| 102 | "landed_or_parked": "parked",
|
| 103 | "levers_rejected": [],
|
| 104 | "oak_efficiency_gate": "PASS",
|
| 105 | "reason": "dry_run_no_candidate_branch",
|
| 106 | "schema_version": 1,
|
| 107 | "target": {
|
| 108 | "git_median_ms": 92.4,
|
| 109 | "lane": "core",
|
| 110 | "oak_median_ms": 152.5,
|
| 111 | "operation": "status.dirty",
|
| 112 | "profile": "large",
|
| 113 | "ratio": 1.6504329004329004,
|
| 114 | "scenario": "many_small_files_50k"
|
| 115 | },
|
| 116 | "timestamp": "2026-06-17T07:12:13.154425+00:00"
|
| 117 | }
|
| 118 | -->
|