Skip to content

Scope the first tools/list to this server's backend and report unreadable connections (0.7.12) - #15

Merged
MainSequenceDev merged 2 commits into
mainfrom
codex/registry-defects
Oct 26, 2026
Merged

MainSequenceDev merged 2 commits into
mainfrom
codex/registry-defects

Conversation

@MainSequenceDev

@MainSequenceDev MainSequenceDev commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Consumes devtools 0.3.14 (mainsequence-sdk/mainsequence-devtools#26), which fixes the two registry defects found while accepting 0.7.9:

  • First tools/list scoped to this server's backend. The server awaits the catalog's ready() (backend resolved from the environment, the shared preferences or the default, no network) before answering, so another backend's cached tools never appear in a chat. 0.7.9 listed every cached scope — 144 tools from two backends on the workstation — until its first refresh.
  • Unreadable connections are reported, never dropped. A connection whose catalog cannot be read, or is not read within the 300 s refresh budget, keeps its earlier tools and is marked unavailable in the catalog file; mainsequence_open → registeredTools reports it from any process. 0.7.9 once wrote a scope empty after a 773 s refresh and reported nothing.

Docs: docs/agents-tools-panel.md describes both behaviours (version-free, per check-docs).

Testing

  • npm run build (vendors devtools 0.3.14 from a local pack), node --test tests/*.test.cjs: 57 pass. The packaged-server test seeds the shared catalog with two backends and asserts that only this server's backend is listed.
  • node scripts/check-release.cjs, node scripts/check-docs.cjs pass. The marketplace stays at 0.7.11 until 0.7.12 is published.
  • Live: against the workstation's real shared catalog (three connections over two backends), a fresh server's first tools/list returned 103 tools = 16 + the 87 of its own backend; the other backend's ms_crm_contacts_list_183f8138 was absent.

Review notes

🤖 Generated with Claude Code

MainSequenceDev and others added 2 commits October 25, 2026 12:53
…able connections (0.7.12)

devtools 0.3.14 fixes the two registry defects found while accepting 0.7.9. The
server now awaits the catalog's ready(), which resolves its backend without a
network request the way auth-status does, before answering the first tools/list,
so another backend's cached tools never appear in a chat (0.7.9 listed every cached
scope until its first refresh). A connection whose catalog cannot be read, or is
not read within the 300 s refresh budget, keeps its earlier tools and is marked
unavailable in the catalog file; mainsequence_open → registeredTools reports it
from any process.

The packaged-server test now seeds the shared catalog with two backends and asserts
that only this server's backend is listed. The lockfile pins devtools 0.3.14 by the
local pack's integrity for this test run; it must be re-pinned from the registry
once 0.3.14 is published.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The registry archive of 0.3.14 differs in bytes from the local pack the branch
pinned for its test run (identical contents, different compression), as with
0.3.12. The lockfile now carries the integrity of the archive on the registry.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@MainSequenceDev
MainSequenceDev merged commit f621495 into main Oct 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant