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

lsm / neokai / 24948543233
82%

Build:
DEFAULT BRANCH: dev
Ran 26 Apr 2026 04:49AM UTC
Jobs 34
Files 540
Run time 1min
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

26 Apr 2026 04:49AM UTC coverage: 82.996%. First build
24948543233

push

github

web-flow
feat: preset agent drift detection and sync (M105/M106)

* feat(daemon): add preset agent drift detection and sync (M105/M106)

Mirrors the workflow template-tracking pattern for `space_agents`:

- M105 adds nullable `template_name` + `template_hash` columns; M106
  backfills them on existing rows whose name matches a known preset
  (case-insensitive), hashing the row's CURRENT field values so user
  customisations surface as drift instead of being silently overwritten.
- `agent-template-hash.ts` defines a deterministic SHA-256 fingerprint
  over `{ name (trim+lowercase), description, sorted tools, customPrompt }`,
  matching what the backfill freezes inline.
- `seedPresetAgents` now stamps `templateName` + `templateHash` so
  preset-seeded rows participate in drift detection from day one.
- `SpaceAgentManager.getAgentDriftReport(spaceId)` reports drift for every
  preset-tracked row; `syncFromTemplate(agentId)` resets description /
  tools / customPrompt to the live preset and re-stamps the hash.
- `spaceAgent.getDriftReport` and `spaceAgent.syncFromTemplate` RPC
  handlers expose the manager methods, with cross-space ownership checks
  and `spaceAgent.updated` event emission on sync.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* feat(web): show drift badge and sync button on space agent list

When a preset-seeded agent's stored `templateHash` no longer matches
the current preset definition, the SpaceAgentList now:

- Fetches `spaceAgent.getDriftReport` on mount and whenever an agent
  row's `updatedAt` changes, building a Set of drifted agent IDs.
- Renders an amber "Out of sync" badge on each drifted card.
- Exposes a "Sync from template" button that calls
  `spaceAgent.syncFromTemplate`, optimistically clears the badge, and
  surfaces success / failure via toast.

Mirrors the WorkflowList drift UI so the two affordances feel identical.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.... (continued)

9102 of 12190 branches covered (74.67%)

Branch coverage included in aggregate %.

212 of 217 new or added lines in 8 files covered. (97.7%)

66205 of 78546 relevant lines covered (84.29%)

299.31 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
88.89
packages/web/src/components/space/SpaceAgentList.tsx
1
96.8
packages/daemon/src/lib/rpc-handlers/space-agent-handlers.ts
1
98.33
packages/daemon/src/storage/schema/m106-backfill-agent-templates.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-5-space-workflow - 24948543233.1 26 Apr 2026 04:49AM UTC 84
35.58
GitHub Action Run
2 daemon-4-space-storage - 24948543233.2 26 Apr 2026 04:50AM UTC 111
58.26
GitHub Action Run
3 daemon-5-space-other - 24948543233.3 26 Apr 2026 04:49AM UTC 105
33.91
GitHub Action Run
4 daemon-online-features-1 - 24948543233.4 26 Apr 2026 04:50AM UTC 288
19.85
GitHub Action Run
5 daemon-online-components - 24948543233.5 26 Apr 2026 04:49AM UTC 288
15.51
GitHub Action Run
6 daemon-5-space-runtime - 24948543233.6 26 Apr 2026 04:49AM UTC 104
40.23
GitHub Action Run
7 daemon-online-coordinator - 24948543233.7 26 Apr 2026 04:49AM UTC 288
6.26
GitHub Action Run
8 daemon-online-cross-provider-3 - 24948543233.8 26 Apr 2026 04:49AM UTC 288
6.25
GitHub Action Run
9 daemon-online-rpc-1 - 24948543233.9 26 Apr 2026 04:50AM UTC 288
19.4
GitHub Action Run
10 daemon-online-rewind-1 - 24948543233.10 26 Apr 2026 04:51AM UTC 288
19.37
GitHub Action Run
11 daemon-1-core - 24948543233.11 26 Apr 2026 04:50AM UTC 292
29.61
GitHub Action Run
12 daemon-online-rpc-4 - 24948543233.12 26 Apr 2026 04:51AM UTC 288
20.18
GitHub Action Run
13 daemon-online-mcp - 24948543233.13 26 Apr 2026 04:49AM UTC 288
15.95
GitHub Action Run
14 daemon-online-space-2 - 24948543233.14 26 Apr 2026 04:51AM UTC 288
26.96
GitHub Action Run
15 daemon-online-websocket - 24948543233.15 26 Apr 2026 04:49AM UTC 288
15.63
GitHub Action Run
16 daemon-2-handlers - 24948543233.16 26 Apr 2026 04:50AM UTC 236
50.08
GitHub Action Run
17 daemon-online-room-mcp - 24948543233.17 26 Apr 2026 04:50AM UTC 288
17.84
GitHub Action Run
18 web - 24948543233.18 26 Apr 2026 04:51AM UTC 242
79.49
GitHub Action Run
19 daemon-online-sdk - 24948543233.19 26 Apr 2026 04:50AM UTC 288
19.08
GitHub Action Run
20 daemon-online-features-3 - 24948543233.20 26 Apr 2026 04:50AM UTC 288
15.9
GitHub Action Run
21 daemon-online-room-coder-subagents - 24948543233.21 26 Apr 2026 04:49AM UTC 288
18.1
GitHub Action Run
22 daemon-online-rewind-2 - 24948543233.22 26 Apr 2026 04:50AM UTC 288
19.8
GitHub Action Run
23 daemon-5-space-agent - 24948543233.23 26 Apr 2026 04:50AM UTC 139
29.39
GitHub Action Run
24 daemon-online-lifecycle - 24948543233.24 26 Apr 2026 04:50AM UTC 288
19.57
GitHub Action Run
25 daemon-0-shared - 24948543233.25 26 Apr 2026 04:49AM UTC 29
84.83
GitHub Action Run
26 daemon-online-agent-sdk - 24948543233.26 26 Apr 2026 04:50AM UTC 288
19.16
GitHub Action Run
27 daemon-online-cross-provider-4 - 24948543233.27 26 Apr 2026 04:50AM UTC 288
19.88
GitHub Action Run
28 daemon-online-features-2 - 24948543233.28 26 Apr 2026 04:50AM UTC 288
19.56
GitHub Action Run
29 daemon-online-git - 24948543233.29 26 Apr 2026 04:50AM UTC 288
18.36
GitHub Action Run
30 daemon-online-space-1 - 24948543233.30 26 Apr 2026 04:50AM UTC 288
26.69
GitHub Action Run
31 daemon-online-rpc-2 - 24948543233.31 26 Apr 2026 04:50AM UTC 288
18.78
GitHub Action Run
32 daemon-online-convo - 24948543233.32 26 Apr 2026 04:50AM UTC 288
19.07
GitHub Action Run
33 daemon-online-cross-provider-2 - 24948543233.33 26 Apr 2026 04:50AM UTC 288
18.1
GitHub Action Run
34 daemon-online-rpc-3 - 24948543233.34 26 Apr 2026 04:50AM UTC 288
20.19
GitHub Action Run
Source Files on build 24948543233
  • Tree
  • List 540
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24948543233
  • 473879ea on github
  • Prev Build on dev (#24934982708)
  • Next Build on dev (#24949420971)
  • 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