• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 27559611059
82%

Build:
DEFAULT BRANCH: dev
Ran 15 Jun 2026 04:09PM UTC
Jobs 28
Files 604
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Jun 2026 04:08PM UTC coverage: 81.527% (+0.02%) from 81.512%
27559611059

push

github

web-flow
feat(daemon): rank scope lessons by task relevance before prompt injection (#2081)

* feat(daemon): rank scope lessons by task relevance before prompt injection

selectActiveLessonsForTask previously sliced the 3 newest active lessons
with no task-specific filtering. This wasted prompt budget on irrelevant
lessons and explained the low lessons_reused metric (1/9).

Add lightweight relevance scoring based on:
- tag overlap between lesson.appliesTo and task.labels (+10 per match)
- keyword overlap between task text and lesson rule/why (+2 per match)
- lesson confidence (+3 * confidence)
- relative recency within the active set (0-5 tiebreaker)

Lessons are now sorted by score desc, then updatedAt desc, before slicing
to the limit. Includes unit tests for tag ranking, keyword ranking,
confidence fallback, and tie-breaking.

* fix(daemon): cap recency tiebreaker below smallest relevance signal

Normalize recency to 0-0.99 so a single keyword match (+2) or tag match (+10) always outranks any recency delta. Prevents unrelated newly-updated lessons from displacing task-specific ones in the top-3 slot.

* fix(daemon): make confidence and recency true tiebreakers below keyword matches

- Scale confidence to 0-0.5 (was 0-3) so max confidence + max recency (0.49) = 0.99 < a single keyword match (+2).

- Scale recency to 0-0.49 (was 0-0.99).

- Trim appliesTo and labels before exact tag-overlap scoring so whitespace from judge output does not miss matches.

- Update fallback test to use confidence 1.0 vs 0.0 so the assertion remains stable against recency.

10470 of 15311 branches covered (68.38%)

Branch coverage included in aggregate %.

125 of 125 new or added lines in 1 file covered. (100.0%)

5 existing lines in 1 file now uncovered.

89642 of 107485 relevant lines covered (83.4%)

288.61 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
82.61
-10.87% packages/daemon/src/lib/space/runtime/last-message-classifier.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-online-websocket - 27559611059.1 15 Jun 2026 04:09PM UTC 351
17.68
GitHub Action Run
2 daemon-online-rewind-2 - 27559611059.2 15 Jun 2026 04:10PM UTC 351
21.95
GitHub Action Run
3 daemon-online-rewind-1 - 27559611059.3 15 Jun 2026 04:10PM UTC 351
21.55
GitHub Action Run
4 daemon-4-space-migrations-a - 27559611059.4 15 Jun 2026 04:10PM UTC 50
54.02
GitHub Action Run
5 daemon-4-space-storage - 27559611059.5 15 Jun 2026 04:09PM UTC 156
55.36
GitHub Action Run
6 daemon-online-space-2 - 27559611059.6 15 Jun 2026 04:11PM UTC 351
31.42
GitHub Action Run
7 daemon-online-mcp - 27559611059.7 15 Jun 2026 04:09PM UTC 351
17.92
GitHub Action Run
8 web - 27559611059.8 15 Jun 2026 04:10PM UTC 243
73.69
GitHub Action Run
9 daemon-5-space-runtime-b - 27559611059.9 15 Jun 2026 04:10PM UTC 175
46.59
GitHub Action Run
10 daemon-online-agent-sdk - 27559611059.10 15 Jun 2026 04:10PM UTC 351
21.42
GitHub Action Run
11 daemon-online-rpc-4 - 27559611059.11 15 Jun 2026 04:10PM UTC 351
22.31
GitHub Action Run
12 daemon-online-features-2 - 27559611059.12 15 Jun 2026 04:10PM UTC 351
21.76
GitHub Action Run
13 daemon-4-space-migrations-b - 27559611059.13 15 Jun 2026 04:09PM UTC 70
39.02
GitHub Action Run
14 daemon-online-convo - 27559611059.14 15 Jun 2026 04:10PM UTC 351
21.32
GitHub Action Run
15 daemon-5-space-runtime-a - 27559611059.15 15 Jun 2026 04:10PM UTC 122
40.02
GitHub Action Run
16 daemon-1-core - 27559611059.16 15 Jun 2026 04:10PM UTC 357
34.61
GitHub Action Run
17 daemon-online-components - 27559611059.17 15 Jun 2026 04:09PM UTC 351
17.59
GitHub Action Run
18 daemon-0-shared-handlers-workflow - 27559611059.18 15 Jun 2026 04:10PM UTC 324
34.93
GitHub Action Run
19 daemon-online-git - 27559611059.19 15 Jun 2026 04:10PM UTC 351
18.48
GitHub Action Run
20 daemon-online-rpc-2 - 27559611059.20 15 Jun 2026 04:10PM UTC 351
22.46
GitHub Action Run
21 daemon-online-rpc-3 - 27559611059.21 15 Jun 2026 04:10PM UTC 351
19.09
GitHub Action Run
22 daemon-online-coordinator - 27559611059.22 15 Jun 2026 04:09PM UTC 340
7.64
GitHub Action Run
23 daemon-online-sdk - 27559611059.23 15 Jun 2026 04:10PM UTC 351
21.43
GitHub Action Run
24 daemon-online-space-1 - 27559611059.24 15 Jun 2026 04:10PM UTC 351
32.58
GitHub Action Run
25 daemon-online-features-1 - 27559611059.25 15 Jun 2026 04:10PM UTC 351
22.13
GitHub Action Run
26 daemon-online-lifecycle - 27559611059.26 15 Jun 2026 04:10PM UTC 351
21.8
GitHub Action Run
27 daemon-5-space-agent-other - 27559611059.27 15 Jun 2026 04:09PM UTC 276
26.17
GitHub Action Run
28 daemon-online-rpc-1 - 27559611059.28 15 Jun 2026 04:10PM UTC 351
18.74
GitHub Action Run
Source Files on build 27559611059
  • Tree
  • List 604
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27559611059
  • 2cc236db on github
  • Prev Build on dev (#27542861454)
  • Next Build on dev (#27560580097)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc