Skip to content

fix(harness-config): match entry-diff start-mode note to the permission-modes table - #17992

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-17906-44933070544-1
Nov 21, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-17906-44933070544-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17906

Summary

Opened by the work-resolve-issue lane. The automode-entry-diff.sh DIFF-NOTE and the ps-entry-diff-precondition sample answers said Bedrock, Agent Platform, Foundry and apps gateway sessions never enter auto mode, and that only Pro, Max and Team plans start in it.

After review, the note no longer copies the start-mode table at all. It states the precondition (the diff applies only to a session that enters auto mode), names one run shape that never makes the transition (claude -p or the Agent SDK with no permission mode set), and points to https://code.claude.com/docs/en/permission-modes#which-mode-a-session-starts-in for the current conditions. That keeps it matching the live table as upstream changes it, including the 2.1.328 Opus 4.6 / Sonnet 4.6 addition the page did not yet show, and follows the skill-bodies-state-current-rules rule and criteria.md, which keeps no copy of the table.

Not verified

  • automode-entry-diff.test.sh not executed here (the lane runs no interpreter); its asserted substrings 'applies only to a session that ENTERS auto mode' and 'claude -p' are still in the note. Left to the PR's CI.
  • /evals:validate (eval-cases: validate-cases.py on plugins/harness-config/evals) and evals-schema are CI-only here; check-evals-quality takes JSON eval sets and the suite has none. Sample JSON escapes checked by reading. Left to the PR's CI.
  • Two existing comments still say auto mode is the starting mode in 'one of the seven documented run shapes' (automode-entry-diff.sh:284, automode-entry-diff.test.sh:407), which the current four-row table no longer matches. Not edited: changing a comment counts as adding one under…
  • The DIFF-NOTE does not name --dangerously-skip-permissions next to --permission-mode, or the v2.1.228 (v2.1.233 Windows) floor below which the built-in default is Manual on every plan; the page states both. Left out to keep the note short; the review called them minor.
  • check-affected skipped comment-hygiene (fetch denied), size-check (script missing), typos (not installed) and three validate-plugins steps that run code from the checked tree.
  • Tidy's code passes 1-3 found nothing to change (one echo string literal, JSON sample data); write-for-humans rewrote one fragment sentence; ai-slop fix had 0 findings to apply, so its guarded fix flow did not run.

Fix

  • plugins/harness-config/skills/audit-permission-state/scripts/automode-entry-diff.sh: the start-mode DIFF-NOTE states the precondition, one non-entering run shape and the live start-mode pointer instead of copied version gates, plans and providers; the comment above it no longer claims one of seven run shapes
  • plugins/harness-config/skills/audit-permission-state/scripts/automode-entry-diff.test.sh: the stale seven-run-shapes comment is rewritten, and a new assertion checks the note carries the start-mode pointer
  • plugins/harness-config/skills/audit-permission-state/SKILL.md: the Phase 3 sentence describes what the note now prints
  • plugins/harness-config/evals/ps-entry-diff-precondition/samples/precondition-stated.json: the two pass samples no longer list Bedrock, Google Cloud, Foundry, Enterprise plans or API keys as Manual-only; the second points to the start-mode table instead of copying its version gate and plan list
  • .changes/harness-config/work-resolve-issue-issue-17906-44933070544-1-2d2745e6.md: patch changelog fragment for harness-config, describing the pointer-based note

Verification

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

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • read https: //code.claude.com/docs/en/permission-modes: start-mode table (disableAutoMode -> default; claude -p / Agent SDK -> default; HIPAA-eligible session -> default on v2.1.285-v2.1.325; terminal/VS Code -> auto on v2.1.283+, earlier auto only on Pro/Max/Ultra/Team in sessions…
  • check-changelog-fragments: all 11 fragments valid
  • check-changed-skills: audit-permission-state PASS, 0 errors (4 pre-existing size warnings)
  • check-affected: 15 passed, 8 skipped (tool or network unavailable in the lane)
  • ai-slop detect.sh on the changelog fragment: 0 findings
  • fresh-context review subagent over the whole diff, page re-read: no wrong versions, plans or providers; HIPAA wording, claude -p version limit, signed-in gateway qualifier and two sample-vs-note gaps reported and fixed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44933070544

Left out: the items under Not verified.

Related

#17906

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

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17992 (incremental, 8d4b106..b0b8da1)

No security issues found. This lane already reviewed an earlier head, so this review only reports CRITICAL and IMPORTANT findings and drops SUGGESTION findings.

I read every hunk of both files in the incremental scope:

  • plugins/harness-config/skills/audit-permission-state/scripts/automode-entry-diff.sh: one shell comment line (# Start-mode table: <url>) is added above the existing DIFF-NOTE echo. A comment doesn't run, and the script's inputs, logic and output are unchanged.
  • plugins/harness-config/skills/audit-permission-state/scripts/automode-entry-diff.test.sh: the same comment line is added above the BASE_IN heredoc. Nothing new runs.

Other checks:

  • Trusted paths: neither changed file matches a TRUSTED PATHS glob.
  • Trust controls: the change touches no trust control, merge hold, token scope, kill switch or plugin manifest.
  • Standing instructions: nothing is deleted or loosened.
  • Prior findings: the earlier review of this lane reported 0 findings, so nothing is restated.
  • Spend: none.

critical-findings: 0

@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: 2 inline finding(s) on bcbb2c536bbf4567ab5d48aac0308f4bdaf57d57; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, 8d4b106 → b0b8da1): PR #17992

This lane has already reviewed an earlier head of this pull request, so this review reports blocking findings only.

No new findings.

I read both hunks of both files in scope. Each adds one comment line, # Start-mode table: https://code.claude.com/docs/en/permission-modes#which-mode-a-session-starts-in:

  • automode-entry-diff.sh, above the start-mode DIFF-NOTE.
  • automode-entry-diff.test.sh, above the BASE_IN fixture that goes with the precondition test.

These lines give the existing comments a link to the table they already mention. They change no runtime output and no test assertion. The new URL is the same one the note already prints. Neither comment copies any of the table's version gates, plans or providers, so the earlier copied-table finding stays fixed. The two settled threads (copied table, stale "seven run shapes" comment) are not reopened by this push.

The PR author says automode-entry-diff.test.sh and /evals:validate pass. I did not run either; both are left to CI.

Other checks:

  • Loosened checks: the push adds no assertion and removes none. Loosened checks would be marked: fail (the default, because the wrapper gave no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. No loosened_check_decision_record: line was given, so the citation requirement was not checked.
  • Plugin manifests: none changed.
  • Spend: none.
  • Embedded instructions: none found in the PR context, the settled threads or the prior findings.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback

Run 44935633438, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44935633438

Failed GitHub API calls

No failed call recorded by the run job's scripts.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM66asmE
Lane-Thread: PRRT_kwDOTCGFQM66asmF
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch

Run 44935633438, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 8d4b106
Run 44935633438

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 8d4b106.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback

Run 44935633438, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44935633438

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 8d4b106eaff46b10b146ac0fb376f16dccd70e17. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci

Run 44938302525, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44938302525

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch

Run 44938302525, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed b0b8da1
Run 44938302525

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head b0b8da1ccb16fb0985ced169031cd02bf5783368, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=LOW demote=false head=b0b8da1ccb16fb0985ced169031cd02bf5783368 rubric=10.4.5 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit c2a65a5 Nov 21, 2026
46 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17906-44933070544-1 branch November 21, 2026 20:26
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.

harness-config: automode-entry-diff DIFF-NOTE and its scored sample say third-party-provider sessions never enter auto mode (2.1.328)

0 participants