Skip to content

Clarify conflicts_pending review guidance - #2088

Open
fred-vu wants to merge 1 commit into
ClickHouse:mainfrom
fred-vu:codex/2076-conflicts-pending-hint
Open

fred-vu wants to merge 1 commit into
ClickHouse:mainfrom
fred-vu:codex/2076-conflicts-pending-hint

Conversation

@fred-vu

@fred-vu fred-vu commented Dec 3, 2026 •

Copy link
Copy Markdown

Closes: #2076

Changelog category

  • Bug Fix (user-visible misbehavior in a release)

Changelog entry

conflicts_pending now directs people to the dashboard Review queue to resolve unresolved conflicts.

Why

The hint advertised conflict operations that are unavailable over MCP and referred to a search penalty that is not configured. Pointing to the Review queue gives a usable next step. The unset penalty branch had no effect and is removed.

Scope and risk

This changes the conflicts_pending hint and removes the unused conflict-ranking parameter and SQL branch. MCP conflict access and resolution behavior remain unchanged; there are no storage or wire-surface changes. Search results are unchanged because the removed penalty was unset. The main risk is a future configuration expecting that removed, unused query field.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: revert this commit; no data or migration cleanup is needed.

Tests

  • Focused tests: LOOM_ENV_FILE= .venv/bin/python -m pytest tests/unit/test_mentor.py tests/unit/test_memory_prior_cap.py tests/unit/test_memory_search_service.py tests/unit/test_probation.py -q — 171 passed, 1 skipped.
  • Changed-file Ruff check and formatting check passed.
  • scripts/gates/mypy_gate.py passed with 0 errors after installing the locked code extra.
  • git diff --check passed.
  • Repository-wide ruff check . reports 28 findings in files outside this change; the changed files pass.

AI assistance in the code

  • AI-generated (OpenAI Codex wrote most of the diff). The contributor should review the diff and confirm they can explain every line before marking the checkbox.

  • 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. (Changed-file lint/format, type gate, and focused tests pass; repository-wide Ruff has the unrelated findings listed above.)
  • Generated files are not needed for this change.
  • No migration is introduced or changed.
  • No plugin-shipped behavior changes.
  • Frontend is unchanged.
  • Docs under docs/ do not require changes for this hint/search behavior fix.
  • Repository text adds no dates, people, host names, internal namespaces, ticket or decision numbers.
  • Commits are signed off with git commit -s.
  • I signed the Contributor License Agreement (CLA) if CLA assistant requested a signature.

Note

Low Risk
User-visible hint text and removed dead ranking code only; no wire or storage changes, and search behavior is unchanged because the penalty was never configured.

Overview
conflicts_pending now targets humans and the dashboard, not MCP conflict APIs. Hint copy tells users that both versions may show up in search and to resolve pairs in the Review queue; ops is empty and plane is set to conflicts so the UI still offers Open in Review queue. Mentor hints can carry an explicit plane (API/types/docs updated); brief assembly prefers h.plane over inferring from ops.

Search ranking no longer has a dormant conflict demotion path. conflicted_penalty is removed from SearchQuery, along with the status='conflicted' SQL term in fact_rank.py and related analyzer/unit tests—behavior was off by default. loom-mentor reference tables in Claude/Codex plugins match the new guidance; integration plugin versions bump to 1.2.177.

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

@vercel

vercel Bot commented Dec 3, 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 4, 2026 1:36pm UTC
loom-telemetry Ready Ready Preview Dec 4, 2026 1:36pm UTC

Request Review

@cla-assistant

cla-assistant Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@fred-vu
fred-vu marked this pull request as ready for review December 3, 2026 13:46

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 81d4495. Configure here.

Comment thread server/insights/app/mentor_rules.py Resolved
@zlareb1 zlareb1 self-assigned this Dec 3, 2026

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two changes are needed before merge.

  • P2 — mentor.brief derives the dashboard destination from hint_plane(h.ops). With an empty tuple it returns no plane, so a namespace admin loses the Open in Review queue button. Keep the conflicts destination for this hint while leaving the MCP operation list empty. Existing discussion
  • P3 — integrations/claude-code-plugin/skills/loom-mentor/reference.md:40 still tells agents that search penalizes conflicted rows. Update that guidance to match the hint and sync the Codex copy.

@cursor

cursor Bot commented Dec 3, 2026

Copy link
Copy Markdown

This PR is too large for Bugbot to review. It changes 292 lines and 456,209 characters. Split the change into smaller pull requests to get a review.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The analyzer snapshot is included on this head. The dashboard link and shipped mentor guidance still need the changes in the previous review.

zlareb1
zlareb1 previously approved these changes Dec 3, 2026

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dashboard keeps its Review queue link while the hint advertises no MCP operations. Both plugin copies describe the same behavior. The focused mentor, ranking, and probation suite passed 171 tests. One unchanged SQL test needs a newer ClickHouse binary and fails the same way on main locally.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub reports a merge conflict with main in tests/analyzer/shapes.txt. Please reconcile the analyzer changes and regenerate the snapshot so CI can validate the combined tree.

@fred-vu
fred-vu force-pushed the codex/2076-conflicts-pending-hint branch from ea39f83 to 99d6988 Compare December 3, 2026 19:07
zlareb1
zlareb1 previously approved these changes Dec 3, 2026

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rebased change keeps the Review queue link and the synchronized plugin guidance. The focused mentor, ranking, and updated analyzer checks passed 71 tests.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pinned Biome check finds the same unformatted dashboard assertion in this run and on clean main. The separate repair formats that assertion. Failed job · Repair #2107

@fred-vu
fred-vu force-pushed the codex/2076-conflicts-pending-hint branch from 99d6988 to 0530e2f Compare December 3, 2026 22:01
zlareb1
zlareb1 previously approved these changes Dec 3, 2026

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conflict hint keeps the Review queue link and lists no MCP operations. Both plugin copies match. The focused mentor, ranking, and probation tests passed 171 cases. One unchanged SQL test needs a local ClickHouse binary with enable_quantized_codec.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub reports merge conflicts with main in the two plugin manifests and tests/analyzer/shapes.txt. Please reconcile both manifests and regenerate the statement shapes so CI can validate the combined tree.

@fred-vu
fred-vu force-pushed the codex/2076-conflicts-pending-hint branch from 0530e2f to 9c693d5 Compare December 4, 2026 13:26
Signed-off-by: Hong Anh VU <fredvu@proton.me>
@fred-vu
fred-vu force-pushed the codex/2076-conflicts-pending-hint branch from 9c693d5 to 06aaebe Compare December 4, 2026 13:33

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Review queue link and ranking cleanup check out. The changed plugin guidance needs its own version.

"name": "loom",
"displayName": "ClickHouse Loom",
"version": "1.2.176",
"version": "1.2.177",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 — Main already ships plugin version 1.2.177. The simulated merge changes the shipped skill text and leaves both manifest versions at 1.2.177, so a client already on that version cannot pick up the new guidance as an update. Give both manifests the next unused plugin version.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The read-scope isolation test cannot build the worker approval and enrollment requests on this run or on the earlier main run. #2156 adds those request fields and keeps the refusal assertion. The failed run still blocks this head. PR job · Main job · Merged fix

This branch has not been deployed

No deployments
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.

conflicts_pending hint names ops MCP refuses and a search penalty that is off

2 participants