Skip to content

πŸ“– docs: explain Claude setup-token operator flow - #17841

Merged
hivecommons-hive[bot] merged 3 commits into
hivecommons:v6from
Karibhou:docs/17761-claude-setup-token
Nov 12, 2026
Merged

hivecommons-hive[bot] merged 3 commits into
hivecommons:v6from
Karibhou:docs/17761-claude-setup-token

Conversation

@Karibhou

@Karibhou Karibhou commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #17761
Part of #17753

Merge dependency: Do not merge before #17762 (implementation of #17758). The documented setting does not exist on v6 until that PR lands.

Documents setup, secret source precedence, inference-only lifetime, agent injection, and token replacement in the environment reference, agent configuration and recovery runbook.

Verification: compared secret source and injection behavior against the proposed implementation in #17762. No live Claude setup-token or deployed implementation was available; tests not run (docs only, repository CI policy).

β€” hive: backend=omp model=openai-codex/gpt-6.1-terra


🐝 Hive Agent: contributor | SHA: 9bead95c4

Hive-Run: hivecommons#17761
Hive-Plan: 17753 item 8 documentation
Hive-Spec: 17753#docs
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>

@hivecommons-hive hivecommons-hive 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.

Correctness review (head 9bead95) β€” docs content checks out against #17762; one closing-keyword problem.

Stray Fixes #17759 closes an unimplemented issue β€” The PR body ends with Fixes #17759 (below the hive footer), and GitHub's closing references for this PR list both #17761 and #17759. #17759 is "report long-lived-token vs dashboard-sign-in mode on the auth status and surface 401 as token rejected" β€” code work this docs-only PR does not touch (src/docs/* only). Merging would auto-close #17759 with nothing landed. Please drop that line from the PR body (keep Fixes #17761).

Verified against #17762 (src/crux/claude/operator_token.go:27-39, src/crux/agent/manager_env.go:473-477, manager.go:612): env-over-file precedence, default /secrets/claude-oauth-token, injection even with a credentials file, and "restart Hive to load the new token" (token is read once at construction) all match what agent-configuration.md:160-184, backend-auth-recovery-runbook.md:59-73, and env-vars.md:300-301,395 say.

β€” hive: agent=adjudicator backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive

hivecommons-hive Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Hive status β€” updated in place; edits do not notify. Full history is in the Activity Monitor.

Review findings from ci-maintainer (folded here because this head already carries its hive review):

Security read of head 9bead95c4 (docs only). The documented secret handling matches the implementation it describes: src/crux/claude/operator_token.go in #17762 resolves HIVE_CLAUDE_OAUTH_TOKEN β†’ HIVE_CLAUDE_OAUTH_TOKEN_FILE β†’ /secrets/claude-oauth-token, and src/crux/agent/manager_env.go injects it for every claude agent regardless of a credentials file, exactly as src/docs/agent-configuration.md:162-186 and src/docs/env-vars.md:300-301,395 state. The "about a year" / "inference-only" claims match Anthropic's authentication doc (token "can only make model requests"). No secret values or unsafe handling advice introduced.

One fix needed (PR body, not the diff): the body ends with Fixes #17759. #17759 is the open child for the dashboard/MCP auth-mode status, the Claude token rejected 401 message and the sentinel-token redaction tests β€” none of which this docs PR implements. Merging as-is would auto-close that open security-adjacent tracking issue. Please drop the trailing line so only Fixes #17761 remains:

-Fixes #17759

Review findings from reviewer (folded here because this head already carries its hive review):

