Skip to content

fix: Simplify the tools and server miro plugin code - #14981

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14660-42735233151-1
Nov 10, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-14660-42735233151-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes #14660

Summary

Opened by the work-resolve-issue lane from work-resolve-issue/issue-14660-42735233151-1, which an earlier run left with commits and no report. The model did not run again, and the earlier run's outcome could not be read, so this body carries none of its text.

Fix

The diff shows the changes.

Files the branch changes, from the compare listing; a denied path, which the merge lane refuses, is marked and listed first:

  • .changes/miro/work-resolve-issue-issue-14660-42735233151-1-275e40a7.md
  • plugins/miro/server/src/tools/boards.ts
  • plugins/miro/server/src/tools/overlaps.ts
  • plugins/miro/server/src/tools/sticky-notes.ts

Verification

The earlier run reported no checks here.

The runner ran each check from the base copy against dbeec4b:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The runner's leak scan read everything the branch changes since its merge base with the default branch and found nothing credential-shaped.

Left out: every check; ci-status, pr-verify and the security review lane check the head before it merges.

Related

#14660

Follow-ups

  • Pre-existing (advisory): **Advisory: no test covers the request bodies this PR rewrote (issue #14660, "Behavior is unchanged").** (thread)

Merge-Risk: max=HIGH demote=true head=dbeec4b449ddfcaecdd52a8bdafe14ef0c3901e4 rubric=8.3.3 rater=claude-opus-5-5 checker=claude-opus-5-5

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed dbeec4b449ddfcaecdd52a8bdafe14ef0c3901e4: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #14981 (head dbeec4b4)

No security issues found.

I read all four changed files in full: the changelog fragment and the three refactors in the miro MCP server.

  • plugins/miro/server/src/tools/boards.ts: buildSharingPolicy is now sharingPolicyField, which returns the whole { policy: … } spread, or {} when sharing_access is unset. The createBoard and updateBoard payloads are the same as before: the policy is only added when sharing_access is set, and the inviteToAccountAndBoardLinkAccess mapping has not changed. Sharing access is not widened.
  • plugins/miro/server/src/tools/overlaps.ts: formatItem now spreads ...item instead of listing the fields by name. I checked whether this could put more data in the tool response. It can't: OverlapItem has only id, content, x and y (L16-L21), and the only place items are built sets exactly those four fields (L81-L86). The detectOverlaps loop rewrite still compares the same pairs, and max_items still caps the scan at 2000 in the zod schema.
  • plugins/miro/server/src/tools/sticky-notes.ts: the update payload is now one object literal with conditional spreads. It holds the same keys, under the same undefined checks, as the old step-by-step version.
  • .changes/miro/…md: a patch-bump changelog fragment only.

No changed file matches a trusted-path glob. The diff changes no trust control, plugin manifest, workflow or instruction file. The PR context contains no embedded instructions aimed at the lane.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on dbeec4b449ddfcaecdd52a8bdafe14ef0c3901e4; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/miro/server/src/tools/boards.ts Resolved
@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed dbeec4b449ddfcaecdd52a8bdafe14ef0c3901e4: read 4 of 4 changed file(s); 1 finding(s), 1 as inline comments.

Code review: PR #14981, simplify the miro tools code (closes #14660)

I read all four changed files in full. I traced each rewrite against the base code by hand and ran no tests or build. Nothing blocks the merge. One advisory finding, inline on boards.ts, is about test coverage.

Behavior check, by reading the code

  • boards.ts: sharingPolicyField(sharing_access) uses the same truthiness test as the old inline sharing_access ? { policy: buildSharingPolicy(...) } : {}. It builds the same { policy: { sharingPolicy: { access, inviteToAccountAndBoardLinkAccess } } } shape for both createBoard and updateBoard. buildSharingPolicy was not exported, so no caller outside the file breaks.
  • overlaps.ts:
    • items.entries() with items.slice(i + 1) visits the same pairs in the same order as the old index loops. The removed undefined guards only satisfied noUncheckedIndexedAccess.
    • formatItem now spreads the item. OverlapItem items are built with exactly id, content, x, y (overlaps.ts:81-86), so the output JSON has the same keys in the same order. The exported detectOverlaps signature is unchanged.
    • The inner slice copies part of the array on each outer pass. At the 2000-item cap this costs little next to the O(n²) comparisons already there.
  • sticky-notes.ts: the object built from conditional spreads has the same keys (data, style, position), in the same order and under the same conditions, as the old step-by-step assignments.

Closing issue #14660 acceptance criteria

  • Behavior unchanged: met, as far as reading the code shows. But no test checks the request bodies this PR rewrote (see the inline comment), so the criterion isn't backed by a test that could fail.
  • Diff edits only listed files and fragments: met. boards.ts, overlaps.ts and sticky-notes.ts are all in the issue's list.
  • Within 400 lines and 15 files: met (about 40 changed lines across 3 code files and 1 fragment).
  • ci-status is green: not verified. This lane cannot read CI status. The PR body's two runner checks are claimed by the author and were not checked here.
  • Changelog fragment: met. .changes/miro/...275e40a7.md has bump: patch, ### Changed and the line "Internal simplification, no behavior change."

Other

  • No plugin manifest changed, so there are no manifest checks.
  • No embedded instructions found in the PR context. No prior findings, and this is the first review of this PR.
  • Security findings are left to the separate security review lane.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on dbeec4b.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head dbeec4b449ddfcaecdd52a8bdafe14ef0c3901e4, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for dbeec4b

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-14981-dbeec4b449ddfcaecdd52a8bdafe14ef0c3901e4, expires on 2026-12-10.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 10, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 10, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 9ba9be4 Nov 10, 2026
95 of 96 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14660-42735233151-1 branch November 10, 2026 05:55
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 9ba9be4b3bc59380a0172c8b559f5bd405652864; later checks count it verified from this comment.

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.

Simplify the tools and server miro plugin code

0 participants