gstack v1.109.0.0
What's new
- Document daily issue-intake triage, cross-repository
/specissue 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 indocs/triage.md. - Document how/specfiles issues into another repository your team owns viaGH_REPOorgh repo set-default, including--repo-visibility, exit3fallback handling, and CapyHOST_PUBLISH:hand-off inspec/sections/gate-and-file.md.tmpl. - Clarify how workers handle mid-build findings that invalidate an approved plan, when to escalate/autoplanfrom--kind featureto--full, and when to start with/office-hoursor/plan-ceo-review. (#5093) - Hardened decision-preservation and restore-backfill edge cases in
bin/gstack-context-checkpoint: - Recognized non-code Q&A placeholders such asNo code changes(and qualified variants likeNo 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--replacecheckpoints 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-hoprestorebackfill 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 explicitOpen Promises: Noneon dirty-checkout same-HEAD restores, deduplicated overlapping promises in sparse-stub restore backfills, ranked same-second--clear/--replacecheckpoints ahead of older same-second saves on default restore, and removed the 200-file pre-branch cap duringsavediscovery. (#5109) - Prevented JSONL append data loss when an existing log file's last line lacks a trailing newline, and unblocked the
v1.27.0.0upgrade migration when a user's brain repository has a custom name (thanks @Barack-zero-to-one): -appendJsonlinlib/jsonl-store.tsnow checks the last byte of an existing non-empty file over the sameO_APPENDfile 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.shnow 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./setupand/gstack-upgradefinish cleanly and later migrations run. (#5095) /land-and-deployand/landing-reportnow read pinned version files, and/specnow anchors code references by symbol or section (thanks @mikhailsal and @harsha0602): - Addedgstack-version-bump at <ref>and updated/land-and-deployStep 3.4 and/landing-reportStep 2 to use it instead of reading<ref>:VERSIONdirectly, so repositories pinning their version inpackage.jsonor another file through.gstack/version-pathrun duplicate-version drift checks and show real version labels instead ofunavailable: bad versionor0.0.0.0. - Updated/specdiscovery, 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 --jsonoutput whenreview_exclude_pathsis active (omitting excluded files frompaths,per_path, anddeletedwhile keeping all included/kept files and exactpath_counts) and added--json-out <file>file-backed JSON output so large-diff callers (gstack-review-dispatchandgstack-ship-preflight) never overflow the 64 MiB pipe buffer. (#5107) - Moved
gstack-diff-scopepath classification and template-UI detection to a streaming Bun helper with--no-renamesso pull requests touching 250,000+ files finish in a few seconds instead of timing out at 60 seconds. (#5107) - Replaced remaining
adversarial,red-team, andbypassprompt wording in/reviewand 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, andbypassruntime strings in/reviewand 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
./setupusingzypper(checked beforednfbecause openSUSE also shipsdnf5) and add openSUSEzyppercommands to the Linux install hints forunzip,poppler, andXvfb. (#5094) - Added the opt-in
/portskill (in thedev-toolspack, leaving Core-10 installs unchanged) and thebin/gstack-portCLI (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
/reviewindocs/context-bill-measured.jsonand regenerateddocs/context-bill.md(+33.33ppRecall@minP>=0.5and+31.33ppF1over two-pass plain Claude Opus at$2.95vs$1.17/PRmetered API cost, and-19.5%paired API cost per PR vs the previous/reviewbaseline#5002at$2.92vs$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, andcallerGuardChecked/callers_checked/callersChecked/checked_callers/verified_callers) with canonical keys taking precedence, and document the one-line JSONL input schema ingstack-review-precision gate --help, error hints for malformed or unverified candidates,review/references/blocker-gate.md, andreview/sections/full-workflow.md. (#5088) - Add an
operational_learningsconfig toggle (gstack-config set operational_learnings off, defaulton) to stop automatic~/.gstacklearning writes immediately and omit the Operational Self-Improvement and Capture Learnings sections across./setupand/gstack-upgradewhile keeping explicit user-stated non-operational/learnentries working (#5041). (#5055) - Leaner
/context-saveand/context-restorecheckpoints: Moved checkpoint pathing, identity verification, commit-drift checks, and branch-scoped listing into a singlebin/gstack-context-checkpointhelper 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.shand/ubicloudto default tostandard-4(4 vCPU) VMs instead ofstandard-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; set0to disable while keeping TTL reap active), and cap unkept-t<hours>TTLs at 24 hours insweep(UBI_SWEEP_MAX_TTL_HOURS=24, spared when listed in--keep-filewith a futureuntil). (#5059)
Fixes
- Fixed two edge cases in approval mirroring and review risk classification (thanks @exGeni): -
gstack-approvalsno longer automatically selects a shared drive'sapprovals/folder for writes or reads when more than onecaptain-*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 unlessGSTACK_APPROVALS_DIRis set (setGSTACK_APPROVALS_DIRto 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 asbrand/tokens/swatches.html,design/tokens/palette.svg, anddocs/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-saveand/context-restore, deduplicated repeated shared preambles within a session, and preserved open decisions across stub checkpoints: - Moved/context-saveand/context-restoreto minimal housekeeping tier (preamble-tier: 0) with no shared preamble or start-command boilerplate, and fixed a hoisting mismatch that duplicated the### Formatsubsection inline in full-loadout skill renders. - Added per-session SHA-256 preamble deduplication inbin/gstack-skill-load preamble(keyed strictly on explicit session identifiers, invalidated on hash change, with--forceandGSTACK_PREAMBLE_NO_DEDUP=1opt-outs). - Updatedbin/gstack-context-checkpointso non-code and stub saves preserve still-openActive Decisions,Reversals / Do-Not-Repeat, andOpen Promises / Next Stepfrom the prior same-branch checkpoint (with--replace/--clearto start fresh), andrestoresurfaces 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-pullonly on success, and surfacing failures in skill start,gstack-brain-sync --status, andgstack-doctorso 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 correctiveforeign_installdenial naming this installation's canonical section path when/autoplanreads a nonexistent section path, instead of falling back to an unrecoverableevidenceerror. - Wait forstderrto drain (closeinstead ofexit) inrunBoundedChromiumReinstallso nonzero Playwright reinstall failures reliably report their stderr tail. - Treat same-start LinuxPF_EXITINGdaemons whose/proc/<pid>/environcleared during kernelexit_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 andSkip for nowfollow-up handoff menus in/plan-ceo-reviewtest helpers, and write the PTY seed fixture'slaunch.jsonatomically so concurrent readers never observe a partial file. (#5096) - Fixed Gemini image-model billing guidance and
gstack-team-initCLAUDE.mdwording and downgrade safety (thanks @kalwajayanth): - Stopped$D(design/src/{auth,cli,provider}.ts),docs/hosts.md, anddocs/troubleshooting.mdfrom 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. - Updatedbin/gstack-team-initso generatedCLAUDE.mdsections name/gstack-shipinstead of/ship, qualify/browseon installing the optionalbrowserpack (./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 fromrequiredtooptionalmode. (#5101) - Fixed
/retrocommit streaks after rebases or cherry-picks and stopped/gstack-shipreruns from counting their own branch as a rival version claim (thanks @Barack-zero-to-one): -bin/gstack-retro-metricsnow 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-versionnow skips the currently checked-out branch when its git fallback scansoriginbranches, so rerunning/gstack-shipon an already-bumped branch keeps its own version slot instead of bumping past it. (#5097) - Fixed
/carefulprompting 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, orfor-loop cleanup commands (such asS=/var/tmp/dev/job-abc; for m in a b; do D=$S/m-$m; rm -rf $D; done). (#5056) - Fixed
gstack-first-use linksfailing with 404 on private GitHub links markedlogin_gated: trueby verifying privatehttps://github.com/...repositories, releases, release assets, commits, issues, pull requests, files, and folders through authenticatedgh api(withgit ls-remotefallback for repository links whenghis 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 liveto 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
/reviewseverity 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) stayCRITICALinstead of being downgraded out of caution while keepingINFORMATIONALstrictly for non-defect observations, enforcedgstack-review-precision gatein the/reviewcompletion contract wheneverCRITICAL >= 1(with zero extra stop-hook retries whenCRITICAL == 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/reviewwhile keepingreview/SKILL.mdunder 2,000 core tokens. (#5069) - Fixed
$B snapshotand$B snapshot -isilently dropping page elements whose accessible names contain YAML-significant characters such as": ",#,{,}, backticks, or escaped quotes, by unwrapping Playwright's quotedariaSnapshot()YAML entries (including doubled apostrophes, bracket attributes, and trailing colons) while still skipping metadata lines like/urland/placeholder(#5065). (#5066) - Fixed Windows script launching in
gstack-brain-cachewhen readingsalience_allowlistfromgstack-config(#5054) and ingstack-distill-applywhen applying/plan-tunepreference proposals throughgstack-question-preference, including Windows Git Bash path normalization and a 30-second write timeout (#5052). (#5068)
Changes for maintainers
- Hardened
/ci-auditruntime sampling, billing CSV parsing, VM keep-file matching, and check accuracy: - Budget--max-job-callsby expected attempt calls (sum(run_attempt)) instead of one call per run so busy repositories with retries stay atexactcoverage instead of flipping prematurely tolower_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-fileowner=values andubirun-prefixes via alphanumeric folding so hyphenated owner IDs match running VMs without prefix collisions. - Join separate GitHub billing CSVOrganizationand unqualifiedRepositorycolumns intoorg/repo, reject invalid runner usage quantities instead of defaulting them to zero, and separate non-Actions products (Copilot, Packages, Git LFS) intonon_actions_usdwhile preserving zero-delta ledger reconciliation. - FireCI-00when even alower_boundweek exceeds the jump threshold against exact prior baselines, and fixCI-04to handle unbalanced apostrophes in heredocs plus chainedsleep 1; sleep 3600andexec sleep 3600commands. (#5090) - Validate failure keys in
--fixes-base-redupfront and use the target repository name in release tags and GitHub releases (thanks @Lanqiao-Luca, reported by @exGeni): -gstack-ship-queue ready --fixes-base-rednow 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--reposlug (falling back to theorigingit remote URL if--repocannot be parsed or in programmatic calls) for annotated tag messages, GitHub release titles, release notes headings, and dry-run commands, keepinggstackas the fallback forgarrytan/gstackor unresolvable remotes. (#5105) - Fixed the exploratory QA test harness to accept
edge-case-auditstart and completion records ingstack-review-logalongsideadversarial-review, matching the updated/reviewedge-case audit command. (#5114) - Fixed follow-up edge cases in
/gstack-shipreview freshness, shared check-cache validation, and PR body prose checks: - Stopped review passes logged with--findingsnow clear once blocking findings are approved without stalling on informationalskippedornotedentries, and unruled derived clearance aligns withisOpenFinding. -gstack-review-readnow passes the resolved target base (--baseorgh-merge-base) into clean base-merge checks. -gstack-ship-receipt carry --allow-repo-commandsnow 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--bodyfiles against concurrent edits across refreshes. - PR body number checks now recognize single-column Markdown table separators (| --- |), and troubleshooting docs include the--allow-repo-commandsshorthand. (#5089) - Fixed
/gstack-shipreview 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 togstack-pregate run --allow-repo-commands, passing--allow-repo-commandsrefreshes the check at HEAD automatically, PR updates fall back to RESTgh apiPATCH whengh pr editlacksread:orgscope, plain-textSHIP_RECEIPT:summary lines stay in sync outside code fences, andFAIL:cells in Markdown tables no longer trigger false prose mismatches. (#5087) - Added the opt-in
/ci-auditskill (in theopspack, leaving Core-10 installs unchanged) and the offlinebin/gstack-ci-auditCLI (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 runandcache prune), provider billing CSV reconciliation (--billing-csvwith reconciled account ledger and effective rate multiplier detection), weekly runner-minute baseline jump alerting (CI-00throughCI-09), an active Mondayci-audit-weekly.ymlworkflow on freeubuntu-24.04with standalone templates for downstream repos, adaptive 1-second GitHub Actions history bisection, additive truncation reporting inscripts/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-hostedubuntu-24.04runners (10 shards, 3 sub-shards per shard), keeping Ubicloud Standard only for heavy parallel eval slices and weekly mutation/sweep runs, and addcancel-in-progress: trueconcurrency control tocodex-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(andlib/where missing) in standalone learnings E2E test fixtures sogstack-learnings-logcan log operational learnings when noconfig.yamlexists 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)