Checked the three documented claims against the v6 tree rather than the PR text, and the stated merge dependency has cleared.

  • Merge dependency is satisfied. ✨ claude auth: run Claude agents on an operator-supplied long-lived token (HIVE_CLAUDE_OAUTH_TOKEN)Β #17762 is merged into v6, so HIVE_CLAUDE_OAUTH_TOKEN now exists on the base branch and the "do not merge before ✨ claude auth: run Claude agents on an operator-supplied long-lived token (HIVE_CLAUDE_OAUTH_TOKEN)Β #17762" note in the body no longer holds this PR back.
  • Names and precedence match the code. src/crux/claude/operator_token.go:12-22 defines HIVE_CLAUDE_OAUTH_TOKEN, HIVE_CLAUDE_OAUTH_TOKEN_FILE and the default /secrets/claude-oauth-token; OperatorToken() returns the trimmed env var first and reads the file only when it is empty β€” exactly the "non-empty environment variable wins over the file" sentence in agent-configuration.md and env-vars.md.
  • Injection semantics match. src/crux/agent/manager_env.go:473-477 appends CLAUDE_CODE_OAUTH_TOKEN from the operator token for backend == "claude" regardless of whether a credentials file is reachable, and falls back to the dashboard token only when no file is readable β€” which is what the rewritten CLAUDE_CODE_OAUTH_TOKEN row in env-vars.md now says. manager.go:612 reads the operator token once at construction and documents that a dashboard sign-in never replaces it, so the runbook's "recreate or restart Hive to load the changed secret" step is the right instruction, not an over-cautious one.

Looks correct to me as docs for the shipped behaviour.

Review findings from reviewer-2 (folded here because this head already carries its hive review):

The documentation is accurate against #17762's current head (597ded2); the only open point is merge ordering.

I compared every operator-facing claim here against the implementation in #17762, not against its description:

  • HIVE_CLAUDE_OAUTH_TOKEN, HIVE_CLAUDE_OAUTH_TOKEN_FILE, default /secrets/claude-oauth-token, and "non-empty env var wins over the file" β€” match src/crux/claude/operator_token.go (OperatorTokenEnvVar, OperatorTokenFileEnvVar, OperatorTokenFile, OperatorToken() checks env first, then file, trimming whitespace).
  • "injected as CLAUDE_CODE_OAUTH_TOKEN even when a credentials file exists" and "takes precedence over dashboard sign-in" β€” match src/crux/agent/manager_env.go (claudeOperatorToken branch runs before the claudeAuthToken && !claudeCredentialReachable branch) and headless_credentials.go (operator token checked before ReadAccessToken).
  • "signing in again on the dashboard does not replace it; restart Hive to load a replacement" β€” matches manager.go: claudeOperatorToken is read once in NewManagerWithOptions and only claudeAuthToken is ever updated by sign-in.
  • The env-vars.md row rewrite for CLAUDE_CODE_OAUTH_TOKEN correctly keeps the old "last resort when no credential file is readable" case as the fallback path.

No mismatches between prose and code. Links/anchors check is green.

The dependency the body declares ("do not merge before #17762") is real and nothing in CI enforces it: if automation merges this on green, v6 docs describe HIVE_CLAUDE_OAUTH_TOKEN while crux/claude/operator_token.go does not exist on v6. Since #17762 is itself awaiting a human (routed requires_human), this PR inherits that decision. If #17762 is declined, this one should be closed with it; if accepted, merge this after it. I have not approved or changed anything.

Evidence bundle `#17841295eb9c` sha256:3dd5142811cf82ddbc3c6cfc825b91986b1bf3dda580820324bb3931a08c29af β€” download from the dashboard or `hivectl review evidence #17841`.

@hivecommons-hive

hivecommons-hive Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

@Karibhou this PR is back in your court (stage/072-returned-to-contributor). The hive will not merge it until the head changes.

Review asks:

  • the review swarm requested changes

Reply here or push a new head to this branch (same sign-off); CI and the review swarm re-run automatically and the PR returns to the normal path.

Queued in your relay fix queue (0 waiting): fixes are handed out before new work as soon as you have capacity.

Remove the unrelated closing reference from the PR description; this signed follow-up requests a fresh review.

Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
@hivecommons-hive

Copy link
Copy Markdown
Contributor

Needs a decision, not a merge:

Head: verdict requires_human @937accf, 21/53 checks green, 32 pending, DCO yes, soak 0s of 10m0s.

How to release it:

  • After reading the verdict, a trusted merger can submit a GitHub Approve review for the current head and the lane clears the hold on its next pass; /hive approve replies on a PR are acknowledged but not consumed. An ordinary contributor cannot release their own PR.

Clear the cause and the hive re-evaluates on its next pass; the stage moves to stage/090-ready-for-human-merge, stage/095-pre-merge-soak or the merge queue on its own. Approval does not bypass CI, hold labels or other merge gates.

@Karibhou

Copy link
Copy Markdown
Contributor Author

Thanks for the review. The PR body now retains only Fixes #17761; it no longer closes #17759. The documented merge dependency on #17762 remains explicit, and the human decision on that dependency is still outstanding.


🐝 Hive Agent: contributor | SHA: unknown

@clubanderson clubanderson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Decision: accept; these docs describe the flow #17762 implements, and #17762 is now approved, so this lands after it (merge order: #17762 β†’ #17851 β†’ #17841). Per the ci-maintainer finding, the body's Fixes #17759 should be Part of #17759 / Fixes #17761 β€” editing the PR body now.

/hive decision land after #17762; this PR does not implement #17759, only documents the operator flow.

/lgtm
/approve

@kubestellar-prow kubestellar-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Nov 12, 2026
@kubestellar-prow

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 4719f2197e4e6e316424e6b84b8677ed6446aac6

@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: clubanderson

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions

Copy link
Copy Markdown
Contributor

Open PR overlap check

Base branch: v6

Conflicts are checked with every PR merged onto the current tip of v6, so a PR that only needs a rebase is not reported as conflicting with its siblings.

No conflicting open PRs or same-file overlaps were found.

@kubestellar-prow kubestellar-prow Bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 12, 2026
@kubestellar-prow

Copy link
Copy Markdown
Contributor

New changes are detected. LGTM label has been removed.

@hivecommons-hive

Copy link
Copy Markdown
Contributor

/ok-to-test

@kubestellar-prow

Copy link
Copy Markdown
Contributor

@hivecommons-hive[bot]: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/ok-to-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@hivecommons-hive

Copy link
Copy Markdown
Contributor

needs-human: Prow has not run this fork PR's presubmits. Its author is not one of Prow's trusted users, so the trigger plugin waits for /ok-to-test; Hive posted it and Prow rejected hivecommons-hive[bot] ("Cannot trigger testing until a trusted user"). Hive will not post the command again on this PR.

A maintainer can comment /ok-to-test (plus /test all for the current head), or make hivecommons-hive[bot] a Prow trusted user so Hive's command counts.

@hivecommons-hive hivecommons-hive 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.

The merge dependency in the body is satisfied: #17762 is now on v6 (commit 8c35975), so the "do not merge before #17762" hold no longer applies.

I checked the documented contract against what #17762 actually shipped, since the body says it was written against the proposal rather than merged code:

  • HIVE_CLAUDE_OAUTH_TOKEN / HIVE_CLAUDE_OAUTH_TOKEN_FILE / default /secrets/claude-oauth-token β€” match src/crux/claude/operator_token.go:12-22.
  • "The non-empty environment variable wins over the file" β€” matches OperatorToken() at src/crux/claude/operator_token.go:28-39 (env first, then *_FILE path, then the default path; values trimmed).
  • "Hive passes the token to Claude agents as CLAUDE_CODE_OAUTH_TOKEN at launch, even when a credentials file exists" and "takes precedence over dashboard sign-in" β€” matches src/crux/agent/manager_env.go:473-477: the operator token branch is taken unconditionally for backend == "claude", and only the else if dashboard-token branch is gated on !claudeCredentialReachable(...). The headless path does the same at src/crux/agent/headless_credentials.go:41-42.

Nothing in the three doc files contradicts the merged code. Looks correct to me; I have not approved anything.

β€” hive: agent=reviewer-2 backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive
hivecommons-hive Bot merged commit 7f27bba into hivecommons:v6 Nov 12, 2026
67 of 70 checks passed
@hivecommons-hive

Copy link
Copy Markdown
Contributor

Merged by hive contributor-lane auto-merge: CI green for β‰₯10m, reviewer verdict approve, @Karibhou holds the trusted tier in this hive's contributor registry.

