Skip to content

feat(planning): pass the named-tunnel options through the interview skill - #9123

Merged
kyle-sexton merged 1 commit into
mainfrom
feat/interview-tunnel-vars
Oct 22, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
feat/interview-tunnel-vars

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #8607

Summary

The shared lane's start command in lane-shared.md carries ${user_config.tunnel_hostname} and ${user_config.tunnel_token_file}, but spokes arrive unexpanded and SKILL.md showed neither key, so a configured named tunnel never reached share.sh. This expands both keys under SKILL.md ## Variables and rewords lane-shared.md so an unset key (empty string, the manifest default) reads as "no named tunnel, use a quick tunnel".

Fix

  • plugins/planning/skills/interview/SKILL.md: one added line under ## Variables only, in the same ${user_config.KEY} form the section already uses for time_units. Every other byte is unchanged; the digest pins (interview-defenses, reattach-slice) sit outside this section and still pass.
  • plugins/planning/skills/interview/context/lane-shared.md: the token-source sentence now names SKILL.md "Variables"; the start step passes the shown values (or values the owner gives in the session), passes an empty hostname as '' (which share.py reads as an explicit switch to a quick tunnel, share.py:249), and drops the --tunnel-* flags only when the token is still unexpanded.
  • .changes/planning fragment (minor).

Verification

  • bash plugins/planning/tests/interview-defenses.test.sh: PASS=172 FAIL=0, exit 0
  • bash plugins/planning/tests/reattach-slice.test.sh: PASS=23 FAIL=0, exit 0
  • bash plugins/planning/surface/watch.test.sh: PASS=31 FAIL=0, exit 0
  • python3 -m unittest discover -s plugins/planning/shared/tests -p 'test_*.py': 1231 tests, OK (skipped=1)

Related

🤖 Generated with Claude Code

…kill

Expand tunnel_hostname and tunnel_token_file under SKILL.md Variables so
the shared lane's start command receives them, and read an empty hostname
as no named tunnel (a quick tunnel) in lane-shared.md.

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

chatgpt-codex-connector Bot commented Oct 22, 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-22T17:44:23.522196Z 96780b6 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.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review of PR #9123 at 96780b6: no security findings.

The PR changes three files: a changelog fragment, plugins/planning/skills/interview/SKILL.md, and plugins/planning/skills/interview/context/lane-shared.md. All three are prose. No code, hook, workflow or permission changes.

  • Manifest: .claude-plugin/plugin.json and marketplace.json are not in the diff. tunnel_hostname and tunnel_token_file already exist as userConfig keys, both with empty defaults, so no manifest line applies.
  • Guardrails: the diff deletes and narrows no standing instruction. The only removed text is the old instruction to drop the --tunnel-* flags when the key was unexpanded. It is replaced by instructions to pass the values, or '' for a quick tunnel. ensure-running keeps the same flags. I did not consult the instruction exception register, because no rule is being removed.
  • Secrets: tunnel_token_file carries a file path, not the token. The userConfig description says cloudflared reads the file, so the token is not interpolated into the skill text.
  • Injection: both values are substituted into a single-quoted bash command template. They come from the owner's own plugin settings or from the owner in the session. A guest never supplies them, so I found no trust boundary to cross.

manifest: not touched, so no pass or flag lines.

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

Reviewed the 3-file diff (SKILL.md, context/lane-shared.md, one .changes/planning fragment) against .claude-claude-lane/pr-context.md and the planning plugin's code.

Checked (by reading the code; no tests were run):

  • plugins/planning/.claude-plugin/plugin.json already defines tunnel_hostname and tunnel_token_file with default: "", so the new ${user_config.*} tokens in SKILL.md "Variables" resolve to empty strings when unset. The diff does not touch plugin.json, so no manifest items apply.
  • share.py named_config (plugins/planning/shared/share.py:247-261): an explicit --tunnel-hostname '' returns ("", "") before any hostname or token-file validation, so an empty token file does not trip the file check. This matches the PR's claim about quick-tunnel handling.
  • tunnel.ensure (plugins/planning/shared/tunnel.py:347): requesting ("", "") while a quick tunnel runs returns the existing record, so passing '' on resume does not restart a quick tunnel.
  • The bump: minor fragment fits the change. There is no closing issue (Refs: #8607), so no acceptance criteria apply. The PR body contains no embedded directives.
  • The author's test counts (interview-defenses, reattach-slice, watch, shared unittest) are author-claimed and I did not re-run them.

Observation, not a finding: Before this change, an unset hostname dropped both --tunnel-* flags, so a session already on a named tunnel kept it. It now passes '', which switches back to a quick tunnel. A named tunnel the owner supplied in-session (with no saved config) could therefore be replaced on a later ensure-running if the model passes the empty config value instead of the owner's. The new text says to pass the owner's in-session values, which covers the intended path, so I did not report it.

Manifest items: none hit by this diff.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 56b2ed0 Oct 22, 2026
106 of 107 checks passed
@kyle-sexton
kyle-sexton deleted the feat/interview-tunnel-vars branch October 22, 2026 18:18
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