Skip to content

feat(signals): classify automation and CI toolchain config in path-matchers - #1261

Merged
JSONbored merged 4 commits into
JSONbored:mainfrom
jason020818:feat/signals-automation-toolchain-config
Jun 26, 2026
Merged

feat(signals): classify automation and CI toolchain config in path-matchers#1261
JSONbored merged 4 commits into
JSONbored:mainfrom
jason020818:feat/signals-automation-toolchain-config

Conversation

@jason020818

Copy link
Copy Markdown
Contributor

Summary

Extends isConfigFile / classifyChangedFile so slop signals stop miscounting common automation and hosted-CI config as uncategorized source effort (#561).

New config recognition:

  • Dependency automation: renovate.json, dependabot.yml
  • Toolchain pins: .tool-versions, mise.toml
  • Git hooks: lefthook.yml / .lefthook.yaml, .pre-commit-config.yaml
  • Hosted CI: .gitlab-ci.yml, azure-pipelines.yml, .github/workflows/*.yml, .circleci/config.yml
  • Protobuf codegen: buf.yaml, buf.gen.yaml

Path-only, deterministic, full unit coverage + negative cases.

Test plan

  • npm test -- test/unit/path-matchers.test.ts

…tchers

Extend the deterministic config matcher (JSONbored#561) so slop classification
recognizes common dependency-automation and hosted-CI files:

- renovate.json, dependabot.yml, asdf .tool-versions, mise.toml
- lefthook and pre-commit hook config
- GitLab/Azure pipeline basenames and buf codegen config
- .github/workflows/*.yml and .circleci/config.yml

Pure path-only matchers with unit coverage and negative cases.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jason020818
jason020818 requested a review from JSONbored as a code owner June 24, 2026 20:59
@dosubot dosubot Bot added the size:S label Jun 24, 2026
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.39%. Comparing base (a356441) to head (a5d5558).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1261   +/-   ##
=======================================
  Coverage   95.39%   95.39%           
=======================================
  Files         193      193           
  Lines       20929    20932    +3     
  Branches     7564     7566    +2     
=======================================
+ Hits        19966    19969    +3     
  Misses        383      383           
  Partials      580      580           
Files with missing lines Coverage Δ
src/signals/path-matchers.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JSONbored JSONbored left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the earlier of the two path-matcher PRs and it's correct — workflow/circleci/dependabot regexes plus the common toolchain basenames, with a real "renovate-like source names aren't config" guard. It wins the tiebreak over the later #1422 by being the original, not because either is "better." It's a jaso0n0818 fork so I won't touch it — your call to take it; if you do, #1422's extra lockfile/config entries can be folded in after.

@dosubot dosubot Bot added the lgtm label Jun 26, 2026
@JSONbored
JSONbored merged commit 1f9b84b into JSONbored:main Jun 26, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants