Repository navigation
Description
Problem
Skills in the gstack workflow chain cannot detect outputs from previous skills. This breaks the intended workflow state machine where each skill feeds into the next.
Three reported failures:
| Upstream Skill | Downstream Skill | Expected | Actual |
|---|---|---|---|
| /office-hours | /plan-ceo-review | Finds design doc | ❌ Branch-scoped filename mismatch |
| /plan-ceo-review | /plan-eng-review | Finds CEO plan + review log | ❌ No discovery code for ceo-plans/ + JSONL is branch-isolated |
| /review | /ship | Review Readiness Dashboard shows CLEAR | ❌ /review writes no JSONL entry; dashboard doesn't recognize it |
Root Cause
1. JSONL review log is branch-scoped but workflow is cross-branch
gstack-review-log writes to $BRANCH-reviews.jsonl. When skills run on different branches (e.g., /office-hours on main, then /plan-eng-review on feat/my-feature), all prior review signals are invisible because gstack-review-read only reads the current branch's file.
2. /review skill never writes to the review log
The /review skill (pre-landing code review) does NOT write a "skill":"review" or "skill":"plan-eng-review" entry to the JSONL. It only conditionally writes design-review-lite and codex-review.
The /ship Review Readiness Dashboard only looks for: plan-ceo-review, plan-eng-review, plan-design-review, design-review-lite, codex-review. Running /review leaves zero trace that /ship can parse → dashboard shows "Eng Review: 0 runs / NOT CLEARED" even after a full review.
3. plan-eng-review has no CEO plan discovery code
plan-eng-review only globs for *-design-*.md (office-hours output). It has zero code to read ~/.gstack/projects/$SLUG/ceo-plans/ where /plan-ceo-review writes its output.
4. File naming uses branch name, breaking cross-branch discovery
office-hours writes files named {user}-{branch}-design-{datetime}.md. Downstream skills glob with *-$CURRENT_BRANCH-design-*.md. When branches differ, the glob fails. The fallback (*-design-*.md sorted by mtime) is non-deterministic.
Impact
Users must manually override the Review Readiness Dashboard gate on every /ship run, even when all reviews have been completed. The workflow state machine described in documentation doesn't actually work — each skill is effectively stateless with respect to its predecessors.
Suggested Fix
- Make JSONL project-scoped, not branch-scoped (or add cross-branch query capability to
gstack-review-read) - Add a review log entry to
/review— e.g.,{"skill":"pre-landing-review", ...}and have/shiprecognize it as satisfying the Eng Review gate - Add CEO plan discovery to
/plan-eng-review— globceo-plans/directory - Consider a unified skill handoff protocol — each skill writes a standardized completion record, downstream skills query via a common API rather than ad-hoc file discovery
Environment
- gstack version: 0.9.4.1
- Observed across multiple workflow runs on the agentflow project
Activity
malikrohail commentedon Mar 22, 2026
Tested on March 22, 2026 against current
main. I opened PR #338 for the narrow same-branch/review->/shipreadiness bug.This PR fixes only the false
NOT CLEAREDdashboard state after a real/reviewrun:/reviewnow persists a top-level{"skill":"review", ...}readiness entry/shipnow treatsreviewandplan-eng-reviewas valid Eng Review sources/shipnow tells the user to run/reviewor/plan-eng-reviewwhen the gate is missingIt does not attempt to solve the broader cross-branch JSONL isolation or CEO-plan discovery parts of #280.
PR: #338
fix: let /review satisfy ship readiness gate (#280)
fix: let /review satisfy ship readiness gate (#387)
sevastyanovio commentedon Mar 23, 2026
Part of this is addressed in PR #405 (
/meditate). The meditation scanner reads session history across all branches and all AI tools, so it naturally discovers cross-branch skill outputs — design docs, review logs, CEO plans — regardless of branch-scoped JSONL isolation.The "Watch These Next" section in
.gstack/context.mdsurfaces these for downstream skills. It's not a direct fix for the JSONL isolation bug (that should still be fixed at the source), but it provides a workaround layer that makes the chain more resilient.fix: let /review satisfy ship readiness gate (#387)
fix: let /review satisfy ship readiness gate (garrytan#387)
fix: let /review satisfy ship readiness gate (garrytan#280)
fix: let /review satisfy ship readiness gate (garrytan#387)
time-attack commentedon Jul 15, 2026
@chancheuklap Cross-branch review eligibility and discovery of design and CEO artifacts remain incomplete after the prior fix.
fix(review-chain): cross-branch review rows + ceo-plans discovery in …
feat(bin): gstack-ceo-plan-find locates the CEO plan for a branch (#280)
fix(plan-eng-review): read the CEO plan in the Design Doc Check (#280)
fix(plan-eng-review): disclose a CEO plan borrowed from another branch (
feat(bin): gstack-ceo-plan-find locates the CEO plan for a branch (#280)
fix(plan-eng-review): read the CEO plan in the Design Doc Check (#280)
fix(plan-eng-review): disclose a CEO plan borrowed from another branch (
feat(bin): gstack-ceo-plan-find locates the CEO plan for a branch (#280)
fix(plan-eng-review): read the CEO plan in the Design Doc Check (#280)
fix(plan-eng-review): disclose a CEO plan borrowed from another branch (
feat(bin): gstack-ceo-plan-find locates the CEO plan for a branch (#280)
fix(plan-eng-review): read the CEO plan in the Design Doc Check (#280)
fix(plan-eng-review): disclose a CEO plan borrowed from another branch (
feat(bin): gstack-ceo-plan-find locates the CEO plan for a branch (#280)
fix(plan-eng-review): read the CEO plan in the Design Doc Check (#280)
fix(plan-eng-review): disclose a CEO plan borrowed from another branch (
feat(bin): gstack-ceo-plan-find locates the CEO plan for a branch (#280)
fix(plan-eng-review): read the CEO plan in the Design Doc Check (#280)
fix(plan-eng-review): disclose a CEO plan borrowed from another branch (
capy-ai commentedon Oct 16, 2026
Fixed in v1.91.106.0 (main 3e8b34d, wave PR #3209).
/plan-eng-reviewnow finds the/plan-ceo-reviewplan for the branch withgstack-ceo-plan-findand reads its scope as data; a plan from another branch is disclosed and interactive reviewers are asked first. Adopted from #3159 by @szsunyuan.