mirror of
https://github.com/garrytan/gstack.git
synced 2026-06-17 15:20:11 +02:00
feat(memory): emit durable decisions from ship/ceo/eng/spec at structured points
Wires the four skills that finalize real decisions to capture them in the cross-session decision store, from their STRUCTURED outputs (never free-text scraping): - ship: the version bump (level + why) at write time - plan-ceo-review: accepted scope + verdict (branch-scoped) - plan-eng-review: the architecture verdict + key call (branch-scoped) - spec: the filed issue's core approach (issue-scoped) All emits are non-interactive, schema-correct (content in decision/rationale, source=skill, confidence 1-10), and best-effort (|| true) so a decision-log failure never blocks the workflow. Includes regen across hosts + refreshed ship golden baselines. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1798,8 +1798,11 @@ If `gh` is available and authenticated, file from the scanned temp file:
|
||||
ISSUE_URL=$(gh issue create --title "<title>" --body-file "$REDACT_FILE")
|
||||
ISSUE_NUMBER=$(echo "$ISSUE_URL" | sed -E 's|.*/issues/([0-9]+)$|\1|')
|
||||
echo "Filed: $ISSUE_URL"
|
||||
~/.claude/skills/gstack/bin/gstack-decision-log '{"decision":"Spec filed #ISSUE_NUMBER: TITLE","rationale":"APPROACH","scope":"issue","issue":"ISSUE_NUMBER","source":"skill","confidence":7}' 2>/dev/null || true
|
||||
```
|
||||
|
||||
The last line records the spec as a durable, issue-scoped cross-session decision so a future session (or `/ship` closing the issue) inherits the core approach and why, not just the issue link. Non-interactive, best-effort (`|| true`). Substitute `ISSUE_NUMBER` (from the filed issue), `TITLE` (the issue title), and `APPROACH` (the one core approach/decision the spec settled). Only fires when the issue was actually filed.
|
||||
|
||||
If `gh` is not available, print: "`gh` not authenticated — title and body below
|
||||
for paste into https://github.com/{owner}/{repo}/issues/new with zero
|
||||
reformatting needed." Then emit the rendered title + body.
|
||||
|
||||
@@ -317,8 +317,11 @@ If `gh` is available and authenticated, file from the scanned temp file:
|
||||
ISSUE_URL=$(gh issue create --title "<title>" --body-file "$REDACT_FILE")
|
||||
ISSUE_NUMBER=$(echo "$ISSUE_URL" | sed -E 's|.*/issues/([0-9]+)$|\1|')
|
||||
echo "Filed: $ISSUE_URL"
|
||||
~/.claude/skills/gstack/bin/gstack-decision-log '{"decision":"Spec filed #ISSUE_NUMBER: TITLE","rationale":"APPROACH","scope":"issue","issue":"ISSUE_NUMBER","source":"skill","confidence":7}' 2>/dev/null || true
|
||||
```
|
||||
|
||||
The last line records the spec as a durable, issue-scoped cross-session decision so a future session (or `/ship` closing the issue) inherits the core approach and why, not just the issue link. Non-interactive, best-effort (`|| true`). Substitute `ISSUE_NUMBER` (from the filed issue), `TITLE` (the issue title), and `APPROACH` (the one core approach/decision the spec settled). Only fires when the issue was actually filed.
|
||||
|
||||
If `gh` is not available, print: "`gh` not authenticated — title and body below
|
||||
for paste into https://github.com/{owner}/{repo}/issues/new with zero
|
||||
reformatting needed." Then emit the rendered title + body.
|
||||
|
||||
Reference in New Issue
Block a user