github garrytan/gstack v1.109.0.0
gstack v1.109.0.0

45 minutes ago

gstack v1.109.0.0

What's new

  • Document daily issue-intake triage, cross-repository /spec issue filing, and multi-agent planning guidelines (thanks @ElNeMeR70): - Add a daily issue-intake automation template (captain/templates/automation-issue-intake.md) and document the triage schedule for both Capy and standalone setups in docs/triage.md. - Document how /spec files issues into another repository your team owns via GH_REPO or gh repo set-default, including --repo-visibility, exit 3 fallback handling, and Capy HOST_PUBLISH: hand-off in spec/sections/gate-and-file.md.tmpl. - Clarify how workers handle mid-build findings that invalidate an approved plan, when to escalate /autoplan from --kind feature to --full, and when to start with /office-hours or /plan-ceo-review. (#5093)
  • Hardened decision-preservation and restore-backfill edge cases in bin/gstack-context-checkpoint: - Recognized non-code Q&A placeholders such as No code changes (and qualified variants like No code changes (Q&A only)) as stub entries so short inquiry turns merge still-open active decisions, reversals, and open promises into the saved file without keeping placeholder text. - Let --replace checkpoints seed their own new decisions, reversals, and promises for later stub saves and restores while still blocking older pre-replace history. - Accumulated reversals across intermediate checkpoints during multi-hop restore backfill so an intermediate reversal keeps older superseded decisions and promises suppressed. - Pruned contradicted prior opposite reversal lines when a decision is re-reversed (while keeping unrelated reversals intact), honored explicit Open Promises: None on dirty-checkout same-HEAD restores, deduplicated overlapping promises in sparse-stub restore backfills, ranked same-second --clear/--replace checkpoints ahead of older same-second saves on default restore, and removed the 200-file pre-branch cap during save discovery. (#5109)
  • Prevented JSONL append data loss when an existing log file's last line lacks a trailing newline, and unblocked the v1.27.0.0 upgrade migration when a user's brain repository has a custom name (thanks @Barack-zero-to-one): - appendJsonl in lib/jsonl-store.ts now checks the last byte of an existing non-empty file over the same O_APPEND file descriptor and prepends a newline when missing, keeping both the previous record and the newly written record readable across decision logs, evidence stores, memory helpers, and redaction audit logs. - gstack-upgrade/migrations/v1.27.0.0.sh now inspects the repository name recorded in the remote URL before attempting a GitHub rename, skipping the rename when the repository uses a custom name so ./setup and /gstack-upgrade finish cleanly and later migrations run. (#5095)
  • /land-and-deploy and /landing-report now read pinned version files, and /spec now anchors code references by symbol or section (thanks @mikhailsal and @harsha0602): - Added gstack-version-bump at <ref> and updated /land-and-deploy Step 3.4 and /landing-report Step 2 to use it instead of reading <ref>:VERSION directly, so repositories pinning their version in package.json or another file through .gstack/version-path run duplicate-version drift checks and show real version labels instead of unavailable: bad version or 0.0.0.0. - Updated /spec discovery, Current State, Files Reference, and Full Inventory guidance to cite repo-relative paths with symbol or section names (and commit-pinned line links when exact code is evidence) instead of bare line numbers that drift after later edits. (#5104)
  • Reframe /review, Codex $review, and security/cross-cutting review prompts in defensive engineering language to prevent false safety-filter stops while keeping full vulnerability detection. (#5091)
  • Compacted gstack-review-plan --json output when review_exclude_paths is active (omitting excluded files from paths, per_path, and deleted while keeping all included/kept files and exact path_counts) and added --json-out <file> file-backed JSON output so large-diff callers (gstack-review-dispatch and gstack-ship-preflight) never overflow the 64 MiB pipe buffer. (#5107)
  • Moved gstack-diff-scope path classification and template-UI detection to a streaming Bun helper with --no-renames so pull requests touching 250,000+ files finish in a few seconds instead of timing out at 60 seconds. (#5107)
  • Replaced remaining adversarial, red-team, and bypass prompt wording in /review and Codex $review (task_name: "edge-case-audit", review/sections/edge-case-audit.md, review/checklist.md, review/references/blocker-gate.md, review/specialists/red-team.md) with neutral defensive-engineering terms while keeping full security checks and legacy rollout compatibility. (#5100)
  • Replace remaining adversarial-review, --pass adversarial, "phase":"adversarial", red-team, and bypass runtime strings in /review and Codex $review (review/sections/edge-case-audit.md, review/sections/review-army.md, review/specialists/cross-cutting.md, review/specialists/targeted.md, review/gate-integrity.md) with neutral defensive-engineering labels (edge-case-audit, edge-case, cross-cutting, authorization gap, control gap, gate integrity gap) while preserving backward-compatible aliases across review logging, specialist selection, dispatch, and contract checks. (#5110)
  • Install the color-emoji font on openSUSE during ./setup using zypper (checked before dnf because openSUSE also ships dnf5) and add openSUSE zypper commands to the Linux install hints for unzip, poppler, and Xvfb. (#5094)
  • Added the opt-in /port skill (in the dev-tools pack, leaving Core-10 installs unchanged) and the bin/gstack-port CLI (init-config, schema, plan, check-slice --run-parity, status, sync, audit), porting playbook, and copy-paste GitHub Actions templates for incremental large-codebase migrations. (#5086)
  • Published the counted 30-PR sealed held-out confirmation results for /review in docs/context-bill-measured.json and regenerated docs/context-bill.md (+33.33pp Recall@minP>=0.5 and +31.33pp F1 over two-pass plain Claude Opus at $2.95 vs $1.17/PR metered API cost, and -19.5% paired API cost per PR vs the previous /review baseline #5002 at $2.92 vs $3.63/PR, alongside full false-blocker and self-host bundle-overlap caveats). (#5112)
  • Accept natural JSONL field aliases in gstack-review-precision gate (file/file_path/filePath, claim/title/description/issue/message, verbatim_quote/verbatimQuote/snippet/excerpt/code, execution_trace/trace/evidence, and callerGuardChecked/callers_checked/callersChecked/checked_callers/verified_callers) with canonical keys taking precedence, and document the one-line JSONL input schema in gstack-review-precision gate --help, error hints for malformed or unverified candidates, review/references/blocker-gate.md, and review/sections/full-workflow.md. (#5088)
  • Add an operational_learnings config toggle (gstack-config set operational_learnings off, default on) to stop automatic ~/.gstack learning writes immediately and omit the Operational Self-Improvement and Capture Learnings sections across ./setup and /gstack-upgrade while keeping explicit user-stated non-operational /learn entries working (#5041). (#5055)
  • Leaner /context-save and /context-restore checkpoints: Moved checkpoint pathing, identity verification, commit-drift checks, and branch-scoped listing into a single bin/gstack-context-checkpoint helper and tightened checkpoints to a ~20–30 line structure (Active Decisions, Reversals / Do-Not-Repeat, Open Promises / Next Step, Workspace). (#5070)
  • Updated scripts/ubicloud/ubi-runner.sh and /ubicloud to default to standard-4 (4 vCPU) VMs instead of standard-16, enable a default 4-hour owner-age sweep for TTL-less and expired VMs (UBI_GC_HOURS=4, sparing VMs still inside their declared -t<hours> TTL; set 0 to disable while keeping TTL reap active), and cap unkept -t<hours> TTLs at 24 hours in sweep (UBI_SWEEP_MAX_TTL_HOURS=24, spared when listed in --keep-file with a future until). (#5059)

Fixes

  • Fixed two edge cases in approval mirroring and review risk classification (thanks @exGeni): - gstack-approvals no longer automatically selects a shared drive's approvals/ folder for writes or reads when more than one captain-* drive exists under ~/.capy/drive/ (failing closed on unreadable or dangling entries too); hosts with multiple shared drives now fall back to the private project-user folder or local storage unless GSTACK_APPROVALS_DIR is set (set GSTACK_APPROVALS_DIR to keep reading or syncing earlier rows stored in a shared drive). - Review risk classification and path-exclusion checks now inspect both added and removed lines of regular, non-executable static markup, vector, and structured-doc files (.html, .htm, .svg, .md, .mdx, .markdown, .rst, .adoc) under token-named paths (such as brand/tokens/swatches.html, design/tokens/palette.svg, and docs/tokens/README.md) instead of flagging them as secrets by path alone, while keeping symlinks, executables, OAuth/credential payloads, env credential reads, code, data, .txt, binary, and unreadable files protected. (#5106)
  • Reduced prompt overhead on /context-save and /context-restore, deduplicated repeated shared preambles within a session, and preserved open decisions across stub checkpoints: - Moved /context-save and /context-restore to minimal housekeeping tier (preamble-tier: 0) with no shared preamble or start-command boilerplate, and fixed a hoisting mismatch that duplicated the ### Format subsection inline in full-loadout skill renders. - Added per-session SHA-256 preamble deduplication in bin/gstack-skill-load preamble (keyed strictly on explicit session identifiers, invalidated on hash change, with --force and GSTACK_PREAMBLE_NO_DEDUP=1 opt-outs). - Updated bin/gstack-context-checkpoint so non-code and stub saves preserve still-open Active Decisions, Reversals / Do-Not-Repeat, and Open Promises / Next Step from the prior same-branch checkpoint (with --replace / --clear to start fresh), and restore surfaces prior open context when the newest checkpoint on disk is a sparse stub. (#5099)
  • Fixed silent daily artifacts pull failures by running pulls through gstack-brain-sync --pull, writing .brain-last-pull only on success, and surfacing failures in skill start, gstack-brain-sync --status, and gstack-doctor so failed pulls retry instead of waiting 24 hours (thanks @exGeni). (#5102)
  • Fixed five reliability and test-harness edge cases across /autoplan, Chromium self-healing, and test settlement: - Return a corrective foreign_install denial naming this installation's canonical section path when /autoplan reads a nonexistent section path, instead of falling back to an unrecoverable evidence error. - Wait for stderr to drain (close instead of exit) in runBoundedChromiumReinstall so nonzero Playwright reinstall failures reliably report their stderr tail. - Treat same-start Linux PF_EXITING daemons whose /proc/<pid>/environ cleared during kernel exit_mm() as exiting during owned-browser settlement while still failing closed on live unbound daemons, and align cancellation polling with the force deadline. - Recognize single-line inline-context scope questions and Skip for now follow-up handoff menus in /plan-ceo-review test helpers, and write the PTY seed fixture's launch.json atomically so concurrent readers never observe a partial file. (#5096)
  • Fixed Gemini image-model billing guidance and gstack-team-init CLAUDE.md wording and downgrade safety (thanks @kalwajayanth): - Stopped $D (design/src/{auth,cli,provider}.ts), docs/hosts.md, and docs/troubleshooting.md from calling Gemini image-generation keys free, since Gemini image models have no free tier and require billing; free-tier 429s on image requests now report that Gemini image models have no free tier while vision and paid daily-cap 429s keep their quota message. - Updated bin/gstack-team-init so generated CLAUDE.md sections name /gstack-ship instead of /ship, qualify /browse on installing the optional browser pack (./setup --pack browser), wrap generated sections in hash-checked begin/end markers for safe in-place updates, and safely clean up managed enforcement hooks when switching from required to optional mode. (#5101)
  • Fixed /retro commit streaks after rebases or cherry-picks and stopped /gstack-ship reruns from counting their own branch as a rival version claim (thanks @Barack-zero-to-one): - bin/gstack-retro-metrics now sorts unique commit author dates newest-first before walking consecutive days, so rebased or cherry-picked commits with older author dates no longer pull the streak anchor backward or cut a live streak short. - bin/gstack-next-version now skips the currently checked-out branch when its git fallback scans origin branches, so rerunning /gstack-ship on an already-bumped branch keeps its own version slot instead of bumping past it. (#5097)
  • Fixed /careful prompting on safe deletes under /tmp/ or /var/tmp/ when the target path is stored in a local variable derived from a once-assigned scratch root inside simple semicolon, newline, or for-loop cleanup commands (such as S=/var/tmp/dev/job-abc; for m in a b; do D=$S/m-$m; rm -rf $D; done). (#5056)
  • Fixed gstack-first-use links failing with 404 on private GitHub links marked login_gated: true by verifying private https://github.com/... repositories, releases, release assets, commits, issues, pull requests, files, and folders through authenticated gh api (with git ls-remote fallback for repository links when gh is unavailable or not signed in) while keeping public links unauthenticated and failing closed on missing targets, unknown subpaths, spoofed hosts, and authentication errors without logging credentials. (#5057)
  • Fix gstack-ship-run live to scan ship run directories and review-start files in deterministic sorted order and collect every released upgrade hold even after finding an active run, preventing filesystem directory order from hiding dead runs. (#5060)
  • Fixed the interactive terminal test harness misclassifying completed turns that ask a follow-up question as still working. (#5062)
  • Calibrated /review severity rules symmetrically so verified concrete behavioral defects (wrong output, crashes, races, data or state corruption, auth or guard bypasses, resource leaks, broken CLI/API contracts, and silent regressions) stay CRITICAL instead of being downgraded out of caution while keeping INFORMATIONAL strictly for non-defect observations, enforced gstack-review-precision gate in the /review completion contract whenever CRITICAL >= 1 (with zero extra stop-hook retries when CRITICAL == 0), tightened deterministic filtering of speculative, style-nit, and invalid-anchor false blockers, right-sized specialist dispatch on diffs up to 300 lines to risk-matched specialists only while preserving uncapped multi-domain dispatch above 300 lines, and added offline local base-ref fallbacks in /review while keeping review/SKILL.md under 2,000 core tokens. (#5069)
  • Fixed $B snapshot and $B snapshot -i silently dropping page elements whose accessible names contain YAML-significant characters such as ": ", #, {, }, backticks, or escaped quotes, by unwrapping Playwright's quoted ariaSnapshot() YAML entries (including doubled apostrophes, bracket attributes, and trailing colons) while still skipping metadata lines like /url and /placeholder (#5065). (#5066)
  • Fixed Windows script launching in gstack-brain-cache when reading salience_allowlist from gstack-config (#5054) and in gstack-distill-apply when applying /plan-tune preference proposals through gstack-question-preference, including Windows Git Bash path normalization and a 30-second write timeout (#5052). (#5068)

Changes for maintainers

  • Hardened /ci-audit runtime sampling, billing CSV parsing, VM keep-file matching, and check accuracy: - Budget --max-job-calls by expected attempt calls (sum(run_attempt)) instead of one call per run so busy repositories with retries stay at exact coverage instead of flipping prematurely to lower_bound. - Replace fixed-position systematic sampling within strata with hash-keyed sampling to prevent aliasing on periodic alternating workloads, and give every run census weight 1 (including burst-only runs) whenever 100% of runs are fetched. - Normalize --keep-file owner= values and ubirun- prefixes via alphanumeric folding so hyphenated owner IDs match running VMs without prefix collisions. - Join separate GitHub billing CSV Organization and unqualified Repository columns into org/repo, reject invalid runner usage quantities instead of defaulting them to zero, and separate non-Actions products (Copilot, Packages, Git LFS) into non_actions_usd while preserving zero-delta ledger reconciliation. - Fire CI-00 when even a lower_bound week exceeds the jump threshold against exact prior baselines, and fix CI-04 to handle unbalanced apostrophes in heredocs plus chained sleep 1; sleep 3600 and exec sleep 3600 commands. (#5090)
  • Validate failure keys in --fixes-base-red upfront and use the target repository name in release tags and GitHub releases (thanks @Lanqiao-Luca, reported by @exGeni): - gstack-ship-queue ready --fixes-base-red now validates key prefixes and indices upfront—rejecting bare test names, unknown workflows, recorded test keys when no test record artifact is configured, and out-of-range command indices—before writing a readiness record (exact test-id matching still runs during combined checks). - Stable release cuts now derive the repository name from the required --repo slug (falling back to the origin git remote URL if --repo cannot be parsed or in programmatic calls) for annotated tag messages, GitHub release titles, release notes headings, and dry-run commands, keeping gstack as the fallback for garrytan/gstack or unresolvable remotes. (#5105)
  • Fixed the exploratory QA test harness to accept edge-case-audit start and completion records in gstack-review-log alongside adversarial-review, matching the updated /review edge-case audit command. (#5114)
  • Fixed follow-up edge cases in /gstack-ship review freshness, shared check-cache validation, and PR body prose checks: - Stopped review passes logged with --findings now clear once blocking findings are approved without stalling on informational skipped or noted entries, and unruled derived clearance aligns with isOpenFinding. - gstack-review-read now passes the resolved target base (--base or gh-merge-base) into clean base-merge checks. - gstack-ship-receipt carry --allow-repo-commands now rejects unreviewed head-policy or wrong-base mirrors up front, clears stale failing local check files at the same tree after a green refresh, avoids overwriting concurrent green mirrors when a refresh fails, and guards --body files against concurrent edits across refreshes. - PR body number checks now recognize single-column Markdown table separators (| --- |), and troubleshooting docs include the --allow-repo-commands shorthand. (#5089)
  • Fixed /gstack-ship review freshness and PR update handling: - Deferred critical findings in untouched base files are verified against the git diff instead of forcing an extra review pass, while modified-file, unplaced, and gate findings still fail closed. - Targeted review checks now accept a combination of plain documentation edits and owner-approved file edits made after the targeted read. - Stale check refusals now point to gstack-pregate run --allow-repo-commands, passing --allow-repo-commands refreshes the check at HEAD automatically, PR updates fall back to REST gh api PATCH when gh pr edit lacks read:org scope, plain-text SHIP_RECEIPT: summary lines stay in sync outside code fences, and FAIL: cells in Markdown tables no longer trigger false prose mismatches. (#5087)
  • Added the opt-in /ci-audit skill (in the ops pack, leaving Core-10 installs unchanged) and the offline bin/gstack-ci-audit CLI (static, diff, init-config, schema) to audit GitHub Actions runner pricing, volatile cache keys, sleeps on paid runners, free-runner candidates, workflow concurrency, CI script pagination and silent-zero bugs, and ephemeral cloud VM defaults, backed by a pre-merge self-test ratchet. (#5076)
  • Added live runtime auditing (gstack-ci-audit run and cache prune), provider billing CSV reconciliation (--billing-csv with reconciled account ledger and effective rate multiplier detection), weekly runner-minute baseline jump alerting (CI-00 through CI-09), an active Monday ci-audit-weekly.yml workflow on free ubuntu-24.04 with standalone templates for downstream repos, adaptive 1-second GitHub Actions history bisection, additive truncation reporting in scripts/lib/ci-history.ts, and static-check hardening. (#5073)
  • Move GitHub Actions Free Tests, free-durations-record, and lightweight eval coordinator/summary jobs onto free GitHub-hosted ubuntu-24.04 runners (10 shards, 3 sub-shards per shard), keeping Ubicloud Standard only for heavy parallel eval slices and weekly mutation/sweep runs, and add cancel-in-progress: true concurrency control to codex-hooks.yml. (#5058)
  • Fix five recurring CI test flakes across ship docs checks, Swift accessor tests, detached browser cleanup, and Ubuntu Playwright installs. (#5067)
  • Include gstack-config (and lib/ where missing) in standalone learnings E2E test fixtures so gstack-learnings-log can log operational learnings when no config.yaml exists yet. (#5061)
  • Tighten all 15 shipped skill descriptions over 160 characters down to 160 characters or fewer so Claude Code stops truncating them in its skill listing, and enforce the 160-character cap in CI (#5041). (#5055)

Compare v1.107.0.0...v1.109.0.0 · Full changelog

Don't miss a new gstack release

NewReleases is sending notifications on new releases.