Skip to content

Fix three intermittent test failures: large developer profiles, a docs-audit fixture and an error-review fixture - #4745

Merged
capy-ai[bot] merged 5 commits into
mainfrom
flaky-fixes-2026-11-23
Nov 23, 2026
Merged

capy-ai[bot] merged 5 commits into
mainfrom
flaky-fixes-2026-11-23

Conversation

@garrytan

@garrytan garrytan commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

gstack-developer-profile --vibe no longer fails once a profile grows past 64 KB, and two paid test fixtures stop giving the model contradictory instructions.
These were the repeat failures in this week's test runs; fixing them keeps the release checks green without retries.
Nothing to do as a reader.

What changed

People with long session histories hit a failing gstack-developer-profile --vibe, and three paid checks kept going red for reasons in the test fixtures rather than the product. Now:

  • bin/gstack-developer-profile --vibe piped the profile into a bun -e script that never read its input and passed the same profile again as an environment variable. A profile over 64 KB made cat die of SIGPIPE (exit 141, the CI symptom in run 45100410843); one over 128 KB failed to start at all (exit 126, "Argument list too long"). It now reads standard input like the other subcommands. A new test covers both sizes; it fails on main (141) and passes here.
  • Docs-audit fixture (test/helpers/docsync-interface.ts): Defaults name current models, and review stops reading "the HIGH branch" as a HIGH finding (GST-3462) #4678 added a gstack-banned-terms step to /document-release, which the fixture's closed command list does not allow. One trial probed it with --help and the observer failed the run (census 45091322954). The interface now says to skip such a step and record it, never probe it.
  • Error-review fixture (test/fixtures/dx-error-contract-case.ts): the example meant to need no findings left gaps the review rubric counts (what a crash leaves behind, a fix once network retries run out, versions and exit codes on the crash path), so reviewers flagged it in census 45122546426 and again here. The example now meets every rubric item on its network and crash failures; the pass bars are unchanged.

There is no visible surface to picture, because the change is one CLI input path and two test fixtures.

Why

"These were the repeat failures in this week's test runs." Each one cost a retry or a red check, and the profile bug also breaks the command for real users with large histories.

Blast radius

--vibe keeps its flags and output; only its input path moved, matching the stdin pattern the other subcommands in the same script already use. The two fixture edits change only what the paid tests show the model, and the paid runs below passed on them.

Documentation

Status: current. No documentation changes were needed.

Scope: the diff from a3ecfd5 to a6296db plus the unstaged changelog fragment: bin/gstack-developer-profile, changelog.d/flaky-fixes-2026-11-23.md, and four test files and fixtures. Nothing is staged and there are no new files.

Documentation health:

  • changelog.d/flaky-fixes-2026-11-23.md: current. It accurately describes the three fixes. It is the parent's file and I did not edit it.
  • plan-tune/SKILL.md.tmpl: current. Its description of --vibe output is still correct.
  • Other docs: not affected. No doc mentions the removed PROFILE_DATA variable.

Coverage debt: none. The --vibe interface is unchanged.

Diagram drift: none.

Pre-Landing Review

No issues found. One batched reviewer and one adversarial reader found nothing at light depth.

Eval Results

Paid runs, local, on this branch (total $10.57):

  • Diff-selected gate at 2f9e089: 13 of 14 cases passed, including docs-audit spawned (docsync-spawned). ship-docsync-failure failed once because the model ran the fixture's actor script without bun and then reran it correctly; one rerun at the same tree passed, so it is recorded as a flaky test.
  • dx-error-contract-review, 3 trials: 1 of 3 at 2f9e089, which surfaced the remaining fixture gaps; 3 of 3 after the fixture fix at a6296db.
TODOS

No TODO items completed in this PR.

Tests
  • bun test test/gstack-developer-profile.test.ts: 94 pass, 0 fail
  • bun test test/docsync-command-grammar.test.ts test/docsync-lifecycle-interface.test.ts test/docsync-report-interface.test.ts: 228 pass, 0 fail
  • bun test test/dx-error-contract-grader.test.ts: 14 pass, 0 fail
Agent notes

Daily flaky pass GSTA-824 (GST-3595) for GStack Minder (GSTA-36). Ledger: captain drive handoffs/flaky-ledger.md. Flaky rerun: ship-docsync-failure, run gsta824-rerun-ship-docsync-failure, PASS 1/1 at 2f9e089.

Approvals

No approvals recorded for branch flaky-fixes-2026-11-23.
Plan: exempt: flaky

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen dispatches=4
Gate edits: none detected (GATE_SCAN tagged=0)

{
  "schema_version": 1,
  "pr": 4745,
  "head": "08a5caad45030f3954fb1db59330f8ae57ca181d",
  "version": "1.103.0.0",
  "base": "main",
  "gate": {
    "devprofile": {
      "pass": 94,
      "fail": 0,
      "skip": 0
    },
    "docsync": {
      "pass": 228,
      "fail": 0,
      "skip": 0
    },
    "dxgrader": {
      "pass": 14,
      "fail": 0,
      "skip": 0
    }
  },
  "calls": 26,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/ship-4745",
  "head_tree": "01398863cdbb472c253acb783984d206ae4891ca",
  "product_patch_id": "68a6a820b2ccc8bb22110c992afc03dde0baf618",
  "gstack_version": "1.103.0.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 21,
    "rules": "33831f8248a814fd",
    "base": "c4cfe6d1c94e2fd6fe2afd735dd1a5cc914cfe0c",
    "registry": "c4cfe6d1c94e2fd6fe2afd735dd1a5cc914cfe0c",
    "gate_scan": {
      "tagged": 0,
      "head": "08a5caad45030f3954fb1db59330f8ae57ca181d"
    },
    "reasons": [
      "runtime=21"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @01398863cdbb (8 checks, current for 08a5caad4503)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/45206482340/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=01398863cdbb tests=39249 skipped=67 runs=45206482340/1 profiles=ci-reuse/free-tests heads=08a5caad4503 base_moved=c4cfe6d1c94e verified=2026-11-23T16:21:13.659Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md, CONTRIBUTING.md"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 3,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "gate_dispositions": []
}
{"head":"a6296db2507665b57b46121deb0be59bf87ca1ad","run":"ship-4745","status":"started","review_loop":{"passes":1,"blocking_found":0,"deferred":0,"noted":0,"fixed":0,"scope":"frozen","rounds":1,"dispatches":{"specialist":3,"red-team":1}}}

garrytan and others added 3 commits November 23, 2026 14:24
The developer profile's archetype command no longer fails on large profiles,
the docs-audit fixture tells the model what to do with a skill command it may
not run, and the error-message review fixture's well-behaved example now says
what a crash leaves behind.

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

trunk-io Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 23, 2026 15:01
…em on network and crash failures

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit b5eb401 into main Nov 23, 2026
53 checks passed
@garrytan garrytan mentioned this pull request Nov 24, 2026
capy-ai Bot added a commit that referenced this pull request Nov 24, 2026
- `/ship` now tells you what to change when GitHub refuses a push for email privacy. (#4748)
- The release gate's /cso check accepts the low-confidence hypotheses /cso now reports. (#4753)
- /cso reports every security finding the code supports instead of dropping most of them. (#4739)
- /cso can search the whole repository in one call, and a daily report now lists its low-confidence hypotheses. (#4742)
- A first version's plan and try-it message now open with the owner's own words, and the build is tried the same way he will try it before he is asked. (#4759)
- A first version's public export now keeps out the owner's short quotes and his reasons to leave something out, and a phone first-use check installs a build the cloud phone can actually run. (#4772)
- Three intermittent test failures are fixed. (#4745)
- Free Tests runs its shards on 8-core runners again. (#4749)
- A land that waits on an earlier CI run now decides on what that run actually did. (#4763)
- Landing a PR no longer starts a new CI run when one for the same merged code is already running or has passed. (#4760)
- /ship no longer misses a file-mode change from main on files whose names start with `:`. (#4774)
- make-pdf keeps quotes in alt text, link titles and raw HTML attributes inside the attribute, so a Markdown file can no longer add an `onerror`, `onload` or `javascript:` link that runs in the print browser. (#4761)
- Posting a PR body that lists earlier /ship runs no longer stops for a phone number that isn't there. (#4747)
- A first version's public export now catches a short owner quote whose padding or quote marks are encoded. (#4778)
- A first version's public export now also keeps out a short owner quote written with spaces just inside its quote marks. (#4776)
- Posting a PR body that lists earlier /ship runs no longer stops for a card number that isn't there. (#4751)
- /ship no longer asks for an extra reader when you merge the base branch next to code that was already reviewed. (#4754)
- /ship no longer plans narrow re-checks after a fix. (#4741)
- /ship can't quietly gain new refusals. (#4740)
- `gstack-upgrade` no longer refuses to run after you disable skills. (#4743)
- The free test suite splits its shards from this week's recorded test times. (#4744)
- gstack now writes up a failed or shelved attempt before closing it. (#4735)

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