Skip to content

fix(review,visualization): treat melo-phone hosts as fleet hostnames in the publish gate - #12185

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/publish-gate-phone-host
Nov 2, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/publish-gate-phone-host

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: a one-line follow-up PR Lane found while driving #12093.

Summary

The publish gate's fleet-hostname pattern matched only the desk and laptop host classes, so a page or body naming a phone-class fleet host passed the machine-data check.

Fix

  • lib/publish-gate.mjs: the fleet hostname pattern now accepts desk, lap and phone.
  • The two generated copies (plugins/review/lib/publish-gate.mjs, plugins/visualization/lib/publish-gate.mjs) carry the same one-line change; scripts/sync-shared-copies.sh --check in CI confirms they match the canonical.
  • A positive test case for a phone host; patch fragments for review and visualization.

Verification

  • node --test lib/publish-gate.test.mjs: 122 of 122 pass, including the new case and the tracked-tree pass.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 1, 2026 19:25
…in the publish gate

The fleet hostname pattern matched only the desk and laptop host classes, so a
page naming the phone host passed the machine-data check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T00:55:04.901218Z 5f19995 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12185 (incremental, since 5f19995)

No security issues found.

This round adds the same one-line fleet hostname change, already reviewed in the canonical lib/publish-gate.mjs, to three more copies:

  • plugins/harness-ops/lib/publish-gate.mjs
  • plugins/source-control/lib/publish-gate.mjs
  • plugins/work-items/lib/publish-gate.mjs

It also adds one changelog fragment for each of those plugins.

What I checked:

  • Each copy: the pattern changes from /\bmelo-(?:desk|lap)-\d{3}\b/i to /\bmelo-(?:desk|lap|phone)-\d{3}\b/i (each copy's line 99). That matches the canonical change exactly.
  • Effect on the gate: adding a choice to the pattern can only make MACHINE_PATTERNS match more text. The gate now blocks more machine-specific content and lets through nothing it blocked before. This tightens the gate rather than loosening it.
  • Rest of the files: no other pattern, export or gate logic changes in any copy.
  • Regex speed: the pattern has a fixed shape (three fixed words, then exactly three digits, with word boundaries), so it cannot cause slow matching.
  • Copy under source-control: it sits in the same plugin as the babysit-prs trusted scripts, but it is not one of the listed trusted paths. The change only tightens it, so it widens no trust control.
  • Changelog fragments: plain-text patch notes that run nothing.

Other checks:

  • Instruction surface: no standing instruction is deleted, narrowed or softened.
  • Plugin manifests: none changed.
  • Embedded instructions: none found in the PR context.
  • Prior findings: the only earlier post was a clean summary with no findings, so nothing carries over.
  • Spend: none beyond normal CI.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 17ad6def48c0e3ef48618c7aee6fe7f4b45b740a: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #12185 (incremental, since 5f19995c)

This round fixes the blocking finding from the last round (prior comment): three registered generated copies of lib/publish-gate.mjs had not been synced. I found no new problems.

What I checked

  • All copies match now. scripts/shared-copies.txt lists five copies of lib/publish-gate.mjs (L467-L471). At this head, the canonical file and all five copies carry the same pattern, /\bmelo-(?:desk|lap|phone)-\d{3}\b/i. The three copies changed this round are work-items, harness-ops and source-control, each at L99. So melo-phone-NNN is now caught as machine data in every plugin's publish gate. I checked this by reading the files; I could not run scripts/sync-shared-copies.sh --check, because this lane has no shell.
  • Changelog fragments. This round adds three bump: patch fragments under .changes/harness-ops/, .changes/source-control/ and .changes/work-items/. Their text matches the existing review and visualization fragments word for word. A patch bump fits a one-line pattern fix.
  • Identical files. The three fragments are identical to each other, and so are the three publish-gate.mjs hunks. I read every hunk. Each file is a changelog fragment or a generated library copy in its own plugin, so where a file lives does not change what it does.
  • Security direction. The change only makes the gate stricter: more strings now count as machine-specific, so less gets through.
  • Other checks. No plugin manifest changed, and the PR closes no issue, so there are no acceptance criteria to check. There were no settled threads to apply.
  • Author's claim. The PR body says node --test lib/publish-gate.test.mjs passes 122 of 122. I did not run it, so that result is the author's and unverified.

Prior findings: the one earlier finding is fixed by this round's change, so it is not posted again.

…ne-host pattern to the new copies

Main added three more publish-gate.mjs copies after this branch started; carry
the same fleet-hostname change to them, with a patch fragment each.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 00f9939 Nov 2, 2026
46 checks passed
@kyle-sexton
kyle-sexton deleted the fix/publish-gate-phone-host branch November 2, 2026 01:54
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 2, survived 3, timeout 0, no coverage 0, invalid 0, not run 2.
Covered-code score 40%; mutation score 40%.

File Killed Survived Timeout No coverage Invalid Not run
lib/publish-gate.mjs 0 0 0 0 0 1
plugins/skill-quality/lib/parse-concern-value.sh 0 1 0 0 0 0
plugins/skill-quality/lib/resolve-convention-home.sh 0 0 0 0 0 1
plugins/skill-quality/scripts/check-skill.sh 2 2 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/skill-quality/scripts/check-skill.sh:2598 ROR productive input-gap
plugins/skill-quality/scripts/check-skill.sh:2624 ROR productive input-gap
plugins/skill-quality/lib/parse-concern-value.sh:113 SBR productive input-gap

The run's summary has the full report.

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