Skip to content

docs(session-flow): point depth-limit and task-list claims upstream - #11790

Merged
kyle-sexton merged 1 commit into
mainfrom
docs/6916-w5-session-flow-pointers
Nov 1, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
docs/6916-w5-session-flow-pointers

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #6916

Summary

The plugins/session-flow findings from wave A of the repo-mode /multi-agent:audit-defaults sweep. Upstream contradicts two claims.

Fix

  • orchestrate/context/gotchas.md: drops "a depth rejection names depth". A non-fork subagent at the depth limit does not get the tool, so there is no error text to read. The text now points at sub-agents#let-subagents-spawn-their-own-subagents.
  • reconcile/SKILL.md: keeps the rule to reconcile only this session's ledger, and drops the claim that every subagent owns a task list. A pointer goes to tools-reference#task-tracking-tools-in-subagents-and-agent-teams.

Verification

  • Both pages were re-read raw on 2026-11-01:
    • sub-agents: "At the depth limit, Claude Code withholds the Agent tool from every subagent except a fork".
    • tools-reference: "A subagent has the task-tracking tools only when your session has them, whatever model the subagent runs."
  • scripts/check-affected.sh --tests on the committed head: 14 passed, 2 skipped.

Remaining on #6916

This pull request delivers one plugin's share of wave 5. Still open on the issue:

Related

🤖 Generated with Claude Code

Fix two confirmed findings from the #6916 drift sweep (wave A): drop the
"a depth rejection names depth" rule for a pointer at the depth-limit
section, and stop saying every subagent owns a task list.

Refs: #6916

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T01:55:01.988368Z 51e2f24 PR opened
ℹ️ 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

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read every hunk of all 3 changed files: .changes/session-flow/fix-6916-w5-depth-and-task-list-pointers-7d3b5a60.md, plugins/session-flow/skills/orchestrate/context/gotchas.md and plugins/session-flow/skills/reconcile/SKILL.md. I also read the PR context and the matching path-scoped rule .claude/rules/skill-bodies-state-current-rules.md.

What changed: this PR only changes docs. Two claims in skill bodies that upstream contradicts are replaced with links to the upstream docs sections:

  • orchestrate gotchas: drops "a depth rejection names depth, a permission rejection names permission" and points at the sub-agents depth-limit section.
  • reconcile: keeps the rule to reconcile only this session's own ledger. It no longer says every subagent owns a task list, and points at the tools-reference section on task-tracking tools in subagents.

Path-scoped rule (skill-bodies-state-current-rules.md): both edits pass. Each takes out a restated upstream claim instead of stamping it, and puts in a record with all three required parts: a docs-page pointer with its section anchor, the as-of date 2026-11-01, and a recheck trigger. The new text states our own decision ("read what came back rather than inferring depth from a refusal"; "do not attempt to reconcile it") and does not paraphrase what the upstream pages say.

Changelog fragment: bump: patch fits a docs fix with no behavior change. The PR changes no plugin manifest, so no manifest lines apply.

Closing issue: the PR says Refs: #6916 but closes no issue, so there are no acceptance criteria to check.

Verification: the upstream quotes and the scripts/check-affected.sh --tests result (14 passed, 2 skipped) come from the PR description. I could not run anything or fetch the upstream pages in this lane, so I have not confirmed them.

The PR context contains no instructions aimed at the review lane.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #11790

I found no security issues. I read every hunk of all 3 changed files.

What changed: wording only, in two session-flow skill docs and one changelog fragment.

  • plugins/session-flow/skills/orchestrate/context/gotchas.md: drops the line saying a depth rejection's error text "names depth". It now points to the upstream sub-agents depth-limit section. The guidance to read a refusal as saying nothing about depth stays.
  • plugins/session-flow/skills/reconcile/SKILL.md: the rule to reconcile only this session's own ledger stays, and so does "do not attempt to reconcile" a subagent's task list. Only the factual claim that every subagent owns a task list changes, and a link to the tools reference is added.
  • .changes/session-flow/...md: a new changelog fragment.

Instruction-surface check: both skill edits change standing instructions, so I read them under that lens before ruling out a skip. Neither removes or softens a rule that guards an action:

  • The reconcile change still forbids touching a subagent's task list. It narrows a factual claim and leaves what the rule forbids unchanged.
  • The gotchas change replaces a diagnostic hint about how to read errors. That hint guarded no destructive, credential or trust action.

The protected-class register was not needed, because no guardrail was removed.

Other checks:

  • No changed file matches a trusted-path glob.
  • The change touches no plugin manifest, workflow, trust control, merge hold, token scope or kill switch.
  • The two new links point to code.claude.com documentation, are read by the model only, and run nothing.
  • The PR context contains no embedded instructions aimed at this lane.

critical-findings: 0

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.

1 participant