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

lsm / neokai / 24755715908 / 23
82%
dev: 82%

Build:
DEFAULT BRANCH: dev
Ran 22 Apr 2026 01:43AM UTC
Files 277
Run time 6s
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

22 Apr 2026 01:40AM UTC coverage: 15.244%. First build
24755715908.23

push

github

web-flow
fix(db-query): expose space sessions and sdk_messages in space scope (#1581)

* fix(db-query): expose space sessions and sdk_messages in space scope

Extends the db-query MCP tool so that task agents in a Space can query
their own session data, which is needed for operational debugging (e.g.
checking if a research agent's conversation history still exists).

Changes:
- Add ScopeLikeConfig interface + scopeLike field to ScopeTableConfig for
  LIKE-based scope filtering (session ID prefix matching).
- Extend ScopeJoinConfig with optional likePrefix/likeSuffix for LIKE-
  based indirect scope filters.
- Add sessions, sdk_messages, session_groups, and session_group_members to
  SPACE_SCOPE_TABLES with space-scoped filtering:
    sessions          → WHERE id LIKE 'space:<id>:%'
    sdk_messages      → WHERE session_id LIKE 'space:<id>:%'
    session_groups    → WHERE id IN (SELECT group_id FROM
                          session_group_members WHERE session_id LIKE ?)
    session_group_members → WHERE session_id LIKE 'space:<id>:%'
- Remove sdk_messages, session_groups, session_group_members from
  EXCLUDED_TABLE_NAMES (they are now in space scope with filtering).
- Update all three filter-building paths in tools.ts (subquery wrapper,
  aggregate/DISTINCT direct injection) to handle scopeLike and LIKE joins.
- Existing sensitive column blacklist for sessions (config, session_context)
  remains in place for space scope access.
- sessions is intentionally accessible in both global scope (unfiltered,
  for Neo agent) and space scope (prefix-filtered, for space agents).

Tests: update scope-config.test.ts and add 15 new integration tests in
db-query-integration.test.ts covering filtering, isolation, blacklisting,
aggregates, and db_list/describe_table for the new tables.

* docs(db-query): comment why LIKE scopeValue escaping is not needed

The scopeValue fed into LIKE patterns is always a server-side
crypto.randomUUID() string set in the MCP server closure befo... (continued)

11644 of 76386 relevant lines covered (15.24%)

7.36 hits per line

Source Files on job daemon-online-features-3 - 24755715908.23
  • Tree
  • List 277
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24755715908
  • 7a0fe498 on github
  • Next Job for on dev (#24756060735.20)
  • 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