Repository navigation
The mentor skill's reference names the read that lists differing definitions - #2298
Merged
Merged
Conversation
…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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of: #1765
Changelog category (leave one):
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-mentorskill namesmemory.definitions.disputes, called throughloom_op, for a namespace that holds two definitions of one name.Why
The reference table of the
loom-mentorskill has one row for "the namespace holds facts that disagree". It namesconflicts.listandconflicts.resolve, andconflicts.listnever lists two definitions of one name.memory.definitions.disputesis 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(vialoom_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.mdis the synced copy.mainis 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.pygainstest_the_mentor_skill_names_only_ops_the_server_serves. No test checked the ops the mentor skill names. It readsSKILL.mdandreference.mdof the skill with the functionskill.checkuses, fails on an op name the registry lacks, and fails when aloom_opcall that namesmemory.definitions.disputesis refused on a read-only connection, the connection that routes the fewest ops. Routing is asserted for that op alone: the same row namesconflicts.list, which is kept off MCP, and the skill says so.SKILL.mdof the skill is unchanged, so the text every session loads costs no more tokens; the reference is read on demand.loom_op's "no op reachable here" answer with the nearest names.Compatibility, rollout and rollback
mainalready serves:memory.definitions.disputes(org,namespace, optionalterm; the viewer role; a read that writes nothing).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_servesbefore the reference edit: 1 failed, onmemory.definitions.disputesmissing from the names ofreference.md. After the edit it passes.ruff formatandruff checkontests/unit/test_agent_instructions.py: clean.make typecheck: 0 errors.python -m scripts.codegen.agent_plugin_syncwrote one file, the Codex copy of the reference.agent_plugin_sync --check,standalone_skills --check,served_skills --checkandplugin_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 --teston 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'sbin/folder. With--strictthat warning fails the command, and it fails the same way on a copy of the plugin directory taken frommain, on Claude Code 2.1.337; this change touches no file underbin/.claude plugin validate .: passed with one warning, about the repository's rootCLAUDE.md, which this change does not touch.Not run:
loom-mentorplugin 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.agent-pluginsjob, which CI runs. The diff changes no hook,lib/orbin/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
make test-unitand applicable integration results are reported by CI; a full local run is not required before pushing.docs/reference/configuration.mdand thedocs/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).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 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.disputesthroughloom_op, in addition to the existingconflicts.list/conflicts.resolveguidance. That one-line addition is mirrored in both Claude Code and Codexloom-mentorreference.mdcopies.Claude and Codex plugin manifests are bumped to 1.2.189. A new unit test
test_the_mentor_skill_names_only_ops_the_server_servesensuresloom-mentoronly names ops the registry serves and thatmemory.definitions.disputesis reachable on a read-onlyloom_oproute.Reviewed by Cursor Bugbot for commit 0757e18. Bugbot is set up for automated code reviews on this repo. Configure here.