Skip to content

docs(openclaw): GSTACK_SESSION_KIND honors unattended too, not only spawned (#3287) - #3311

Closed
szsunyuan wants to merge 1 commit into
garrytan:mainfrom
szsunyuan:docs/openclaw-session-kind-unattended
Closed

szsunyuan wants to merge 1 commit into
garrytan:mainfrom
szsunyuan:docs/openclaw-session-kind-unattended

Conversation

@szsunyuan

Copy link
Copy Markdown
Contributor

Why (in your own words)

docs/OPENCLAW.md's "Explicit override: GSTACK_SESSION_KIND" section says: "Deliberately narrow: only spawned is honored … Empty or other values are reserved and ignored (fall through to ambient detection)."

Since 1.91.70.0 that isn't true.

  • The classifier honors unattended too: bin/gstack-session-kind:42 matches spawned|unattended, and its header (:28-29) says "only those two are honored".
  • docs/unattended.md:12-13 documents it as the explicit override that outranks GSTACK_HEADLESS.

An orchestrator author who meets GSTACK_SESSION_KIND on this page first (the page is written for them) learns that unattended would be ignored, the opposite of what happens. The sentence predates the fourth session kind: the file's last change, v1.91.66.0, came before #3115 added unattended.

Fixes #3287.

Why this shape

  • It's the reporter's suggested wording. The section keeps its spawned focus, names unattended as the other honored value, and links unattended.md. Only the two categorical claims change.
  • Docs-only, 1 file (+7/−4). The rest of the paragraph is unchanged (the headless / interactive reasoning and the hook-env note); the edited lines are re-wrapped.
  • CONTRIBUTING's wave rule: if two PRs fix the same thing, keep the smaller one. This is 1 commit in 1 file, on current main, and fine to absorb into a wave.

What it does

  • docs/OPENCLAW.md, "Explicit override: GSTACK_SESSION_KIND": the "Deliberately narrow" sentence now says spawned and unattended are honored. It says in a parenthesis what unattended is for and links unattended.md. The reasons that follow (headless has GSTACK_HEADLESS, forcing interactive is a footgun, other values fall through) are unchanged.

What it deliberately does not do

  • No change to bin/gstack-session-kind or any other code. Only the docs were behind.
  • The design note is left alone: docs/designs/multi-agent-wave-2026-10-10/ceo-native.md:16 says the same thing, but it's a historical record of the plan.
  • Release files and docs: VERSION / CHANGELOG / README / ETHOS untouched, and no generated files. /ship not run (the wave stamps the version).

AI was used for assistance.

Live evidence

Setup.

  • Read-only git show of the two trees.
  • The reporter's classifier loop in a clean env -i, with GSTACK_HEADLESS=1 as the ambient marker. Nothing is written.

Before (upstream/main at afac8dfd8): the page says only spawned is honored.

$ git show afac8dfd8:docs/OPENCLAW.md | sed -n 155,158p
questions or automatic approval. Deliberately narrow: only `spawned` is honored — `headless`
already has `GSTACK_HEADLESS`, and letting an env var force `interactive`
over CI markers would be a misclassification footgun. Empty or other values
are reserved and ignored (fall through to ambient detection). Note that hook

What the classifier actually does (the same on both trees, since this PR doesn't touch it): unattended is honored and outranks GSTACK_HEADLESS; other values fall through.

$ for k in spawned unattended headless interactive bogus ""; do printf "%-13s -> " "[$k]"; env -i PATH=/usr/bin:/bin GSTACK_SESSION_KIND="$k" GSTACK_HEADLESS=1 bin/gstack-session-kind; done
[spawned]     -> spawned
[unattended]  -> unattended
[headless]    -> headless
[interactive] -> headless
[bogus]       -> headless
[]            -> headless

After (this branch, afab4ccee):

$ git show afab4ccee:docs/OPENCLAW.md | sed -n 155,161p
questions or automatic approval. Deliberately narrow: only `spawned` and
`unattended` are honored (`unattended` is a separate, explicitly selected
contract for a parent that reads a run's artifacts; see
[unattended.md](unattended.md)) — `headless` already has `GSTACK_HEADLESS`,
and letting an env var force `interactive` over CI markers would be a
misclassification footgun. Empty or other values are reserved and ignored
(fall through to ambient detection). Note that hook

Scope

  • Changed: docs/OPENCLAW.md (+7/−4). No code, no VERSION, no CHANGELOG, no generated files.
  • Verified live by:
    • pregate lanes on this diff. origin is my fork, so I pointed a temporary origin/pregate-base ref at upstream/main (afac8dfd8). It selects one test, test/openclaw-native-skills.test.ts, which reads this file: 2 of 2 pass.
    • The claims against the source: bin/gstack-session-kind:28-29, :42 and docs/unattended.md:12-13. The unattended.md link target exists.
    • Redaction: bin/gstack-redact --repo-visibility public on the diff reports no findings. git diff --check is clean.
    • Paid evals: bun run eval:select --base upstream/main selects no behavioral probes and no quality judges, and defers nothing.
    • slop-scan: not applicable; it doesn't scan Markdown.
    • Full bun run test: not run for this one-file Markdown change. pregate's import graph links one test to docs/OPENCLAW.md, and it passes (above). CI's free suite is the gate.
  • Did NOT test: the page rendered on github.com.

Liveness proof (required for external contributors)

image

Checklist

Test plan

  • The page's claims checked against bin/gstack-session-kind and docs/unattended.md
  • test/openclaw-native-skills.test.ts (the one test pregate selects)
  • CI free tests on this PR (Free Tests and Windows Free Tests)

Fork PRs do not get eval secrets; the free files above are the gate.

Fixes #3287

…pawned (garrytan#3287)

docs/OPENCLAW.md said "only `spawned` is honored" and that other values
are ignored. Since 1.91.70.0 the classifier also honors `unattended`
(bin/gstack-session-kind:28-29, :42), and docs/unattended.md documents
it as the explicit override, so an orchestrator author who read this
page first learned the opposite of what happens. The section keeps its
`spawned` focus and links unattended.md.

Fixes garrytan#3287

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@trunk-io

trunk-io Bot commented Oct 19, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@capy-ai

capy-ai Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Thank you for catching this. #3367 (v1.91.187.0) updated docs/OPENCLAW.md to say GSTACK_SESSION_KIND honors both spawned and unattended, so I'm closing this as superseded. If anything is still wrong on current main, please reply and we'll reopen.

@capy-ai capy-ai Bot closed this Oct 31, 2026
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.

docs/OPENCLAW.md says only spawned is honored for GSTACK_SESSION_KIND; unattended is honored too

1 participant