Skip to content

ci: git fetch / actions/checkout stall to the step timeout (14-25 min) before any test runs — dozens of merge-queue ejections a day; #34561's stall-bound retry does not cover actions/checkout #34994

Closed

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Filed by triage on a seat-holder report to the maintainer (2026-11-17, in Chinese: CI keeps stalling at the fetch step, 14–25 min timeouts before tests start, 31+ merge-queue failures in 24 h, 30–60 extra minutes per card).

Measured (Actions API, 2026-11-16 21:50Z → 11-17 21:50Z)

  • 60 merge_group workflow runs concluded failure.
  • In 16 of them the failing step itself is Checkout repository (actions/checkout@v7, fetch-depth: 0, 25 min budget in lint.yml) or Fetch this commit's history and the base branch (scripts/ci/fetch-history.sh, 8–20 min budgets in ci.yml).
  • More are masked behind aggregate jobs (Test UI, Test Core, Lint & Repo Gates) whose shard died in that step.
  • Examples today, all 0 tests run:
    • 19:14Z Type Check · debt ledger: checkout 25 min;
    • 20:04Z Lint · ESLint: checkout 25 min;
    • 20:50Z Test UI 6/16: fetch 14 min;
    • 18:08Z main Test UI 3/16: fetch 14 min.
  • The p0 fix fix(scenarios): make every skill-evals arm directory under the system temp directory #34949 alone was ejected twice by it and landed on its third entry.
  • Runners are GitHub-hosted ubuntu-latest.

What exists

Wanted (pick by measurement, not guess)

  1. Read why ci: the "Fetch this commit's history and the base branch" step times out (8 to 20 min) on main pushes and merge groups, four times on 2026-11-16/17 #34561's stall retry did not fire on today's fetch-history timeouts, for example an attempt that trickles bytes and never goes silent. Fix the bound.
  2. Bound actions/checkout the same way. For lanes that need history (the slot-lookup ratchet needs the merge base), use a shallow checkout plus a bounded git fetch --deepen or fetch-history.sh. For lanes that do not, use fetch-depth: 1.
  3. Cut step budgets to fail fast (a stalled transfer is dead after ~2 min), so an ejection costs minutes, not 25.
  4. If it is still GitHub-side after 1–3, the maintainer opens a GitHub Support ticket or moves to larger or self-hosted runners. That is an account-level decision.

.github/workflows/** is a governed surface, so the PR needs L2 and the maintainer's (os-zhuang) approval.

Grade: p1 · domain:devx. Addendum 7: this fleet-efficiency card removes the current largest throughput bottleneck. It is not p0, because main keeps advancing between stalls; it becomes p0 on a >90 min stall.

Activity

  1. added
    priority:p1
    pm:queue
    domain:devx
    finding
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

    Claim: PM loop round 11 · 2026-11-17T22:22Z
    Session: session_01WGufzgwLiKcfujYUug7sPs
    Account: os-support-ai
    Branch: claude/issue-34994-ci-checkout-stall
    Worktree: objectstack-issue-34994
    Domain: domain:devx
    Seat: repo:objectstack#3
    File surface: the history-fetch steps of the CI workflows: .github/workflows/lint.yml and .github/workflows/ci.yml (actions/checkout fetch-depth, step timeout-minutes, the Fetch this commit's history and the base branch steps), other .github/workflows/*.yml only where the measurement shows the same stalling step on a merge-queue lane, scripts/ci/fetch-history.sh (the #34561 stall bound) and its self-test, and root .changeset/ if one is owed.
    Container & model: M, mode:subagent (area o3-B), model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: high (seat 3, 22:21Z)
    Clause-②: no — CI workflow and script behaviour only; no published schema, export or accept set moves
    Metadata-protocol: none — no metadata key is touched
    Tier: H — .github/workflows/** is a governed surface; after L1 and the seat L2 the PR goes to os-zhuang and is never readied or queued by this area
    Responsibility: not traced yet — the dev names the step, config path and introducing change once measured
    Thread-read: none
    Premise: from the card body, not yet re-measured: in the 24 h to 2026-11-17 21:50Z, 16 of 60 failed merge_group runs failed IN Checkout repository (actions/checkout@v7, fetch-depth: 0, 25-minute budget in lint.yml) or Fetch this commit's history and the base branch (scripts/ci/fetch-history.sh, 8–20-minute budgets in ci.yml), with 0 tests run; more are masked behind aggregate jobs. This area saw two of them first-hand on PR #34950 (queue Type Check debt ledger: checkout 25 min at 20:04Z; Test UI 6/16: fetch 14 min at 21:08Z).

    Lease o3-B under seat 3 (seat post #34584).

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Network reading (the maintainer asked whether this is GitHub's side) · 2026-11-17T22:29Z

    githubstatus.com: no Git Operations incident today, and Git Operations, API and Actions all read operational. The only recent incident is a minor Pull Requests/Actions one at 11-16 11:59Z, already resolved.

    It is one slow connection, not a slow repository:

    • Run 44173519141 (20:53Z): 15 of 16 Test UI shards finished fetch-history in 46–69 s. Shard 6/16 sat on attempt 1 for 14 min and was killed at the step budget.
    • Run 44165454706 (20:04Z): 11 of 12 actions/checkout steps took a median of 59 s. Lint · ESLint took 1500 s (the 25 min budget).
    • The same commit, image and minute on GitHub-hosted runners points to a single runner-to-GitHub transfer being throttled or degraded. That is GitHub-side, or its network path, which we neither see nor control.

    Why it costs us 14–25 min instead of 1–2:

    Fix shape this points to: we cannot fix GitHub's side; we can make a slow attempt cheap.

    1. Bound each fetch attempt by wall time: siblings take about 1 min, so kill at about 3 min and retry. Or bound it by throughput, with no progress-percentage change for N seconds. Keep the silence bound.
    2. Do the same for actions/checkout: a shallow checkout, then the bounded fetch script where history is needed.
    3. Then cut the step budgets to about 3 attempts × 3 min.

    That turns each hit from a 14–25 min ejection into about a 3–4 min retry, with no change needed on GitHub's side. A GitHub Support ticket (maintainer, account level) stays optional, with this card's run IDs as evidence.

  5. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs
    os-dev-report

    {
      "issue": 34994,
      "status": "blocked",
      "branch": "claude/issue-34994-ci-checkout-stall (not created yet: PHASE 1 is reading only)",
      "pr": null,
      "session": "session_01WGufzgwLiKcfujYUug7sPs",
      "premise_still_valid": true,
      "summary": "PHASE 1 readings, and the route is waiting for the seat. The premise holds. Re-measured: in the 24 h to 2026-11-17T22:26Z, 18 of 65 failed or cancelled merge_group runs failed IN `Checkout repository` or `Fetch this commit's history and the base branch` (in 48 h: 23 of 126, plus 5 main pushes). PR-event runs show the same thing: 19 more wall hits in about 26 h, including the seat's PR #34992 job 134411985185, all with the same pre-pack orphan list. Over 48 h on merge_group and main, 29 jobs hit the step budget or job wall in those steps: 18 fetch-history.sh, 10 lint.yml full-ref checkouts, and 1 ci.yml depth-1 checkout. #34561's stall bound did not fire because it measures silence in the log, and the hung attempts were not silent. All 13 fetch-history wall hits after #34582 landed (2026-11-17T03:18Z) died in attempt 1 with no index-pack process, so they never got a pack header. The watchdog loop was alive for the whole budget. The only thing that writes to the log in that phase is the server's sideband `remote: Counting/Compressing objects` progress, so the log never went quiet for 60 s. Recommended route (option 1): bound every git HTTP transfer at the curl layer with `GIT_HTTP_LOW_SPEED_LIMIT=1000` and `GIT_HTTP_LOW_SPEED_TIME=120` in the workflow env of ci.yml and lint.yml. That makes a stuck attempt fail in about 2 min, so the retries that already exist get to run: actions/checkout v7's built-in 3 attempts, and fetch-history.sh's 3 attempts. Also: fetch-history.sh prints each phase as it starts, and lint-eslint moves to depth 1. No step budget changes. About +110/-20 lines; no changeset.",
      "measurement": {
        "queries": [
          "GET /repos/objectstack-ai/objectstack/actions/workflows/{224644133 ci.yml, 224934443 lint.yml, 341919186 governed-surface-guard.yml}/runs?event={merge_group,push}&created=6h windows 2026-11-15T22:00Z..2026-11-17T23:59Z (push: head_branch main only): 2,353 runs",
          "GET /actions/runs/RUN_ID/jobs?filter=all for every completed ci/lint run and every 3rd successful gsg run: 1,937 runs. Step seconds = completed_at - started_at",
          "onset: the same for failed or cancelled ci/lint runs 2026-11-06..11-15 (418 runs)",
          "logs: GET /actions/jobs/JOB_ID/logs for all 29 wall hits, 4 slow successes, and 1 healthy sibling (134360294598)",
          "actions/checkout v7 source (git clone --depth=1 --branch v7): src/git-command-manager.ts fetch() is wrapped in retryHelper.execute (3 attempts, random 10-20 s sleep); execGit env = process.env + gitEnv"
        ],
        "wall_hits_48h": "29 jobs. fetch-history.sh 18: 852-853 s at the 14-min budget (Test UI 3,4,6,10x3,13,15/16), 1213 s at 20 min (Test Core 1/10 x2, 6/10, 5/8, 7/8), 493 s at 8 min (Plan Test Core shards x3). lint.yml full-ref checkout 10: 1500 s at 25 min (Type Check debt ledger x3, source gates x2, Lint docs & code, repo & tooling, CI release & engine, ESLint), 1200 s at 20 min (Type Check workspace). ci.yml depth-1 checkout 1: Plan Test UI shards, cancelled at its 20-min job wall. Job ids: 133435052239 133462684295 133470361132 133557664420 133577089390 133628404121 133637316745 133640228994 133645669009 133708987651 134190769187 134248343224 134250079846 134252806729 134257792648 134263160306 134282169394 134300103634 134314160613 134316771638 134330131026 134330172643 134348709261 134348509034 134348594081 134348634118 134358477635 134360293444 134393319006",
        "step_seconds_48h": {
          "ci_fetch_history": "n 12,368 · p50 57 · p90 68 · p95 72 · p99 88 · success over 150 s: 5 (max 580) · wall hits 18 · P(wall | over 150 s) = 18/23",
          "lint_full_ref_checkout_depth0": "n 10,296 · p50 65 · p90 76 · p95 85 · p99 120 · success over 150 s: 31, over 300 s: 7 (max 997) · wall hits 10",
          "ci_shallow_checkout_depth1": "n 21,518 · p50 27 · p90 31 · p95 34 · p99 39 · nothing healthy between 90 and 240 s · success over 300 s: 29, of which 13 at 15-22 min (max 1351 s, single attempt) · 1 cancelled at its wall",
          "gsg_full_ref_checkout_depth0 (merge_group, 1/3 sample)": "n 222 · p50 66 · p99 115 · max 193 · 0 failures (gsg's 5 failed runs are its own governed-surface verdict, not checkout)"
        },
        "shape": "Bimodal, not the flat hazard of #29980. Same-run siblings of a hung fetch take 51-65 s (run 44173519141: 12 Test UI shards 51-65 s, shard 6 hit 852 s). The p50 is normal (57 s fetch, 27 s shallow), whereas 2026-11-03 had every fetch 4-5x slower. A restart at about 2 min draws again from a distribution where P(over 150 s) is about 0.2%.",
        "onset_and_clock": "Wall hits by day: 11-12 4, 11-13..11-15 0, 11-16 9, 11-17 20. All between 16:00Z and 00:05Z on weekdays, which is US working hours. No workflow change lines up with this. Runner image ubuntu-26.04 20261111.196.1 with git 2.56.1 on every failing log, and on healthy logs from 11-12 onward (11-11 had 20261101.186.1 with git 2.56.0)",
        "local_phase_timing (this container, through the proxy, git 2.43)": "depth-1 fetch of one sha: 25 s, pack starts at 13.5 s, 153 MiB. --unshallow (the fetch-history.sh fetch): 77 s, pack starts at 14.7 s, 660 MiB, 377,980 objects, pack-reused 0. full-ref (lint's checkout fetch, heads and tags): 82 s, pack starts at 4.0 s, 1.30 GiB, pack-reused 704,848",
        "pull_request_runs (added on the seat's evidence)": "The same signature also hits PR-event runs. GET .../workflows/{ci,lint}/runs?event=pull_request&status={failure,cancelled}&created=2026-11-16T22:00Z..: 329 runs, with jobs read for each. 19 wall hits in checkout or fetch steps in about 26 h. 10 are lint.yml full-ref checkouts (1500 s at 25 min, or 1200 s on Type Check workspace). 6 are fetch-history.sh (852-853 s, 1212-1213 s, and one cancelled at 634 s). 3 are depth-1 checkouts cancelled at the 10-min wall of an aggregate job (Test Core, Test UI). These include the seat's evidence: PR #34992 head 82b53be53, run 44188694417, job 134411985185 `Lint · scoped · query-options erasure`, 1500 s; and before it 134398650398 (Lint docs & code, 21:55Z) and 134377275418 (Lint scoped slot lookup, 21:20Z). Logs read for 134411985185 (depth 0), 134245502895 (depth 1) and 134404354815 (fetch-history, 1 attempt, 0 stall kills). Each shows the same orphan list with no index-pack. Other PR job ids: 133644413587 133664673312 133694024292 133695937589 133699212754 133700332558 134179666962 134221147317 134211418703 134234042188 134242570257 134337923899 134359661557 134377467166."
      },
      "diagnosis_stall_bound": [
        "1. The hung attempts sit in the PRE-PACK phase. Every wall hit's orphan list (the runner's 'Terminate orphan process' lines) is git (fetch), git (remote-https wrapper), git-remote-https, and for fetch-history also bash and sleep. There is never an index-pack. fetch-pack starts index-pack only after it reads the pack header, so these attempts were still in negotiation or in the server's enumerate/count/compress phase. This holds for all 13 fetch-history hits, the 10 full-ref checkouts, and the depth-1 checkout. The depth-1 checkout has almost nothing to count, so the stall is not caused by size or depth.",
        "2. The watchdog ran and never fired. Each fetch-history orphan list ends in a live `sleep`. Its PID climbs at about 3 per second across the budget (for example 2234 to 4969 over 852 s), so the 1-second polling loop ran the whole time. That loop resets on any growth of the log file, so the log grew at least once every 60 s.",
        "3. What wrote to the log is the server's progress over sideband. While the server enumerates, counts and compresses, fetch-pack's sideband demux prints `remote: ... objects: N%` lines to stderr, and no pack bytes arrive. Shown locally: GIT_HTTP_LOW_SPEED_LIMIT=100000000 with GIT_HTTP_LOW_SPEED_TIME=5 aborted a fetch while `remote: Compressing objects: 36%..38%` lines were still streaming (rc 128, `error: RPC failed; curl 28 Operation too slow`). So a server that is stuck but still reporting keeps a silence watchdog happy indefinitely. The script header's assumption was that a healthy fetch prints every second, so 60 s of silence means a hang. Its converse does not hold: a hung fetch can print too.",
        "4. The retry never ran. 13 of 13 post-#34582 hits show `Attempt 1 of 3`, no `::warning::git fetch wrote nothing`, and no attempt 2. The 5 earlier fetch hits (11-16 to 11-17 00:02Z) ran the old inline loop that #34561 replaced.",
        "5. The diagnostic is destroyed. show_log runs only after an attempt ends. The step timeout kills the step shell first and orphans the script, so a wall-killed attempt never prints the phase it stalled in.",
        "6. The same stall ends on its own after about 17-22 min. 13 depth-1 checkouts in jobs with no step timeout completed in a single attempt after 1000-1351 s (for example 134182008086: depth-1 fetch 16:16:16 to 16:38:45). The 14/20/25-min budgets cut these just before they would have finished, which is why the failures look like a timeout, not an error."
      ],
      "lane_inventory": {
        "ci.yml": "These five jobs need HEAD's ancestry plus origin/main, as their own comment argues: test-plan, test, type-check-ui, test-ui-plan, test-ui. They read it through fetch-history.sh and keep it. Every other checkout is depth 1 (borrowed-verdict is depth 2) and reads no history.",
        "lint.yml lint-eslint (Lint · ESLint)": "Reads no history. Its steps are `pnpm lint` (eslint, with no child_process in eslint.config.mjs), `check:engine-double-contract` (static AST, no child_process) and lane-verdict. Its checkout note names the slot-lookup ratchet, but the #22991 split moved that ratchet to lint-scoped-slot-corpus, so the note is stale. Candidate for depth 1.",
        "lint.yml, the other 11 checkouts (repo-tooling, docs-code, ci-engine, scoped erasure, scoped slot-corpus, scoped tooling, pm-dispatch-gates, typecheck source-gates, workspace, debt, consumers)": "Need HEAD's ancestry plus origin/main. They read it through the merge base, OS_GATE_MERGE_GROUP_BASE_SHA, select-gate-families.sh or select-shard-packages.sh, and ratchets anchored on the merge base (authorable-surface, slot lookup, published-files' origin/main). None needs other heads. Tags are read only by check-release-page-status as one-way corroboration (an absent tag proves nothing), and build-schemas fetches its one tag itself. So fetch-history.sh's fetch covers them. Measured, though, a move does not pay today: full-ref checkout p50 65 s against shallow 27 s plus fetch 57 s = 84 s.",
        "governed-surface-guard.yml": "Its merge_group leg checks out with depth 0 and a 20-min budget, and reads the queue diff. No stall in the 48 h sample, so it is outside this claim's surface unless the seat widens it."
      },
      "route_recommendation": {
        "option_1_recommended": "A git-level transfer bound, plus phase lines and depth 1 where nothing reads history. (a) A workflow-level `env:` in ci.yml and lint.yml: GIT_HTTP_LOW_SPEED_LIMIT 1000 and GIT_HTTP_LOW_SPEED_TIME 120. git applies these to every curl handle, so every git HTTP request in every job is covered: actions/checkout, fetch-history.sh, select-shard-packages' deepen, build-schemas' tag fetch. An attempt that moves under 1000 B/s for 120 s exits 128 with curl 28. actions/checkout then retries in-action (3 attempts, 10-20 s apart), and fetch-history.sh retries (3 attempts). Numbers: the slowest healthy pre-pack measured is 14.7 s, so 120 s is 8x that and still holds an 11-03-sized 6.5x slowdown (about 96 s). 1000 B/s is 4-5 orders of magnitude below a healthy receive (14-65 MiB/s), so a slow but moving transfer is never cut. (b) fetch-history.sh: export the same two defaults when they are unset, so the bound is the script's own and the self-test can check it. Print each new phase as it starts, with elapsed seconds, so a wall kill still names the phase. Correct the #34561 header reading. Keep the 60-s silence watchdog as a backstop. (c) lint-eslint drops `fetch-depth: 0`. (d) No step budget or job wall changes: the bound now lives in git, and the budgets only bind a slow but moving transfer, which #29980's replay says the larger budget helps. It applies on every event, so PR-event runs are covered too (19 wall hits in about 26 h, including the 3 lint checkout timeouts the seat reported); that includes the depth-1 checkouts in the 10-min aggregate jobs. Expected effect on the 48-h merge_group/main window: each of the 29 wall hits becomes a green step about 2.5 min long (120 s bound, 10-20 s sleep, then a normal attempt). Expected residual failures are about 0.1 per 48 h (a retry stalls with p of about 0.002 per attempt), down from 23 merge_group runs failed in 48 h. The 70 slow successes over 150 s are also capped at about 2.5 min, 13 of which took 15-22 min.",
        "option_2": "Option 1, plus moving the 11 history-reading lint lanes to a depth-1 checkout followed by fetch-history.sh, which was the card's candidate. Cost: about +120 lines in lint.yml, the one-budget CHECKOUT BUDGET argument rewritten, and fetch-history.selftest's workflow pins extended. It halves bytes (1.30 GiB to about 0.8 GiB), but it is about 20 s slower per lane at p50 (unshallow gets no bitmap reuse) and adds no stall coverage that option 1 lacks. Not recommended now; it belongs with #22034 if the ref count becomes the problem.",
        "option_3": "Option 1, plus cutting step budgets (lint checkout from 25 to about 10, fetch from 14/20 to about 10). This only shortens slow but moving transfers. On #29980's replay of the 2026-11-03 slowdown it raises the failure rate (1.51% at 20 min, 0.42% at 25; about 12% at 10, since 11.9% of fetches ran over 10 min). Not recommended.",
        "rejected": "A second actions/checkout step behind continue-on-error: 12 copies, it fights lane-verdict's step-outcome reading, and checkout already retries once git fails. Replacing actions/checkout with a script: loses auth and safe.directory setup for no gain. `filter: blob:none`: the stall is pre-pack and does not depend on size (a depth-1 fetch hangs too). Depth 1 everywhere: the history readers above go false-green or false-red.",
        "github_side_maintainer": "This stays with the maintainer, who can open a GitHub Support ticket citing the 29 merge_group/main and 19 PR-event job ids above. The ticket would say: smart-HTTP fetches against github.com stall before the pack header for 14-22 min, including depth-1 single-sha fetches; weekdays 16:00-00:05Z since 2026-11-12, then 11-16 and 11-17; same-run siblings 51-65 s. Larger runners are not expected to help: the stalled phase is server-side and the runner is idle in it. Option 1 is the stop-bleed either way."
      },
      "expected_files": [
        ".github/workflows/ci.yml: workflow env block with its reasoning comment (about +14), FETCH BUDGET comment points at the bound (about 6 changed)",
        ".github/workflows/lint.yml: workflow env block (about +14); lint-eslint checkout drops fetch-depth 0 and its stale note (about -6/+4); typecheck-source-gates CHECKOUT BUDGET note gets one pointer to the bound (about +4)",
        "scripts/ci/fetch-history.sh: export defaults, live phase lines, header correction (about +35/-10)",
        "scripts/ci/fetch-history.selftest.sh: the stub records env and asserts both vars reach git; a stub attempt that streams `remote:` progress then exits 128 with curl 28 is retried and attempt 2 succeeds; phase lines print; ci.yml and lint.yml declare the env; lint-eslint has no fetch-depth 0 (about +40)",
        "no .changeset: .github/** and scripts/ci/** ship in no package files[]"
      ],
      "gates_that_cover_it": "check:fetch-history (fetch-history.selftest.sh, run in the Lint · CI, release & engine lane). check:stall-guard-budget (reads job timeout-minutes; walls stay unchanged). check:ci-filter-parity and check:required-contexts (read ci.yml; no job renamed). lane-verdict (no step added or removed in any lane). The exact family list comes from `dispatch-gates.mjs --commands` on the phase-2 diff. Live positive control: the PR's own CI runs every checkout and fetch with the env set, so a wrong LIMIT would fail every checkout on the PR loudly. Stall-side evidence: the local abort above (rc 128 in the compressing phase). Post-land check: the same query over 24-48 h of merge_group, expecting 0 wall hits in these steps and `curl 28` followed by `Waiting N seconds before trying again` lines where a stall was caught.",
      "tests": "No code changed (PHASE 1). Measurements: listed under measurement. Local: three fetch timings, plus the low-speed abort demo (rc 128, curl 28, while remote progress lines were streaming).",
      "gates": "NOT MEASURED: nothing to gate, reason: no diff in PHASE 1",
      "dogfood_battery": "n/a: no PR, no `!`, no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34994/comments (this report, through scripts/pm/post-stamped.mjs)",
      "open_questions": [
        {
          "question": "Which route does the seat take for PHASE 2?",
          "options": [
            "A: option 1 (curl-level low-speed bound in the ci.yml and lint.yml env, fetch-history.sh phase lines and defaults, lint-eslint at depth 1, budgets unchanged), about +110/-20",
            "B: option 1 plus moving the 11 history-reading lint lanes to depth 1 plus fetch-history.sh, about +230/-60",
            "C: option 1 plus step-budget cuts"
          ],
          "recommendation": "A. It is the only route that bounds actions/checkout itself, through the retry checkout already has. It covers all 48 measured wall hits (29 merge_group/main, 19 PR) with one mechanism. It is the smallest governed diff, and it leaves the 11-03 slow-transfer behaviour exactly as replayed. B adds about 20 s per lane at p50 and no stall coverage. C trades stalls for slow-transfer failures."
        },
        {
          "question": "Should governed-surface-guard.yml's merge_group checkout (depth 0, 20 min) also get the env block?",
          "options": [
            "A: no; measured 0 stalls in 48 h, so it is outside the claim surface",
            "B: yes, a +6 line env block, widening the claim"
          ],
          "recommendation": "A, unless the seat prefers one rule for every merge-queue lane; then B, which costs 6 lines."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed. scripts/check-published-files.mjs's refusal text says origin/main exists because lint.yml checks out with fetch-depth 0. That stays true under option 1 (lint keeps depth 0 on that lane). Under option 2 the sentence would go stale, and it would be in that PR's surface.",
        "carrier: the seat · the lint-eslint checkout note names the slot-lookup ratchet, which #22991 moved to lint-scoped-slot-corpus. Option 1(c) removes the note with the depth change."
      ]
    }

    Generated by Claude Code

  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs
    os-dev-report

    {
      "issue": 34994,
      "status": "done",
      "branch": "claude/issue-34994-ci-checkout-stall",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35032",
      "head": "b4162eabbf",
      "session": "session_01WGufzgwLiKcfujYUug7sPs",
      "premise_still_valid": true,
      "summary": "Route A, as the seat ruled. GIT_HTTP_LOW_SPEED_LIMIT=1000 and GIT_HTTP_LOW_SPEED_TIME=120 are now a workflow-level env in ci.yml and lint.yml, each with a short reasoning comment. A git HTTP request that moves under 1000 B/s for 120 s exits 128 (curl 28), so actions/checkout's own fetch retry (3 attempts) and fetch-history.sh's retry (3 attempts) run instead of the 8-25-minute budget expiring. scripts/ci/fetch-history.sh exports the same defaults only when they are unset, prints each phase live with elapsed seconds (complete lines only), and keeps the 60-s silence watchdog as a backstop. Its header now records the corrected #34561 reading: a hung fetch keeps printing sideband progress, so silence never came. lint-eslint checks out at depth 1. Its stale note's reason moved to lint-repo-tooling, and the six pointers to it, the lint job's lane note and the CHECKOUT BUDGET note were updated to match. fetch-history.selftest.sh is extended. No step budget or job wall changed. governed-surface-guard.yml is untouched. No changeset (nothing published; the PR is labelled skip-changeset). Draft PR #35032, never readied, queued or armed.",
      "tests": "bash scripts/ci/fetch-history.selftest.sh at b4162eabbf: 'fetch-history self-test: all checks passed', 65 PASS, 0 FAIL. New cases: env defaults 1000/120 reach git, a preset 5/7 is kept, talk-then-curl28 retried and green with no stall warning, live phase lines, both workflows' env pinned to the script's defaults, lint-eslint has no fetch-depth. Ablations via scripts/ablation-replace.mjs (mutation landed per its anchor and blob proof; restored with git checkout HEAD --, blobs equal to HEAD): (1) the exports made plain assignments: 7 FAIL, exactly the env and pin checks; (2) lint.yml TIME '120' to '60': exactly 1 FAIL. A first ablation that deleted the exports crashed the script under set -u (45 FAIL); it was replaced by the targeted one in (1).",
      "gates": "dispatch-gates --commands at b4162eabbf: 64 commands. All 64 were run locally, with exit codes captured before any pipe: 60 exit 0 (including check:fetch-history, ci-filter-parity, required-contexts, stall-guard-budget, stall-guard-headroom, workflow-status-functions, workflow-step-name-quoting, self-test-workflow-commands, pm-dispatch-gates in 364 s, pm-governed-merges, nul-bytes, type-check-coverage, type-check-debt). 4 are NOT MEASURED, exit 3 for want of built dist/: check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. These are whole-tree families, the diff touches no package, and CI builds and runs them. --ran reconciliation: 64 derived, 64 run, 0 unrun. overlap-check: VERDICT clean exit 0. PR check-runs at report time: Check Changeset success, Governed Surface Queue Guard success, the lint and typecheck lanes in_progress (in_progress is an honest value; nothing is waited on).",
      "governed_verdict": "node scripts/pm/check-governed-merges.mjs --pr 35032: exit 3, GOVERNED, Tier S by content. The .github/workflows/** split is ruling record 6722205630, letter C: 2 files read, no Tier H trigger. The landing path is a PASS '## Contract review' record for the current head, then the owning seat queues. The claim and the PR body say Tier H; the register reads Tier S. The seat decides which record it takes. This area changes nothing about landing.",
      "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3: POST /repos/objectstack-ai/objectstack/issues/34994/comments (PHASE 1 report, comment 6963324497); POST /repos/objectstack-ai/objectstack/pulls via relay pr_create with its assignees and labels legs (PR #35032, relay run 44199048111); POST /repos/objectstack-ai/objectstack/issues/34994/comments (this report). Plus git push (not a REST write).",
      "open_questions": [
        {
          "question": "Tier label: the claim, the order and the PR body say Tier H, while check-governed-merges reads this diff as Tier S by content (ruling 6722205630 C). Which record does the seat take?",
          "options": [
            "A: Tier S: a seat PASS contract review on head b4162eabbf, then the owning seat queues",
            "B: Tier H as claimed: the maintainer's approval"
          ],
          "recommendation": "Seat's call; the register's reading is A. This area has done neither."
        }
      ],
      "deviations": "The PR body's last line is the HTML-comment signed trailer the order and seat-post-protocol ask for. The os-dev standing rule bars dev-written HTML comments; a read-back shows it stored intact. The PR body's first line is 'Fixes #34994' as ordered, not the seat signature line.",
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #22034 · the other 11 lint lanes could move to a depth-1 checkout plus fetch-history.sh; measured about 20 s slower per lane at p50 and no extra stall coverage, so noted in the PR, not done",
        "carrier: maintainer · GitHub Support ticket with the 48 measured job ids if stalls persist after this lands (recorded in the PR's Acceptance notes)"
      ],
      "post_landing": "Re-measure 24 h of merge_group runs after the merge and post the wall-hit count for the two steps on #34994. Expected: 0, with 'curl 28' and 'Waiting N seconds before trying again' or 'Attempt 2 of 3' lines where a stall was caught."
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

    Claim amendment · area o3-B · 2026-11-17T23:28Z

    Amends claim 6962740145's tier line. Tier: S, not H. node scripts/pm/check-governed-merges.mjs --pr 35032 exits 3 with GOVERNED Tier S by content: the .github/workflows/** split under ruling record 6722205630, letter C, with no Tier H trigger. The seat ruled A (the register's reading) at 23:28Z. Landing path: L1-a on a green head, then the seat's PASS contract review on that head, then this area queues it. No maintainer approval request.

    Nothing else changes: Clause-② no, Metadata-protocol none, file surface as claimed. PR #35032.

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Seat ruling (recorded) · 2026-11-17T23:56Z

    Route A, ruled 2026-11-17 23:28Z and carried until now only in the area thread: bound every git transfer by byte rate with workflow-level GIT_HTTP_LOW_SPEED_LIMIT=1000 / GIT_HTTP_LOW_SPEED_TIME=120 in ci.yml and lint.yml, keep the fetch-history.sh retry, and run lint-eslint at depth 1. Tier S per the governed-merge register. Implemented by PR #35032; the seat contract review on b4162eab is PASS.

  9. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

    Delivered · 2026-11-18T00:43Z

    • PR fix(ci): bound every git transfer by its byte rate so a stalled checkout or history fetch retries instead of running to its timeout #35032 merged (merge commit 357fb1ea45b684e339a2f375523c99ae21f6b4c4); card closed by Fixes.
      • L1 ACCEPT 6964430715; seat contract review PASS 6964583733; landing 6964600166.
      • Tier S, per the seat's ruling (claim amendment 6964076137).
      • Dev-effort high, Rounds 0.
    • Root cause (PHASE 1, 6963324497): the stalled fetches hang before the pack header while the server keeps printing sideband remote: progress, so the ci: the "Fetch this commit's history and the base branch" step times out (8 to 20 min) on main pushes and merge groups, four times on 2026-11-16/17 #34561 silence watchdog never fired.
    • Delivered (route A), in four changes:
      • ci.yml and lint.yml set GIT_HTTP_LOW_SPEED_LIMIT=1000 and GIT_HTTP_LOW_SPEED_TIME=120 workflow-wide, so a stalled git HTTP transfer aborts with curl 28 and the existing retries (actions/checkout 3 attempts, fetch-history.sh 3 attempts) take over.
      • fetch-history.sh exports the same defaults when unset and prints live phase lines.
      • lint-eslint checks out at depth 1.
      • The self-test is extended.
      • No step budget or job wall changed; governed-surface-guard.yml is untouched.
    • Owed after landing (this area): a 24-hour re-measure of merge_group runs from the merge (2026-11-18T00:41Z), posted here. It counts wall hits on Checkout repository and Fetch this commit's history and the base branch, plus curl 28 retries on runs that then went green (seat review N1). If stalls persist, the GitHub Support ticket in the PR's Acceptance notes is the maintainer's option.
    • State: pm:dispatched removed (card closed).
  10. removed
    pm:dispatched
    on Nov 18, 2026
  11. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

    Hand-off · area o3-B (seat 3) · 2026-11-18T03:21Z

    Seat 3 is handing over at the maintainer's order. One item is still owed on this closed card: the 24-hour re-measure after PR #35032 merged (2026-11-18T00:41Z, merge 357fb1ea45). This area has a reminder set for 2026-11-19 00:50 UTC. If no re-measure comment has appeared here by 2026-11-19 02:00 UTC, the next PM runs it:

  12. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

    24 h re-measure after PR #35032 · 2026-11-19T01:18Z

    Result: no wall hits. No Checkout repository or Fetch this commit's history and the base branch step reached its timeout in any merge-queue run since the merge. The comparison window before the merge (the PR body) had 18 of 65 failed merge-group runs dying on these steps.

    Window: merge-group runs created after the merge (2026-11-18T00:41Z, merge 357fb1ea45) up to the latest at 2026-11-19 00:12 UTC. That is 500 runs, 100 for each of CI, Lint & Type Check, Governed Surface Guard, PR-Body Guards and Spec Liveness Check.

    Measure Count
    CI jobs read / checkout and history-fetch steps among them 3580 / 4390
    Lint & Type Check checkout and fetch steps 1200
    Those steps ending other than success (wall hit, timeout, cancel) 0 of 5590
    Failed merge-group runs 3 of 500, all CI: run 44213369286, run 44229490752 and run 44324504354. Each failed in a Test Core shard's Run this shard's tests step, with sibling shards cancelled. None failed on checkout or fetch.
    Slowest history fetch 199 s (Test UI (3/16), run 44330118723). The next slowest was 125 s. The slowest lint checkout or fetch was 180 s.
    curl 28 / Operation too slow / RPC failed lines in the full logs of the 197 green runs (97 CI, 100 Lint) 0
    actions/checkout retries (Waiting N seconds before trying again) in those runs 0
    fetch-history.sh retries (Attempt 2 of 3) in those runs 1 (below)

    The one retry was not a curl 28 low-speed abort. It came from the #34561 silence watchdog. In Test UI (3/16) of run 44330118723, attempt 1 was receiving at about 66 MiB/s. Its last live phase line was Resolving deltas at +20 s. git then wrote nothing the watchdog could see for 60 s while it resolved deltas locally, so the watchdog killed it with this warning: git fetch wrote nothing for 60s after 24160 byte(s) of output. The buffered output flushed at that same moment and showed Resolving deltas: 100% … done. Attempt 2 finished in 77 s, and the job went green. The cost was about 2 minutes on one job in 24 hours. It looks like a watchdog false positive during local delta resolution, not a network stall. It is noted for triage and not acted on here.

    GitHub Support ticket: not needed on these numbers. The stall that #35032 targets did not recur in this window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:devxfindingpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions