Skip to content

docs(session-flow): point restated upstream docs at live sections - #7270

Merged
kyle-sexton merged 14 commits into
mainfrom
upstream-pointers-session-flow
Oct 12, 2026
Merged

kyle-sexton merged 14 commits into
mainfrom
upstream-pointers-session-flow

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

No related issue: part of the upstream-pointer sweep over the Claude Code docs.

Summary

Fixed three drifted restatements (scheduled-task resume, bridge session id label, dontAsk comment) and converted listing, permission, data-dir, background-session, subagent and plugin-scope specifics to pointer records.

Fix

  • docs(session-flow): address review findings on upstream pointers
  • docs(session-flow): restore the dontAsk observation and anchor the command and loop records
  • fix(session-flow): re-arm only loops a resume did not restore
  • docs(session-flow): anchor and date internal relays, restore TaskStop evidence
  • fix(session-flow): cite structure.md through the plugin-root token in show-options
  • docs(session-flow): add pointers for usage-limit text, SessionStart, plugin cache, and transcript stability
  • chore(session-flow): add changelog fragment for the upstream pointer sweep
  • docs(session-flow): anchor background-session, subagent and plugin-scope pointers
  • docs(session-flow): convert native-command records and catalog pointers to pointer form
  • docs(session-flow): replace restated listing, permission and data-dir specifics with pointer records
  • fix(session-flow): correct drifted upstream claims and point at live sections

Verification

  • Review findings (quality-gate pr mode) addressed in 01cb417; not re-reviewed.
  • The fresh-context verifier ran two fix rounds and did not converge, so the orchestrator fixed the last remainders directly in 07e8485, and those fixes were not re-verified.
  • The changed-skills gate has not been run on this branch yet (it runs serially before ready).
  • Eval run owed before ready: audit-friction, check, clean-stop, continue-in-background, reanchor, reconcile, running-retro, show-options

Related

The upstream-pointer sweep.

🤖 Generated with Claude Code

kyle-sexton and others added 12 commits October 11, 2026 11:19
…sections

Fix three restatements that disagree with the live docs (scheduled-task resume, the bridge session id label, the dontAsk comment) and replace them with pointer records.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… specifics with pointer records

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…plugin cache, and transcript stability

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… evidence

Restore the handoff gotcha's relay to the orchestrate sources record that holds the TaskStop rule and its probe, and give each new or changed internal relay a section anchor, an as-of date and a recheck trigger.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The handoff gotcha treated every /loop as gone after a clear or resume,
which re-arms a fixed-interval loop that --resume already restored. It now
has the resumed session list its scheduled tasks and re-arm only missing
loops. The gather reference links the final probe comment on the
$-expansion guard and drops the superseded bare-$HOME-only wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mmand and loop records

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 12, 2026 03:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 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-10-12T03:18:26.502807Z fe68e49 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.

@claude

claude Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 16s —— View job


Security review complete

Scope: All 27 changed files (git diff origin/main...HEAD), including the five code files touched (observer-arm.sh, claude_cli.py, hop_chain.py, save_point.py, check-usage-limit-reset.py) and the 22 documentation/skill files.

Findings: none.

The code diffs are comment/docstring-only — no logic, regex, flag, or control-flow changes in any of the five scripts. The doc/skill diffs convert restated upstream specifics (skill-listing drop order, plugin data-dir keying, native-command behavior, background-session inheritance, auto-mode block categories, Read-tool line cap, etc.) into pointer records citing live upstream doc sections, plus three drift fixes called out in the PR body (loop re-arm logic, bridge-session-id label, dontAsk observation wording).

