Skip to content

docs(session-flow): state the --bg auto-mode denial probe result in continue-in-background - #10874

Merged
kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-8444-40814868149-1
Oct 29, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-8444-40814868149-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8444

Summary

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

The owner's 2026-10-28 host run (Claude Code 2.1.312) showed that a claude --bg --permission-mode auto session given one classifier denial gets it back as a tool error, goes on to its next step, and ends its turn with no prompt. The denial shows in the transcript and in claude logs, and reaches the final hand-off only when the task asks for a report. The continue-in-background skill, its eval, a new probe record, AGENTS.md and the upstream record now state that result with its date and version. The skill still says it is unverified whether a session stops on a prompt after auto-mode fallback, because the probe made only one denial.

Not verified

  • Tidy not run. The change touches AGENTS.md, a listed shared path, and spans 3 areas (plugins/session-flow with .changes/session-flow, docs/upstream, AGENTS.md), over the 1-area cutoff.
  • Caveat for a reviewer: the AGENTS.md and docs/upstream lines are about --permission-prompts none, which the host run did not pass. They no longer say 'not probed' and they state the result with date and version, as the acceptance criteria ask. Both still say the flag's own --bg denial behavior i
  • Not changed: AGENTS.md:61-62 still says a lane whose action the classifier denies 'records the denial in its lane telemetry and moves on'. The probe confirmed 'moves on' but did not exercise lane telemetry (run C loaded no event-log hooks; in run D the hook block came first). The issue did not ask t
  • Auto-mode repeated-denial fallback under --bg is still unprobed. The skill keeps it as unverified, per the recorded decision for an inconclusive part.
  • Upstream docs pages were read only to 100000 characters (the WebFetch truncated both). A later section could mention background sessions.
  • CI-only checks (evals-schema, lychee-offline, line-citations, purged-em-dashes and the other whole-repo scanners) and the skipped changed-skills/validate-plugins checks are left to the PR's CI.
  • Review ran locally in a fresh-context subagent because review-venue.txt was absent; there is no build or test suite for these markdown/JSON changes.

Fix

  • plugins/session-flow/skills/continue-in-background/reference/denial-probe.md: new probe record. Lists the four runs (A to D) with config, what stopped the denied step, and a verdict; covers run C's case and control results, where the denial showed up, and the side findings. Each decision row has a p
  • plugins/session-flow/skills/continue-in-background/SKILL.md: launch step 2 now states the probe result: one denial does not stop the session; it is in the transcript and claude logs; it reaches the final hand-off only when the task reports it. The fallback stays unverified. The step keeps both doc
  • plugins/session-flow/skills/continue-in-background/evals/evals.json: case 1's denied-action expectation now matches the new statement. It still fails a report that says nothing about denied actions, and one that promises the final hand-off.
  • AGENTS.md: the --permission-prompts none sentence no longer says 'not probed'. It now states the 2026-10-28 / 2.1.312 host-run result, links the probe record, and says the run did not pass that flag, so what a --bg lane does with the flag is still unverified.
  • docs/upstream/claude-code.md: the Adopted --permission-prompts none row now states the same result with date, version and #8444 in place of 'denial under --bg not probed', and says denial with the flag under --bg is still unverified.
  • .changes/session-flow/docs-8444-bg-denial-probe-4d2a91c7.md: new patch changelog fragment for session-flow.

Verification

The runner ran each check from the base copy against 0bb39eb:

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

The run reports:

  • read https: //code.claude.com/docs/en/permission-modes: the 'When auto mode falls back' section covers a blocked action in an interactive session (notification, Recently denied entry), the repeated-block fallback, and a -p run that keeps working. In the first 100000 characters read, it says nothin
  • read https: //code.claude.com/docs/en/agent-view: the 'Permission mode, model, and effort' section says a background session takes its permission mode from how it was dispatched. The page covers sessions waiting on a permission prompt ('Needs input', attach to answer). In the first 100000 characters
  • check-changelog-fragments: all 29 fragments valid (run before and after the review fixes)
  • check-affected: 11 passed, 7 skipped over 6 changed files (run before and after the review fixes)
  • check-evals-quality on continue-in-background/evals/evals.json: PASS, with 3 warnings, all in cases 3 and 17, which this change did not touch
  • Grep for line citations into AGENTS.md:6x-7x, continue-in-background/SKILL.md:N and docs/upstream/claude-code.md:9x-1xx: none found, so no citation moved
  • fresh-context review subagent over the whole diff: it confirmed the SKILL.md facts against the host-run record, compliance with skill-bodies-state-current-rules, the eval match, and the fragment format. I applied its confirmed findings: the flag's --bg behavior kept as unverified in AGENTS.md and
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40814868149

Left out: the items under Not verified.

Related

#8444

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

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review of #10874: no security findings.

critical-findings: 0

