Repository navigation
Description
Programme issue — Drew's order, 2026-11-29 08:31 CST. Sibling, not duplicate: #16762 is the queue-broker incident; this is the gh credential path (code#10742 cache daemons).
What happened (verified 2026-11-29, main sandbox seat)
- ~14:06Z the sandbox's network fabric wedged: the egress proxy accepts TCP but never returns HTTP responses (api.github.com, cloudflare.com, workers.dev, turso all time out at 15–45s), and connects to the laptop tailnet IP (100.99.113.103) fail with EPERM.
- The local gh cache daemon (
fleet gh cache-serve, 127.0.0.1:4802, pid 102730, started 14:14Z) stayed alive and listening, but its GitHub App installation-token mint — an HTTPS call to api.github.com — hung with no effective timeout. Token requests single-flight behind a mint, so every request queued behind the stuck one: 322 threads / 327 fds, 321 threads parked infutex_do_wait.fleet gh api rate_limitproduced no output in 45–60s. The closure watchdog died on it twice ("no cache daemon answered (tried 127.0.0.1:4802, 100.99.113.103:4802)"); a 45sfleet gh apicall returned nothing. - Killing the daemon and respawning it via init-ensure changed nothing: a fresh daemon wedges identically on its first mint while egress is dead (verified — pid 131325,
cache-statusUP with entries=0, misses climbing). - Supervision gap, two layers: (1) init-ensure's daemon leg gated on process exists + TCP port accepts, which a wedged daemon passes. (2) Worse, the leg's spawn inherited the flock'd ensure-lock fd — a running daemon was found holding fd 9 →
.daemon-ensure.lock(/proc/<pid>/fd), soflock -nfailed on every subsequent init-ensure run and the leg could never act while any daemon it spawned was alive. The leg was structurally incapable of restarting a wedged daemon; it only ever worked after the daemon had fully died. The daemon also logs nothing but its startup line.
Root defects:
- cache-serve's upstream mint has no bounded timeout.
- The single-flight mint wait is unbounded — one stuck mint blocks every token request.
- Client-side per-tier failover is so slow it is indistinguishable from a hang.
- Only two tiers exist (local daemon, laptop daemon) and both ride the same local fabric that failed.
Drew's design (2026-11-29)
"fix the gh daemon. migrate it to cloudflare. if anything it's fine to be on laptop but should auto fallback to cloudflare with no downtime."
"gh daemon can run in each sandbox too"
"local sandbox then laptop then up to cloudflare then direct. fleet gh does this immediately and then if all that fails the local agent can retry with gh or curl api or something directly with each secret."
The chain fleet gh must walk, failing over immediately and automatically (a tier that accepts but never answers must fail over too — today's wedge was a hang, not a refusal):
- Local sandbox daemon —
fleet gh cache-servein each sandbox (127.0.0.1:4802). - Laptop daemon — 100.99.113.103:4802.
- Cloudflare — the token-mint/cache function hosted as a Cloudflare Worker (
fleet-gh-cache), serving installation tokens over authenticated HTTPS. - Direct —
fleet ghresolves tokens in-process (App mint, then personal tokens) and talks to api.github.com itself. - Agent last resort (not a fleet gh tier): the local agent retries with plain
ghorcurlagainst the API directly, rotating each token source (App installations first, personal last — the existing fleet rotation), secrets fetched by name from the secrets broker (fleet secrets get <name>), never printed or logged. Runbook: this issue + fleet docs.
Work items
- Daemon timeouts (pkgs/fleet, cache-serve): bound the upstream mint (HTTP connect + total timeout); bound how long a request may wait on an in-flight mint before the cached-failure path answers; keep failure caching (<60s) semantics.
- Client chain (pkgs/fleet, fleet gh): tiers 1→2→3→4 with short per-tier timeouts (connect ~2s, daemon request ~5s, CF request ~8s, mint ~15s — final numbers in the design doc); an
https://entry kind in the FLEET_GH_CACHE /--cache-addrlist for the CF tier; fleet.toml[gh]config for the CF endpoint (GhConfig already carries cache_local/cache_laptop); per-tier negative caching 30–60s;cache-statuscovers the CF tier. - Cloudflare tier: Worker
fleet-gh-cache(pm-notify is the repo's model Worker): mints App installation tokens (App private key as a Worker secret, set from the broker by name via the sanctionedcfbinary route — never wrangler directly, never values in files/logs), caches until expiry−5min, servesGET /token(bearer-authenticated) +GET /health. Credential names on record:github-app.developing-today-fleet.private-key; precedent pairgithub-app.backup-worker-bearer/github-app.backup-worker-url. - Supervision: init-ensure's gh-cache leg fixed locally 2026-11-29 and verified (wedged-daemon simulation: STOPped daemon killed and respawned by init-ensure alone, ~9s): gate is now the protocol probe (
fleet gh cache-statuslocal line = UP), wedged incumbents are stopped with an exe-verified SIGKILL, and the spawn closes fd 9 (9>&-) so the daemon no longer inherits the ensure lock. Upstream the same three changes to every maintained copy of init-ensure (the hatch-personal copy spawns daemons on other seats with the same fd bug — a daemon on this seat was observed logging tohatch-personal/logs/, spawned by that copy). - Agent last-resort runbook: token-source rotation list reused from
fleet gh's own credential logic (no second list); broker-by-name fetch; gh-orig / curl recipes; recorded in the fleet docs and linked here. - End-to-end verification, with timings: (1) local daemon healthy → answer via tier 1; (2) local daemon stopped → answer via tier 2/3 with no manual step; (3) laptop unreachable → answer via Cloudflare or direct; (4) observed failover timings per tier recorded on this issue.
Evidence pointers
- Daemon state at diagnosis: pid 102730, 322 threads, 327 fds, log = startup lines only (
~/logs/gh-cache-daemon.log). fleet gh cache-statusduring the wedge (fresh daemon):127.0.0.1:4802 UP entries=0 hits=0 misses=15+ min_ttl=0s; laptopDOWN ... Operation not permitted (os error 1).- Egress probes 2026-11-29 14:26–14:40Z: proxy port (hatch-egress-proxy:3128) accepts TCP; HTTP to api.github.com / cloudflare.com / pm-notify.workers.dev / fleet-platform turso all 000 at 12–45s; direct (no-proxy) connections time out (egress is proxy-only).
Acceptance
All four tiers implemented and verified end-to-end with timings recorded here; a stopped or hung local daemon no longer stalls fleet gh beyond the tier budget; the runbook is in the fleet docs.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-29T14:49:43Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}Acceptance criteria
- The gh credential-cache daemon's token mint has an effective timeout; a hung mint cannot single-flight-block all later requests indefinitely.
- Daemon supervision detects a wedged (alive but non-answering) daemon, not only a dead process / closed port, and can restart it — including the ensure-lock fd inheritance defect described in the body.
- A fallback chain (e.g. Cloudflare tier / direct fleet gh path) serves gh calls when the local cache daemon is wedged, with the fallback's use visible in logs.
- A wedged-daemon drill (egress blocked) shows gh calls either succeeding via fallback or failing fast with a clear error — never hanging 45s+ with no output.
Activity
developing-today-fleet commentedon Nov 29, 2026
Progress record — 2026-11-29 (coordinator)
Phase A — local daemon: FIXED and verified locally
Diagnosis (main sandbox seat, 14:26–15:05Z):
futex_do_waitbehind one unbounded installation-token mint; log contained startup lines only. SIGTERM exited it cleanly in 1s — the request path, not the process, was stuck.cache-statusprotocol probe still answering in ~44ms — the status path does not mint, so the daemon looked healthy to every existing check).~/.cache/gh-cache/.daemon-ensure.lock, soflock -nfailed on every later init-ensure run and the leg could never restart a live-but-wedged daemon. It only ever worked after the daemon had fully died.Fixes landed in this seat's
~/tools/init-ensure.sh(upstream to every maintained copy — see checklist):fleet gh cache-statuslocal line must readUP(bounded 5s).9>&-) so the daemon no longer inherits the ensure lock.Verified end-to-end on this seat:
cache-statusUP afterwards.127.0.0.1:4802 UP entries=6 kinds:[installations=2 token:<redacted>] hits=310 min_ttl=228s.Failover timings measured today (current binary — the "before" baseline)
Failover exists but is nowhere near immediate, and the wedged-tier case is unbounded — exactly what the chain work (per-tier timeouts: connect 2s / daemon request 5s / CF 8s / mint 15s / single-flight wait 10s) is designed to close. Design + file-by-file patch plan are written and will land with the implementation PR.
Fabric note
The sandbox egress fabric itself was down ~14:06–15:0xZ (proxy accepted TCP, never responded; tailnet EPERM) and is still flappy (one GraphQL stream CANCEL during this issue's first create attempt; the create was verified not-landed and retried). GitHub itself was never down — in-process
fleet ghanswered throughout the recovery window.Remaining
fleet-gh-cacheWorker): package built (src, wrangler.toml, deploy.sh, verify.sh), deploy via the sanctionedcfroute being attempted now that egress is back; result recorded here.developing-today-fleet commentedon Nov 29, 2026
fleet-gh-cache (tier 3) — DEPLOYED + verified 2026-11-29
Endpoints (both live, both verified):
26de8263-b0d6-4ab3-b2e4-b9c5e24f5bfeInstallations configured (public config, in
wrangler.toml+cloudflare.config.ts):developing-today→ 178567642 (this isDEFAULT_INSTALLATION_ID)developing-today-forks→ 178568091dezren39→ 181169681fleet gh api /app/installationstimed out repeatedly (60s, ×3 — the daemon tiers are the incident this tier exists for), so the IDs were read via a direct App-JWTGET /app/installations(key by broker name, in-process only; paginated, 103 installations).Bearer: created in Bitwarden Secrets as
github-app.fleet-gh-cache-worker-bearer(ida443b1f4-f434-4da4-bf55-b51100f641c1, projectdeveloping today); broker-verified by name (fleet secrets listshows it;fleet secrets getresolves it). Worker URL recorded asgithub-app.fleet-gh-cache-worker-url(id7733a07d-9d6e-4fac-98fe-b51101087f66) = https://gh-cache.security.cab. No secret value appears in this comment, any file, or any log.Verification (
verify.sh, evidence logs in~/workspace/gh-chain-2026-11-29/cf-worker/evidence/):GET /health200{"ok":true}; authenticatedGET /token→ token present,expires_at: 2026-11-29T17:02:01Z; unauthenticated/token→ HTTP 401.expires_at: 2026-11-29T17:02:29Z).?owner=dezren39,?owner=developing-today-forks,?installation=178567642.Custom domain:
cf zones listunder the deploying token shows thesecurity.cabzone held by this account (zoned9632853730f95d9c252c7c637051fe7, active), so the route was enabled: uncommented inwrangler.toml, mirrored asdomains: ["gh-cache.security.cab"]+workersDev: trueincloudflare.config.ts, redeployed once.Deploy-route findings (the package was built against an older cf/wrangler than this seat has):
cfrequires wrangler ≥ 4.136.0 with the cf delegate; the package pinned 4.59.1. npm registry egress was too flappy to install (three runs, 600–840s timeouts), sonode_moduleswas populated from the machine's existing wrangler 4.147.0 tree (~/tools/wrangler) and thecf1.0.0-beta.20 package (~/tools/cf).package.jsonupdated accordingly (wrangler: ^4.147.0,cf: 1.0.0-beta.20,type: module).package-lock.jsonis now stale vspackage.json— regenerate on the next npm-capable pass.cloudflare.config.ts— added, mirroringwrangler.toml(precedent: atlas-search / queue-transport-alert workers).src/index.tsis unchanged.cf deploy --secrets-file <FIFO>(broker → FIFO, deploy.sh's own technique, per cf's error guidance); after that./deploy.shran clean end-to-end (exit 0, code + secrets steps).fleet secrets getappends a trailing newline, and deploy.sh's… | jq -Rs .pipeline encoded that newline into the storedWORKER_BEARERsecret — authenticated/tokenreturned 401 while the Bitwarden value (64 chars, no newline) was correct. deploy.sh's writer in the package copy is patched (capture via$(),printf '%s'), the live secrets were re-set trimmed, and verification then passed. Any other seat deploying from an unpatched copy will reintroduce this.cf auth whoamiintermittently exits 0 while reportingauthenticated: false, so deploy.sh skipped loading the broker token andcf deployfailed with "No authentication token found". Workaround used: pre-setCLOUDFLARE_API_TOKENfrom the broker (namecloudflare.api-token-day-to-day) in the environment. Recommend deploy.sh check the whoami JSON body, not its exit code.Still open:
fleet ghdoes not consume tier 3 yet (resolvegithub-app.fleet-gh-cache-worker-url/-bearerby name,GET /token, cache to expiry−5min) — separate implementation work.package-lock.jsonregeneration (item 1).GH_CACHE_KV) not enabled; in-isolate cache only, as designed for v1.developing-today-fleet commentedon Nov 29, 2026
Implementation progress (fleet gh fallback chain lane, 2026-11-29):
PR: #16833 — branch
feat/gh-fallback-chain, commit7af1f0cb0, base = origin/maind6f820792(2026-11-29 12:40Z; a fresh fetch was attempted and hit the day's flaky egress, CANCEL).Implemented per the design + patch plan in
~/workspace/gh-chain-2026-11-29/fleet-chain/(seat-local copies; design landed in the PR atpkgs/fleet/docs/fleet-gh-fallback-chain-design.md, runbook atpkgs/fleet/docs/runbook-agent-last-resort.md):GET /token(HTTPS entry kind in--cache-addr/FLEET_GH_CACHE;[gh] cache_cf_url+cache_cf_token_name— broker NAME only; env overrides) → T4 in-process. Budgets: connect 2s, daemon request 5s (was 60s), CF 8s, mint upstream 15s/5s connect, single-flight wait 10s, failure caches 30s (client stamp: connect 60s).~/.cache/fleet/gh-tier-failures.json(tier id/class/timestamp only); ALL-DOWN error names every tier + class;cache-statusCF line (UP/DOWN/NOT-CONFIGURED), exit 3 only when no tier answered.Deviations from the patch plan (real source disagreed):
wait_timeout.BROKER_ATTEMPT_TIMEOUT= 10s); kept, per design §5's allowance.?owner=(the Worker lane's contract) to select their installation.pkgs/fleet/docs/, notdoc/agents/: this seat's checkout is sparse (pkgs/fleet only) and three bounded sparse-expansion attempts failed on flaky egress.fleet-gh-credentials.mdcross-links both docs.Verification status: PR checks are only CodeRabbit/Proof (skipping). Remote build/test attempts so far:
fleet actions exec start→ broker tunnel to laptop EPERM (same tailnet policy block as tier 2);fleet queue dispatch(auto + github runner) →HTTP 403 Resource not accessible by integrationon the fleet-forks surface; one fleet-org dispatch attempt timed out locally with outcome being verified before any re-dispatch. PR stays OPEN until tests are verified; evidence will be added here.developing-today-fleet commentedon Nov 29, 2026
Intake review
Related: issue #16762 (queue-broker incident — sibling, not duplicate), issue #10742 (cache daemons).
Notes: Still live — programme issue from Drew's 2026-11-29 order; the body verifies the wedge firsthand on the sandbox seat (hung token mint, 322 threads parked, supervision leg structurally unable to restart a wedged daemon). No merged PR in the evidence addresses the mint timeout, the flock-fd defect, or a fallback tier. Acceptance criteria were missing from the body and have been appended by this pass.
Risks: multi-part programme (daemon resilience + Cloudflare tier + fallback chain) — likely needs splitting into implementation slices before queue work; the secrets/credential path makes changes here higher-blast-radius than a normal fleet fix.
Suggested approach: slice it — (1) mint timeout + wedged-daemon health check + lock-fd fix, (2) fallback chain, (3) Cloudflare tier — and land (1) first since it unblocks supervision.
🤖 Agent note · state: filed
developing-today-fleet commentedon Nov 29, 2026
Claim — Felix lane 0640-DL (2026-11-29). Taking the verification slice of #16826's remainder: (1) read the merged PR #16833 cache-serve changes on current main and confirm both bounds exist — the upstream mint timeout AND a bounded wait on an in-flight (single-flight) mint, with failure-caching semantics kept; (2) execute the pkgs/fleet gh/cache test surface remotely (fleet-command) and read executed counts; (3) probe tier 1 from this seat with timings (
fleet gh cache-status, timedfleet gh api rate_limit). The supervision-upstreaming work item (hatch-personal init-ensure copy) is being premise-checked separately by this lane. Live tier-2 failover timings remain gated on the laptop (code#16762). Priority validation: priority/high confirmed — important and time-sensitive (today's wedge is the evidence); no change.developing-today-fleet commentedon Nov 29, 2026
Progress — Felix lane 0640-DL (2026-11-29): daemon-bounds verification (code-read) + tier-1 timings + supervision upstream PR.
1. Daemon bounds — VERIFIED IN CODE on current main (PR #16833, merged 16:08Z). Read firsthand at main:
gh_cache.rs:MINT_UPSTREAM_TIMEOUT = 15s,MINT_CONNECT_TIMEOUT = 5s,SINGLE_FLIGHT_WAIT = 10s,FAILURE_TTL_SECS = 30.Cache::get_or_mintbounds every waiter by the single-flight wait; a waiter whose budget expires receives the cached-failure shape while the minter's own thread carries the mint to its bounded end and populates the cache — one stuck mint can no longer convoy later requests (the 2026-11-29 wedge shape).gh.rs:1087-1089: the mint's ureq agent is built withtimeout_global(MINT_UPSTREAM_TIMEOUT)+timeout_connect(MINT_CONNECT_TIMEOUT)— the constants are wired, not decorative.gh_cache::tests::single_flight_wait_is_bounded_and_mint_lands_detached. Executed-count confirmation is dispatched as fleet-command run 46313322796 (cargo test -p fleet --lib ghfrom pkgs/fleet, realised OpenSSL env) — verdict to follow on this issue when it finalizes.2. Tier-1 timings from this seat (2026-11-29 ~21:44Z):
fleet gh cache-statusanswered in 0.37s — local line127.0.0.1:4802 UP entries=10 hits=8422 misses=61 min_ttl=12s uptime=3638s; laptop line DOWN (os error 1, code#16762). A timedfleet gh api rate_limitanswered in 3.1s via tier 1 (Apps pool, core remaining 4681). Caveat: this seat's daemon is still the 2026-11-24 fleet build (pre-#16833) — the bounded-mint code takes effect here only when the seat's fleet binary refreshes (parent-Felix item); the timings measure the chain's tier-1 behaviour, not the new daemon code. Tier-2/3 failover timings remain gated on the laptop leg.3. Supervision upstreaming — PR #16986 OPEN. The canonical copy (
scripts/muse/init-ensure.shon main) still carried the pre-fix leg (pgrep + TCP-port gate, no wedged stop, spawn inheriting fd 9). PR #16986 applies the three fixes there: protocol-probe gate (cache-status local line UP), exe-verified SIGKILL of non-serving incumbents,9>&-on the spawn line. One file, +30/−3, bash -n clean, probe pattern verified against live daemon output. Note for the seat owner: this seat's live ~/tools/init-ensure.sh has diverged the other way (it carries the 2026-11-23 stale-exe restart but NOT these three fixes) — worth reconciling when the binary refresh lands.Remaining on #16826 after this: the run-46313322796 verdict (this lane), end-to-end failover timings for tiers 2–4 (laptop-gated), and the hatch-personal install-profile copy of the supervision leg if one is maintained there (the boot-hook init.sh carries no gh-cache leg — checked). Priority/high confirmed, no change.
developing-today-fleet commentedon Nov 29, 2026
Run 46313322796 — EXECUTED but selection-missed; NOT evidence for the gh bounds (lane 0640-DL). Full log read firsthand: checkout at main 0ba7310, command as dispatched, conclusion success. But
cargo test -p fleet --lib ghselected the fleet package's LIB target (48 tests), where the filterghmatched only 2 id_proxy tests (both pass; their names contain 'gh' via 'through'). The gh_cache / gh::chain / gh::cache_serve tests live in the fleet BINARY target — zero of them executed. Corrected re-dispatch: run 46314087550 (cargo test -p fleet --bins gh, same OpenSSL env). The single-flight verdict waits on that run's log. (Side observation from the same log: the #16956 'Report dispatch error' step is present in the fleet-command action and correctly skipped on success.)developing-today-fleet commentedon Nov 29, 2026
Shepherd-merged — lane 1522-G (2026-11-29). PR #16986 merged (b2cb4d0) under Drew's merge rule: full diff read firsthand by this lane (protocol-probe gate replacing the TCP-port check, exe-verified SIGKILL of a wedged incumbent, fd-9 closed on the daemon spawn, +x) and Felix 0640-DS's firsthand verdict (21:46:41Z, merge-ready) as the verification of record; PR CLEAN/MERGEABLE on two agreeing reads at head 86fff1e.
developing-today-fleet commentedon Nov 29, 2026
Verdict — Felix lane 0640-DL (2026-11-29): the daemon-bounds acceptance criterion is PROVEN by executed remote tests. One chain test fails; adjudication experiment in flight.
Run 46314087550 full log read firsthand (main @ 0ba7310,
cargo test -p fleet --bins ghfrom pkgs/fleet, realised OpenSSL env): 130 passed / 1 failed / 168 filtered. All 11gh_cache::testspass by name, including the ones that pin this issue's acceptance criteria:single_flight_wait_is_bounded_and_mint_lands_detached ... ok— a waiter on an in-flight mint is bounded and the mint lands detached (the anti-convoy property).hanging_daemon_fails_the_client_within_budget ... okconcurrent_miss_mints_once ... ok,mint_failures_are_cached ... ok,loopback_daemon_serves_the_client ... ok,serve_entry_point_stays_up_and_caches ... ok.Combined with the code-read (gh_cache.rs bounds + gh.rs:1088-1089 wiring, recorded earlier on this issue), criterion 1 (effective mint timeout; no indefinite single-flight block) is verified end to end.
The one failure:
gh::chain::tests::cf_client_contract_over_loopback— panicked at chain.rs:609,fetch_cf_token(...).unwrap()onErr(BadBody), in the first scenario (scripted 200 + fresh token over a 127.0.0.1 one-shot server). Two candidate causes: (a) the executor's egress-proxy environment intercepting the loopback HTTP request (the chain code itself documents the TLS-intercepting egress proxy; the raw-TCP loopback tests in the same run pass, and only the ureq-HTTP one fails, with a body-shape error rather than a connect error); (b) a real defect in the CF client or its test. Decisive experiment dispatched: run 46315064749 — the single test withNO_PROXY=127.0.0.1,localhostexported. Pass ⇒ executor-environment artifact, and the follow-up is a test-harness NO_PROXY (or a proxy-bypass assertion in cf_agent's tests), not client code. Fail ⇒ a genuine main defect in the tier-3 client contract, and it becomes this issue's sharpest remaining item. Verdict on that run to follow here.developing-today-fleet commentedon Nov 29, 2026
Adjudication — Felix lane 0640-DL (2026-11-29): the cf_client_contract_over_loopback failure is a TEST-SIDE defect; production code is correct. Fix landed as PR #16997.
Run 46315064749 (single test,
NO_PROXY=127.0.0.1,localhostexported) failed identically — chain.rs:609, BadBody, instantly. The proxy hypothesis is dead. Root cause, read firsthand in the sources:rfc3339(unix)ingh/chain.rsformats every timestamp as2026-01-01T{hh}:{mm}:{ss}Zwith hh = (unix − 2026-01-01)/3600 — exact only for the fixed 2026-01-01 vectorscf_body_contractuses (which is why that test passes).now_unix() + 3600(chain.rs:592): real time makes the hour field ≈7900,gh_cache::parse_rfc3339_zrange-rejects hh ≥ 24,expires_at_unixreturns None,parse_cf_bodyreturns BadBody, and the unwrap at chain.rs:609 panics. Deterministic on any date after 2026-01-02.PR #16997 replaces the helper with a real civil-date formatter (Hinnant's civil_from_days, the inverse of the parser's days_from_civil) — test-only, one file, +23/−6, verified against reference timestamps before landing. Verification run against the branch dispatched by this lane (full
--bins ghsurface); executed counts to follow here. With that merged, the #16826 code surface is fully green: daemon bounds proven (run 46314087550: 130/131 with this test the only red), supervision upstreamed (PR #16986), tier-3 Worker live, runbook landed in PR #16833. What remains on the issue is operational, not code: end-to-end failover timings for tiers 2–4 (laptop-gated, code#16762) and the seat-binary refresh that brings the bounded daemon to this seat.developing-today-fleet commentedon Nov 29, 2026
Final verification — Felix lane 0640-DL (2026-11-29): PR #16997 PROVEN. Run 46315912351 full log read firsthand: checkout at the PR head 8cb4adf,
cargo test -p fleet --bins ghfrom pkgs/fleet — 131 passed / 0 failed / 168 filtered, withgh::chain::tests::cf_client_contract_over_loopback ... okandgh::chain::tests::cf_body_contract ... okby name. Against main's 130/1 (run 46314087550), the branch closes exactly the one red test and moves nothing else. PR #16997 is merge-ready for Felix.Lane 0640-DL closes its #16826 work here: daemon bounds proven in code and by executed tests; tier-1 timings recorded; supervision upstreamed (PR #16986, awaiting merge); the one red chain test root-caused test-side and fixed (PR #16997, awaiting merge). Remaining on the issue after those merges: tier 2–4 failover timings (laptop-gated) and this seat's fleet-binary refresh.
developing-today-fleet commentedon Nov 29, 2026
Defect record — Felix lane 0640-ET, 2026-11-29: the fallback chain surfaces a malformed credential as a client-side header error instead of failing over.
Firsthand from this seat, 2026-11-29 ~22:47–22:56Z, while landing #16255 slice 20:
git pushto developing-today/code failed: the configured credential helper answered with content beginningusers:(the multi-line hosts.yml where a bare token was expected) —warning: invalid credential line, thenInvalid username or token.fleet ghPOST then failed identically for ~10 minutes: PR creation (x2), an issue comment, and a workflow dispatch (GraphQL) all returnednet/http: invalid header field value for \"Authorization\". GETs through the same route kept working throughout.fleet ghcalls printgh-shim: fleet gh route is down (routes-ensure marker); using the in-process gh, and writes carried by that in-process leg succeeded (PR doc: match-result attestation investigation (#2037) #2805 created viafleet ghat ~23:0xZ).Why this belongs on #16826: the chain's own design (gh/chain.rs header) is that a tier that fails — connect, timeout, protocol or HTTP error — is left immediately for the next tier. A source that resolves to a credential the HTTP client cannot even put in a header is a tier failure of exactly that kind, but the walk never got to make that judgment: the error was raised by net/http at request construction, outside the tier-failure classification, so the caller saw a hard client error and no other source was tried for those calls. The gap: credential-shape validation (single-line, header-safe) belongs in the source/rotation layer, where an unusable credential marks that source failed and the walk continues — the same treatment
classify_failurealready gives refusals.Impact during the window: lane writes from this seat (PR creation, verdict comments, dispatches) were blocked on the App route while reads were unaffected; the keeper route marker has since moved this seat to the in-process leg. Priority/high concurred for #16826 (degraded primary route with a working fallback = high, not a repo-wide outage). No code changed by this lane on this item; this record is the evidence for the chain-hardening slice.
developing-today-fleet commentedon Nov 29, 2026
Claim — Felix lane 0640-FL, 2026-11-29: the credential-shape validation slice from 0640-ET's defect record (7264247126). Scope: in the fleet gh credential source/rotation layer, a resolved credential that cannot be placed in an
Authorizationheader (empty, multi-line, or containing header-illegal characters — the hosts.yml-content shape ET observed) must be classified as a tier failure so the chain fails over to the next source, instead of surfacing as a client-side request-construction error with no failover attempted. Includes regression tests. Not touching: the daemon-bounds fix (PR #16833, landed), the tiers 2–4 timing remainder (laptop-gated), or the seat binary refresh.Priority validation 2026-11-29 (Felix): priority/high confirmed — the defect took down this seat's entire fleet gh write route for ~25 min today (2026-11-29 16:40–17:04 CST); important and time-sensitive, not critical (main is not broken).
developing-today-fleet commentedon Nov 29, 2026
Progress — Felix lane 0640-FL, 2026-11-29: PR #17025 opened (branch felix/16826-credential-shape, commit 9516611):
ensure_header_safe_tokengate atFleetTokenProvider::token_for's exit, covering daemon/in-process mints, tier-3 finished tokens, and the parsed personal token; two oracle tests (shape table + a daemon minting a hosts.yml-shaped body). Remote gate: fleet-command run 46325318508 (cargo test -p fleet --bin fleet gh::) — verdict lands on the PR and here when it finalizes. This discharges the chain-hardening slice from ET's defect record; #16826 stays open for its tiers 2–4 timings (laptop-gated) and seat binary refresh.developing-today-fleet commentedon Nov 30, 2026
Gate update — Felix lane 0640-FL: run 46325318508 for PR #17025 concluded 'success' but is VOID for the test half (build died in openssl-sys: no pkg-config in the dispatch shell; zero tests executed — full record on PR #17025, comment 7264897638). Corrected re-dispatch: run 46326321302. #16826 otherwise unchanged: daemon bounds proven (PR #16833 + #16997), credential-shape slice in PR #17025 awaiting its real gate; tiers 2–4 timings + seat binary refresh remain.
developing-today-fleet commentedon Nov 30, 2026
Credential-shape slice PROVEN — Felix lane 0640-FL: PR #17025's gate run 46327263255 read firsthand: 55 passed / 0 failed on
cargo test -p fleet --bin fleet gh::at the PR head, both new oracle tests named ok (header_safe_token_shape,token_for_rejects_a_misshaped_mint). Verdict on the PR (7265150618); PR is merge-ready for Felix. (Runs 46325318508 + 46326321302 were VOID dispatch-shell defects — zero tests — recorded on the PR, not code signals.) #16826 remains open for tiers 2–4 timings (laptop-gated) and the seat binary refresh.developing-today-fleet commentedon Nov 30, 2026
Claim — Felix lane 0640-GB (worker felix), 2026-11-29. Taking the on-main proof for PR #17025 (the credential-shape slice, merged 9007c55): re-running the slice's gate against current code main so the fix carries executed proof on main, not only at branch head. Scoped to this proof only — #16826's tiers 2–4 timings (laptop-gated) and seat binary refresh remainders are untouched.
developing-today-fleet commentedon Nov 30, 2026
On-main proof dispatched — Felix lane 0640-GB: fleet-command run 46329090482 against code main @ 0b1a4cd (carries PR #17025's merge 9007c55), running FL's gate shape (
cargo test -p fleet --bin fleet gh::in pkgs/fleet, OpenSSL realised-env recipe). Verdict follows when the job log finalizes.developing-today-fleet commentedon Nov 30, 2026
On-main proof for PR #17025 — Felix lane 0640-GB, 2026-11-29: GREEN. Fleet-command run 46329090482 against code main @ 0b1a4cd (carries PR #17025's merge 9007c55), job log read firsthand:
cargo test -p fleet --bin fleet gh::from pkgs/fleet — 55 passed / 0 failed, with both new oracle tests ok by name:gh::tests::header_safe_token_shapeandgh::tests::token_for_rejects_a_misshaped_mint. Marker GB-16826-MARKER present. The credential-shape slice is now proven at both gates (branch head by 0640-FL, run 46327263255; main by this run). #16826 stays open for its remaining remainders (tiers 2–4 timings, laptop-gated; seat binary refresh). Priority/high concurred — no change.fix(fleet): gh cache daemon survives accept errors and bounds connect…