Skip to content

The mentor skill's reference names the read that lists differing definitions - #2298

Merged
zlareb1 merged 1 commit into
mainfrom
docs/mentor-names-definition-disputes
Dec 5, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
docs/mentor-names-definition-disputes

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Part of: #1765

Changelog category (leave one):

  • Improvement

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

The coding-agent plugins' loom-mentor skill names memory.definitions.disputes, called through loom_op, for a namespace that holds two definitions of one name.

Why

The reference table of the loom-mentor skill has one row for "the namespace holds facts that disagree". It names conflicts.list and conflicts.resolve, and conflicts.list never lists two definitions of one name. memory.definitions.disputes is the read that lists them, and no skill text named it, so an agent asked about differing definitions had no op to call.

The row gains one clause: "two definitions of one name: memory.definitions.disputes (via loom_op)". The op is on no MCP toolset's listing, so the skill names the route a session has: loom_op {op, arguments}.

Scope and risk

  • integrations/claude-code-plugin/skills/loom-mentor/reference.md: the one row. integrations/codex-plugin/skills/loom-mentor/reference.md is the synced copy.
  • Both plugin manifests take version 1.2.189. main is at 1.2.187 and one open pull request holds 1.2.188 (The plugin notes the cost of a pytest run that follows other commands in its shell call, and of a data-driven test file #2286); the version at the head of every open pull request was read before the push, and none is above 1.2.188.
  • tests/unit/test_agent_instructions.py gains test_the_mentor_skill_names_only_ops_the_server_serves. No test checked the ops the mentor skill names. It reads SKILL.md and reference.md of the skill with the function skill.check uses, fails on an op name the registry lacks, and fails when a loom_op call that names memory.definitions.disputes is refused on a read-only connection, the connection that routes the fewest ops. Routing is asserted for that op alone: the same row names conflicts.list, which is kept off MCP, and the skill says so.
  • Not touched: the server, the op, its MCP listing, the SDKs, the command line and the dashboard. SKILL.md of the skill is unchanged, so the text every session loads costs no more tokens; the reference is read on demand.
  • What could break: nothing at run time. A plugin on this version against a server that does not serve the op yet gets loom_op's "no op reachable here" answer with the nearest names.

Compatibility, rollout and rollback

  • Wire: none. No op, field, table or setting is added or changed. The skill names an op main already serves: memory.definitions.disputes (org, namespace, optional term; the viewer role; a read that writes nothing).
  • Operator steps: none.
  • Rollback: reverting leaves nothing behind. The plugin version does not go back: a later change takes a higher one.

Tests

Run on the pushed tree, with no ClickHouse and no server:

  • pytest tests/unit/test_agent_instructions.py -k test_the_mentor_skill_names_only_ops_the_server_serves before the reference edit: 1 failed, on memory.definitions.disputes missing from the names of reference.md. After the edit it passes.
  • ruff format and ruff check on tests/unit/test_agent_instructions.py: clean. make typecheck: 0 errors.
  • python -m scripts.codegen.agent_plugin_sync wrote one file, the Codex copy of the reference. agent_plugin_sync --check, standalone_skills --check, served_skills --check and plugin_eval_tools --check: each reports its files current.
  • pytest -n 2 tests/unit/test_agent_instructions.py tests/unit/test_codex_plugin.py tests/unit/test_plugin_agrees_with_server.py tests/unit/test_skill_format_repository_folders.py tests/unit/test_refusals_as_results.py tests/unit/test_published_links.py tests/unit/test_skill_eval.py tests/unit/test_cli_install.py tests/unit/test_mcp_served_skills.py tests/unit/test_plugin_eval_commands.py tests/unit/test_plugin_eval_graders.py tests/unit/test_release_prepare.py tests/unit/test_standalone_skills.py tests/unit/test_package_contracts.py tests/unit/test_op_transport_contract.py tests/unit/test_tunable_constants.py tests/unit/test_store_names_refused.py tests/unit/test_degraded_unnoted.py tests/unit/test_public_copy.py tests/unit/test_doc_links.py tests/analyzer: 993 passed, 12 skipped.
  • node --test on the plugin tests that read a manifest or the mentor skill (mentor-hint, hooks-json, skills, server-version, plugin-options): 48 passed.
  • claude plugin validate integrations/claude-code-plugin --profile directory: passed with one warning, about the files in the plugin's bin/ folder. With --strict that warning fails the command, and it fails the same way on a copy of the plugin directory taken from main, on Claude Code 2.1.337; this change touches no file under bin/. claude plugin validate .: passed with one warning, about the repository's root CLAUDE.md, which this change does not touch.

Not run:

  • The loom-mentor plugin eval (claude plugin eval integrations/claude-code-plugin --trust-plugin --no-publish --scaffold --tag loom-mentor --runs 3 --threshold 1.0 --json mentor-evals-result.json). It is a paid model run, and it is left to the QA pass that follows the merge of this series of changes.
  • The full unit suite and the other checks of the agent-plugins job, which CI runs. The diff changes no hook, lib/ or bin/ file.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. Checked by reading the op's declaration and its MCP routing on main, by running the tests above, and by reading the whole diff against the plugin rule.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Local format, lint, type checks and focused tests pass. The full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Generated files are regenerated in this PR, not by hand: the SDK op tables, docs/reference/configuration.md and the docs/reference/ tables (python scripts/codegen/docs_reference.py), the reach manifest, schemas/schema.sql (make schema-dump), the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py) and the standalone skill bundles (python3 scripts/codegen/standalone_skills.py).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.
  • I signed the Contributor License Agreement (CLA) if CLA assistant requested a signature.

🤖 Generated with Claude Code


Note

Low Risk
Documentation and plugin version bumps only; no server or wire changes. Older servers may refuse the newly documented op until upgraded.

Overview
When a namespace has conflicting facts, agents can now be routed to list two competing definitions of the same name via memory.definitions.disputes through loom_op, in addition to the existing conflicts.list / conflicts.resolve guidance. That one-line addition is mirrored in both Claude Code and Codex loom-mentor reference.md copies.

Claude and Codex plugin manifests are bumped to 1.2.189. A new unit test test_the_mentor_skill_names_only_ops_the_server_serves ensures loom-mentor only names ops the registry serves and that memory.definitions.disputes is reachable on a read-only loom_op route.

Reviewed by Cursor Bugbot for commit 0757e18. Bugbot is set up for automated code reviews on this repo. Configure here.

…nitions

conflicts.list never lists two definitions of one name, and it was the only
read the reference row "the namespace holds facts that disagree" named. The
row gains "two definitions of one name: memory.definitions.disputes (via
loom_op)", an op no MCP toolset lists.

A unit test reads the mentor skill's SKILL.md and reference.md: every op they
name is in the registry, and a loom_op call that names
memory.definitions.disputes is routed to the op on a read-only connection.

Both plugin manifests take 1.2.189.

Signed-off-by: Mohammad Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 5, 2026 5:32pm UTC
loom-telemetry Ready Ready Preview Dec 5, 2026 5:32pm UTC

Request Review

@zlareb1
zlareb1 merged commit bbaa960 into main Dec 5, 2026
83 of 84 checks passed
@zlareb1
zlareb1 deleted the docs/mentor-names-definition-disputes branch December 5, 2026 17:45
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