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

lsm / neokai / 25867795621
81%

Build:
DEFAULT BRANCH: dev
Ran 14 May 2026 03:08PM UTC
Jobs 28
Files 523
Run time 3min
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

14 May 2026 03:07PM UTC coverage: 82.438% (-0.02%) from 82.458%
25867795621

push

github

web-flow
feat: cache gate-open state to skip re-evaluation on every message (#1894)

* feat: cache gate-open state to skip re-evaluation on every message delivery

Once a gate evaluates to open, subsequent deliverMessage/canDeliver calls
skip re-evaluation — the gate's purpose is to gate *activation*, and after
that canSend topology authorization controls messaging.

Cache is bypassed for cyclic channels whose gate has resetOnCycle=true,
where the gate must always re-evaluate to enforce revision loops.

The cached open state is cleared when incrementAndResetCyclicChannel
resets gate data, ensuring the next delivery re-evaluates against fresh data.

* fix: address review feedback on gate-open cache

- Remove cacheGateOpened from canDeliver to keep it side-effect free
  (P1: a UI readiness check must not permanently cache a gate as open)
- Add evictRunCache() to prevent unbounded memory growth in long-lived
  daemons; call it when archived runs are detected
- Fail closed when cached gate definition disappears from workflow
  (force re-evaluation so evaluator returns "Gate not found")
- Add evictRunCache test

* fix: check gate existence before cyclic shortcut in mustReevaluateGate

Move the gate definition existence check before the non-cyclic channel
early return so that ALL channels (not just cyclic ones) re-evaluate
when the gate definition disappears from the workflow, failing closed
with "Gate not found" instead of silently allowing delivery.

Also evict gate-open cache on terminal run reopen in activateNode.

* fix: evict gate-open cache on run completion via event bus

Subscribe to `space.workflowRun.completed` in ChannelRouter to
automatically evict opened-gate cache entries when runs transition
to terminal status (done/cancelled/blocked). Add `destroy()` method
for cleanup. Prevents unbounded cache growth in long-lived routers.

* fix: make gate-cache event bus subscription opt-in

Add `subscribeToRunCompletion` config option (defaults to false) so
only... (continued)

8334 of 11605 branches covered (71.81%)

Branch coverage included in aggregate %.

170 of 170 new or added lines in 8 files covered. (100.0%)

51 existing lines in 1 file now uncovered.

66877 of 79628 relevant lines covered (83.99%)

291.97 hits per line

Coverage Regressions

Lines Coverage ∆ File
51
82.55
-8.83% packages/daemon/src/lib/providers/anthropic-copilot/provider.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-0-shared - 25867795621.1 14 May 2026 03:08PM UTC 30
83.92
GitHub Action Run
2 daemon-online-git - 25867795621.2 14 May 2026 03:09PM UTC 295
18.63
GitHub Action Run
3 daemon-5-space-other - 25867795621.3 14 May 2026 03:08PM UTC 124
32.21
GitHub Action Run
4 daemon-online-coordinator - 25867795621.4 14 May 2026 03:08PM UTC 295
7.36
GitHub Action Run
5 daemon-5-space-runtime - 25867795621.5 14 May 2026 03:09PM UTC 148
43.74
GitHub Action Run
6 daemon-online-lifecycle - 25867795621.6 14 May 2026 03:09PM UTC 295
22.47
GitHub Action Run
7 daemon-1-core - 25867795621.7 14 May 2026 03:09PM UTC 300
34.23
GitHub Action Run
8 web - 25867795621.8 14 May 2026 03:09PM UTC 220
76.71
GitHub Action Run
9 daemon-online-space-2 - 25867795621.9 14 May 2026 03:10PM UTC 295
32.09
GitHub Action Run
10 daemon-online-rewind-2 - 25867795621.10 14 May 2026 03:09PM UTC 295
22.76
GitHub Action Run
11 daemon-online-rpc-1 - 25867795621.11 14 May 2026 03:09PM UTC 295
18.97
GitHub Action Run
12 daemon-4-space-storage - 25867795621.12 14 May 2026 03:10PM UTC 130
59.46
GitHub Action Run
13 daemon-online-websocket - 25867795621.13 14 May 2026 03:08PM UTC 295
17.66
GitHub Action Run
14 daemon-online-rpc-4 - 25867795621.14 14 May 2026 03:10PM UTC 295
23.03
GitHub Action Run
15 daemon-5-space-agent - 25867795621.15 14 May 2026 03:08PM UTC 166
28.79
GitHub Action Run
16 daemon-online-components - 25867795621.16 14 May 2026 03:09PM UTC 295
17.54
GitHub Action Run
17 daemon-online-sdk - 25867795621.17 14 May 2026 03:09PM UTC 295
21.94
GitHub Action Run
18 daemon-online-rpc-3 - 25867795621.18 14 May 2026 03:09PM UTC 295
19.48
GitHub Action Run
19 daemon-online-features-1 - 25867795621.19 14 May 2026 03:09PM UTC 295
22.8
GitHub Action Run
20 daemon-online-space-1 - 25867795621.20 14 May 2026 03:09PM UTC 295
32.76
GitHub Action Run
21 daemon-online-rpc-2 - 25867795621.21 14 May 2026 03:10PM UTC 295
23.31
GitHub Action Run
22 daemon-online-rewind-1 - 25867795621.22 14 May 2026 03:09PM UTC 295
22.24
GitHub Action Run
23 daemon-online-convo - 25867795621.23 14 May 2026 03:09PM UTC 295
21.93
GitHub Action Run
24 daemon-online-mcp - 25867795621.24 14 May 2026 03:08PM UTC 295
17.97
GitHub Action Run
25 daemon-2-handlers - 25867795621.25 14 May 2026 03:08PM UTC 175
49.2
GitHub Action Run
26 daemon-online-features-2 - 25867795621.26 14 May 2026 03:09PM UTC 295
22.39
GitHub Action Run
27 daemon-5-space-workflow - 25867795621.27 14 May 2026 03:08PM UTC 103
32.84
GitHub Action Run
28 daemon-online-agent-sdk - 25867795621.28 14 May 2026 03:09PM UTC 295
22.06
GitHub Action Run
Source Files on build 25867795621
  • Tree
  • List 523
  • Changed 14
  • Source Changed 9
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25867795621
  • e3c0b128 on github
  • Prev Build on dev (#25846753320)
  • Next Build on dev (#25884037273)
  • 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