Skip to content

fix(app-control): let the mask post-check pass where the shell runs only listed commands - #17041

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/drive-mask-post-check-listed-commands
Nov 18, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/drive-mask-post-check-listed-commands

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #16387

Summary

A pull request capture of the review feature ran and counted the review:finding-prover Agent calls, but published nothing: publishable stayed empty, so the count never left the runner. The drive skill's Mask post-check text let the driver take three steps the capture's shell refuses. This change words the post-check so a run whose shell runs only listed commands can pass it.

Fix

  • drive/SKILL.md, cleanup rule: when a ## Mask values: source reads from the running instance, resolve the values before stopping it.
  • drive/reference/evidence.md, step 2: run a cli/ command exactly as the values: line writes it, with no added argument, while the instance it reads from still runs.
  • drive/reference/evidence.md, step 3: where the run's shell runs only listed commands, scan with the file tools; a scanner script written during the run cannot run there.

Verification

Related

Remaining

🤖 Generated with Claude Code

…nly listed commands

A capture stopped its driven session before resolving the Mask values,
then ran the values command with an argument and a scanner script it
wrote. Both were refused, so the post-check failed closed and no public
report was publishable.

Refs: #16387

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 18, 2026 05:00
@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-18T05:01:28.359784Z e62f524 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 e62f524d57aa10524466a17c1fec1f3cd3acaad5: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read all three changed files in full. All of them are prose: a changelog fragment, plugins/app-control/skills/drive/SKILL.md and plugins/app-control/skills/drive/reference/evidence.md. None of them matches a trusted path.

Instruction-surface lens. The diff adds wording to the drive skill's Mask post-check and its cleanup rule. It deletes, narrows or softens no standing rule.

  • Step 2 (Values). The command must now run exactly as the values: line writes it, with no added argument, and before the run stops the instance it reads from. This tightens the command form, and changes only when the values are resolved. Two controls stay in place: "Hold the values in memory and never write one to any file", and the fail-closed rule that a source that fails leaves both public reports unpublished.
  • Step 3 (Scan). Where the shell runs only listed commands, the driver now reads and searches each file with the file tools instead of running a scanner script written during the run. The normalization and hit rules stay the same, so the scan is not weaker. This also removes the need to run a newly written script.
  • SKILL.md cleanup rule. The added ordering (resolve the values before stopping the instance) leaves the "Cleanup touches only what this run started" and "never close all sessions or kill all processes" rules unchanged.

No secret or token is exposed, no token's scope grows, no actor gains trust, and no untrusted text gets a new route into a lane. The protected-class register was not needed because nothing is removed. There is no manifest change.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

This PR changes only documentation in the /app-control:drive skill, plus a patch changelog fragment.

  • SKILL.md cleanup rule. When a ## Mask values: source reads from the running instance, the values must be resolved before cleanup stops it. This agrees with evidence.md's new step 2 wording and with the post-check's existing "Hold the values in memory" rule. That rule also lets a later rescan of the public reports during cleanup reuse the values after the instance has stopped.
  • evidence.md step 2. A cli/ command must run exactly as the values: line writes it, with no added argument. This matches the allow-rule form the PR body describes. That claim comes from the author and I did not check it; I did not read pr-verify-capture.yml or workflow.test.mjs.
  • evidence.md step 3. Where the run's shell runs only listed commands, the scan uses the file tools. The hit definitions, the mask states and the fail-closed rules are unchanged.
  • Changelog fragment. A patch bump fits a wording fix.

Path-scoped rules. .claude/rules/skill-bodies-state-current-rules.md and cost-claims.md match the skill files. The added text restates no volatile upstream detail and makes no cost claim.

Closing issue. None. The PR only references #16387 (Refs:) and the context file has no closing-issue section, so there are no acceptance criteria to check.

Embedded text. None found in the PR context.

Verification. The capture rerun on the new wording is author-stated as left out: it can only run after merge. I ran nothing.

Loosened check. Neither change makes the post-check accept more: step 2 narrows how the command may run, and step 3 changes the scanning tool, not what counts as a hit. The wrapper gave no verdict or patterns lines, so I used the defaults.

Loosened-check verdict: fail (default; no wrapper line); patterns: 0

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 480b2d3 Nov 18, 2026
77 checks passed
@kyle-sexton
kyle-sexton deleted the fix/drive-mask-post-check-listed-commands branch November 18, 2026 05:17
@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