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

lsm / neokai / 27181849429
82%

Build:
DEFAULT BRANCH: dev
Ran 09 Jun 2026 03:26AM UTC
Jobs 28
Files 593
Run time 2min
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

09 Jun 2026 03:25AM UTC coverage: 82.219% (-0.8%) from 83.065%
27181849429

push

github

web-flow
Build runtime hook engine and MCP action integration (#2076)

* feat: extend workflow hook types and validation for runtime execution

Add submit_for_approval and approve_task to WorkflowHookMcpMethod.
Add classification, order, and label fields to WorkflowHook.
Add WorkflowHookUserState for normalized hook result UI mapping.
Update hook validation to cover new fields.

* feat: build hook executor with sandboxed script execution

HookExecutor runs built-in and script validators.
Script execution uses Bun.spawn with restricted env, credential
stripping, timeout SIGKILL, and bounded stdout capture.
Built-in validators are registered by ID with stub defaults.

* feat: build workflow hook engine with chaining and result processing

WorkflowHookEngine snapshots matching hooks, sorts by classification
then order then id, and executes serially. Implements full result
precedence: block > retryable_block > patch_params > emit_follow_up
> record_state > allow. Includes wrapHandlerWithHooks for tool
handler integration with follow-up dispatch and recursive rejection.

* feat: wire hook engine into node-agent tool handlers and task agent manager

Add hookEngine to NodeAgentToolsConfig. Wrap send_message,
save_artifact, approve_task, submit_for_approval, and mark_complete
with hook pipeline. TaskAgentManager builds engine per sub-session
when workflow defines hooks.

* test: add unit tests for workflow hook engine

Covers allow, block, retryable block, param patch with re-validation,
follow-up action through handler pipeline, recursive follow-up
rejection, local state update, malformed script output, timeout,
multiple hooks on one action, conflict precedence, failure
classification, and normalized user-state mapping.

* fix: address P1/P3 review feedback on hook engine

- patchedKeys now diffs against original params instead of returning all keys
- Follow-up dispatch checks followUpRequest presence regardless of decision,
  fixing silent drop when combined with pa... (continued)

10124 of 14808 branches covered (68.37%)

Branch coverage included in aggregate %.

178 of 1419 new or added lines in 7 files covered. (12.54%)

327 existing lines in 5 files now uncovered.

86839 of 103125 relevant lines covered (84.21%)

291.29 hits per line

Uncovered Changes

Lines Coverage ∆ File
902
4.25
packages/daemon/src/lib/space/runtime/workflow-hook-engine.ts
283
16.52
packages/daemon/src/lib/space/runtime/hook-executor.ts
45
87.96
-3.09% packages/daemon/src/lib/space/tools/node-agent-tools.ts
10
69.85
2.04% packages/daemon/src/lib/space/workflow-hook-validation.ts
1
98.36
-0.38% packages/daemon/src/lib/space/runtime/gate-script-executor.ts

Coverage Regressions

Lines Coverage ∆ File
143
46.16
0.27% packages/daemon/src/lib/space/runtime/task-agent-manager.ts
101
87.96
-3.09% packages/daemon/src/lib/space/tools/node-agent-tools.ts
74
69.85
2.04% packages/daemon/src/lib/space/workflow-hook-validation.ts
7
94.84
0.12% packages/daemon/src/lib/space/export-format.ts
2
98.36
-0.38% packages/daemon/src/lib/space/runtime/gate-script-executor.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-online-lifecycle - 27181849429.1 09 Jun 2026 03:26AM UTC 342
22.45
GitHub Action Run
2 daemon-5-space-runtime-a - 27181849429.2 09 Jun 2026 03:26AM UTC 121
40.15
GitHub Action Run
3 daemon-online-space-2 - 27181849429.3 09 Jun 2026 03:28AM UTC 342
32.05
GitHub Action Run
4 daemon-1-core - 27181849429.4 09 Jun 2026 03:26AM UTC 349
35.41
GitHub Action Run
5 daemon-online-rpc-2 - 27181849429.5 09 Jun 2026 03:27AM UTC 342
23.14
GitHub Action Run
6 daemon-4-space-migrations-a - 27181849429.6 09 Jun 2026 03:26AM UTC 49
56.98
GitHub Action Run
7 daemon-online-convo - 27181849429.7 09 Jun 2026 03:26AM UTC 342
21.96
GitHub Action Run
8 daemon-4-space-storage - 27181849429.8 09 Jun 2026 03:26AM UTC 155
55.8
GitHub Action Run
9 daemon-0-shared-handlers-workflow - 27181849429.9 09 Jun 2026 03:26AM UTC 170
63.4
GitHub Action Run
10 daemon-online-agent-sdk - 27181849429.10 09 Jun 2026 03:26AM UTC 342
22.06
GitHub Action Run
11 daemon-online-space-1 - 27181849429.11 09 Jun 2026 03:27AM UTC 342
33.21
GitHub Action Run
12 daemon-5-space-agent-other - 27181849429.12 09 Jun 2026 03:26AM UTC 267
27.29
GitHub Action Run
13 daemon-5-space-runtime-b - 27181849429.13 09 Jun 2026 03:26AM UTC 173
46.0
GitHub Action Run
14 daemon-online-rewind-1 - 27181849429.14 09 Jun 2026 03:27AM UTC 342
22.21
GitHub Action Run
15 daemon-online-features-1 - 27181849429.15 09 Jun 2026 03:27AM UTC 342
22.79
GitHub Action Run
16 daemon-online-rewind-2 - 27181849429.16 09 Jun 2026 03:27AM UTC 342
22.63
GitHub Action Run
17 daemon-online-websocket - 27181849429.17 09 Jun 2026 03:26AM UTC 342
18.23
GitHub Action Run
18 daemon-online-mcp - 27181849429.18 09 Jun 2026 03:26AM UTC 342
18.48
GitHub Action Run
19 daemon-online-rpc-3 - 27181849429.19 09 Jun 2026 03:26AM UTC 342
19.66
GitHub Action Run
20 daemon-online-components - 27181849429.20 09 Jun 2026 03:26AM UTC 342
18.13
GitHub Action Run
21 web - 27181849429.21 09 Jun 2026 03:27AM UTC 240
73.7
GitHub Action Run
22 daemon-online-rpc-4 - 27181849429.22 09 Jun 2026 03:27AM UTC 342
22.99
GitHub Action Run
23 daemon-online-sdk - 27181849429.23 09 Jun 2026 03:26AM UTC 342
22.07
GitHub Action Run
24 daemon-4-space-migrations-b - 27181849429.24 09 Jun 2026 03:26AM UTC 69
39.54
GitHub Action Run
25 daemon-online-rpc-1 - 27181849429.25 09 Jun 2026 03:26AM UTC 342
19.29
GitHub Action Run
26 daemon-online-coordinator - 27181849429.26 09 Jun 2026 03:26AM UTC 331
7.72
GitHub Action Run
27 daemon-online-git - 27181849429.27 09 Jun 2026 03:26AM UTC 342
19.06
GitHub Action Run
28 daemon-online-features-2 - 27181849429.28 09 Jun 2026 03:26AM UTC 342
22.38
GitHub Action Run
Source Files on build 27181849429
  • Tree
  • List 593
  • Changed 11
  • Source Changed 6
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27181849429
  • 6cb908a9 on github
  • Prev Build on dev (#27153174972)
  • Next Build on dev (#27182037313)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc