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

lsm / neokai / 27893201234
82%

Build:
DEFAULT BRANCH: dev
Ran 21 Jun 2026 04:15AM UTC
Jobs 28
Files 610
Run time 4min
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

21 Jun 2026 04:14AM UTC coverage: 81.94% (+0.1%) from 81.825%
27893201234

push

github

web-flow
feat(space): event-driven gate evaluation for blocked runs (#2141)

* feat(space): event-driven gate evaluation for blocked runs

Auto-subscribe workflow runs to GitHub PR events when a gate blocks with a
resolvable PR URL, and re-evaluate gates immediately when a matching event
arrives instead of waiting for the next 5-minute poll cycle.

Pieces:
- parsePrUrl() util shared between pr-ready-validator and SpaceRuntime
- SpaceRuntime.registerPrEventSubscriptionForRun / clearPrEventSubscriptionsForRun
  wrap registerSubscription with the github/<owner>/<repo>/pull_request/<n>.*
  topic pattern; cleared automatically on run termination via clearRunInterests
- SpaceRuntimeConfig.onBlockedRunExternalEvent hook fires once per (run, event)
  when handleExternalEvent delivers to a workflow_run currently in 'blocked'
  status
- SpaceRuntimeService.notifyGateDataChanged now syncs the auto-subscription:
  subscribes when the gate stays blocked and prUrl is resolvable, clears when
  any gate for the run opens
- SpaceRuntimeService.handleBlockedRunExternalEvent re-evaluates every gate of
  the run's workflow on external-event arrival; when a gate opens it clears
  the subscription and injects a courtesy notification into the active agent
  session via taskAgentManager.injectRuntimeRecoveryMessage

Tests:
- parse-pr-url unit tests (canonical, GHE, suffix, malformed)
- runtime-level integration tests for register/clear/idempotency/blocked-hook
- service-level integration tests covering auto-subscribe, event-driven gate
  open, session notification, and non-blocked / no-prUrl no-op paths
- space-test-db helper gains the gate_open_state table (migration 130) so
  service-level tests can exercise the real ChannelRouter path

* fix(space): address #2141 review — auto-kind, write_gate sync, blocked→in_progress, 120s poll

Review feedback (4 P2/P3 comments) + 1 follow-up:

- Auto-subscriptions now use subscriptionKind='auto' instead of 'dynamic' so
  clearPrEventSubscripti... (continued)

10913 of 15827 branches covered (68.95%)

Branch coverage included in aggregate %.

534 of 616 new or added lines in 12 files covered. (86.69%)

4 existing lines in 4 files now uncovered.

93943 of 112140 relevant lines covered (83.77%)

296.89 hits per line

Uncovered Changes

Lines Coverage ∆ File
35
45.79
-0.53% packages/daemon/src/lib/space/runtime/task-agent-manager.ts
27
98.2
0.88% packages/daemon/src/lib/space/runtime/space-runtime.ts
10
86.96
4.03% packages/daemon/src/lib/space/runtime/space-runtime-service.ts
4
83.08
-0.53% packages/daemon/src/lib/rpc-handlers/index.ts
4
98.09
-0.18% packages/daemon/src/lib/space/runtime/channel-router.ts
2
82.54
-0.05% packages/daemon/src/lib/space/tools/space-agent-tools.ts

Coverage Regressions

Lines Coverage ∆ File
1
83.08
-0.53% packages/daemon/src/lib/rpc-handlers/index.ts
1
86.96
4.03% packages/daemon/src/lib/space/runtime/space-runtime-service.ts
1
82.54
-0.05% packages/daemon/src/lib/space/tools/space-agent-tools.ts
1
76.1
-0.52% packages/web/src/components/MessageInput.tsx
Jobs
ID Job ID Ran Files Coverage
1 daemon-4-space-migrations-b - 27893201234.1 21 Jun 2026 04:16AM UTC 48
55.94
GitHub Action Run
2 daemon-5-space-runtime-b - 27893201234.2 21 Jun 2026 04:15AM UTC 181
47.63
GitHub Action Run
3 daemon-online-space-2 - 27893201234.3 21 Jun 2026 04:17AM UTC 356
31.3
GitHub Action Run
4 daemon-online-rpc-3 - 27893201234.4 21 Jun 2026 04:16AM UTC 356
19.0
GitHub Action Run
5 web - 27893201234.5 21 Jun 2026 04:16AM UTC 244
74.23
GitHub Action Run
6 daemon-1-core - 27893201234.6 21 Jun 2026 04:15AM UTC 362
35.02
GitHub Action Run
7 daemon-5-space-agent-other - 27893201234.7 21 Jun 2026 04:16AM UTC 281
26.15
GitHub Action Run
8 daemon-0-shared-handlers-workflow - 27893201234.8 21 Jun 2026 04:16AM UTC 329
34.77
GitHub Action Run
9 daemon-online-convo - 27893201234.9 21 Jun 2026 04:15AM UTC 356
21.64
GitHub Action Run
10 daemon-online-features-2 - 27893201234.10 21 Jun 2026 04:15AM UTC 356
22.06
GitHub Action Run
11 daemon-online-rewind-1 - 27893201234.11 21 Jun 2026 04:16AM UTC 356
21.86
GitHub Action Run
12 daemon-online-git - 27893201234.12 21 Jun 2026 04:15AM UTC 356
18.4
GitHub Action Run
13 daemon-5-space-runtime-a - 27893201234.13 21 Jun 2026 04:15AM UTC 127
39.49
GitHub Action Run
14 daemon-online-lifecycle - 27893201234.14 21 Jun 2026 04:16AM UTC 356
22.03
GitHub Action Run
15 daemon-4-space-migrations-a - 27893201234.15 21 Jun 2026 04:15AM UTC 73
37.99
GitHub Action Run
16 daemon-online-rpc-1 - 27893201234.16 21 Jun 2026 04:16AM UTC 356
18.66
GitHub Action Run
17 daemon-online-rewind-2 - 27893201234.17 21 Jun 2026 04:16AM UTC 356
22.28
GitHub Action Run
18 daemon-online-websocket - 27893201234.18 21 Jun 2026 04:15AM UTC 356
17.64
GitHub Action Run
19 daemon-online-mcp - 27893201234.19 21 Jun 2026 04:15AM UTC 356
17.86
GitHub Action Run
20 daemon-online-rpc-2 - 27893201234.20 21 Jun 2026 04:16AM UTC 356
22.73
GitHub Action Run
21 daemon-online-agent-sdk - 27893201234.21 21 Jun 2026 04:16AM UTC 356
21.73
GitHub Action Run
22 daemon-online-space-1 - 27893201234.22 21 Jun 2026 04:16AM UTC 356
31.32
GitHub Action Run
23 daemon-online-coordinator - 27893201234.23 21 Jun 2026 04:15AM UTC 345
7.85
GitHub Action Run
24 daemon-online-features-1 - 27893201234.24 21 Jun 2026 04:16AM UTC 356
22.38
GitHub Action Run
25 daemon-4-space-storage - 27893201234.25 21 Jun 2026 04:15AM UTC 159
54.23
GitHub Action Run
26 daemon-online-components - 27893201234.26 21 Jun 2026 04:15AM UTC 356
17.54
GitHub Action Run
27 daemon-online-sdk - 27893201234.27 21 Jun 2026 04:15AM UTC 356
21.74
GitHub Action Run
28 daemon-online-rpc-4 - 27893201234.28 21 Jun 2026 04:16AM UTC 356
22.45
GitHub Action Run
Source Files on build 27893201234
  • Tree
  • List 610
  • Changed 29
  • Source Changed 12
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27893201234
  • 1156c730 on github
  • Prev Build on dev (#27880581903)
  • Next Build on dev (#27965508767)
  • 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