Skip to content

improve(ci): avoid unused work in adaptive scoring - #208926

Merged
vincentkoc merged 1 commit into
mainfrom
perf/ci-adaptive-model-features-20261130
Nov 30, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
perf/ci-adaptive-model-features-20261130

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Adaptive CI scoring computes every supported feature for each file even when the model does not reference it. The current model uses path-token overlap only, so scans of prior dependency lists cannot change any score.

User Impact

The observation pilot avoids unused scoring work. Ranking rows, unknown reasons, and input/model hashes are preserved. This does not change test selection or execution.

Why This Change Was Made

Use the feature set already collected during model validation to gate extraction. All supported features remain available when a model references them, including the existing missing-dependency behavior. The work-count regression uses a fixture-local counter so it stays in the fast test lane.

Evidence

Acceptance was recorded in this draft before the first run: on 800 files, 512 dependency paths per file, and 64 changed paths, dependency searches must fall to zero with identical rows and input/model hashes. Five interleaved baseline/candidate samples use fresh Node processes. A 20% median or p95 regression requires investigation.

Run the fixed workload with node scripts/perf/ci-adaptive-scoring-measure.mjs. The instrumented scoring-function results were:

Metric Base Candidate
Dependency searches per ranking 51,200 0
Median scoring time 93.09 ms 68.18 ms
p95 scoring time 94.57 ms 72.37 ms
Observed time range 90.96–94.57 ms 67.45–72.37 ms

All ten samples had identical ranking and input/model hashes. These timings exclude process startup and do not establish whole-workflow time or cost savings.

  • Paired measurement: benchmark and consumer tests passed; the run subsequently caught missing braces in the benchmark guard, fixed before final validation.
  • Final exact-head validation: work-count regression fails on the base and passes with the fix; 25 model/decision/selection tests, tooling test typecheck, targeted lint/format and both unused-file scans passed. Final benchmark smoke retained zero searches and the same output hash.
  • Independent P0–P2 source review found no actionable issues.

@vincentkoc vincentkoc self-assigned this Nov 30, 2026
@clawsweeper

clawsweeper Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Pull request received.

ClawSweeper review complete

ClawSweeper finished reviewing this revision.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Nov 30, 2026
@clawsweeper clawsweeper Bot added the P2 Normal backlog priority with limited blast radius. label Nov 30, 2026
@vincentkoc
vincentkoc force-pushed the perf/ci-adaptive-model-features-20261130 branch from f6871a5 to d656353 Compare November 30, 2026 07:01
@vincentkoc
vincentkoc force-pushed the perf/ci-adaptive-model-features-20261130 branch from d656353 to 6f1a043 Compare November 30, 2026 07:10
@vincentkoc
vincentkoc marked this pull request as ready for review November 30, 2026 07:17
@vincentkoc
vincentkoc enabled auto-merge (squash) November 30, 2026 07:22
@vincentkoc
vincentkoc merged commit cd0a36c into main Nov 30, 2026
174 of 175 checks passed
@vincentkoc
vincentkoc deleted the perf/ci-adaptive-model-features-20261130 branch November 30, 2026 07:30
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Nov 30, 2026
…ogic

* commit 'f7ccd914102ab408606c45c0aa3adbd8427051eb': (1290 commits)
  refactor(ios): remove unreachable settings and automation controls (#208958)
  fix: verify deferred activation in package recovery acceptance (#208901)
  improve(ci): avoid unused adaptive scoring work (#208926)
  chore(ui): refresh control ui locales (#208959)
  test(agents): verify user recall and file state across OpenAI compactions (#208909)
  fix(ui): update the sidebar on startup and recovery screens (#207967)
  fix(whatsapp): quote the first queued swipe-reply answer (#208791)
  test(memory-wiki): generate metadata replacement transitions (#208932)
  fix(ui): hide Claude injected context from chat (#207234)
  fix(ui): count people instead of emoji in reaction badges (#207235)
  fix: keep Daybreak when another provider's model list fails (#208883)
  test(telegram): check the registered preload at polling worker startup (#208936)
  fix(qa): test Slack verbosity with one direct shell call (#208023)
  fix(qa): wait for Telegram messages before checking their formatting (#208024)
  feat(ios): show build details at the bottom of Settings (#208944)
  chore(ui): refresh control ui locales (#208937)
  fix: goals stop after native child-result handoffs (#193024)
  fix(ui): show current tool actions in collapsed chat activity (#208925)
  improve(ios): put About last in Settings (#208928)
  test(memory-wiki): generate human-note preservation regressions (#208921)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant