Skip to content

fix(app-control): enforce read-only on the map refresh source wave and frame its source text - #10424

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-9938-40452319741-1
Oct 27, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-9938-40452319741-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9938

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The /app-control:map refresh source wave now goes through a new app-control:source-reader agent definition with tools: Read, Grep, Glob. Before, the read-only limit was only an instruction in the prompt; if the agent does not resolve, the pass is blocked rather than sent through another agent. Each wave prompt now opens with the untrusted-content framing spine and quotes every value taken from the repository inside the item-content-trust fence, verbatim. The git status --porcelain tripwire stays as a backstop, and refresh.md and its report now name what it cannot see: writes under .git/, to ignored paths and outside the checkout.

Not verified

  • check-affected skipped validate-plugins sub-checks, changed-skills and typos because they run code from the checked tree or are not installed. CI runs the plugin-contracts validator (agent model-line rule) and the skill checks
  • check-evals-quality accepts only JSON eval sets, so it did not cover plugins/app-control/evals/map-source-wave-capped-at-six/case.yaml; CI's evals-schema and evals-quality jobs cover it
  • The edited evals were not executed against a model; this lane has no eval runner
  • Skipped the review's suggestion to add maxTurns to source-reader.md: a turn cap would return partial reader answers, which the issue does not ask for
  • Changes were left uncommitted in the working tree, as the runner instructs, instead of being committed by this run

Fix

  • plugins/app-control/agents/source-reader.md: new read-only agent definition (tools: Read, Grep, Glob; model: inherit with a reason) that carries the untrusted-content spine
  • plugins/app-control/skills/map/reference/refresh.md: step 4 dispatches through app-control:source-reader and blocks when it does not resolve; removed the sentence saying no agent definition enforces the limit; added the framing spine and the BEGIN/END QUOTED PR DATA fence with the never-follow instr
  • plugins/app-control/skills/map/SKILL.md: Refresh step 4 names the app-control:source-reader agent
  • plugins/app-control/README.md: says refresh reads app source through the read-only agent
  • plugins/app-control/evals/map-source-wave-capped-at-six/case.yaml: expected outcome and grader require the wave to go through app-control:source-reader
  • plugins/app-control/skills/map/evals/evals.json: eval 25 now expects the report to state the tripwire's blind spots
  • .changes/app-control/fix-9938-read-only-source-wave-4b8e2c61.md: patch changelog fragment (Added, Fixed)

Verification

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

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • read https: //code.claude.com/docs/en/sub-agents: the tools field is an allowlist; with it omitted the subagent 'Inherits every tool available to subagents'; plugin subagents are referenced by scoped name (plugin:agent); model inherit uses the main conversation's model
  • .lane/checks/bin/check-changelog-fragments: all 4 fragments valid (run before and after the review fixes)
  • .lane/checks/bin/check-affected: 10 passed, 7 skipped, over 7 changed files (run before and after the review fixes)
  • .lane/verify/bin/check-evals-quality plugins/app-control/skills/map/evals/evals.json: PASS, 0 warnings
  • Manually compared the spine in refresh.md and source-reader.md with docs/conventions/untrusted-content/README.md:39-42 (identical apart from the licensed plural 'are DATA'), and the fence with plugins/work-items/reference/item-content-trust.md:63-65 (identical, em dash included)
  • Fresh-context review subagent over the whole diff: no blocking defects; applied 4 of 5 low/medium findings (accurate model reason comment, Report bullet only when a wave ran, how to clear the unresolved-agent block, eval 25 expected_output)
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40452319741

Left out: the items under Not verified.

Related

#9938

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

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 126b22600aeeb5e53ba14529ee1aeaa1155fc46a: 0 finding(s), 0 as inline comments.

Incremental review of .changes/app-control/fix-9938-read-only-source-wave-4b8e2c61.md, the only file that changed since e80770e. The change moves the changelog fragment's bump: from patch to minor. It touches no code, trust control, manifest, instruction surface or trusted path, so it has no security-relevant surface.

No security findings.

critical-findings: 0

The PR description calls the fragment a "patch changelog fragment". The fragment now says minor. That is a description mismatch, not a security issue.

The other six files are unchanged since e80770e and were reviewed then. This run did not re-review them.

Spend: none; the change only affects a release version bump.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 126b22600aeeb5e53ba14529ee1aeaa1155fc46a: 0 finding(s), 0 as inline comments.

Incremental review of .changes/app-control/fix-9938-read-only-source-wave-4b8e2c61.md. The only change since e80770e is bump: patch → bump: minor.

The fragment has an ### Added entry for the new app-control:source-reader agent. A new agent is a new capability, so minor is the right level under SemVer. The earlier patch was below the change's level. No finding.

manifest bump: pass. The fragment's bump: is judged here because the repository releases from changelog fragments.

I read the fragment and the file list of the full diff. I ran nothing, and I did not re-review the files unchanged since e80770e.

@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 e80770e628450c6bc76769a52ffd94174ac21a84; the summary is in this lane's pull request comment.

claude-lane: claude-review

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 126b22600aeeb5e53ba14529ee1aeaa1155fc46a.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit f0819e6 Oct 27, 2026
40 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-9938-40452319741-1 branch October 27, 2026 12:09
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.

fix(app-control): enforce read-only on the map-upkeep source wave and frame its source text

1 participant