Skip to content

fix(harness-ops): give the one command form that resolves the mask values - #17103

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/control-claude-code-mask-values-command
Nov 18, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/control-claude-code-mask-values-command

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Refs: #16585

Summary

The pr-verify capture of #17057 drove /corrections:codify count-checks in print mode and passed, but published nothing, so its counts never left the runner. The driver ran the Mask values command with --session inside a pipeline, and the capture's allow list permits that command only with no argument. #17041 said "exactly as written" in the drive skill; the driver still read the --session flag from the CLI table. This puts the one working form in the driving tool's own ## Mask section, beside the values: line it reads.

Fix

plugins/harness-ops/skills/control-claude-code/SKILL.md, ## Mask: a paragraph under values: naming the exact command (node <skill-dir>/cli/account.mjs), when to run it (one session running, before Cleanup), and what not to add (--session, any other argument, a pipe, redirect or wrapper). A patch changelog fragment for harness-ops.

Verification

Related

Remaining

🤖 Generated with Claude Code

…lues

A capture's driver ran the values command with --session and a pipe,
which its allow list refuses, so the mask post-check failed closed and
the count-checks capture published nothing.

Refs: #16585

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 18, 2026 09:38
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T09:40:52.816184Z 21272ef 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

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

This change adds one instruction paragraph and a changelog fragment, and nothing else.

  • plugins/harness-ops/skills/control-claude-code/SKILL.md (## Mask): the new paragraph tells the driver to run the mask values: source in exactly one form, node <skill-dir>/cli/account.mjs, while one session is running and before ## Cleanup. It forbids --session, any other argument, and any pipe, redirect or wrapper.
    • Checked against the instruction-surface lens: nothing is deleted or softened.
      • The mask patterns are unchanged.
      • The values: source is unchanged.
      • The "frame that does not redraw exactly fails" rule is unchanged.
    • Effect: the paragraph only narrows how the command may be invoked, so the masked values are still collected before any capture is published.
    • Trust controls: no command allowlist, token, trust check or merge hold is touched.
  • .changes/harness-ops/fix-mask-values-command-form-7e3b9d20.md: a patch-level changelog entry. It has no security surface.

No plugin manifest, trust control, workflow or other trusted path is changed. The PR description is consistent with the diff and contains no embedded instructions to the lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 21272efc1b858d5a6c51b18a7e30991aadefba00: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

This PR adds one paragraph under the values: line in the ## Mask section of plugins/harness-ops/skills/control-claude-code/SKILL.md, plus a patch changelog fragment for harness-ops. The paragraph names the one command form that runs the mask values source: node <skill-dir>/cli/account.mjs, with no --session, no other argument, and no pipe, redirect or wrapper, run while one session is up and before Cleanup.

What I checked

  • The allow list. The capture's allow list is Bash(node ${{ github.workspace }}/.base/plugins/harness-ops/skills/control-claude-code/cli/account.mjs). It appears at pr-verify-capture.yml#L1409 and maintenance-verify-whole-map.yml#L1067. It allows only the bare form, and the test at workflow.test.mjs#L1832-L1847 pins that it refuses --session s1 and chained commands. The new text matches.
  • The script without --session. account.mjs#L8-L14 says that with no --session it uses "the one session running" and exits 1 when none or several are running. That supports the paragraph's "with one session running and before ## Cleanup stops it".
  • Existing test. The paragraph leaves the ^values: line unchanged, so the existing assertion at L1835 still holds.
  • Changelog fragment. bump: patch fits a documentation fix to skill text.

Verification: the PR's run logs and its test run are the author's claims; I did not verify them (this lane has no shell).

Closing issue: the PR context lists none (the description only says Refs: #16585), so there are no acceptance criteria to check.

Loosened checks: the prompt gave no loosened_check_verdict: or loosened_check_patterns: lines, so I used fail with no consumer entries. The diff loosens no check. Loosened-check verdict: fail (default, no loosening found).

Cost: none. This is a documentation-only change and spends nothing new.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit cdb3dee Nov 18, 2026
89 of 102 checks passed
@kyle-sexton
kyle-sexton deleted the fix/control-claude-code-mask-values-command branch November 18, 2026 09:52
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant