Skip to content

docs(agents): document the fleet gh cache daemon and the write-path defect - #12545

Merged
dezren39 merged 1 commit into
mainfrom
xaltha/docs-gh-cache-daemon
Nov 22, 2026
Merged

dezren39 merged 1 commit into
mainfrom
xaltha/docs-gh-cache-daemon

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

What

Adds doc/agents/gh-cache-daemon.md, recording the 2026-11-22 fleet gh findings (code#10742) so the next agent does not have to re-diagnose them:

  • Why fleet gh was slow: no local credential-cache daemon was running (nothing started fleet gh cache-serve), so every call probed dead addresses and fell back to in-process resolution, which re-walks the secrets chain per call — and the sandbox-local secrets broker was also dead, burning its ~120s retry budget per call. One issue view took 2m02s in-process vs 0.7–2.2s through a warm local daemon.
  • The fix: a local cache daemon runs at all times on any host that runs fleet gh (kept alive by ~/tools/init-ensure.sh on Muse sandboxes, in the same ensure pattern as the session proxy and secrets broker). Fallback order: local daemon → laptop daemon (tailnet) → in-process.
  • Stickiness: this build's client has no fallback stickiness and no knob for it, so stickiness lives at the daemon-keeping layer — keep the preferred local path alive. A client-side negative-cache TTL in fetch_any would be a code change, documented as such.
  • The personal op wire contract and the write-path defect: the daemon's personal op returns the resolved secret itself (the whole github-cli.hosts-yml), not a parsed token; the client must parse at one convergence point. Skipping the parse on the daemon path broke every fleet gh write on 2026-11-22 while reads masked it via App-token failover. Fixed in PR fix(fleet): parse the personal token on the cache-daemon path too #12500; until that merges and a fixed build deploys, FLEET_GH_RAW=1 remains the write workaround — the doc says so.

Verification

Markdown-only change; no builds or tests apply. The facts were verified live on 2026-11-22 (daemon timings, cache-status, the write-path shape evidence and the PR #12500 end-to-end check).

Refs #12500, code#10742


Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 22, 2026 13:16
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 95120ade-30d7-4440-afd0-2d4b7c311aca
Commits

Reviewing files that changed from the base of the PR and between 5133832 and 9eb6bdc.

Files selected for processing: 1

  • doc/agents/gh-cache-daemon.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T13:17:59.614891Z 9eb6bdc 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.

@dezren39
dezren39 merged commit a79643a into main Nov 22, 2026
2 checks passed
@dezren39
dezren39 deleted the xaltha/docs-gh-cache-daemon branch November 22, 2026 14:57
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