Skip to content

v1.92.78.0 test: seven flaky-test repairs and six failure diagnostics from the 2026-11-01 flaky pass (GSTA-240) - #3804

Merged
capy-ai[bot] merged 5 commits into
mainfrom
capy/gsta240-flaky
Nov 2, 2026
Merged

capy-ai[bot] merged 5 commits into
mainfrom
capy/gsta240-flaky

Conversation

@garrytan

@garrytan garrytan commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3804,
  "head": "7dd4185fe373bae96e29dfbd0e8abc067c32023f",
  "version": "1.92.30.0",
  "base": "main",
  "gate": {
    "typecheck": {
      "pass": 1,
      "fail": 0,
      "skip": 0
    },
    "focused": {
      "pass": 704,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "d7cb10be8e464c3dc4a6e5c9bf7ea3ff55dccd83",
  "product_patch_id": "55d047fabada4ccd77a48bbe0c9f7fd81d3cdc20",
  "gstack_version": "1.92.28.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 17,
    "rules": "551486253e156572",
    "base": "69c14b17d57d5eef537dacbd533ee88865a0a00a",
    "registry": "69c14b17d57d5eef537dacbd533ee88865a0a00a",
    "gate_scan": {
      "tagged": 0,
      "head": "7dd4185fe373bae96e29dfbd0e8abc067c32023f"
    },
    "reasons": [
      "gate-class",
      "runtime=17"
    ],
    "risk": []
  },
  "pregate": "requires-remote cleared @d7cb10be8e46 (1 checks, current for 7dd4185fe373)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41426431397",
    "pregate.json/remote_gate: remote-gate tree=d7cb10be8e46 tests=5136"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/ (except docs/TESTING_INTERNALS.md, owned by open PR #3697), README.md, AGENTS.md, CONTRIBUTING.md, CLAUDE.md"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen"
  },
  "carry": {
    "from": "26b4e6e88b126a733e86923cb3fdd3e2151e977a",
    "reason": "base merge + test-only change + release metadata",
    "product_patch_id": "55d047fabada4ccd77a48bbe0c9f7fd81d3cdc20",
    "changed_paths": [
      "product:.github/workflows/free-durations-record.yml",
      "product:.github/workflows/free-tests.yml",
      "product:.github/workflows/windows-free-tests.yml",
      "product:.github/workflows/windows-setup-e2e.yml",
      "product:.github/workflows/windows-smoke.yml",
      "product:.gstack/pregate.json",
      "product:.gstack/ship-policy.json",
      "product:AGENTS.md",
      "metadata:CHANGELOG.md",
      "product:CONTRIBUTING.md",
      "product:README.md",
      "product:TODOS.md",
      "metadata:VERSION",
      "metadata:agents-digest/gstack-AGENTS.md",
      "product:autoplan/DRIVER.md",
      "product:autoplan/SKILL.md",
      "product:autoplan/bin/guard-journal.ts",
      "product:autoplan/bin/phase-publication-hook.ts",
      "product:autoplan/sections/ceo-only.md",
      "product:autoplan/sections/ceo-only.md.tmpl",
      "product:autoplan/sections/manifest.json",
      "product:bin/gstack-autoplan",
      "product:bin/gstack-autoplan-snapshot.ts",
      "product:bin/gstack-brain-sync",
      "product:bin/gstack-ceo-mode-handoff",
      "product:bin/gstack-checks",
      "product:bin/gstack-developer-profile",
      "product:bin/gstack-doctor",
      "product:bin/gstack-doctor-components.sh",
      "product:bin/gstack-eval-plan",
      "product:bin/gstack-jsonl-merge",
      "product:bin/gstack-outside-voice",
      "product:bin/gstack-patch-names",
      "product:bin/gstack-pregate",
      "product:bin/gstack-restamp",
      "product:bin/gstack-review-dispatch",
      "product:bin/gstack-review-plan",
      "product:bin/gstack-review-scope",
      "product:bin/gstack-ship-queue",
      "product:bin/gstack-ship-receipt",
      "product:bin/gstack-skill-name.sh",
      "product:bin/gstack-uninstall",
      "test:browse/test/cookie-import-native.test.ts",
      "test:browse/test/cookie-import-node.test.ts",
      "test:browse/test/terminal-agent-publication-lock.test.ts",
      "test:browse/test/xvfb.test.ts",
      "product:captain/templates/slot-call.md",
      "product:capy/skill/gstack/SKILL.md",
      "metadata:changelog.d/capy-gsta240-flaky.md",
      "product:docs/TESTING_INTERNALS.md"
    ],
    "merge_commits": 1,
    "range_diff": "1:  fbbec2096 = 1:  fbbec2096 test: eight flaky-test repairs and five failure diagnostics from the 2026-11-01 flaky pass (GSTA-240)\n2:  26b4e6e88 = 2:  26b4e6e88 fix(free-shards): keep failing a shard on an unseen browser child, and name it and whether it exited (review finding)\n-:  --------- > 3:  7dd4185fe changelog: pregate-regate copies through gitFixtureTemplate after the main merge",
    "covers": [
      "pre-landing review",
      "adversarial review",
      "gate integrity",
      "documentation audit"
    ],
    "reruns": [
      "CI at head (gstack-ship-queue ready requires it); test and helper code changed since the reviewed head runs there unreviewed"
    ],
    "ancestry": "linear",
    "trees": [
      "4b786a875c25655836c96c0a18f779bb74f7e86b"
    ]
  }
}

What changed

With the gstack launch file sourced, three render-root cases failed every run on main; they pass once the case clears the state-root variables it does not name

With the gstack launch file sourced (it exports GSTACK_STATE_ROOT), three render-root cases in test/autoplan-publication-guard.test.ts failed every run on main; they pass once the case clears the state-root variables it does not name.

Before/after as text: With the gstack launch file sourced (it exports GSTACK_STATE_ROOT), three render-root cases failed every run on main; they pass once the case clears the state-root variables it does not name
--- Before · before.txt · captured output
+++ After · after.txt · captured output
 (pass) Autoplan phase entry through the gbrain :user render (#2569) > the render root setup resolves through GSTACK_USER_RENDER_DIR is this installation
+(pass) Autoplan phase entry through the gbrain :user render (#2569) > the render root setup resolves through GSTACK_HOME is this installation
+(pass) Autoplan phase entry through the gbrain :user render (#2569) > the render root setup resolves through HOME is this installation
+(pass) Autoplan phase entry through the gbrain :user render (#2569) > the render root setup resolves through empty GSTACK_USER_RENDER_DIR is this installation
+ 4 pass
+ 0 fail
-(fail) Autoplan phase entry through the gbrain :user render (#2569) > the render root setup resolves through GSTACK_HOME is this installation
-(fail) Autoplan phase entry through the gbrain :user render (#2569) > the render root setup resolves through HOME is this installation
-(fail) Autoplan phase entry through the gbrain :user render (#2569) > the render root setup resolves through empty GSTACK_USER_RENDER_DIR is this installation
- 1 pass
- 3 fail
 

Why

The daily flaky pass for 2026-11-01 found 14 paid and 34 free flake records in 1,053 CI runs, plus five reds crew lanes reported by hand. This PR repairs the ones whose cause the logs prove and whose files no queued PR owns, and adds diagnostics where one red did not show its cause, so the next red names it. No threshold, trial count, case kind or retry changed.

Blast radius

Two product scripts change. bin/gstack-codex-probe only changes how a waiter reads an owner-less lock whose age it cannot read (it now waits instead of breaking it), and the wait loop stays bounded by _tries (bin/gstack-codex-probe:640-672, read). bin/gstack-evidence adds one environment variable, GSTACK_EVIDENCE_LOG, to the lane it spawns, and scripts/lib/free-home-guard.ts ignores only that exact path; a foreign write still fails (test/free-home-guard.test.ts, run). scripts/test-free-shards.ts changes only an error message. Everything else is test code. The remote gate ran 4,917 tests with 0 failures on tree 4b786a875c25, and PR CI is green.

Approvals

No approvals recorded for branch capy/gsta240-flaky. (Daily flaky pass: exempt from the plan step under the gstack skill's "Plan, approve, ship".)

Summary

Seven flakes stop failing correct runs. A codex-probe waiter that lost a race with the lock holder removed the next owner's lock, so concurrent probes ended MODEL_PROBE_INCONCLUSIVE in three Free Tests runs. A /ship lane's own evidence log tripped the free runner's real-home check. The autoplan render-root cases read the caller's GSTACK_STATE_ROOT. The design-detect directory scan slept 1,000 ms against a 1,500 ms batch timeout on macOS. pregate-regate rebuilt one ~3 s fixture in every test. ship-queue-train planted its seam on the name the fixture's own git maintenance uses (EEXIST twice). The ship-budget fake child wrote its args file in two steps, so a poll read it empty.

Six reds that did not show their cause now print it. The free runner names an unconfirmed browser child and whether it had exited, and five tests print process state, exit status or cleanup events behind their assertion.

Test Coverage

Each changed runtime file has a changed test naming it (coverage map: deterministic, no audit reader). Every repair was proven failing-first: red without the fix (a stat stub for the probe race, an injected 600 ms engine delay, a held maintenance.lock, a 1 s write window, the launch file's GSTACK_STATE_ROOT, real gstack-evidence under the default guard) and green with it.

Tests ran: typecheck count unavailable
Tests ran: focused 704

Pre-Landing Review

No blocking issues remain. Pass 1 (specialists, Red Team): no findings. Step 11: the outside voice (openai/gpt-6.1-sol) found one blocking issue: the first version settled a shard when a recorded browser child the runner never saw had already exited, and it reproduced an exited child leaving a live orphan that the runner then passed. Fixed in 26b4e6e by keeping the failure and naming the child instead. Pass 2 on the fix range (specialists, Red Team): no findings.
REVIEW_LOOP: passes=2 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen
Gate edits: none detected (GATE_SCAN tagged=0)
Outside review: completed (openai/gpt-6.1-sol), 1 blocking finding, fixed.

Review notes

Informational, not blocking (native adversarial pass, all Low):

  • bin/gstack-codex-probe:681: the owner-less break still compares an empty owner string, so a lock that was truly abandoned in its creation window can race a fresh mkdir. Pre-existing; this diff narrows the window.
  • bin/gstack-codex-probe:665-667: on a platform where neither stat -c %Y nor stat -f %m reads a directory's mtime, an owner-less lock now never ages out and probes time out instead. GNU, busybox and BSD stat all read it.
  • scripts/lib/free-home-guard.ts: two lanes sharing one real HOME still see each other's lane logs, and whoever sets GSTACK_EVIDENCE_LOG can exempt one exact file (that caller already controls the runner's environment).

Exploratory QA

Not applicable: test and harness changes with no user-facing surface.

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped. The selector lists 264 gate cases only because test/helpers/restamp-fixture.ts is a derived reference; its change adds copyFixtureRepo and moves the existing git helper into fixtureGit without changing makeFixtureRepo's behavior. The train's full gate covers them.

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). Daily flaky pass repairs from the flake ledger.

TODOS

No TODO items completed in this PR.

Documentation

Status: current. No documentation edits were needed.

Scope: base 83ae96e to head 26b4e6e on capy/gsta240-flaky, 19 committed files and no staged, unstaged or untracked changes. The changes are 2 bin scripts, free-home-guard.ts, test-free-shards.ts, 13 test files and the changelog.d fragment. The fragment is the only prose file changed.

Documentation health

  • changelog.d/capy-gsta240-flaky.md: reviewed, matches the diff, not modified (parent-owned metadata).
  • docs/TESTING_INTERNALS.md: reviewed (Real-home tripwire section); it does not name the new GSTACK_EVIDENCE_LOG exemption. The file is outside the selected docs set, so it was not edited.
  • docs/capy-install.md, docs/flaky.md, docs/PROJECT_STRUCTURE.md: reviewed for the affected areas; no contradiction found.

Coverage debt: the GSTACK_EVIDENCE_LOG exemption has only code comments and the changelog fragment as reference. The codex-probe lock-age behavior and the browser-ownership error text have no reference docs; these are minor gaps. Diagram drift: none.

Test plan

  • bun run typecheck: pass
  • focused lane, 18 files (bun test --timeout=30000, launch-file GSTACK_* unset): 704 pass, 0 fail
  • remote pregate on Ubicloud, tree 4b786a875c25: 4,917 tests, 0 failed ($0.05)
  • macos-named-regressions (run 41321940756) and windows-free-shard (run 41321940736): green

garrytan and others added 2 commits November 1, 2026 15:01
…2026-11-01 flaky pass (GSTA-240)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d name it and whether it exited (review finding)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 2, 2026 10:06
…a240-flaky

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	test/helpers/restamp-fixture.ts
… main merge

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title test: seven flaky-test repairs and six failure diagnostics from the 2026-11-01 flaky pass (GSTA-240) v1.92.78.0 test: seven flaky-test repairs and six failure diagnostics from the 2026-11-01 flaky pass (GSTA-240) Nov 2, 2026
@capy-ai
capy-ai Bot merged commit eff19e2 into main Nov 2, 2026
46 checks passed
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