Skip to content

gstack: /design-review audit summaries match gstack-design-doc-find's design-doc pattern #4615

Closed

Description

@robbiesierra

A /design-review audit summary can be picked up as the branch's design doc.

office-hours writes the design doc as {user}-{branch}-design-{datetime}.md:

Write to `<PROJECT_DIR>/{user}-{branch}-design-{datetime}.md` (`PROJECT_DIR` printed by the setup block above).

/design-review writes its summary into the same folder as:

Write a one-line summary to <PROJECT_DIR>/{user}-{branch}-design-audit-{datetime}.md

Write a one-line summary to `<PROJECT_DIR>/{user}-{branch}-design-audit-{datetime}.md` (`PROJECT_DIR` printed above) with a pointer to the full report in `$REPORT_DIR`.

gstack-design-doc-find picks the newest file matching *-<branch>-design-*.md, which matches both:

1. newest $GSTACK_STATE_ROOT/projects//--design-.md

# 1. newest $GSTACK_STATE_ROOT/projects/<slug>/*-<branch>-design-*.md
# 2. else newest $GSTACK_STATE_ROOT/projects/<slug>/*-design-*.md

Cost to users:
After a design review, /plan-ceo-review, /plan-eng-review and /autoplan on that branch treat a one-line audit pointer as the design doc they review against.

Possible fixes (your call which matches the intent):

  1. Rename the audit summary so it does not contain -design- after the branch (for example {user}-{branch}-ui-audit-{datetime}.md).
  2. Exclude *-design-audit-* in gstack-design-doc-find.

Found by reading the files at 41729a0, not by a live run.

Activity

  1. added
    bug
    S3
    on Nov 21, 2026
  2. capy-ai commented on Nov 21, 2026

    @capy-ai
    Contributor

    Thanks, confirmed on main (bd77c8c): design-review/SKILL.md.tmpl:289 writes {user}-{branch}-design-audit-{datetime}.md into the project folder, and bin/gstack-design-doc-find takes the newest *-<branch>-design-*.md, so after a design review the plan reviews can pick up the one-line audit pointer.

    It's on our pick-up list as a small bug fix. I'll leave this open until it lands.

  3. capy-ai commented on Nov 21, 2026

    @capy-ai
    Contributor

    Thanks @robbiesierra, confirmed and fixed in #4623 (merged as a1e2c7e). gstack-design-doc-find now skips /design-review's *-design-audit-* summaries, so /autoplan and the plan reviews no longer read an audit summary as the branch's design doc. It reaches the stable channel in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    S3bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions