Skip to content

chore: merge upstream gstack 2026-07-15 - #11

Merged
nezovskii merged 38 commits into
mainfrom
upgrade/gstack-1.60.2.0-20260715
Jul 15, 2026
Merged

nezovskii merged 38 commits into
mainfrom
upgrade/gstack-1.60.2.0-20260715

Conversation

@nezovskii

Copy link
Copy Markdown

Summary

  • Merge garrytan/gstack:main into ActVox/gstack:main
  • Includes iOS QA regeneration/tunnel/tap fixes, GBrain sync parsing fixes, browser exfiltration-domain hardening, destructive-command safety fixes, and basic-ftp CVE override
  • Resolve the single test/helpers/session-runner.ts conflict mechanically in favor of upstream direct-spawn behavior

Verification

  • bun install - PASS
  • bun run gen:skill-docs --host all - PASS
  • git diff --check - PASS
  • targeted suite: 277 passed, 10 failed in combined parallel run
  • isolated browse/test/gstack-config.test.ts: 26 passed, 0 failed (combined failures were test-env interference)
  • isolated test/ios-qa-regen.test.ts: 3 passed, 1 failed

Blocker

The remaining iOS manifest test fails on this host while linking Swift PackageDescription with Apple Swift 6.3.2 (Undefined symbols for architecture arm64). This appears to be local CommandLineTools/toolchain mismatch, not an assertion failure in generated content. Keep draft until CI confirms or the host toolchain is repaired.

Generated-doc warning

gen:skill-docs --host all reports token-ceiling warnings for generated ship skills on Factory/Cursor hosts (~44.5K tokens vs 40K ceiling). Generation itself exits 0.

Version note

Upstream history contains release commit v1.60.2.0, but upstream VERSION still reads 1.60.1.0; this PR preserves upstream exactly.

garrytan and others added 30 commits July 9, 2026 23:49
…-holding orphans

proc.kill() only signals the sh -c wrapper; the claude child survives as an
orphan that inherited our stdout/stderr pipes, blocking the stream drain until
it exits (observed: a 600s spawn timeout stretching to 1431s and tripping bun's
per-test timeout with no result). On timeout, cancel the stdout reader; race
the stderr drain against child exit + 5s grace. Streamed transcript lines
survive the cancel, so callers still get their evidence.

Regression test: test/session-runner-timeout.test.ts (fake claude spawns a
pipe-holding orphan; fails in 30s without the fix, passes in 8s with it).

Co-Authored-By: Claude Fable 5 <[email protected]>
…read real stream-json

Root cause of months of silent local failure: the sandbox copied skill dirs to
the repo root, but claude >= 2.x resolves slash commands strictly from
registered skills, so /autoplan short-circuited with 'Unknown command' (0
turns, ~1s) on every attempt. Install /autoplan + review skills at
project-level .claude/skills/ (same pattern as skill-routing-e2e).

Also: the transcript filter matched entry.type === 'tool_use', a shape that
never appears at the top level of raw stream-json, so assertions only ever saw
the final result text; filter on assistant/user events instead. Hang
protection accepts the Phase 1 review dispatch (Agent/Task tool call carrying
review instructions) as progress evidence, since full Phase 1 completion is
15+ min of subagent work. Budget raised to 10 min / 40 turns.

Invisible in CI: the file is in neither evals.yml nor evals-periodic.yml
matrices (coverage decision filed in TODOS.md).

Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
gstack-repo-mode was re-deriving slugs from origin and writing twin project dirs; consume gstack-slug's cached sanitized slug instead.
GeminiAdapter was reading message.text and result.usage, so current CLI
content/stats events produced empty $0 success rows. Accept content with
an assistant role guard, stats token fallbacks, init model, and treat
empty exit-0 output as an error (garrytan#2159).

Co-authored-by: Cursor <[email protected]>
Exercise resultFromGeminiStream against current stream-json fixtures
(including empty-success hardening). Recognize GEMINI_API_KEY and map
IneligibleTierError to auth — personal OAuth free-tier is no longer
supported by gemini CLI.

Co-authored-by: Cursor <[email protected]>
Pass --skip-trust so temp/untrusted workdirs work in headless
benchmarks (mirrors Codex --skip-git-repo-check). Revert VERSION,
CHANGELOG, and package.json bumps — leave release bookkeeping to
maintainers / /ship, matching community PR practice.

Co-authored-by: Cursor <[email protected]>
endpoint-hash returns "local" for stdio/PGLite, but validators only
allowed hex suffixes, so setup-gbrain could not persist trust policy.

Co-authored-by: Cursor <[email protected]>
…bling HIGH advisories

basic-ftp reaches the tree only transitively:
  puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > get-uri > basic-ftp

Versions <= 5.3.0 carry four HIGH advisories, all fixed in 5.3.1:
- GHSA-chqc-8p9q-pq6q (CVE-2026-39983) FTP command injection via CRLF
- GHSA-6v7q-wjvx-w8wg incomplete CRLF protection (USER/PASS + MKD bypass)
- GHSA-rpmf-866q-6p89 DoS via unbounded multiline control-response buffering
- GHSA-rp42-5vxx-qpwr DoS via unbounded memory in Client.list()

Pin via a bun `overrides` entry rather than a phantom direct dependency.
Overriding forces every basic-ftp in the tree to 5.3.1, including get-uri's
nested copy; `bun audit` then reports zero basic-ftp advisories (total 37 -> 33,
HIGH 13 -> 9). A direct-dependency bump leaves get-uri/basic-ftp at the
vulnerable version and audit still flags all four.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Parses package.json overrides + every resolved basic-ftp specifier in bun.lock
(including nested paths like get-uri/basic-ftp) and fails if any is below 5.3.1.
Deterministic and offline. Fires on the pre-fix tree ([email protected]) and would
also catch a direct-dependency-only bump that leaves a nested vulnerable copy.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
urlBlocklistFilter compared URLs against the exfiltration blocklist with
case-sensitive substring checks, so an uppercased sink (https://WEBHOOK.SITE/x)
bypassed the guard and reached the scoped browser agent. Normalize the page URL
and extracted content URLs to lowercase before comparing, and make URL
extraction scheme-insensitive so HTTPS:// links are still caught.

Fixes garrytan#2190

Co-Authored-By: Claude Fable 5 <[email protected]>
…main-blocklist

fix(browse): case-insensitive exfiltration-domain blocklist matching (garrytan#2190)
…026-39983

fix(deps): pin basic-ftp to 5.3.1 to fully clear CVE-2026-39983 and 3 sibling HIGH advisories
fix(repo-mode): reuse canonical cached project slug (garrytan#2212)
16francej and others added 7 commits July 14, 2026 16:38
fix(benchmark): gemini stream-json content/stats parse (garrytan#2159)
…icy-reject

fix(gstack-config): accept @Local endpoint ids for brain_trust_policy
…194-pglite-lock

fix(gbrain): distinguish PGLite locks from malformed config
…st-infra-isolated-review

fix: harden test infrastructure and iOS device QA
# Conflicts:
#	test/helpers/session-runner.ts
@nezovskii

Copy link
Copy Markdown
Author

Unblocked fork CI: all Linux jobs had remained queued for 12h with label ubicloud-standard-8 and no runner assignment. The ActVox fork has no Ubicloud runners, so the workflows now use ubuntu-latest; macOS and Windows lanes remain unchanged.

Verification:

  • workflow YAML syntax checks from file edits: pass
  • git diff --check: pass
  • stale ubicloud-standard-8 labels under .github/workflows: 0
  • bun test test/user-slug-fallback.test.ts: pass

@nezovskii

Copy link
Copy Markdown
Author

Version gate follow-up:

  • bumped VERSION and package.json to 1.60.2.0
  • added ActVox integration changelog entry
  • bun install: pass
  • bun run gen:skill-docs --host all: pass
  • version consistency check: pass
  • git diff --check: pass

@nezovskii
nezovskii marked this pull request as ready for review July 15, 2026 16:24
@nezovskii
nezovskii merged commit 2c743db into main Jul 15, 2026
9 of 10 checks passed
@nezovskii
nezovskii deleted the upgrade/gstack-1.60.2.0-20260715 branch July 15, 2026 16:24
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.

5 participants