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

lsm / neokai / 25830865787 / 17
82%
dev: 82%

Build:
DEFAULT BRANCH: dev
Ran 13 May 2026 10:50PM UTC
Files 292
Run time 9s
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: 23.091% (-0.04%) from 23.134%
25830865787.17

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)

17647 of 76424 relevant lines covered (23.09%)

12.04 hits per line

Source Files on job daemon-online-rpc-4 - 25830865787.17
  • Tree
  • List 292
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25830865787
  • 93a44684 on github
  • Prev Job for on dev (#25830219317.23)
  • Next Job for on dev (#25836138429.23)
  • 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