Skip to content

Suppress intentional SC2086 in hippo MCP script - #74742

Merged
pelikhan merged 2 commits into
mainfrom
copilot/static-analysis-fix-shellcheck-suppress-sc2086
Nov 4, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/static-analysis-fix-shellcheck-suppress-sc2086

Conversation

Copilot AI commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

ShellCheck flags the hippo MCP script’s unquoted $INPUT_ARGS, but quoting it would collapse the caller-provided command into one argument and break CLI invocations.

  • Change: Add a scoped SC2086 suppression with a rationale in the shared script, and regenerate both importing workflow lockfiles.

    # shellcheck disable=SC2086 # INPUT_ARGS intentionally word-splits into multiple hippo CLI arguments
    hippo $INPUT_ARGS

Copilot AI changed the title [WIP] Fix shellcheck to suppress SC2086 on intentional hippo CLI arg splitting Suppress intentional SC2086 in hippo MCP script Nov 4, 2026
Copilot AI requested a review from gh-aw-bot November 4, 2026 04:41
@pelikhan
pelikhan marked this pull request as ready for review November 4, 2026 05:50
Copilot AI adaptive review requested due to automatic review settings November 4, 2026 05:50
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · routed: gpt56 max · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · routed: gpt56 max · ~2 AIC · ⌖ ~1 AIC · ⊞ 118 · ◷

Generated by Ponytail Reviewer for #74742

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · routed: gpt56 max · ~1 AIC · ⌖ ~1 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-04T05:53:09Z
review_event: REQUEST_CHANGES
top_themes:
  - unquoted INPUT_ARGS breaks documented multi-word quoted arguments
files_reviewed:
  - .github/workflows/shared/hippo-memory.md
  - .github/workflows/daily-hippo-learn.lock.yml
  - .github/workflows/hippo-embed.lock.yml
comment_count: 1

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷
Comment /review to run again

@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.

The scoped ShellCheck suppression is clear, but the underlying invocation still contradicts the documented quoted-argument interface.

Highlights
  • INPUT_ARGS is unquoted and embedded quotes are not re-parsed, so multi-word recall and remember inputs are split incorrectly.
  • Parse arguments quote-aware into an array, or revise the documented interface to remove unsupported quoting.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again

required: true
run: |
echo "hippo $INPUT_ARGS"
# shellcheck disable=SC2086 # INPUT_ARGS intentionally word-splits into multiple hippo CLI arguments

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.

This suppression blesses an expansion that breaks the quoted multi-word arguments promised by the input examples, causing commands such as recall "api errors" and remember "always run make fmt before committing" to pass literal quote fragments as separate arguments.

💡 Preserve documented argument quoting

INPUT_ARGS is expanded after the shell has already parsed the command, so embedded quotes are not interpreted as grouping syntax; they become part of split words. Parse the string with a quote-aware splitter into an array and invoke hippo "${args[@]}" (without eval), or remove the quoted-argument examples and explicitly document the limitation. Otherwise recalls and memory writes can silently operate on the wrong text.

@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.

Skills-Based Review 🧠

Applied /diagnosing-bugs and /tdd. No actionable issues found.

📋 Validation
  • The scoped SC2086 suppression is attached to the intentional word-splitting command.
  • The rationale is clear and preserves the existing CLI argument behavior.
  • The suppression was validated under Bash with ShellCheck 0.11.0.
  • No duplicate review comments were present.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: gpt56 high · ~4 AIC · ⌖ ~1 AIC · ⊞ 5.4K
Comment /matt to run again

Copilot AI 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.

🟡 Changes recommended

A moderate active finding remains because the documented string-based argument handling misparses quoted values and permits pathname expansion, and the current suppression does not address the bug.

1 open issue
What changed in this PR

This pull request suppresses ShellCheck SC2086 in the shared Hippo MCP script and regenerates the two importing workflow lockfiles. The suppression preserves unquoted argument expansion but masks an argument-handling defect affecting quoted inputs and pathname globbing.

Changes:

  • Added a scoped SC2086 suppression with rationale.
  • Regenerated both Hippo workflow lockfiles.
  • Requires replacing the string-based shell argument contract with structured, safely parsed arguments.

This pull request requires changes.

File Summary
.github/​workflows/​shared/​hippo-memory.md Adds the suppression, but the underlying unquoted expansion mishandles documented quoted arguments.
.github/​workflows/​hippo-embed.lock.yml Regenerated handler retains the argument-parsing defect from the shared script.
.github/​workflows/​daily-hippo-learn.lock.yml Regenerated handler retains the argument-parsing defect from the shared script.

Review effort: Lite (auto)

required: true
run: |
echo "hippo $INPUT_ARGS"
# shellcheck disable=SC2086 # INPUT_ARGS intentionally word-splits into multiple hippo CLI arguments
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Note

The pull request was not created — a fallback review issue was created instead due to protected file changes: #74780

PR Finisher

Submitted for publication (staged, not confirmed): merged main and replaced the SC2086 suppression. The hippo MCP tool now takes args as an array of strings and runs via execFile with no shell. This follows ADR 67894 and go-make.md. Callers in daily-hippo-learn.md and hippo-embed.md are updated to array form.

Validation: make recompile succeeded. make agent-report-progress stopped at the workflow drift check because generated .lock.yml files were deliberately excluded from the push. Unit tests were not reached.

Human actions: regenerate lock files (make recompile) and re-trigger CI. Review threads are left open until the fix is published.

PR finisher dispatch requested for the following outstanding work (summary routed from Sous Chef).

Sous-chef head: a27878c
Sous-chef work: 07c06b293f0dd616499f7c66c996096dc2138daf8374833d52612a3b96856d9a 99b9eab2a532ecbdf16668f2aa5a1d4a90e74872f74b3c81137b0f7f725756c1
Sous-chef state: 50fc9dde0c6ac9057fbece9f3d3d86902a398cca683bfdee2e12c9d4bd7d87b3

Generated by 🏁 PR Finisher · copilot · auto · ~23 AIC · ⌖ ~2 AIC · ⊞ 10.7K · ◷

@pelikhan
pelikhan merged commit 45345c3 into main Nov 4, 2026
55 checks passed
@pelikhan
pelikhan deleted the copilot/static-analysis-fix-shellcheck-suppress-sc2086 branch November 4, 2026 07:06
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.0

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.

[static-analysis] fix(shellcheck): suppress SC2086 on intentional hippo CLI arg splitting

4 participants