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

lsm / neokai / 25830865787
81%

Build:
DEFAULT BRANCH: dev
Ran 13 May 2026 10:48PM UTC
Jobs 28
Files 521
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

13 May 2026 10:47PM UTC coverage: 82.306% (-0.02%) from 82.326%
25830865787

push

github

web-flow
feat: add publish_task and archive_task MCP tools (#1893)

* feat: add publish_task and archive_task MCP tools for draft lifecycle

Adds two new MCP tools to enable full draft task lifecycle management
through the MCP tool surface, fixing the inability to transition tasks
from draft to open or archived status.

- publish_task: transitions draft → open, making tasks eligible for
  orchestration by the runtime tick loop
- archive_task: transitions tasks to archived (terminal state) from
  any status that allows it (draft, done, cancelled, blocked, review,
  approved)

Both tools are registered in space-agent-tools (always available) and
node-agent-tools (via optional callbacks wired by TaskAgentManager).

Closes #1892

* fix: emit space.task.updated events from node-agent publish/archive callbacks

The onPublishTask and onArchiveTask callbacks in TaskAgentManager did not
emit `space.task.updated` events, so the archive cleanup pipeline
(subscribeToTaskArchiveEvents → session teardown, worktree removal) was
never triggered when a node agent archived a task.

Also corrects the archive_task tool description: `open` is not a valid
source status for the `archived` transition (valid: draft, done, cancelled,
blocked, review, approved).

* fix: route archive through setTaskStatus and log event-publish failures

P1: SpaceTaskManager.archiveTask() now delegates to setTaskStatus()
instead of calling taskRepo.archiveTask() directly. This ensures
pendingCheckpointType/pendingCompletion* fields are cleared when
leaving 'review', and postApproval* fields are cleared when leaving
'approved' — preventing stale workflow metadata on archived tasks.

P2: Replaced silent .catch(() => {}) in onPublishTask/onArchiveTask
event emission with .catch((err) => log.warn(...)) to surface
diagnostic info when the event bus publish fails.

* fix: update archiveTask error message assertions after setTaskStatus refactor

The existing tests expected the old error message format from
arch... (continued)

8334 of 11605 branches covered (71.81%)

Branch coverage included in aggregate %.

112 of 158 new or added lines in 5 files covered. (70.89%)

65934 of 78629 relevant lines covered (83.85%)

291.11 hits per line

Uncovered Changes

Lines Coverage ∆ File
39
82.21
-1.13% packages/daemon/src/lib/space/runtime/task-agent-manager.ts
4
75.74
0.72% packages/daemon/src/lib/space/tools/space-agent-tools.ts
3
92.31
0.37% packages/daemon/src/lib/space/tools/node-agent-tools.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-online-rewind-1 - 25830865787.1 13 May 2026 10:50PM UTC 292
22.28
GitHub Action Run
2 daemon-5-space-other - 25830865787.2 13 May 2026 10:48PM UTC 120
32.48
GitHub Action Run
3 daemon-5-space-agent - 25830865787.3 13 May 2026 10:49PM UTC 163
29.18
GitHub Action Run
4 daemon-online-convo - 25830865787.4 13 May 2026 10:49PM UTC 292
21.97
GitHub Action Run
5 daemon-online-rpc-3 - 25830865787.5 13 May 2026 10:49PM UTC 292
19.49
GitHub Action Run
6 daemon-1-core - 25830865787.6 13 May 2026 10:49PM UTC 298
34.25
GitHub Action Run
7 daemon-online-mcp - 25830865787.7 13 May 2026 10:48PM UTC 292
17.95
GitHub Action Run
8 daemon-online-rpc-1 - 25830865787.8 13 May 2026 10:49PM UTC 292
18.98
GitHub Action Run
9 daemon-5-space-workflow - 25830865787.9 13 May 2026 10:48PM UTC 100
33.31
GitHub Action Run
10 daemon-online-components - 25830865787.10 13 May 2026 10:48PM UTC 292
17.51
GitHub Action Run
11 daemon-online-space-2 - 25830865787.11 13 May 2026 10:50PM UTC 292
32.19
GitHub Action Run
12 daemon-online-rpc-2 - 25830865787.12 13 May 2026 10:50PM UTC 292
23.37
GitHub Action Run
13 daemon-2-handlers - 25830865787.13 13 May 2026 10:48PM UTC 175
49.22
GitHub Action Run
14 daemon-online-space-1 - 25830865787.14 13 May 2026 10:50PM UTC 292
32.84
GitHub Action Run
15 daemon-online-git - 25830865787.15 13 May 2026 10:49PM UTC 292
18.62
GitHub Action Run
16 web - 25830865787.16 13 May 2026 10:49PM UTC 220
76.71
GitHub Action Run
17 daemon-online-rpc-4 - 25830865787.17 13 May 2026 10:50PM UTC 292
23.09
GitHub Action Run
18 daemon-online-rewind-2 - 25830865787.18 13 May 2026 10:49PM UTC 292
22.81
GitHub Action Run
19 daemon-0-shared - 25830865787.19 13 May 2026 10:48PM UTC 30
83.92
GitHub Action Run
20 daemon-online-agent-sdk - 25830865787.20 13 May 2026 10:49PM UTC 292
22.1
GitHub Action Run
21 daemon-online-lifecycle - 25830865787.21 13 May 2026 10:49PM UTC 292
22.52
GitHub Action Run
22 daemon-online-features-1 - 25830865787.22 13 May 2026 10:49PM UTC 292
22.85
GitHub Action Run
23 daemon-5-space-runtime - 25830865787.23 13 May 2026 10:49PM UTC 141
41.99
GitHub Action Run
24 daemon-online-websocket - 25830865787.24 13 May 2026 10:49PM UTC 292
17.64
GitHub Action Run
25 daemon-online-coordinator - 25830865787.25 13 May 2026 10:48PM UTC 292
7.37
GitHub Action Run
26 daemon-online-sdk - 25830865787.26 13 May 2026 10:49PM UTC 292
21.98
GitHub Action Run
27 daemon-online-features-2 - 25830865787.27 13 May 2026 10:49PM UTC 292
22.49
GitHub Action Run
28 daemon-4-space-storage - 25830865787.28 13 May 2026 10:49PM UTC 130
59.51
GitHub Action Run
Source Files on build 25830865787
  • Tree
  • List 521
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25830865787
  • 93a44684 on github
  • Prev Build on dev (#25830219317)
  • Next Build on dev (#25836138429)
  • 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