I read the full diff (6 files) and the PR context.

  • Scope. The change is documentation and an eval expectation: AGENTS.md, docs/upstream/claude-code.md, the continue-in-background SKILL.md, its evals.json and a new reference/denial-probe.md. It also adds a changelog fragment. No script, workflow, hook, token-scope, kill-switch or merge-hold file changed. No plugin.json or marketplace.json changed, so there are no manifest <field> lines.
  • Trusted paths. AGENTS.md is the only changed file that matches a trusted-path glob. I read its whole hunk. It replaces "that a --bg lane denies with it is not probed" with the dated host-run result (2026-10-28, Claude Code 2.1.312). It says the run did not pass --permission-prompts none, so that flag's behaviour under --bg is still unverified. The adjacent rules are untouched: "Never use bypass mode or --dangerously-skip-permissions", the rule against hook ask and permissions.ask rules in lanes, and the untrusted-text warning.
  • Instruction-surface lens. No standing rule is deleted, narrowed or softened. The edit only replaces "not probed" with an observed result and keeps the unverified parts marked. I did not read docs/conventions/instruction-exception-register/README.md, because no rule was removed. The SKILL.md step still passes --permission-mode auto and never promises that a denial reaches the final hand-off. The eval still fails a report that says nothing about denied actions, and still fails one that promises the hand-off.
  • Behavior. The launch report now tells the user that a denied action does not stop the session. That claim rests on one probe run and is dated and versioned. It does not change the command's permission flags or the permission mode.
  • Embedded text. The PR context contains no instruction aimed at the lane.
  • Spend. No billing or paid-plan change. No hold.

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: no blocking findings

This is a docs-only change. It covers a changelog fragment, AGENTS.md, docs/upstream/claude-code.md, the continue-in-background SKILL.md and evals, and a new probe record. I read the full diff and the PR context. I did not run any checks, and the CI results listed in the PR body are the author's claims, not mine.

Closing issue #8444, criteria checked

  • SKILL.md states the probe result: met. Launch step 2 now says the session continues past a denial, and the denial is in the transcript and claude logs. It reaches the final hand-off only when the task reports it. The step keeps both docs pointers, gives the date (2026-10-28) and version (2.1.312), and keeps the repeated-denial fallback as unverified. It also points to the new reference/denial-probe.md.
  • Eval expectation matches and still fails a silent report: met. The expectation at evals.json:14 names the new statement. It still fails a report that says nothing about denied actions, and one that promises the final hand-off. I can't run the eval, so this rests on the expectation text.
  • AGENTS.md and the docs/upstream/claude-code.md row no longer say "not probed", and state the result with date and version: met in both files. The text correctly says the host run did not pass --permission-prompts none, and that the flag's own --bg behavior is still unverified.

Path-scoped rule: skill-bodies-state-current-rules.md

  • The SKILL.md record has a pointer with section anchors, an as-of date and a recheck trigger. The probe observation names its probe, so the "probe observation names no probe" defect doesn't apply.
  • The new Pointer / As of / Recheck trigger sub-bullets follow the same shape as the nearby goal-probe record.
  • Changelog fragment: bump: patch with a ### Changed entry fits a docs and report-wording change.

Notes, not counted as findings

  • Narrow evidence base: the SKILL.md statement rests on one pass, run C. That run excluded user settings (--setting-sources project,local --settings '{}'). Runs A, B and D, which used the full user config, never produced a classifier denial. The probe record discloses this, but the SKILL.md sentence reads as a general property of launched sessions. That is acceptable given the "as of" stamp and the n=1 caveat. A later probe under the full user config would be worth having.
  • AGENTS.md lane telemetry claim unchanged: AGENTS.md:61-62 still says a lane "records the denial in its lane telemetry". The probe did not exercise telemetry. The author already flagged this.
  • Partial docs read: the docs pages were read only to 100000 characters, and the record says a full read is owed. The issue's decision comment says the owner read both pages in full on 2026-10-26 and found no statement. The wording is conservative, so this causes no harm.
  • Cost: no billing or paid-plan change. No hold.

No trusted-path file in the change alters a gate or a credential path. AGENTS.md and the docs/ files are prose only.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 2a7356e22b904f8bbf63a33ecb0553256fce4e4a. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate holds it on its risk score (evidence-unbound:claude-review: not bound: lane-source-changed; evidence-unbound:claude-security-review: not bound: lane-source-changed)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 0bb39eb.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6xa-yL
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on 2a7356e.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head dcaf7e250f97409b77b08d768b7fa200096a34c8. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate holds it on its risk score (unreadable: RuntimeError: #10874 force pushes: unread or past one page)

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 29, 2026
@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 29, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit a5ca2e8 Oct 29, 2026
60 of 61 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-8444-40814868149-1 branch October 29, 2026 17:57
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 2, survived 2, timeout 0, no coverage 0, invalid 0, not run 1.
Covered-code score 50%; mutation score 50%.

File Killed Survived Timeout No coverage Invalid Not run
scripts/plan-test-lanes.sh 0 0 0 0 0 1
scripts/resolve-diff-base.sh 2 2 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
scripts/resolve-diff-base.sh:40 other unclassified none
scripts/resolve-diff-base.sh:42 SBR productive input-gap

The run's summary has the full report.

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.

test(session-flow): probe what a --bg auto-mode session does with a denied action

1 participant