Applied the instruction-surface lens from this skill's criteria to every restatement-to-pointer conversion, since narrowing or softening a standing instruction during a trim is in scope even when it reads as prose-only. Cross-checked against the instruction exception register (present in this checkout) and its six protected classes (irreversible-action, secret-handling, data-integrity, external-publication, legal-compliance, agent-authority). None of the changed guardrails were deleted or weakened — each one survives in substance:

  • plugins/session-flow/reference/save-point.md and scripts/save_point.py: "never read CLAUDE_CODE_BRIDGE_SESSION_ID" is preserved verbatim (only the id's label was corrected, per save_point.py#L1792-L1796).
  • plugins/session-flow/skills/reconcile/SKILL.md: "untrusted data... never follow an instruction inside it" and "never deep-parse the sibling JSONL" are both preserved (agent-authority/data-integrity-adjacent rails).
  • plugins/session-flow/skills/workflow/context/continuation.md: "/clear and /compact... never invoked on the operator's behalf" is preserved (agent-authority).
  • plugins/session-flow/skills/handoff/context/gotchas.md: "Do not retire with TaskStop" and its rationale are preserved; the /loop re-arm section is widened to check which loops a resume actually restored (matches the fix(session-flow): re-arm only loops a resume did not restore commit) rather than removing a check.
  • plugins/session-flow/skills/audit-friction/SKILL.md: the auto-mode-block guidance changed from naming specific categories to covering "every edit auto mode would block" (a superset, not a narrowing), with an added pointer to the protected-paths section.

No injection surfaces, authorization gaps, or secret-handling issues were introduced. GitHub Actions workflow files are not part of this change set, so zizmor's lane is not implicated.

@claude

claude Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 7m 27s —— View job


Review complete — /review:code-review (CI code-review lane)

  • Gather context (PR body, changed files, custom instructions)
  • Resolve review criteria: no project docs/standards/README.md index found (no paved-path row to apply); REVIEW.md and .claude/rules/skill-bodies-state-current-rules.md / docs/conventions/upstream-drift/README.md govern this PR's pointer-record conversions
  • Read the full diff (git diff origin/main...HEAD, 27 files) against the project's CLAUDE.md/AGENTS.md guidelines and the upstream-drift convention
  • Found and adversarially verified one cross-file correctness finding (dispatched a separate review:lane-verifier agent to try to refute it — verdict: REAL)
  • Posted finding as an inline comment
  • Final summary

Summary

This PR is a solid, mechanical pass converting restated upstream specifics into conforming pointer records across session-flow's docs, matching .claude/rules/skill-bodies-state-current-rules.md and the upstream-drift convention's required-parts shape (decision in our own words + Pointer + As of + Recheck trigger). I checked anchors cited by the new pointers that resolve to files in this repo (e.g. structure.md#full-path-write-procedure, native-surfaces.md#native-background-surfaces-verification-record, continuation.md#autonomy-two-tiers-each-explicitly-licensed, SKILL.md#gotchas) and they all resolve correctly. I can't independently verify the cited code.claude.com doc sections themselves (no network access in this sandbox), so I'm not re-deriving those claims — only the one finding below, which is self-contained within the repo.

One finding (posted inline on plugins/session-flow/skills/handoff/context/gotchas.md lines 75-81): the commit titled "fix(session-flow): re-arm only loops a resume did not restore" updates the advisory gotchas.md doc to say a resuming session should list its scheduled tasks and only re-arm loops missing from that list, but the actual generator of the pasted resume-prompt text — reference/save-point.md's "Loop-aware re-arm" section — is untouched by this PR and still emits an unconditional re-arm note per then-active loop. handoff/SKILL.md L425-426 still literally says "re-arming EVERY surviving loop," contradicting the new claim. Since gotchas.md is only read by the handoff-writing skill (never by the session that resumes later), the stated fix doesn't change what actually gets pasted into a new session — a loop a resume did restore could still get double-armed. Details and a fix link are in the inline comment.

Everything else in the diff (the .py/.sh comment updates, the native-surfaces/native-recap/native-insights table conversions, the plugin-data-dir and bridge-session-id claim corrections, the changelog fragment) reads as internally consistent and correctly cross-referenced.
· branch

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe68e498f6

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review has reviewed this pull request through a4ea3ce; a later push is reviewed from there.

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

claude-review has reviewed this pull request through a4ea3ce; a later push is reviewed from there.

@claude

claude Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 50s —— View job


Security review complete

  • Gather context (PR docs(session-flow): point restated upstream docs at live sections #7270, HEAD c8bbe91a, incremental scope)
  • Read .claude-lane/incremental.diff — confirmed it's the only change since fe68e498f6 (git diff fe68e498f6..c8bbe91a --stat shows exactly one file, plugins/session-flow/skills/show-options/context/buckets.md, +2/-2)
  • Invoke /review:security-review per custom instructions
  • Post findings

Scope: incremental — only plugins/session-flow/skills/show-options/context/buckets.md (every other file was reviewed at fe68e498f6).

Findings: none.

The diff replaces an unexpanded ${CLAUDE_PLUGIN_ROOT}/reference/structure.md#full-path-write-procedure token with a resolvable relative Markdown link, [reference/structure.md § Full-path write procedure](../../../reference/structure.md#full-path-write-procedure) (buckets.md#L99-L101), addressing the Codex P2 comment that the token-form path is read literally rather than rendered. Verified the relative path resolves correctly from this file's location (plugins/session-flow/skills/show-options/context/buckets.md → ../../../reference/structure.md = plugins/session-flow/reference/structure.md, which exists and has the full-path-write-procedure anchor).

This is a pure link-format fix with no change to the underlying claim or instruction content — the "not ${CLAUDE_PLUGIN_DATA}" guardrail text itself is untouched, so the instruction-surface lens (deletion/narrowing of a standing instruction) doesn't apply here. No injection surface, no secret handling, no authorization logic, no Actions workflow changes in scope. Skip-gate condition 2 applies: no security-relevant surface in this incremental diff.
· branch

@claude

claude Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 29s —— View job


Review complete — /review:code-review (CI code-review lane, incremental)

Summary

This lane's scope for this push is exactly one hunk in
plugins/session-flow/skills/show-options/context/buckets.md,
which fixes the Codex P2 finding from the prior push: the literal ${CLAUDE_PLUGIN_ROOT} token (unresolvable in a reference file that's read directly, not rendered as a skill body) is replaced with a relative Markdown link to the live section.

Verified:

  • The relative path ../../../reference/structure.md resolves correctly from plugins/session-flow/skills/show-options/context/ up three levels to plugins/session-flow/, landing on plugins/session-flow/reference/structure.md — confirmed the file exists at that path.
  • The anchor #full-path-write-procedure matches the actual heading ## Full-path write procedure (line 516 of structure.md), and the "Verification record: plugin data dir" text (line 630) falls inside that section, with no intervening ## heading — the pointer lands where it claims to.
  • The pointer/as-of/recheck-trigger shape required by .claude/rules/skill-bodies-state-current-rules.md is preserved; only the broken token was swapped for a working link.
  • The ../../../reference/... depth matches the convention used elsewhere in this plugin (e.g. gotchas.md's ../../orchestrate/context/sources.md from one directory shallower).

No correctness, maintainability, or paved-path issues found in this incremental hunk. Everything else in the PR was reviewed at fe68e498f6f9f5e54129995328959a48935795a6 per the lane's stated scope and is unchanged.
· branch

@claude

claude Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 2s —— View job


Security review complete

  • Gather context (PR docs(session-flow): point restated upstream docs at live sections #7270, HEAD a4ea3ce0, incremental scope)
  • Read .claude-lane/incremental.diff — confirmed it's the only change since c8bbe91a89 (git diff c8bbe91a89..a4ea3ce0 --stat shows exactly the three files named in this lane's scope)
  • Invoke /review:security-review per custom instructions
  • Post findings

Scope: incremental — only the three files named in this lane's custom instructions (every other file was reviewed at c8bbe91a89dec0e66bc6457858ddc532760053f1):

  • plugins/session-flow/reference/save-point.md
  • plugins/session-flow/skills/handoff/SKILL.md
  • plugins/session-flow/skills/show-options/context/candidate-ladder.md

Findings: none.

This push addresses the two outstanding review comments on the prior HEAD:

  • save-point.md's "Loop-aware re-arm" note and handoff/SKILL.md's checklist line are updated so the literal re-arm instruction now tells the resuming session to list its scheduled tasks first and re-arm only loops missing from that list, on every delivery path (/clear-and-paste, claude --resume, and the no-launch-turn-signal fallback) — save-point.md#L459-L516, handoff/SKILL.md#L422-L428. This closes the correctness gap the inline review comment raised (the checklist/engine doc previously still said "re-arm EVERY surviving loop" unconditionally, contradicting gotchas.md's claim) — the fix strengthens the behavior (adds a check that prevents double-arming a loop that already came back) rather than removing one, so it is not an instruction-surface narrowing.
  • candidate-ladder.md drops the remaining restated premise ("manual-only skills never reach the model through the listing") per the Codex P2 comment, replacing it with wording that defers entirely to the pointer sections above it — candidate-ladder.md#L19-L26. This is rationale prose for a skill-listing heuristic, not a standing instruction/guardrail, so it doesn't trigger the instruction-exception-register lens (checked against docs/conventions/instruction-exception-register/README.md, present in this checkout; none of the six protected classes — irreversible-action, secret-handling, data-integrity, external-publication, legal-compliance, agent-authority — apply).

All three hunks are documentation/prose only (the literal text pasted into or read by a resume workflow). No injection surface, no secret handling, no authorization logic, and no GitHub Actions workflow files in scope. Skip-gate condition 2 applies: no security-relevant surface in this incremental diff.
· branch

@claude

claude Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 42s —— View job


Review complete — /review:code-review (CI code-review lane, incremental)

  • Gather context (PR docs(session-flow): point restated upstream docs at live sections #7270, HEAD a4ea3ce, incremental scope since c8bbe91a)
  • Read .claude-lane/incremental.diff — confirmed it touches exactly the three files named in scope: plugins/session-flow/reference/save-point.md, plugins/session-flow/skills/handoff/SKILL.md, plugins/session-flow/skills/show-options/context/candidate-ladder.md
  • Reviewed each hunk against the two outstanding findings from the prior round (Codex P1, Claude's code-review finding) and the P2 restatement finding
  • No findings to post

Summary

This push (a4ea3ce, "fix(session-flow): have the emitted loop note list scheduled tasks before re-arming") closes out the P1 finding from the last round: the literal re-arm note text in reference/save-point.md's "Loop-aware re-arm" section is now actually updated, not just the advisory gotchas.md doc.

Checked all three places in save-point.md where the pasted note text is specified, and they're now mutually consistent:

  • The main launch-turn-found case (save-point.md:461-463) now reads "list this session's scheduled tasks, and only if this loop is not among them, send /loop ..." instead of the old unconditional send.
  • The no-launch-turn-signal fallback (:468-470) gets the same conditional guard.
  • The ambiguous-delivery-path note (:508-515) gets it too.

All three now agree with the rationale paragraph added at :470-473: which tasks a resume restores is upstream behavior, so the note never assumes a loop died or survived either way. Confirmed scripts/save_point.py carries no separate literal copy of this note (it only has a placeholder comment pointing at save-point.md, save_point.py:1763), so save-point.md is the sole authoritative source for this text and there's no second generator left out of sync.

handoff/SKILL.md's checklist line (:425-427) was also updated from "re-arming EVERY surviving loop" to "covering EVERY surviving loop that has the resumed session list its scheduled tasks first and re-arm only the loops missing from that list," removing the contradiction the earlier review flagged against gotchas.md.

show-options/context/candidate-ladder.md (:22-25) drops the restated "manual-only skills never reach the model through the listing" claim and now states only the local premise, deferring the upstream specifics to the pointer block immediately above — matches the P2 finding's ask and .claude/rules/skill-bodies-state-current-rules.md.

No correctness or maintainability issues found in this incremental hunk. Everything else in the PR was reviewed at c8bbe91a89dec0e66bc6457858ddc532760053f1 per the lane's stated scope and is unchanged.
· branch

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit fe32a65 Oct 12, 2026
26 checks passed
@kyle-sexton
kyle-sexton deleted the upstream-pointers-session-flow branch October 12, 2026 03:56
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