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

lsm / neokai / 25967340249
81%

Build:
DEFAULT BRANCH: dev
Ran 16 May 2026 04:42PM UTC
Jobs 28
Files 525
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

16 May 2026 04:42PM UTC coverage: 81.971%. First build
25967340249

push

github

web-flow
fix: deterministic MCP guard for Space member sessions before query start (#1926)

* fix: deterministic MCP guard for Space member sessions before query start

Space ad-hoc (member) sessions with `context.spaceId` could lose their
`space-agent-tools` MCP server after cache eviction / DB reload, because
runtime-only MCP attachments are tied to the in-memory AgentSession instance.
When the instance is discarded and recreated from DB, the attachments are lost.

This adds a pre-query invariant check (the member-session counterpart to the
existing space_chat invariant) that:

1. Detects when a space-bound member session is missing `space-agent-tools`
   before QueryRunner.start() creates the SDK query.
2. Calls a self-heal callback wired by SpaceRuntimeService when it first
   attaches the tools, which re-runs attachSpaceToolsToMemberSession().
3. Rebuilds query options after self-heal so the SDK sees the repaired map.
4. Throws a hard error if the server is still missing — never silently start
   a degraded Space member turn.

Changes:
- QueryRunner: add `ensureMemberSpaceMcpInvariant()` with self-heal + rebuild
- QueryRunnerContext: add `onMissingMemberSpaceMcpServers` callback
- AgentSession: add `onMissingMemberSpaceMcpServers` property
- SpaceRuntimeService: set the callback in `attachSpaceToolsToMemberSession()`
- Tests: 5 new regression tests covering self-heal, throw, skip conditions

* fix: skip space_task_agent in member MCP invariant + test still-missing throw

Review feedback:
- Add space_task_agent exclusion to ensureMemberSpaceMcpInvariant, matching
  attachSpaceToolsToMemberSession skip logic. Legacy task-agent sessions must
  not hit the member invariant since they intentionally don't receive the
  generic member space-agent-tools server.
- Add test for the defensive "still missing after self-heal" throw path.

8414 of 11678 branches covered (72.05%)

Branch coverage included in aggregate %.

55 of 55 new or added lines in 3 files covered. (100.0%)

65769 of 78821 relevant lines covered (83.44%)

296.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 daemon-5-space-workflow - 25967340249.1 16 May 2026 04:42PM UTC 101
32.24
GitHub Action Run
2 daemon-5-space-runtime - 25967340249.2 16 May 2026 04:43PM UTC 147
43.58
GitHub Action Run
3 daemon-4-space-storage - 25967340249.3 16 May 2026 04:44PM UTC 136
58.45
GitHub Action Run
4 daemon-online-rpc-3 - 25967340249.4 16 May 2026 04:43PM UTC 293
20.37
GitHub Action Run
5 daemon-0-shared - 25967340249.5 16 May 2026 04:42PM UTC 30
83.92
GitHub Action Run
6 daemon-online-sdk - 25967340249.6 16 May 2026 04:44PM UTC 293
23.06
GitHub Action Run
7 daemon-5-space-agent - 25967340249.7 16 May 2026 04:43PM UTC 66
46.07
GitHub Action Run
8 daemon-online-coordinator - 25967340249.8 16 May 2026 04:43PM UTC 293
7.52
GitHub Action Run
9 daemon-online-rpc-1 - 25967340249.9 16 May 2026 04:43PM UTC 293
19.85
GitHub Action Run
10 daemon-online-space-2 - 25967340249.10 16 May 2026 04:45PM UTC 293
33.81
GitHub Action Run
11 daemon-online-rpc-2 - 25967340249.11 16 May 2026 04:44PM UTC 293
24.47
GitHub Action Run
12 daemon-5-space-other - 25967340249.12 16 May 2026 04:42PM UTC 103
42.52
GitHub Action Run
13 daemon-online-features-1 - 25967340249.13 16 May 2026 04:43PM UTC 293
23.94
GitHub Action Run
14 daemon-2-handlers - 25967340249.14 16 May 2026 04:42PM UTC 175
48.62
GitHub Action Run
15 daemon-online-git - 25967340249.15 16 May 2026 04:43PM UTC 293
19.49
GitHub Action Run
16 web - 25967340249.16 16 May 2026 04:43PM UTC 223
76.91
GitHub Action Run
17 daemon-online-components - 25967340249.17 16 May 2026 04:43PM UTC 293
18.37
GitHub Action Run
18 daemon-online-convo - 25967340249.18 16 May 2026 04:44PM UTC 293
23.05
GitHub Action Run
19 daemon-online-mcp - 25967340249.19 16 May 2026 04:43PM UTC 293
18.81
GitHub Action Run
20 daemon-online-lifecycle - 25967340249.20 16 May 2026 04:44PM UTC 293
23.62
GitHub Action Run
21 daemon-online-space-1 - 25967340249.21 16 May 2026 04:44PM UTC 293
34.53
GitHub Action Run
22 daemon-online-agent-sdk - 25967340249.22 16 May 2026 04:43PM UTC 293
23.18
GitHub Action Run
23 daemon-online-features-2 - 25967340249.23 16 May 2026 04:43PM UTC 293
23.58
GitHub Action Run
24 daemon-online-rewind-2 - 25967340249.24 16 May 2026 04:43PM UTC 293
23.9
GitHub Action Run
25 daemon-1-core - 25967340249.25 16 May 2026 04:43PM UTC 298
37.9
GitHub Action Run
26 daemon-online-rpc-4 - 25967340249.26 16 May 2026 04:44PM UTC 293
24.19
GitHub Action Run
27 daemon-online-websocket - 25967340249.27 16 May 2026 04:43PM UTC 293
18.49
GitHub Action Run
28 daemon-online-rewind-1 - 25967340249.28 16 May 2026 04:44PM UTC 293
23.37
GitHub Action Run
Source Files on build 25967340249
  • Tree
  • List 525
  • 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 #25967340249
  • 225cc87a on github
  • Prev Build on dev (#25967243745)
  • Next Build on dev (#25967464488)
  • 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