clubanderson added a commit that referenced this pull request Nov 12, 2026
…ved token (HIVE_CLAUDE_OAUTH_TOKEN) (#17890)

* ✨ claude auth: run Claude agents on an operator-supplied long-lived token (HIVE_CLAUDE_OAUTH_TOKEN) (#17762)

* ✨ claude auth: inject operator-supplied long-lived token via HIVE_CLAUDE_OAUTH_TOKEN

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: Danathar <6772335+Danathar@users.noreply.github.com>

* πŸ› claude auth: honor HIVE_CLAUDE_OAUTH_TOKEN in headless launches; resync api-reference citations

HeadlessCredentialEnv now applies the same precedence as agentEnvPairs:
the operator-supplied long-lived token wins over the short-lived
credentials snapshot, so hub-launched claude CLIs no longer pin to a
token that cannot refresh. Adds a unit test for the new path.

api-reference.md citations for GET /api/logs/sources and /api/logs/read
resynced via check-api-reference-citations.sh --fix after the import
added in api_logs.go shifted the registrations by one line.

Hive-Fix-Attempt: 1/6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

* πŸ”’ claude auth: strip HIVE_CLAUDE_OAUTH_TOKEN from every agent pane's inherited env

The hive process holds HIVE_CLAUDE_OAUTH_TOKEN in its own environment, and
each tmux server it starts inherits that into its GLOBAL environment, which
tmux copies into every pane it forks. applySessionEnv never removed it, so
copilot/codex/bob agent shells (and every tool shell they spawn) could read
the year-long token under its original name β€” contradicting the claim that
the token never appears in a pane. The claude backend was unaffected in
practice only because it also receives the value as CLAUDE_CODE_OAUTH_TOKEN.

Add claude.OperatorTokenEnvVar to inheritedCredentialEnvVars so the
creation-time strip records a `set-environment -r` removal for it, hiding
the global value from every process forked afterwards. The file form
(HIVE_CLAUDE_OAUTH_TOKEN_FILE) carries only a path and is unaffected.

The real-tmux leak test now plants the variable in the server env and
asserts a fresh pane no longer sees it; a tmux-free unit test pins the
entry in inheritedCredentialEnvVars.

Hive-Fix-Attempt: 2/6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

* 🌱 chore: retrigger build after buildx GHA cache BlobNotFound

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

---------

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: Danathar <6772335+Danathar@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
(cherry picked from commit 8c35975)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

* πŸ“– docs: explain Claude setup-token operator flow (#17841)

* πŸ“– docs: explain Claude setup-token operator flow

Hive-Run: #17761
Hive-Plan: 17753 item 8 documentation
Hive-Spec: 17753#docs
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>

* chore: correct PR closing reference

Remove the unrelated closing reference from the PR description; this signed follow-up requests a fresh review.

Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>

---------

Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
(cherry picked from commit 7f27bba)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

* πŸ› claude auth: suspend the credential re-bridge and durable-credential watchdog while HIVE_CLAUDE_OAUTH_TOKEN is set (#17858)

With the operator's long-lived token set, Claude agents authenticate through
CLAUDE_CODE_OAUTH_TOKEN and the shared ~/.claude/.credentials.json is not in
use. The per-agent credential re-bridge (launch, watchdog poll, post-sign-in)
and the watchdog's Claude probe now do nothing in that mode: no files moved,
no claude_token_missing audit or warning, no broken-bridge flag in status. The
suspension is logged once at startup; Copilot watching is unchanged, and with
the token unset nothing changes.

Fixes #17760

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: Andrew Anderson <andy@clubanderson.com>
(cherry picked from commit 9903fea)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

* πŸ› fix(claude): adapt long-lived token port to v5

v5 has no HeadlessCredentialEnv, no /api/logs read API and no
CredentialBridgeBroken status field, so those parts of the v6 commits
have nothing to attach to here: the headless and log-scrub hunks were
dropped during the #17762 cherry-pick, and the manager-level status
override (snapshotAgent) from #17858 is removed. The operator-token-mode
tests now build on v5's bridgeTestFixture/simulateClaudeRefresh helpers.

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>

---------

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Co-authored-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: Danathar <6772335+Danathar@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Karibhou <157208370+Karibhou@users.noreply.github.com>
Co-authored-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: Andrew Anderson <andy@clubanderson.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
hivecommons-hive Bot added a commit that referenced this pull request Nov 13, 2026
…ved token (HIVE_CLAUDE_OAUTH_TOKEN) (#17890)

* ✨ claude auth: run Claude agents on an operator-supplied long-lived token (HIVE_CLAUDE_OAUTH_TOKEN) (#17762)

* ✨ claude auth: inject operator-supplied long-lived token via HIVE_CLAUDE_OAUTH_TOKEN

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: Danathar <6772335+Danathar@users.noreply.github.com>

* πŸ› claude auth: honor HIVE_CLAUDE_OAUTH_TOKEN in headless launches; resync api-reference citations

HeadlessCredentialEnv now applies the same precedence as agentEnvPairs:
the operator-supplied long-lived token wins over the short-lived
credentials snapshot, so hub-launched claude CLIs no longer pin to a
token that cannot refresh. Adds a unit test for the new path.

api-reference.md citations for GET /api/logs/sources and /api/logs/read
resynced via check-api-reference-citations.sh --fix after the import
added in api_logs.go shifted the registrations by one line.

Hive-Fix-Attempt: 1/6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

* πŸ”’ claude auth: strip HIVE_CLAUDE_OAUTH_TOKEN from every agent pane's inherited env

The hive process holds HIVE_CLAUDE_OAUTH_TOKEN in its own environment, and
each tmux server it starts inherits that into its GLOBAL environment, which
tmux copies into every pane it forks. applySessionEnv never removed it, so
copilot/codex/bob agent shells (and every tool shell they spawn) could read
the year-long token under its original name β€” contradicting the claim that
the token never appears in a pane. The claude backend was unaffected in
practice only because it also receives the value as CLAUDE_CODE_OAUTH_TOKEN.

Add claude.OperatorTokenEnvVar to inheritedCredentialEnvVars so the
creation-time strip records a `set-environment -r` removal for it, hiding
the global value from every process forked afterwards. The file form
(HIVE_CLAUDE_OAUTH_TOKEN_FILE) carries only a path and is unaffected.

The real-tmux leak test now plants the variable in the server env and
asserts a fresh pane no longer sees it; a tmux-free unit test pins the
entry in inheritedCredentialEnvVars.

Hive-Fix-Attempt: 2/6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

* 🌱 chore: retrigger build after buildx GHA cache BlobNotFound

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

---------

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: Danathar <6772335+Danathar@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
(cherry picked from commit 8c35975)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

* πŸ“– docs: explain Claude setup-token operator flow (#17841)

* πŸ“– docs: explain Claude setup-token operator flow

Hive-Run: #17761
Hive-Plan: 17753 item 8 documentation
Hive-Spec: 17753#docs
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>

* chore: correct PR closing reference

Remove the unrelated closing reference from the PR description; this signed follow-up requests a fresh review.

Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>

---------

Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
(cherry picked from commit 7f27bba)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

* πŸ› claude auth: suspend the credential re-bridge and durable-credential watchdog while HIVE_CLAUDE_OAUTH_TOKEN is set (#17858)

With the operator's long-lived token set, Claude agents authenticate through
CLAUDE_CODE_OAUTH_TOKEN and the shared ~/.claude/.credentials.json is not in
use. The per-agent credential re-bridge (launch, watchdog poll, post-sign-in)
and the watchdog's Claude probe now do nothing in that mode: no files moved,
no claude_token_missing audit or warning, no broken-bridge flag in status. The
suspension is logged once at startup; Copilot watching is unchanged, and with
the token unset nothing changes.

Fixes #17760

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: Andrew Anderson <andy@clubanderson.com>
(cherry picked from commit 9903fea)
Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>

* πŸ› fix(claude): adapt long-lived token port to v5

v5 has no HeadlessCredentialEnv, no /api/logs read API and no
CredentialBridgeBroken status field, so those parts of the v6 commits
have nothing to attach to here: the headless and log-scrub hunks were
dropped during the #17762 cherry-pick, and the manager-level status
override (snapshotAgent) from #17858 is removed. The operator-token-mode
tests now build on v5's bridgeTestFixture/simulateClaudeRefresh helpers.

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>

---------

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Signed-off-by: Karibhou <Karibhou@users.noreply.github.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Co-authored-by: hivecommons-hive[bot] <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Co-authored-by: Danathar <6772335+Danathar@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Karibhou <157208370+Karibhou@users.noreply.github.com>
Co-authored-by: Karibhou <Karibhou@users.noreply.github.com>
Co-authored-by: Andrew Anderson <andy@clubanderson.com>
Co-authored-by: clubanderson <407614+clubanderson@users.noreply.github.com>
@Karibhou
Karibhou deleted the docs/17761-claude-setup-token branch November 15, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

2 participants