From 27e5db990208898cba69eba87c7fc6b43e51b224 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Sat, 21 Nov 2026 06:11:18 -0800 Subject: [PATCH] /office-hours checks for a real user first and ends startup sessions with a dated test (GST-3024) (#4468) /office-hours now opens every startup session with one reality-check question (a paying user, or someone who used it this week unasked) and sends founders with no outcome yet, or a new **Pivot** goal, to a one-page decision memo instead of a design doc. Every startup session ends with a dated KILL/CONTINUE or SUCCESS line, which the next session on that project brings back once the date passes. Why: founders were getting a polished design doc before anyone had used or paid for what they were building. Nothing to do. #4463, which this builds on, is already on main. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: q1/specialist-batched#1 reader=security Review-Finding: q1/specialist-batched#2 reader=testing Review-Finding: q1/red-team#1 reader=red-team Review-Finding: q1/red-team#2 reader=red-team Review-Finding: q1v/adversarial-native#1 reader=adversarial-native Review-Finding: q1v/outside-voice#1 reader=outside-voice --- TODOS.md | 4 -- bin/gstack-design-doc-find | 11 +++- bin/gstack-developer-profile | 28 +++++++- changelog.d/office-hours-partner-sessions.md | 2 + docs/skills.md | 4 +- office-hours/SKILL.md | 62 +++++++---------- office-hours/SKILL.md.tmpl | 54 +++++---------- office-hours/sections/design-and-handoff.md | 52 ++++++++++++++- .../sections/design-and-handoff.md.tmpl | 52 ++++++++++++++- office-hours/sections/landscape.md | 30 +++++++++ office-hours/sections/landscape.md.tmpl | 28 ++++++++ office-hours/sections/manifest.json | 14 +++- .../sections/phase-2a-startup-diagnostic.md | 38 +++++++++-- .../phase-2a-startup-diagnostic.md.tmpl | 38 +++++++++-- .../sections/phase-2c-pivot-discovery.md | 32 +++++++++ .../sections/phase-2c-pivot-discovery.md.tmpl | 30 +++++++++ scripts/psychographic-signals.ts | 1 + scripts/question-registry.ts | 2 +- test/gstack-design-doc-find.test.ts | 23 +++++++ test/gstack-developer-profile.test.ts | 66 +++++++++++++++++++ test/helpers/carve-guards.ts | 14 ++-- test/skill-validation.test.ts | 11 ++++ 22 files changed, 487 insertions(+), 109 deletions(-) create mode 100644 changelog.d/office-hours-partner-sessions.md create mode 100644 office-hours/sections/landscape.md create mode 100644 office-hours/sections/landscape.md.tmpl create mode 100644 office-hours/sections/phase-2c-pivot-discovery.md create mode 100644 office-hours/sections/phase-2c-pivot-discovery.md.tmpl diff --git a/TODOS.md b/TODOS.md index 37e01d81ad..884000db11 100644 --- a/TODOS.md +++ b/TODOS.md @@ -2,10 +2,6 @@ ## NEXT PRIORITY -### P1: /office-hours parity pin after the resource move (filed 2026-11-17, GST-3024) - -- **Set the office-hours parity ratio in `test/helpers/carve-guards.ts` to the measured value.** The resource move (#4463) freed about 8.6 KB but left the pin at 1.1993. The content change that follows it sets the measured ratio with its reason; if that change slips, lower the pin on its own (a pin may go down freely). Deferred from plan: handoffs/office-hours-2026-11-17/plan.md (GStack Minder drive). **Effort:** S. **Priority:** P1. - ### P3: `/plan-eng-review` return follow-up (filed 2026-11-15, GST-2726) - **Decide whether `plan-eng-multi-finding-batching` rejoins the weekly lane.** The cut of the standalone skill (GST-1698) took it out through `PERIODIC_CI_EXCLUDE`, because /autoplan Phase 3 auto-decides findings. The standalone `/plan-eng-review` is back (GST-2726) and asks one question per eng finding again, so the case reaches a shipped entry. Running it weekly is paid spend, so the call belongs to the measurement plan in GST-1966. The standalone paid cases deleted with the cut (`plan-eng-plan-mode`, `plan-eng-finding-floor`, `plan-eng-review-artifact-full`) are not restored either. **Effort:** S. **Priority:** P3. diff --git a/bin/gstack-design-doc-find b/bin/gstack-design-doc-find index 4606a2bd2c..485b597255 100755 --- a/bin/gstack-design-doc-find +++ b/bin/gstack-design-doc-find @@ -36,9 +36,16 @@ newest() { ls -t "$@" 2>/dev/null | head -1 } +newest_design() { + ls -t "$@" 2>/dev/null | while IFS= read -r f; do + b=${f##*/} + case "${b##*-memo-}" in "$b"|*design-*) printf '%s\n' "$f"; break ;; esac + done +} + PROJECT_DIR="$GSTACK_STATE_ROOT/projects/$SLUG" -LOCALDOC=$(newest "$PROJECT_DIR"/*-"$BRANCH"-design-*.md) -[ -z "$LOCALDOC" ] && LOCALDOC=$(newest "$PROJECT_DIR"/*-design-*.md) +LOCALDOC=$(newest_design "$PROJECT_DIR"/*-"$BRANCH"-design-*.md) +[ -z "$LOCALDOC" ] && LOCALDOC=$(newest_design "$PROJECT_DIR"/*-design-*.md) REPODOC="" TOP=$(git rev-parse --show-toplevel 2>/dev/null || true) diff --git a/bin/gstack-developer-profile b/bin/gstack-developer-profile index 2db44df2e3..6f8a9706a1 100755 --- a/bin/gstack-developer-profile +++ b/bin/gstack-developer-profile @@ -21,6 +21,10 @@ # --log-session append a session entry (from /office-hours) to # sessions[] and update aggregates. Required fields: # date, mode. Silent skip on invalid input. +# --kill-check print KILL_DATE, KILL_TEST and KILL_DUE (yes once the +# date has passed) from the newest approved office-hours +# kill or success commitment (mode "commitment") for +# that project; empty values and KILL_DUE: no when none. # --reconcile backfill count-only sessions[] entries from office-hours # `completed` events in projects/*/timeline.jsonl. # Idempotent; backfilled rows count for tenure only. @@ -381,7 +385,7 @@ do_reconcile() { const HOUR = 60 * 60 * 1000; const covered = profile.sessions - .filter(s => s && s.mode !== 'resources') + .filter(s => s && s.mode !== 'resources' && s.mode !== 'commitment') .map(s => ({ t: Date.parse(s.ts || s.date || ''), slug: s.project_slug || null })) .filter(c => !Number.isNaN(c.t)); @@ -434,7 +438,7 @@ do_read() { // session's resources entry written immediately after the real session inflates // the count (bumping TIER), clobbers LAST_PROJECT/LAST_ASSIGNMENT/LAST_DESIGN_TITLE, // and pushes NUDGE_ELIGIBLE over its threshold from bookkeeping alone. - const realSessions = sessions.filter(e => e.mode !== 'resources'); + const realSessions = sessions.filter(e => e.mode !== 'resources' && e.mode !== 'commitment'); // Backfilled rows (--reconcile) carry no content: they count for tenure only. const loggedSessions = realSessions.filter(e => !e.backfilled); @@ -486,6 +490,25 @@ do_read() { " } +# ----------------------------------------------------------------------- +# Kill check: the newest approved commitment for one project. +# ----------------------------------------------------------------------- +do_kill_check() { + [ -n "${1:-}" ] || { echo "gstack-developer-profile: --kill-check needs a project slug (usage: --kill-check )" >&2; exit 2; } + ensure_profile + KILL_SLUG="${1:-}" bun --no-env-file --config="${GSTACK_BUN_CONFIG:-/dev/null}" -e " + const p = JSON.parse(await Bun.stdin.text()); + const rows = (p.sessions || []).filter(e => e && e.mode === 'commitment' + && e.project_slug === process.env.KILL_SLUG && e.kill_date && e.kill_test); + const last = rows[rows.length - 1]; + const d = new Date(); + const today = d.getFullYear() + '-' + String(d.getMonth() + 1).padStart(2, '0') + '-' + String(d.getDate()).padStart(2, '0'); + console.log('KILL_DATE: ' + (last ? last.kill_date : '')); + console.log('KILL_TEST: ' + (last ? last.kill_test : '')); + console.log('KILL_DUE: ' + (last && String(last.kill_date).slice(0, 10) <= today ? 'yes' : 'no')); + " < "$PROFILE_FILE" +} + # ----------------------------------------------------------------------- # Profile: emit the full JSON # ----------------------------------------------------------------------- @@ -815,6 +838,7 @@ case "$CMD" in --migrate) do_migrate ;; --log-session) do_log_session "$@" ;; --reconcile) do_reconcile ;; + --kill-check) do_kill_check "$@" ;; --help|-h) sed -n '1,/^set -euo/p' "$0" | sed 's|^# \?||' ;; *) echo "gstack-developer-profile: unknown subcommand '$CMD'" >&2 diff --git a/changelog.d/office-hours-partner-sessions.md b/changelog.d/office-hours-partner-sessions.md new file mode 100644 index 0000000000..95ad0e6727 --- /dev/null +++ b/changelog.d/office-hours-partner-sessions.md @@ -0,0 +1,2 @@ +- **/office-hours asks for ground truth first.** Every startup session opens with one question: has it produced one real outcome yet, a paying user or someone who used it this week unasked? Founders with no outcome yet, and anyone who picks the new **Pivot** goal, get a one-page decision memo instead of a design doc. The memo has an evidence ladder, a conversation quota with the math, a payment test and a pivot ceiling check. Memos are saved apart from design docs (`*-memo-*.md`, repo copy in `docs/memos/`), so plan reviews never read one as a design. +- **Every startup session ends with a dated test.** The assignment carries a date and a number, and the doc or memo carries a KILL/CONTINUE or SUCCESS line. The approved line is recorded, and the next session on that project opens with it once the date has passed (`gstack-developer-profile --kill-check `). Customer names and prices stay in the private `~/.gstack` copy; repo copies use roles or initials. Builder mode is unchanged. diff --git a/docs/skills.md b/docs/skills.md index a71710794d..b87911afd3 100644 --- a/docs/skills.md +++ b/docs/skills.md @@ -120,7 +120,7 @@ Recommends A because you learn from real usage. CRM data comes naturally in week ### Two modes -**Startup mode** — for founders and intrapreneurs building a business. You get six forcing questions distilled from how YC partners evaluate products: demand reality, status quo, desperate specificity, narrowest wedge, observation & surprise, and future-fit. These questions are uncomfortable on purpose. If you can't name a specific human who needs your product, that's the most important thing to learn before writing any code. +**Startup mode** — for founders and intrapreneurs building a business. You get six forcing questions distilled from how YC partners evaluate products: demand reality, status quo, desperate specificity, narrowest wedge, observation & surprise, and future-fit. These questions are uncomfortable on purpose. If you can't name a specific human who needs your product, that's the most important thing to learn before writing any code. Every startup session opens with one reality check: has it produced one real outcome yet, a paying user or someone who used it this week unasked? Picking the **Pivot** goal also runs startup mode, for deciding whether to change the business's direction. **Builder mode** — for hackathons, side projects, open source, learning, and having fun. You get an enthusiastic collaborator who helps you find the coolest version of your idea. What would make someone say "whoa"? What's the fastest path to something you can share? The questions are generative, not interrogative. @@ -128,6 +128,8 @@ Recommends A because you learn from real usage. CRM data comes naturally in week Both modes end with a design doc written to `~/.gstack/projects/` — and that doc feeds directly into `/plan-ceo-review` and `/plan-eng-review`. The full lifecycle is now: `office-hours → plan → implement → review → QA → ship → retro`. +Founders with no real outcome yet, and pivot sessions, get a one-page decision memo instead of a design doc. Memos are saved apart from design docs (`*-memo-*.md`), so plan reviews never read one as a design. Every startup session ends with a dated assignment and a KILL/CONTINUE or SUCCESS line; the next session on that project opens with it once the date has passed (`gstack-developer-profile --kill-check `). + After the design doc is approved, `/office-hours` reflects on what it noticed about how you think — not generic praise, but specific callbacks to things you said during the session. The observations appear in the design doc too, so you re-encounter them when you re-read later. --- diff --git a/office-hours/SKILL.md b/office-hours/SKILL.md index 212a3855f6..cb137cd03a 100644 --- a/office-hours/SKILL.md +++ b/office-hours/SKILL.md @@ -216,9 +216,9 @@ Some steps require action on a site the user controls: registering an API key, c # YC Office Hours -You are a **YC office hours partner**. Your job is to ensure the problem is understood before solutions are proposed. You adapt to what the user is building — startup founders get the hard questions, builders get an enthusiastic collaborator. This skill produces design docs, not code. +You are a **YC office hours partner**. Your job is to ensure the problem is understood before solutions are proposed. You adapt to what the user is building — startup founders get the hard questions, builders get an enthusiastic collaborator. This skill produces design docs or decision memos, not code. -**HARD GATE:** Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action. Your only output is a design document. +**HARD GATE:** Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action. Your only output is a design doc, or a one-page decision memo for discovery and pivot sessions. --- @@ -329,13 +329,14 @@ smarter on their codebase over time. > > - **Building a startup** (or thinking about it) > - **Intrapreneurship** — internal project at a company, need to ship fast + > - **Pivot** — deciding whether to change the business's direction > - **Hackathon / demo** — time-boxed, need to impress > - **Open source / research** — building for a community or exploring an idea > - **Learning** — teaching yourself to code, vibe coding, leveling up > - **Having fun** — side project, creative outlet, just vibing **Mode mapping:** - - Startup, intrapreneurship → **Startup mode** (Phase 2A) + - Startup, intrapreneurship, pivot → **Startup mode** (Phase 2A; pivot then runs Phase 2C) - Hackathon, open source, research, learning, having fun → **Builder mode** (Phase 2B) 6. **Assess product stage** (only for startup/intrapreneurship modes): @@ -356,8 +357,10 @@ sections. Read a section in full before doing its step; do not work from memory. | When | Read this section | |------|-------------------| -| running the startup-mode diagnostic (Phase 2A: operating principles, pushback patterns, and the six forcing questions) | `sections/phase-2a-startup-diagnostic.md` | +| running the startup-mode diagnostic (Phase 2A: the reality check, operating principles, pushback patterns, and the six forcing questions) | `sections/phase-2a-startup-diagnostic.md` | +| running a memo session (Phase 2C: no real outcome yet, a pivot goal, or a change of business direction; the pivot and discovery flows and the memo-session routing) | `sections/phase-2c-pivot-discovery.md` | | giving any builder-mode response (Phase 2B: brainstorm questions and every suggestion, adjacent unlock or riff; holds the operating principles, the wild exemplar, the response posture and the generative questions) | `sections/phase-2b-builder-brainstorm.md` | +| running the Phase 2.75 landscape search the user just allowed (queries per mode, the three-layer synthesis and the eureka check) | `sections/landscape.md` | | running the Phase 3.5 second opinion the user just accepted (provider preflight, cold-read prompt, dispatch and synthesis) | `sections/second-opinion.md` | | Phase 4.25 visual design for an approved approach with user-facing UI (designer mockups, or the HTML sketch when the designer is unavailable) | `sections/visual-design.md` | | writing the design doc and running the tiered relationship handoff (Phases 5-6, after the conversation and alternatives are done) | `sections/design-and-handoff.md` | @@ -367,7 +370,10 @@ sections. Read a section in full before doing its step; do not work from memory. Use this mode when the user is building a startup or doing intrapreneurship. -> **STOP.** Before running the startup-mode diagnostic (Phase 2A: operating principles, pushback patterns, and the six forcing questions), Read `~/.claude/skills/gstack/office-hours/sections/phase-2a-startup-diagnostic.md` and execute it +> **STOP.** Before running the startup-mode diagnostic (Phase 2A: the reality check, operating principles, pushback patterns, and the six forcing questions), Read `~/.claude/skills/gstack/office-hours/sections/phase-2a-startup-diagnostic.md` and execute it +> in full. Do not work from memory — that section is the source of truth for this step. + +> **STOP.** Before running a memo session (Phase 2C: no real outcome yet, a pivot goal, or a change of business direction; the pivot and discovery flows and the memo-session routing), Read `~/.claude/skills/gstack/office-hours/sections/phase-2c-pivot-discovery.md` and execute it > in full. Do not work from memory — that section is the source of truth for this step. --- @@ -460,34 +466,8 @@ After the questioning, learn the conventional wisdom (not competitive research) Options: A) Yes, search away B) Skip — keep this session private If B: skip this phase entirely and proceed to Phase 3. Use only in-distribution knowledge. -Search **generalized category terms** only, never the user's product name, proprietary concept or stealth idea ("task management app landscape", not "SuperTodo AI-powered task killer"). - -If the Aside check did not print `READY`, run the same searches with the WebSearch tool when the host provides it; with neither, skip this phase and note: "Search unavailable — proceeding with in-distribution knowledge only." - -Research through Aside (Web research runs in Aside, above), one read-only request per mode: - -**Startup mode:** search for: -- "[problem space] startup approach {current year}" -- "[problem space] common mistakes" -- "why [incumbent solution] fails" OR "why [incumbent solution] works" - -**Builder mode:** search for: -- "[thing being built] existing solutions" -- "[thing being built] open source alternatives" -- "best [thing category] {current year}" - -Prompt file text (create, write and send it with the Web research runs in Aside blocks above): `[problem space] startup approach {current year}, [problem space] common mistakes, and why [incumbent solution] works or fails. Reply with up to 8 bullets, each with its source URL.` - -Read the top 2-3 sources it cites. Run the three-layer synthesis: -- **[Layer 1]** What does everyone already know about this space? -- **[Layer 2]** What are the search results and current discourse saying? -- **[Layer 3]** Given what WE learned in Phase 2A/2B — is there a reason the conventional approach is wrong? - -**Eureka check:** If Layer 3 reasoning reveals a genuine insight, name it: "EUREKA: Everyone does X because they assume [assumption]. But [evidence from our conversation] suggests that's wrong here. This means [implication]." Log the eureka moment (see preamble). - -If no eureka moment exists, say: "The conventional wisdom seems sound here. Let's build on it." Proceed to Phase 3. - -Findings feed Phase 3: reasons the conventional approach fails become premises to challenge; solid conventional wisdom raises the bar for any premise that contradicts it. +> **STOP.** Before running the Phase 2.75 landscape search the user just allowed (queries per mode, the three-layer synthesis and the eureka check), Read `~/.claude/skills/gstack/office-hours/sections/landscape.md` and execute it +> in full. Do not work from memory — that section is the source of truth for this step. --- @@ -551,6 +531,7 @@ Rules: - One must be the **"ideal architecture"** (best long-term trajectory, most elegant). - One can be **creative/lateral** (unexpected approach, different framing of the problem). - If the second opinion (Codex or Claude subagent) proposed a prototype in Phase 3.5, consider using it as a starting point for the creative/lateral approach. +- Memo session: the alternatives are candidate actions (Phase 2C), not implementations. **RECOMMENDATION:** Choose [X] because [one-line reason mapped to the founder's stated goal]. @@ -611,7 +592,7 @@ Append one JSON line with these fields (substitute actual values from this sessi - `project_slug`: the SLUG value from the preamble - `signal_count`: number of signals counted above - `signals`: array of signal names observed (e.g., `["named_users", "pushback", "taste"]`) -- `design_doc`: path to the design doc that will be written in Phase 5 (construct it now) +- `design_doc`: path to the design doc that will be written in Phase 5 (construct it now); in a memo session leave it empty and put the memo path in `memo` - `assignment`: the assignment you will give in the design doc's "The Assignment" section - `resources_shown`: empty array `[]` for now (populated after resource selection in Phase 6) - `topics`: array of 2-3 topic keywords that describe what this session was about @@ -629,7 +610,7 @@ Phase 6 (Founder Resources) appends a second `mode: "resources"` entry. ## Section self-check (before you finish) -Confirm you Read every section the Section index named as applying to this run, and executed it. The conversation phase is section-backed too — if you ran the diagnostic or brainstorm from memory without Reading `sections/phase-2a-startup-diagnostic.md` (startup mode) or `sections/phase-2b-builder-brainstorm.md` (builder mode), the questions lost their teeth. If you produced the design doc or handoff from memory without Reading `sections/design-and-handoff.md`, stop and Read it now. +Confirm you Read every section the Section index named as applying to this run, and executed it. The conversation phase is section-backed too — if you ran the diagnostic or brainstorm from memory without Reading `sections/phase-2a-startup-diagnostic.md` (startup mode) or `sections/phase-2b-builder-brainstorm.md` (builder mode), or ran a memo session without `sections/phase-2c-pivot-discovery.md`, the questions lost their teeth. If you produced the design doc or handoff from memory without Reading `sections/design-and-handoff.md`, stop and Read it now. ## Before telemetry: confirm this run's design doc @@ -639,7 +620,7 @@ the folder; another session may have written it): ```bash GSTACK_STATE_ROOT=$(~/.claude/skills/gstack/bin/gstack-paths --get GSTACK_STATE_ROOT); : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}" DOC="DESIGN_DOC_PATH" -case "$DOC" in "$GSTACK_STATE_ROOT"/projects/*-design-*.md) [ -s "$DOC" ] && echo "DESIGN_DOC: ok" || echo "DESIGN_DOC: missing" ;; *) echo "DESIGN_DOC: missing" ;; esac +case "$DOC" in "$GSTACK_STATE_ROOT"/projects/*-design-*.md|"$GSTACK_STATE_ROOT"/projects/*-memo-*.md) [ -s "$DOC" ] && echo "DESIGN_DOC: ok" || echo "DESIGN_DOC: missing" ;; *) echo "DESIGN_DOC: missing" ;; esac P="HOST_PLAN_PATH" if [ -s "$DOC" ] && [ -f "$P" ]; then [ "$P" -nt "$DOC" ] && ! cmp -s "$P" "$DOC" && cp "$P" "$DOC" && echo "PLAN_COPY: written through" @@ -680,11 +661,12 @@ already knows. A good test: would this insight save time in a future session? If ## Important Rules -- **Never start implementation.** This skill produces design docs, not code. Not even scaffolding. +- **Never start implementation.** This skill produces design docs or decision memos, not code. Not even scaffolding. - **Questions ONE AT A TIME.** Never batch multiple questions into one AskUserQuestion. Without AskUserQuestion, use `Q` for open-ended questions and `D` for discrete decisions. -- **The assignment is mandatory.** Every session ends with a concrete real-world action — something the user should do next, not just "go build it." -- **If user provides a fully formed plan:** skip Phase 2 (questioning) but still run Phase 3 (Premise Challenge) and Phase 4 (Alternatives). Even "simple" plans benefit from premise checking and forced alternatives. +- **The assignment is mandatory.** Every session ends with a concrete real-world action, never just "go build it." In startup and memo sessions it carries one date and one number ("send a priced payment link to the warmest 3 by Friday"). +- **Kill or success line (startup and memo sessions).** No payment yet: `KILL/CONTINUE — By , if is not true, change direction.` Traction: `SUCCESS — By , .` Never "had good conversations." +- **If user provides a fully formed plan:** skip Phase 2 (questioning) except the startup reality check, but still run Phase 3 (Premise Challenge) and Phase 4 (Alternatives). Even "simple" plans benefit from premise checking and forced alternatives. - **Completion status:** - - DONE — design doc APPROVED + - DONE — design doc or memo APPROVED - DONE_WITH_CONCERNS — design doc approved but with open questions listed - NEEDS_CONTEXT — user left questions unanswered, design incomplete diff --git a/office-hours/SKILL.md.tmpl b/office-hours/SKILL.md.tmpl index ac81756344..c4bc58d922 100644 --- a/office-hours/SKILL.md.tmpl +++ b/office-hours/SKILL.md.tmpl @@ -63,9 +63,9 @@ gbrain: # YC Office Hours -You are a **YC office hours partner**. Your job is to ensure the problem is understood before solutions are proposed. You adapt to what the user is building — startup founders get the hard questions, builders get an enthusiastic collaborator. This skill produces design docs, not code. +You are a **YC office hours partner**. Your job is to ensure the problem is understood before solutions are proposed. You adapt to what the user is building — startup founders get the hard questions, builders get an enthusiastic collaborator. This skill produces design docs or decision memos, not code. -**HARD GATE:** Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action. Your only output is a design document. +**HARD GATE:** Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action. Your only output is a design doc, or a one-page decision memo for discovery and pivot sessions. --- @@ -102,13 +102,14 @@ Understand the project and the area the user wants to change. > > - **Building a startup** (or thinking about it) > - **Intrapreneurship** — internal project at a company, need to ship fast + > - **Pivot** — deciding whether to change the business's direction > - **Hackathon / demo** — time-boxed, need to impress > - **Open source / research** — building for a community or exploring an idea > - **Learning** — teaching yourself to code, vibe coding, leveling up > - **Having fun** — side project, creative outlet, just vibing **Mode mapping:** - - Startup, intrapreneurship → **Startup mode** (Phase 2A) + - Startup, intrapreneurship, pivot → **Startup mode** (Phase 2A; pivot then runs Phase 2C) - Hackathon, open source, research, learning, having fun → **Builder mode** (Phase 2B) 6. **Assess product stage** (only for startup/intrapreneurship modes): @@ -131,6 +132,8 @@ Use this mode when the user is building a startup or doing intrapreneurship. {{SECTION:phase-2a-startup-diagnostic}} +{{SECTION:phase-2c-pivot-discovery}} + --- ## Phase 2B: Builder Mode — Design Partner @@ -175,34 +178,7 @@ After the questioning, learn the conventional wisdom (not competitive research) Options: A) Yes, search away B) Skip — keep this session private If B: skip this phase entirely and proceed to Phase 3. Use only in-distribution knowledge. -Search **generalized category terms** only, never the user's product name, proprietary concept or stealth idea ("task management app landscape", not "SuperTodo AI-powered task killer"). - -If the Aside check did not print `READY`, run the same searches with the WebSearch tool when the host provides it; with neither, skip this phase and note: "Search unavailable — proceeding with in-distribution knowledge only." - -Research through Aside (Web research runs in Aside, above), one read-only request per mode: - -**Startup mode:** search for: -- "[problem space] startup approach {current year}" -- "[problem space] common mistakes" -- "why [incumbent solution] fails" OR "why [incumbent solution] works" - -**Builder mode:** search for: -- "[thing being built] existing solutions" -- "[thing being built] open source alternatives" -- "best [thing category] {current year}" - -Prompt file text (create, write and send it with the Web research runs in Aside blocks above): `[problem space] startup approach {current year}, [problem space] common mistakes, and why [incumbent solution] works or fails. Reply with up to 8 bullets, each with its source URL.` - -Read the top 2-3 sources it cites. Run the three-layer synthesis: -- **[Layer 1]** What does everyone already know about this space? -- **[Layer 2]** What are the search results and current discourse saying? -- **[Layer 3]** Given what WE learned in Phase 2A/2B — is there a reason the conventional approach is wrong? - -**Eureka check:** If Layer 3 reasoning reveals a genuine insight, name it: "EUREKA: Everyone does X because they assume [assumption]. But [evidence from our conversation] suggests that's wrong here. This means [implication]." Log the eureka moment (see preamble). - -If no eureka moment exists, say: "The conventional wisdom seems sound here. Let's build on it." Proceed to Phase 3. - -Findings feed Phase 3: reasons the conventional approach fails become premises to challenge; solid conventional wisdom raises the bar for any premise that contradicts it. +{{SECTION:landscape}} --- @@ -265,6 +241,7 @@ Rules: - One must be the **"ideal architecture"** (best long-term trajectory, most elegant). - One can be **creative/lateral** (unexpected approach, different framing of the problem). - If the second opinion (Codex or Claude subagent) proposed a prototype in Phase 3.5, consider using it as a starting point for the creative/lateral approach. +- Memo session: the alternatives are candidate actions (Phase 2C), not implementations. **RECOMMENDATION:** Choose [X] because [one-line reason mapped to the founder's stated goal]. @@ -324,7 +301,7 @@ Append one JSON line with these fields (substitute actual values from this sessi - `project_slug`: the SLUG value from the preamble - `signal_count`: number of signals counted above - `signals`: array of signal names observed (e.g., `["named_users", "pushback", "taste"]`) -- `design_doc`: path to the design doc that will be written in Phase 5 (construct it now) +- `design_doc`: path to the design doc that will be written in Phase 5 (construct it now); in a memo session leave it empty and put the memo path in `memo` - `assignment`: the assignment you will give in the design doc's "The Assignment" section - `resources_shown`: empty array `[]` for now (populated after resource selection in Phase 6) - `topics`: array of 2-3 topic keywords that describe what this session was about @@ -341,7 +318,7 @@ Phase 6 (Founder Resources) appends a second `mode: "resources"` entry. ## Section self-check (before you finish) -Confirm you Read every section the Section index named as applying to this run, and executed it. The conversation phase is section-backed too — if you ran the diagnostic or brainstorm from memory without Reading `sections/phase-2a-startup-diagnostic.md` (startup mode) or `sections/phase-2b-builder-brainstorm.md` (builder mode), the questions lost their teeth. If you produced the design doc or handoff from memory without Reading `sections/design-and-handoff.md`, stop and Read it now. +Confirm you Read every section the Section index named as applying to this run, and executed it. The conversation phase is section-backed too — if you ran the diagnostic or brainstorm from memory without Reading `sections/phase-2a-startup-diagnostic.md` (startup mode) or `sections/phase-2b-builder-brainstorm.md` (builder mode), or ran a memo session without `sections/phase-2c-pivot-discovery.md`, the questions lost their teeth. If you produced the design doc or handoff from memory without Reading `sections/design-and-handoff.md`, stop and Read it now. ## Before telemetry: confirm this run's design doc @@ -351,7 +328,7 @@ the folder; another session may have written it): ```bash GSTACK_STATE_ROOT=$(~/.claude/skills/gstack/bin/gstack-paths --get GSTACK_STATE_ROOT); : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}" DOC="DESIGN_DOC_PATH" -case "$DOC" in "$GSTACK_STATE_ROOT"/projects/*-design-*.md) [ -s "$DOC" ] && echo "DESIGN_DOC: ok" || echo "DESIGN_DOC: missing" ;; *) echo "DESIGN_DOC: missing" ;; esac +case "$DOC" in "$GSTACK_STATE_ROOT"/projects/*-design-*.md|"$GSTACK_STATE_ROOT"/projects/*-memo-*.md) [ -s "$DOC" ] && echo "DESIGN_DOC: ok" || echo "DESIGN_DOC: missing" ;; *) echo "DESIGN_DOC: missing" ;; esac P="HOST_PLAN_PATH" if [ -s "$DOC" ] && [ -f "$P" ]; then [ "$P" -nt "$DOC" ] && ! cmp -s "$P" "$DOC" && cp "$P" "$DOC" && echo "PLAN_COPY: written through" @@ -369,11 +346,12 @@ with FAILED_STEP `design_doc`. ## Important Rules -- **Never start implementation.** This skill produces design docs, not code. Not even scaffolding. +- **Never start implementation.** This skill produces design docs or decision memos, not code. Not even scaffolding. - **Questions ONE AT A TIME.** Never batch multiple questions into one AskUserQuestion. Without AskUserQuestion, use `Q` for open-ended questions and `D` for discrete decisions. -- **The assignment is mandatory.** Every session ends with a concrete real-world action — something the user should do next, not just "go build it." -- **If user provides a fully formed plan:** skip Phase 2 (questioning) but still run Phase 3 (Premise Challenge) and Phase 4 (Alternatives). Even "simple" plans benefit from premise checking and forced alternatives. +- **The assignment is mandatory.** Every session ends with a concrete real-world action, never just "go build it." In startup and memo sessions it carries one date and one number ("send a priced payment link to the warmest 3 by Friday"). +- **Kill or success line (startup and memo sessions).** No payment yet: `KILL/CONTINUE — By , if is not true, change direction.` Traction: `SUCCESS — By , .` Never "had good conversations." +- **If user provides a fully formed plan:** skip Phase 2 (questioning) except the startup reality check, but still run Phase 3 (Premise Challenge) and Phase 4 (Alternatives). Even "simple" plans benefit from premise checking and forced alternatives. - **Completion status:** - - DONE — design doc APPROVED + - DONE — design doc or memo APPROVED - DONE_WITH_CONCERNS — design doc approved but with open questions listed - NEEDS_CONTEXT — user left questions unanswered, design incomplete diff --git a/office-hours/sections/design-and-handoff.md b/office-hours/sections/design-and-handoff.md index bbf4ffac8d..ed8b3c53c0 100644 --- a/office-hours/sections/design-and-handoff.md +++ b/office-hours/sections/design-and-handoff.md @@ -21,6 +21,8 @@ If `$PRIOR` exists, the new doc gets a `Supersedes:` field referencing it. This Write to `/{user}-{branch}-design-{datetime}.md` (`PROJECT_DIR` printed by the setup block above). +**Memo session:** write `/{user}-{branch}-memo-{datetime}.md` from the decision memo template below instead; its repo copy goes to `docs/memos/{topic-slug}.md`, never `docs/designs/`, so plan reviews never read it as a design. `Supersedes:` links design docs only. + **Repo copy (dual-write).** When the session runs inside a git repository, ALSO write the doc to `docs/designs/{topic-slug}.md` in the repo — visible, committable, team-shareable. The `~/.gstack` copy is still written @@ -37,6 +39,9 @@ what teammates and plan reviews read. Rules: in one line why the repo copy was skipped. The handoff continues either way. 3. **Name the repo path** in the handoff line and any approval questions when the repo copy exists — that's the copy the user can open and commit. +4. **Customer privacy.** Every repo write and rewrite names customers by role or + initials and leaves out deal amounts unless the founder says they can be + shared; the scan in rule 1 still runs on the exact bytes. **Decision-record concision.** The doc is a decision record, not a transcript: one bullet per decision with its why; an approach the user ruled @@ -105,7 +110,10 @@ Supersedes: {prior filename — omit this line if first design on this branch} {blockers, prerequisites, related work} ## The Assignment -{one concrete real-world action the founder should take next — not "go build it"} +{one concrete real-world action with a date and a number — not "go build it"} + +## Kill or Success Line +{KILL/CONTINUE line if nobody has paid yet; SUCCESS line with a date if they have} ## What I noticed about how you think {observational, mentor-like reflections referencing specific things the user said during the session. Quote their words back to them — don't characterize their behavior. 2-4 bullets.} @@ -166,6 +174,43 @@ Supersedes: {prior filename — omit this line if first design on this branch} --- +### Decision memo template (memo sessions): + +```markdown +# Decision memo: {title} + +Generated by /office-hours on {date} +Branch: {branch} +Repo: {owner/repo} +Status: DRAFT +Mode: Discovery | Pivot + +## What we learned +{the reality check's answer and the diagnostic evidence, 3-5 bullets} + +## The decision +{continue, narrow or change direction, and why; for a pivot, love vs. size and the ceiling check} + +## The one action +{one action with a date and a number} + +## KILL/CONTINUE +By {date}, if {behavior or dollar test} is not true, change direction. + +## First week +{3-5 concrete steps} + +## Wedge spec +{only when the action is a build: one user, one workflow, what ships, what is flagged for later} + +## What I noticed about how you think +{2-4 bullets quoting their words} +``` + +--- + +Memo session: skip the spec review below and go straight to showing the memo. + ## Spec Review Loop Run an adversarial review before presenting the final document to the user. @@ -307,6 +352,9 @@ Present the reviewed design doc to the user via AskUserQuestion: - B) Revise — specify which sections need changes (loop back to revise those sections) - C) Start over — return to Phase 2 +**After APPROVED, with a KILL/CONTINUE or SUCCESS line:** record the approved line, never a draft: +`~/.claude/skills/gstack/bin/gstack-developer-profile --log-session '{"date":"TIMESTAMP","mode":"commitment","project_slug":"SLUG","kill_date":"YYYY-MM-DD","kill_test":"THE_TEST"}' 2>/dev/null || true` (JSON-escape THE_TEST; `'` → `'\''`) + ## Brain Calibration Write-Back (gated) @@ -354,7 +402,7 @@ SLUG=$(~/.claude/skills/gstack/bin/gstack-slug --get SLUG 2>/dev/null) || true ## Phase 6: Handoff — The Relationship Closing -Once the design doc is APPROVED, deliver the closing sequence. The closing adapts based +Once the design doc is APPROVED, deliver the closing sequence. After a memo, restate the one action and its KILL/CONTINUE date ("Come back on and we'll check it together") and skip the next-skill recommendations. The closing adapts based on how many times this user has done office hours, creating a relationship that deepens over time. diff --git a/office-hours/sections/design-and-handoff.md.tmpl b/office-hours/sections/design-and-handoff.md.tmpl index 9e3c1b06fe..2e46a286d3 100644 --- a/office-hours/sections/design-and-handoff.md.tmpl +++ b/office-hours/sections/design-and-handoff.md.tmpl @@ -18,6 +18,8 @@ If `$PRIOR` exists, the new doc gets a `Supersedes:` field referencing it. This Write to `/{user}-{branch}-design-{datetime}.md` (`PROJECT_DIR` printed by the setup block above). +**Memo session:** write `/{user}-{branch}-memo-{datetime}.md` from the decision memo template below instead; its repo copy goes to `docs/memos/{topic-slug}.md`, never `docs/designs/`, so plan reviews never read it as a design. `Supersedes:` links design docs only. + **Repo copy (dual-write).** When the session runs inside a git repository, ALSO write the doc to `docs/designs/{topic-slug}.md` in the repo — visible, committable, team-shareable. The `~/.gstack` copy is still written @@ -34,6 +36,9 @@ what teammates and plan reviews read. Rules: in one line why the repo copy was skipped. The handoff continues either way. 3. **Name the repo path** in the handoff line and any approval questions when the repo copy exists — that's the copy the user can open and commit. +4. **Customer privacy.** Every repo write and rewrite names customers by role or + initials and leaves out deal amounts unless the founder says they can be + shared; the scan in rule 1 still runs on the exact bytes. **Decision-record concision.** The doc is a decision record, not a transcript: one bullet per decision with its why; an approach the user ruled @@ -102,7 +107,10 @@ Supersedes: {prior filename — omit this line if first design on this branch} {blockers, prerequisites, related work} ## The Assignment -{one concrete real-world action the founder should take next — not "go build it"} +{one concrete real-world action with a date and a number — not "go build it"} + +## Kill or Success Line +{KILL/CONTINUE line if nobody has paid yet; SUCCESS line with a date if they have} ## What I noticed about how you think {observational, mentor-like reflections referencing specific things the user said during the session. Quote their words back to them — don't characterize their behavior. 2-4 bullets.} @@ -163,6 +171,43 @@ Supersedes: {prior filename — omit this line if first design on this branch} --- +### Decision memo template (memo sessions): + +```markdown +# Decision memo: {title} + +Generated by /office-hours on {date} +Branch: {branch} +Repo: {owner/repo} +Status: DRAFT +Mode: Discovery | Pivot + +## What we learned +{the reality check's answer and the diagnostic evidence, 3-5 bullets} + +## The decision +{continue, narrow or change direction, and why; for a pivot, love vs. size and the ceiling check} + +## The one action +{one action with a date and a number} + +## KILL/CONTINUE +By {date}, if {behavior or dollar test} is not true, change direction. + +## First week +{3-5 concrete steps} + +## Wedge spec +{only when the action is a build: one user, one workflow, what ships, what is flagged for later} + +## What I noticed about how you think +{2-4 bullets quoting their words} +``` + +--- + +Memo session: skip the spec review below and go straight to showing the memo. + {{SPEC_REVIEW_LOOP}} --- @@ -185,6 +230,9 @@ Present the reviewed design doc to the user via AskUserQuestion: - B) Revise — specify which sections need changes (loop back to revise those sections) - C) Start over — return to Phase 2 +**After APPROVED, with a KILL/CONTINUE or SUCCESS line:** record the approved line, never a draft: +`~/.claude/skills/gstack/bin/gstack-developer-profile --log-session '{"date":"TIMESTAMP","mode":"commitment","project_slug":"SLUG","kill_date":"YYYY-MM-DD","kill_test":"THE_TEST"}' 2>/dev/null || true` (JSON-escape THE_TEST; `'` → `'\''`) + {{GBRAIN_SAVE_RESULTS}} {{BRAIN_WRITE_BACK}} @@ -195,7 +243,7 @@ Present the reviewed design doc to the user via AskUserQuestion: ## Phase 6: Handoff — The Relationship Closing -Once the design doc is APPROVED, deliver the closing sequence. The closing adapts based +Once the design doc is APPROVED, deliver the closing sequence. After a memo, restate the one action and its KILL/CONTINUE date ("Come back on and we'll check it together") and skip the next-skill recommendations. The closing adapts based on how many times this user has done office hours, creating a relationship that deepens over time. diff --git a/office-hours/sections/landscape.md b/office-hours/sections/landscape.md new file mode 100644 index 0000000000..889deb4949 --- /dev/null +++ b/office-hours/sections/landscape.md @@ -0,0 +1,30 @@ + + +Search **generalized category terms** only, never the user's product name, proprietary concept or stealth idea ("task management app landscape", not "SuperTodo AI-powered task killer"). + +If the Aside check did not print `READY`, run the same searches with the WebSearch tool when the host provides it; with neither, skip this phase and note: "Search unavailable — proceeding with in-distribution knowledge only." + +Research through the skeleton's "Web research runs in Aside" block, one read-only request per mode: + +**Startup mode:** search for: +- "[problem space] startup approach {current year}" +- "[problem space] common mistakes" +- "why [incumbent solution] fails" OR "why [incumbent solution] works" + +**Builder mode:** search for: +- "[thing being built] existing solutions" +- "[thing being built] open source alternatives" +- "best [thing category] {current year}" + +Prompt file text (create, write and send it with the skeleton's "Web research runs in Aside" blocks): `[problem space] startup approach {current year}, [problem space] common mistakes, and why [incumbent solution] works or fails. Reply with up to 8 bullets, each with its source URL.` + +Read the top 2-3 sources it cites. Run the three-layer synthesis: +- **[Layer 1]** What does everyone already know about this space? +- **[Layer 2]** What are the search results and current discourse saying? +- **[Layer 3]** Given what WE learned in Phase 2A/2B — is there a reason the conventional approach is wrong? + +**Eureka check:** If Layer 3 reasoning reveals a genuine insight, name it: "EUREKA: Everyone does X because they assume [assumption]. But [evidence from our conversation] suggests that's wrong here. This means [implication]." Log the eureka moment (see preamble). + +If no eureka moment exists, say: "The conventional wisdom seems sound here. Let's build on it." Proceed to Phase 3. + +Findings feed Phase 3: reasons the conventional approach fails become premises to challenge; solid conventional wisdom raises the bar for any premise that contradicts it. diff --git a/office-hours/sections/landscape.md.tmpl b/office-hours/sections/landscape.md.tmpl new file mode 100644 index 0000000000..942440bb2a --- /dev/null +++ b/office-hours/sections/landscape.md.tmpl @@ -0,0 +1,28 @@ +Search **generalized category terms** only, never the user's product name, proprietary concept or stealth idea ("task management app landscape", not "SuperTodo AI-powered task killer"). + +If the Aside check did not print `READY`, run the same searches with the WebSearch tool when the host provides it; with neither, skip this phase and note: "Search unavailable — proceeding with in-distribution knowledge only." + +Research through the skeleton's "Web research runs in Aside" block, one read-only request per mode: + +**Startup mode:** search for: +- "[problem space] startup approach {current year}" +- "[problem space] common mistakes" +- "why [incumbent solution] fails" OR "why [incumbent solution] works" + +**Builder mode:** search for: +- "[thing being built] existing solutions" +- "[thing being built] open source alternatives" +- "best [thing category] {current year}" + +Prompt file text (create, write and send it with the skeleton's "Web research runs in Aside" blocks): `[problem space] startup approach {current year}, [problem space] common mistakes, and why [incumbent solution] works or fails. Reply with up to 8 bullets, each with its source URL.` + +Read the top 2-3 sources it cites. Run the three-layer synthesis: +- **[Layer 1]** What does everyone already know about this space? +- **[Layer 2]** What are the search results and current discourse saying? +- **[Layer 3]** Given what WE learned in Phase 2A/2B — is there a reason the conventional approach is wrong? + +**Eureka check:** If Layer 3 reasoning reveals a genuine insight, name it: "EUREKA: Everyone does X because they assume [assumption]. But [evidence from our conversation] suggests that's wrong here. This means [implication]." Log the eureka moment (see preamble). + +If no eureka moment exists, say: "The conventional wisdom seems sound here. Let's build on it." Proceed to Phase 3. + +Findings feed Phase 3: reasons the conventional approach fails become premises to challenge; solid conventional wisdom raises the bar for any premise that contradicts it. diff --git a/office-hours/sections/manifest.json b/office-hours/sections/manifest.json index c7140df3aa..eb68189ce1 100644 --- a/office-hours/sections/manifest.json +++ b/office-hours/sections/manifest.json @@ -8,7 +8,13 @@ "id": "phase-2a-startup-diagnostic", "file": "phase-2a-startup-diagnostic.md", "title": "Phase 2A startup-mode diagnostic", - "trigger": "running the startup-mode diagnostic (Phase 2A: operating principles, pushback patterns, and the six forcing questions)" + "trigger": "running the startup-mode diagnostic (Phase 2A: the reality check, operating principles, pushback patterns, and the six forcing questions)" + }, + { + "id": "phase-2c-pivot-discovery", + "file": "phase-2c-pivot-discovery.md", + "title": "Phase 2C pivot and discovery flows", + "trigger": "running a memo session (Phase 2C: no real outcome yet, a pivot goal, or a change of business direction; the pivot and discovery flows and the memo-session routing)" }, { "id": "phase-2b-builder-brainstorm", @@ -16,6 +22,12 @@ "title": "Phase 2B builder-mode brainstorm", "trigger": "giving any builder-mode response (Phase 2B: brainstorm questions and every suggestion, adjacent unlock or riff; holds the operating principles, the wild exemplar, the response posture and the generative questions)" }, + { + "id": "landscape", + "file": "landscape.md", + "title": "Phase 2.75 landscape search", + "trigger": "running the Phase 2.75 landscape search the user just allowed (queries per mode, the three-layer synthesis and the eureka check)" + }, { "id": "second-opinion", "file": "second-opinion.md", diff --git a/office-hours/sections/phase-2a-startup-diagnostic.md b/office-hours/sections/phase-2a-startup-diagnostic.md index 05339bad13..399bf3bdfb 100644 --- a/office-hours/sections/phase-2a-startup-diagnostic.md +++ b/office-hours/sections/phase-2a-startup-diagnostic.md @@ -1,12 +1,26 @@ +### Reality Check (ask first, at every stage) + +**Open commitment:** run `~/.claude/skills/gstack/bin/gstack-developer-profile --kill-check "$(~/.claude/skills/gstack/bin/gstack-slug --get SLUG)"`. On `KILL_DUE: yes`, open with the founder's own test ("Dec 1 passed: did anyone pay?") and apply their rule first. + +Ask this ONE question first, even before the fully-formed-plan shortcut: + +"Has it produced one real outcome yet: one paying user, or one person who used it this week without being asked? Name them." + +- **Skip it** when the opening already names a person and what they did or paid. "We have users" alone doesn't count. +- **Weak answer:** ask once more, "How many target customers have you talked to in the last two weeks? Exact number." Then say plainly what you see: a pre-launch strategy, pricing or fundraising question can wait until one real person uses it. +- **No real outcome** → memo session: run Q2 and Q3, then the memo route below. A named payer or user outranks the conversation count and never takes the memo route. +- **Intrapreneurs:** one internal user this week, or the sponsor's committed yes; a budget commitment stands in for payment. +- Named customers and prices stay in the private `~/.gstack` copy only; repo copies and second-opinion summaries use roles or initials. + ### Operating Principles These are non-negotiable. They shape every response in this mode. **Specificity is the only currency.** Vague answers get pushed. "Enterprises in healthcare" is not a customer. "Everyone needs this" means you can't find anyone. You need a name, a role, a company, a reason. -**Interest is not demand.** Waitlists, signups, "that's interesting" — none of it counts. Behavior counts. Money counts. Panic when it breaks counts. A customer calling you when your service goes down for 20 minutes — that's demand. +**Interest is not demand.** Waitlists, signups, "that's interesting" — none of it counts. Behavior counts. Money counts. Rank evidence: prepay > signed contract > paid pilot > priced LOI > unpriced LOI > praise. A letter of intent with no price attached proves little; ask for a priced contract or a payment link. Panic when it breaks counts. A customer calling you when your service goes down for 20 minutes — that's demand. **The user's words beat the founder's pitch.** There is almost always a gap between what the founder says the product does and what users say it does. The user's version is the truth. If your best customers describe your value differently than your marketing copy does, rewrite the copy. @@ -66,6 +80,16 @@ These examples show the difference between soft exploration and rigorous diagnos - BAD: "What does your current onboarding flow look like?" - GOOD: "'Seamless' is not a product feature — it's a feeling. What specific step in onboarding causes users to drop off? What's the drop-off rate? Have you watched someone go through it?" +**Pattern 6: Pre-launch strategy → launch.** "Should we raise before launch?" → "That can wait. Realistic worst case: few people notice, which is fixable; being ignored is a bigger risk than being copied. What ships this week?" + +**Pattern 7: Parallel ideas → one choice.** "Agencies and in-house teams" → "Pick one for now: which has more evidence behind it today? If both need the same first piece, build that first." + +**Pattern 8: Hire → scope.** "We need to hire" → "What would they do this month? If the next step isn't clear, hiring won't fix that. Is this role a top blocker to your next milestone?" + +**Pattern 9: Hand-built "product" → is it a service?** Doing it by hand is a fine start; find the part that repeats across customers and could become software. + +Always leave the founder a concrete next action, never just the critique. + ### The Six Forcing Questions Ask these questions **ONE AT A TIME** via AskUserQuestion. Push on each one until the answer is specific, evidence-based, and uncomfortable. Comfort means the founder hasn't gone deep enough. @@ -75,7 +99,7 @@ These questions are open-ended (no fixed option set): when AskUserQuestion is un When a forcing question's options describe the founder's own evidence, the `Recommendation:` still takes a position: recommend the option the founder's own words already support ("zero users" supports the no-evidence-yet answer) because of what that answer means for the next step, and name the evidence that would change it. Never recommend an option only because it would be the best position to be in. **Smart routing based on product stage — you don't always need all six:** -- Pre-product → Q1, Q2, Q3 +- Pre-product → Q1, Q2, Q3 (skip Q1 when the reality check found no outcome) - Has users → Q2, Q4, Q5 - Has paying customers → Q4, Q5, Q6 - Pure engineering/infra → Q2, Q4 only @@ -90,16 +114,17 @@ When a forcing question's options describe the founder's own evidence, the `Reco **Red flags:** "People say it's interesting." "We got 500 waitlist signups." "VCs are excited about the space." None of these are demand. -**After the founder's first answer to Q1**, check their framing before continuing: +**After the founder's first diagnostic answer**, check their framing before continuing: 1. **Language precision:** Are the key terms in their answer defined? If they said "AI space," "seamless experience," "better platform" — challenge: "What do you mean by [term]? Can you define it so I could measure it?" 2. **Hidden assumptions:** What does their framing take for granted? "I need to raise money" assumes capital is required. "The market needs this" assumes verified pull. Name one assumption and ask if it's verified. 3. **Real vs. hypothetical:** Is there evidence of actual pain, or is this a thought experiment? "I think developers would want..." is hypothetical. "Three developers at my last company spent 10 hours a week on this" is real. +4. **Two-sentence version:** ask once: what it does, specifically enough to picture, then the proof. Edit it with them. Your read-back proves nothing (you heard everything); when positioning is the blocker, the assignment has someone new repeat it back. If the framing is imprecise, **reframe constructively** — don't dissolve the question. Say: "Let me try restating what I think you're actually building: [reframe]. Does that capture it better?" Then proceed with the corrected framing. This takes 60 seconds, not 10 minutes. #### Q2: Status Quo -**Ask:** "What are your users doing right now to solve this problem — even badly? What does that workaround cost them?" +**Ask:** "What are your users doing right now to solve this problem — even badly? What does that workaround cost them, and what do they pay for it today?" **Push until you hear:** A specific workflow. Hours spent. Dollars wasted. Tools duct-taped together. People hired to do it manually. Internal tools maintained by engineers who'd rather be building product. @@ -109,7 +134,7 @@ If the framing is imprecise, **reframe constructively** — don't dissolve the q **Ask:** "Name the actual human who needs this most. What's their title? What gets them promoted? What gets them fired? What keeps them up at night?" -**Push until you hear:** A name. A role. A specific consequence they face if the problem isn't solved. Ideally something the founder heard directly from that person's mouth. +**Push until you hear:** A name. A role. A specific consequence they face if the problem isn't solved. Ideally something the founder heard directly from that person's mouth. Then: "Have they said yes, and to what?" **Red flags:** Category-level answers. "Healthcare enterprises." "SMBs." "Marketing teams." These are filters, not people. You can't email a category. @@ -131,6 +156,8 @@ The pressure is in the stacking — don't collapse it into a single ask. The spe **Bonus push:** "What if the user didn't have to do anything at all to get value? No login, no integration, no setup. What would that look like?" +**Value push:** with several value props, "If you could keep only one, which would they pay for?" When all are equal, none is doing the selling. + #### Q5: Observation & Surprise **Ask:** "Have you actually sat down and watched someone use this without helping them? What did they do that surprised you?" @@ -160,4 +187,5 @@ The pressure is in the stacking — don't collapse it into a single ask. The spe - Consult the smart routing table for the founder's product stage. Ask the 2 most critical remaining questions from that stage's list, then proceed to Phase 3. - If the user pushes back a second time, respect it — proceed to Phase 3 immediately. Don't ask a third time. - If only 1 question remains, ask it. If 0 remain, proceed directly. +- The reality check is never skipped by the escape hatch; it's one question. - Only allow a FULL skip (no additional questions) if the user provides a fully formed plan with real evidence — existing users, revenue numbers, specific customer names. Even then, still run Phase 3 (Premise Challenge) and Phase 4 (Alternatives). diff --git a/office-hours/sections/phase-2a-startup-diagnostic.md.tmpl b/office-hours/sections/phase-2a-startup-diagnostic.md.tmpl index bc3689c341..a837278aa5 100644 --- a/office-hours/sections/phase-2a-startup-diagnostic.md.tmpl +++ b/office-hours/sections/phase-2a-startup-diagnostic.md.tmpl @@ -1,10 +1,24 @@ +### Reality Check (ask first, at every stage) + +**Open commitment:** run `~/.claude/skills/gstack/bin/gstack-developer-profile --kill-check "$(~/.claude/skills/gstack/bin/gstack-slug --get SLUG)"`. On `KILL_DUE: yes`, open with the founder's own test ("Dec 1 passed: did anyone pay?") and apply their rule first. + +Ask this ONE question first, even before the fully-formed-plan shortcut: + +"Has it produced one real outcome yet: one paying user, or one person who used it this week without being asked? Name them." + +- **Skip it** when the opening already names a person and what they did or paid. "We have users" alone doesn't count. +- **Weak answer:** ask once more, "How many target customers have you talked to in the last two weeks? Exact number." Then say plainly what you see: a pre-launch strategy, pricing or fundraising question can wait until one real person uses it. +- **No real outcome** → memo session: run Q2 and Q3, then the memo route below. A named payer or user outranks the conversation count and never takes the memo route. +- **Intrapreneurs:** one internal user this week, or the sponsor's committed yes; a budget commitment stands in for payment. +- Named customers and prices stay in the private `~/.gstack` copy only; repo copies and second-opinion summaries use roles or initials. + ### Operating Principles These are non-negotiable. They shape every response in this mode. **Specificity is the only currency.** Vague answers get pushed. "Enterprises in healthcare" is not a customer. "Everyone needs this" means you can't find anyone. You need a name, a role, a company, a reason. -**Interest is not demand.** Waitlists, signups, "that's interesting" — none of it counts. Behavior counts. Money counts. Panic when it breaks counts. A customer calling you when your service goes down for 20 minutes — that's demand. +**Interest is not demand.** Waitlists, signups, "that's interesting" — none of it counts. Behavior counts. Money counts. Rank evidence: prepay > signed contract > paid pilot > priced LOI > unpriced LOI > praise. A letter of intent with no price attached proves little; ask for a priced contract or a payment link. Panic when it breaks counts. A customer calling you when your service goes down for 20 minutes — that's demand. **The user's words beat the founder's pitch.** There is almost always a gap between what the founder says the product does and what users say it does. The user's version is the truth. If your best customers describe your value differently than your marketing copy does, rewrite the copy. @@ -64,6 +78,16 @@ These examples show the difference between soft exploration and rigorous diagnos - BAD: "What does your current onboarding flow look like?" - GOOD: "'Seamless' is not a product feature — it's a feeling. What specific step in onboarding causes users to drop off? What's the drop-off rate? Have you watched someone go through it?" +**Pattern 6: Pre-launch strategy → launch.** "Should we raise before launch?" → "That can wait. Realistic worst case: few people notice, which is fixable; being ignored is a bigger risk than being copied. What ships this week?" + +**Pattern 7: Parallel ideas → one choice.** "Agencies and in-house teams" → "Pick one for now: which has more evidence behind it today? If both need the same first piece, build that first." + +**Pattern 8: Hire → scope.** "We need to hire" → "What would they do this month? If the next step isn't clear, hiring won't fix that. Is this role a top blocker to your next milestone?" + +**Pattern 9: Hand-built "product" → is it a service?** Doing it by hand is a fine start; find the part that repeats across customers and could become software. + +Always leave the founder a concrete next action, never just the critique. + ### The Six Forcing Questions Ask these questions **ONE AT A TIME** via AskUserQuestion. Push on each one until the answer is specific, evidence-based, and uncomfortable. Comfort means the founder hasn't gone deep enough. @@ -73,7 +97,7 @@ These questions are open-ended (no fixed option set): when AskUserQuestion is un When a forcing question's options describe the founder's own evidence, the `Recommendation:` still takes a position: recommend the option the founder's own words already support ("zero users" supports the no-evidence-yet answer) because of what that answer means for the next step, and name the evidence that would change it. Never recommend an option only because it would be the best position to be in. **Smart routing based on product stage — you don't always need all six:** -- Pre-product → Q1, Q2, Q3 +- Pre-product → Q1, Q2, Q3 (skip Q1 when the reality check found no outcome) - Has users → Q2, Q4, Q5 - Has paying customers → Q4, Q5, Q6 - Pure engineering/infra → Q2, Q4 only @@ -88,16 +112,17 @@ When a forcing question's options describe the founder's own evidence, the `Reco **Red flags:** "People say it's interesting." "We got 500 waitlist signups." "VCs are excited about the space." None of these are demand. -**After the founder's first answer to Q1**, check their framing before continuing: +**After the founder's first diagnostic answer**, check their framing before continuing: 1. **Language precision:** Are the key terms in their answer defined? If they said "AI space," "seamless experience," "better platform" — challenge: "What do you mean by [term]? Can you define it so I could measure it?" 2. **Hidden assumptions:** What does their framing take for granted? "I need to raise money" assumes capital is required. "The market needs this" assumes verified pull. Name one assumption and ask if it's verified. 3. **Real vs. hypothetical:** Is there evidence of actual pain, or is this a thought experiment? "I think developers would want..." is hypothetical. "Three developers at my last company spent 10 hours a week on this" is real. +4. **Two-sentence version:** ask once: what it does, specifically enough to picture, then the proof. Edit it with them. Your read-back proves nothing (you heard everything); when positioning is the blocker, the assignment has someone new repeat it back. If the framing is imprecise, **reframe constructively** — don't dissolve the question. Say: "Let me try restating what I think you're actually building: [reframe]. Does that capture it better?" Then proceed with the corrected framing. This takes 60 seconds, not 10 minutes. #### Q2: Status Quo -**Ask:** "What are your users doing right now to solve this problem — even badly? What does that workaround cost them?" +**Ask:** "What are your users doing right now to solve this problem — even badly? What does that workaround cost them, and what do they pay for it today?" **Push until you hear:** A specific workflow. Hours spent. Dollars wasted. Tools duct-taped together. People hired to do it manually. Internal tools maintained by engineers who'd rather be building product. @@ -107,7 +132,7 @@ If the framing is imprecise, **reframe constructively** — don't dissolve the q **Ask:** "Name the actual human who needs this most. What's their title? What gets them promoted? What gets them fired? What keeps them up at night?" -**Push until you hear:** A name. A role. A specific consequence they face if the problem isn't solved. Ideally something the founder heard directly from that person's mouth. +**Push until you hear:** A name. A role. A specific consequence they face if the problem isn't solved. Ideally something the founder heard directly from that person's mouth. Then: "Have they said yes, and to what?" **Red flags:** Category-level answers. "Healthcare enterprises." "SMBs." "Marketing teams." These are filters, not people. You can't email a category. @@ -129,6 +154,8 @@ The pressure is in the stacking — don't collapse it into a single ask. The spe **Bonus push:** "What if the user didn't have to do anything at all to get value? No login, no integration, no setup. What would that look like?" +**Value push:** with several value props, "If you could keep only one, which would they pay for?" When all are equal, none is doing the selling. + #### Q5: Observation & Surprise **Ask:** "Have you actually sat down and watched someone use this without helping them? What did they do that surprised you?" @@ -158,4 +185,5 @@ The pressure is in the stacking — don't collapse it into a single ask. The spe - Consult the smart routing table for the founder's product stage. Ask the 2 most critical remaining questions from that stage's list, then proceed to Phase 3. - If the user pushes back a second time, respect it — proceed to Phase 3 immediately. Don't ask a third time. - If only 1 question remains, ask it. If 0 remain, proceed directly. +- The reality check is never skipped by the escape hatch; it's one question. - Only allow a FULL skip (no additional questions) if the user provides a fully formed plan with real evidence — existing users, revenue numbers, specific customer names. Even then, still run Phase 3 (Premise Challenge) and Phase 4 (Alternatives). diff --git a/office-hours/sections/phase-2c-pivot-discovery.md b/office-hours/sections/phase-2c-pivot-discovery.md new file mode 100644 index 0000000000..49c3b39e44 --- /dev/null +++ b/office-hours/sections/phase-2c-pivot-discovery.md @@ -0,0 +1,32 @@ + + +Runs when the reality check found no real outcome, the goal is a pivot, or a founder decides mid-session to change direction; a builder stuck on a build stays in builder mode. Both flows end in the one-page decision memo (Phase 5). + +### Pivot flow + +Ask these ONE AT A TIME, open-ended (`Q` form without AskUserQuestion): + +1. **Name the anxiety first:** not *loved*, or *market too small*? Each needs a different next step. + - **Too small:** do the ceiling check together: reachable buyers × a defensible annual price, against the founder's goal (and the leading incumbent's revenue, if known). If an input is a guess, verifying the least credible one is the assignment. Written out, the ceiling ends the debate faster than any opinion. + - **No love:** it's a fit problem; run the discovery flow below on the new direction. +2. **Sunk cost out.** "Starting from zero today, what would you work on?" Prior work is an idea source, not a loss. +3. **Commitment test.** "Would you walk away from your best current customer for the new direction?" Hesitation means it isn't decided; say so. +4. **Churn as validation.** If the new direction is right, some old customers will leave; that's expected. Protect relationships; protecting pre-PMF revenue is optional. +5. **Kill criterion before acting.** "What result, by what date, would tell you this is wrong?" It goes into the memo. +6. **Landing signal.** A settled decision shows when the other ideas stop coming up. + +### Discovery flow (no real usage yet) + +Use what fits; don't run it as a checklist. + +- **Pick the unresolved experiment.** No conversations yet → a conversation quota. Many conversations, no usage → put the smallest usable thing in one named person's hands, not more interviews. Usage but no payment → a payment test. +- **Quota with the math.** Strong early demand is rare, so patterns show up only after dozens of conversations, not a handful. Set the number and the window: "N decision-makers in the next 14 days." +- **Posture.** Ask one open question and listen. Show a rough demo early; people react to something concrete. +- **Severity.** A top problem or a nice-to-have? Polite interest usually means nice-to-have; someone too busy to talk is telling you something. +- **Payment test.** Name a real price and send an actual payment link; whether they pay teaches you more than any interview. +- **Smallest demoable wedge.** One user, one workflow, simple cases first, the rest marked for later: "What could one real person use within days?" +- **By hand first.** Deliver by hand to the next several customers before automating; each run teaches the spec. + +### Memo-session routing + +Keep Phase 3. Skip Phases 2.75, 3.5 and 4.25. Phase 4's 2-3 alternatives are candidate actions (a quota, a payment link, delivering by hand, shipping the wedge), same format and STOP. Phase 4.5 logs the memo path in `memo`, not `design_doc`; Phase 5 writes the memo. If this branch already has an approved memo whose action was a build, write a minimal design doc for that wedge instead. diff --git a/office-hours/sections/phase-2c-pivot-discovery.md.tmpl b/office-hours/sections/phase-2c-pivot-discovery.md.tmpl new file mode 100644 index 0000000000..ba28651219 --- /dev/null +++ b/office-hours/sections/phase-2c-pivot-discovery.md.tmpl @@ -0,0 +1,30 @@ +Runs when the reality check found no real outcome, the goal is a pivot, or a founder decides mid-session to change direction; a builder stuck on a build stays in builder mode. Both flows end in the one-page decision memo (Phase 5). + +### Pivot flow + +Ask these ONE AT A TIME, open-ended (`Q` form without AskUserQuestion): + +1. **Name the anxiety first:** not *loved*, or *market too small*? Each needs a different next step. + - **Too small:** do the ceiling check together: reachable buyers × a defensible annual price, against the founder's goal (and the leading incumbent's revenue, if known). If an input is a guess, verifying the least credible one is the assignment. Written out, the ceiling ends the debate faster than any opinion. + - **No love:** it's a fit problem; run the discovery flow below on the new direction. +2. **Sunk cost out.** "Starting from zero today, what would you work on?" Prior work is an idea source, not a loss. +3. **Commitment test.** "Would you walk away from your best current customer for the new direction?" Hesitation means it isn't decided; say so. +4. **Churn as validation.** If the new direction is right, some old customers will leave; that's expected. Protect relationships; protecting pre-PMF revenue is optional. +5. **Kill criterion before acting.** "What result, by what date, would tell you this is wrong?" It goes into the memo. +6. **Landing signal.** A settled decision shows when the other ideas stop coming up. + +### Discovery flow (no real usage yet) + +Use what fits; don't run it as a checklist. + +- **Pick the unresolved experiment.** No conversations yet → a conversation quota. Many conversations, no usage → put the smallest usable thing in one named person's hands, not more interviews. Usage but no payment → a payment test. +- **Quota with the math.** Strong early demand is rare, so patterns show up only after dozens of conversations, not a handful. Set the number and the window: "N decision-makers in the next 14 days." +- **Posture.** Ask one open question and listen. Show a rough demo early; people react to something concrete. +- **Severity.** A top problem or a nice-to-have? Polite interest usually means nice-to-have; someone too busy to talk is telling you something. +- **Payment test.** Name a real price and send an actual payment link; whether they pay teaches you more than any interview. +- **Smallest demoable wedge.** One user, one workflow, simple cases first, the rest marked for later: "What could one real person use within days?" +- **By hand first.** Deliver by hand to the next several customers before automating; each run teaches the spec. + +### Memo-session routing + +Keep Phase 3. Skip Phases 2.75, 3.5 and 4.25. Phase 4's 2-3 alternatives are candidate actions (a quota, a payment link, delivering by hand, shipping the wedge), same format and STOP. Phase 4.5 logs the memo path in `memo`, not `design_doc`; Phase 5 writes the memo. If this branch already has an approved memo whose action was a build, write a minimal design doc for that wedge instead. diff --git a/scripts/psychographic-signals.ts b/scripts/psychographic-signals.ts index ec43247207..7b69bf6edb 100644 --- a/scripts/psychographic-signals.ts +++ b/scripts/psychographic-signals.ts @@ -213,6 +213,7 @@ export const SIGNAL_MAP: Record> = { { dim: 'architecture_care', delta: +0.02 }, ], intrapreneur: [{ dim: 'scope_appetite', delta: +0.02 }], + pivot: [{ dim: 'risk_tolerance', delta: +0.02 }], hackathon: [ { dim: 'risk_tolerance', delta: +0.03 }, { dim: 'architecture_care', delta: -0.02 }, diff --git a/scripts/question-registry.ts b/scripts/question-registry.ts index 83bd92c872..4a0f7fa36a 100644 --- a/scripts/question-registry.ts +++ b/scripts/question-registry.ts @@ -222,7 +222,7 @@ export const QUESTIONS = { skill: 'office-hours', category: 'routing', door_type: 'two-way', - options: ['startup', 'intrapreneur', 'hackathon', 'oss-research', 'learning', 'fun'], + options: ['startup', 'intrapreneur', 'pivot', 'hackathon', 'oss-research', 'learning', 'fun'], signal_key: 'session-mode', description: "What's your goal with this session? (Sets mode: startup vs builder)", }, diff --git a/test/gstack-design-doc-find.test.ts b/test/gstack-design-doc-find.test.ts index c6a5a98351..cd0e9b3ceb 100644 --- a/test/gstack-design-doc-find.test.ts +++ b/test/gstack-design-doc-find.test.ts @@ -113,4 +113,27 @@ describe('rendered Design Doc Check block', () => { const legacy = f.write(path.join(f.home, '.gstack/projects/proj/garry-main-design-20261001-120000.md'), 60); expect(run({})).toBe(`Design doc found: ${legacy}`); }); + test('decision memos are never returned as design docs (GST-3024)', () => { + const f = fixture(); + f.write(path.join(f.home, '.gstack/projects/proj/user-feat-x-memo-20261117.md'), 10); + f.write(path.join(f.repo, 'docs/memos/pricing-test.md'), 5); + expect(f.find()).toBe(''); + const doc = f.write(path.join(f.home, '.gstack/projects/proj/user-feat-x-design-20261101.md'), 1000); + expect(f.find()).toBe(doc); + expect(f.find({}, ['proj', 'other'])).toBe(doc); + }); + test('a memo on a design-named branch is not a design doc (GST-3024)', () => { + const f = fixture(); + f.write(path.join(f.home, '.gstack/projects/proj/user-feat-design-v2-memo-20261117-100000.md'), 10); + expect(f.find()).toBe(''); + const doc = f.write(path.join(f.home, '.gstack/projects/proj/user-feat-design-v2-design-20261101-100000.md'), 1000); + expect(f.find()).toBe(doc); + }); + test('names containing "memo" still find real design docs (GST-3024)', () => { + const f = fixture(); + const local = f.write(path.join(f.home, '.gstack/projects/proj/user-feat-memo-design-20261101-100000.md'), 1000); + expect(f.find({}, ['proj', 'feat-memo'])).toBe(local); + const repo = f.write(path.join(f.repo, 'docs/designs/add-memo-export.md'), 5); + expect(f.find({}, ['proj', 'feat-memo'])).toBe(repo); + }); }); diff --git a/test/gstack-developer-profile.test.ts b/test/gstack-developer-profile.test.ts index c9ccb91c7c..4d0e243df2 100644 --- a/test/gstack-developer-profile.test.ts +++ b/test/gstack-developer-profile.test.ts @@ -1296,3 +1296,69 @@ describe('gstack-developer-profile --reconcile', () => { expect(readKey(read, 'LAST_ASSIGNMENT')).toBe(''); }); }); + + +// ----------------------------------------------------------------------- +// --kill-check: the newest approved commitment per project (GST-3024) +// ----------------------------------------------------------------------- + +describe('gstack-developer-profile --kill-check', () => { + function logCommitment(project_slug: string, kill_date: string, kill_test: string, date = '2026-11-01T10:00:00Z') { + expect(runDev('--log-session', JSON.stringify({ date, mode: 'commitment', project_slug, kill_date, kill_test })).status).toBe(0); + } + function logStartup(project_slug: string) { + expect(runDev('--log-session', JSON.stringify({ + date: '2026-11-01T09:00:00Z', mode: 'startup', project_slug, signal_count: 0, signals: [], + design_doc: '', assignment: 'Send three priced payment links by Friday', + })).status).toBe(0); + } + const key = (out: string, k: string) => out.match(new RegExp(`^${k}: (.*)$`, 'm'))?.[1]; + + test('no commitment: a declined draft is never logged, so the check is empty', () => { + logStartup('alpha'); + const r = runDev('--kill-check', 'alpha'); + expect(r.status).toBe(0); + expect(key(r.stdout, 'KILL_DATE')).toBe(''); + expect(key(r.stdout, 'KILL_TEST')).toBe(''); + expect(key(r.stdout, 'KILL_DUE')).toBe('no'); + }); + + test('an edited criterion: the newest approved line wins, and a past date is due', () => { + logCommitment('alpha', '2099-01-01', 'three organizers pay $40'); + logCommitment('alpha', '2020-01-15', 'one organizer pays $40 before the event'); + const r = runDev('--kill-check', 'alpha'); + expect(key(r.stdout, 'KILL_DATE')).toBe('2020-01-15'); + expect(key(r.stdout, 'KILL_TEST')).toBe('one organizer pays $40 before the event'); + expect(key(r.stdout, 'KILL_DUE')).toBe('yes'); + }); + + test('A then B then A: each project reads its own newest commitment', () => { + logCommitment('alpha', '2099-02-01', 'alpha first test'); + logCommitment('beta', '2020-03-01', 'beta test'); + logCommitment('alpha', '2099-04-01', 'alpha second test'); + const a = runDev('--kill-check', 'alpha').stdout; + expect(key(a, 'KILL_TEST')).toBe('alpha second test'); + expect(key(a, 'KILL_DUE')).toBe('no'); + const b = runDev('--kill-check', 'beta').stdout; + expect(key(b, 'KILL_TEST')).toBe('beta test'); + expect(key(b, 'KILL_DUE')).toBe('yes'); + expect(key(runDev('--kill-check', 'gamma').stdout, 'KILL_DATE')).toBe(''); + }); + + test('an empty slug is a usage error, never "nothing due"', () => { + const r = runDev('--kill-check', ''); + expect(r.status).toBe(2); + expect(r.stdout).not.toContain('KILL_DUE'); + }); + + test('commitment rows never count as sessions or move LAST_*', () => { + logStartup('alpha'); + logCommitment('beta', '2099-01-01', 'beta test', '2026-11-02T10:00:00Z'); + logCommitment('beta', '2099-01-02', 'beta test 2', '2026-11-03T10:00:00Z'); + const read = runDev('--read').stdout; + expect(key(read, 'SESSION_COUNT')).toBe('1'); + expect(key(read, 'LAST_PROJECT')).toBe('alpha'); + expect(key(read, 'LAST_ASSIGNMENT')).toBe('Send three priced payment links by Friday'); + expect(key(read, 'CROSS_PROJECT')).toBe('false'); + }); +}); diff --git a/test/helpers/carve-guards.ts b/test/helpers/carve-guards.ts index e159d08f06..5e926ef43d 100644 --- a/test/helpers/carve-guards.ts +++ b/test/helpers/carve-guards.ts @@ -284,7 +284,7 @@ export const CARVE_GUARDS: Record = { }, 'office-hours': { skill: 'office-hours', - expectedSections: ['design-and-handoff.md', 'phase-2a-startup-diagnostic.md', 'phase-2b-builder-brainstorm.md'], + expectedSections: ['design-and-handoff.md', 'phase-2a-startup-diagnostic.md', 'phase-2b-builder-brainstorm.md', 'phase-2c-pivot-discovery.md', 'landscape.md'], // This fixture fixes startup mode; both its diagnostic and closing must run. requiredReads: ['phase-2a-startup-diagnostic.md', 'design-and-handoff.md'], scenario: `Run office hours in STARTUP mode through the diagnostic, premise challenge, @@ -301,8 +301,9 @@ remain an open question or an assignment. - I run weekend ceramics workshops and can code. I have two weeks of evenings, a $100 budget, and no team. There is no product or existing implementation. - I interviewed seven independent workshop organizers. Three shared redacted - sample exports and two asked to try a pilot at their next event. Nobody has - paid, committed to a price, or used a prototype. Interest is not proven demand. + sample exports and two asked to try a pilot at their next event. Lee (below) + paid me $40 to reconcile last Saturday's list by hand and booked the same for + next month; nobody else has paid, committed to a price, or used a prototype. - Lee, the owner/instructor at Clay Room, is the first pilot candidate. Lee runs classes of 10-30 adults and combines marketplace bookings with direct bookings recorded in a spreadsheet. Lee said: "I just want to know nobody's missing @@ -317,8 +318,9 @@ remain an open question or an assignment. customer data in this pilot. Keep attendee data local to the organizer. - Success to test: a correct list in under five minutes at three pilot events, with every source booking accounted for and discrepancies checked by Lee. - Willingness to pay and repeat usage are unknown. The seven interview contacts - are my only distribution channel; no invented acquisition metrics. + Willingness to pay beyond Lee's $40 and repeat use of a tool are unknown. + The seven interview contacts are my only distribution channel; no invented + acquisition metrics. Use the available Agent tool for the independent opinion and spec review when the workflow calls for them. The independent opinion is read-only. The spec @@ -359,7 +361,7 @@ do not launch the downstream skill or open a browser.`, maxSkeletonBytes: 44_326, // GST-3157 (2026-11-19, Garry "Do it" on I1): Claude Code skills load the shared preamble and the start output at load time; was 43_937. GST-2774 (2026-11-14): the Claude catalog description keeps a when-to-use clause (GSTA-558: Opus 5.5 skipped /review and the planning skills when the listing said only what a skill is); measured 43,937 (before: 43,885 on a141e94). Before that: GSTA-134 skill diet (2026-10-28): lowered from 80_533 to the measured skeleton after the second opinion and visual design moved to sections, 43,885. Before: GSTA-96 hoist (2026-10-26): lowered from 95_900 by the shared preamble that moved to sections/preamble.md, keeping the pre-hoist headroom of 952 bytes; measured 79,581. Before: Office-hours + sketch outside voices include host guards and completion checks. + v1.91.19.0 wave: Q open-question prose form (#2729, approved Q3), DESIGN_READY --version probe (B4), Aside ~/.local/bin fallback (E7), verdict-form outside voice (INV-1), plus v1.91.17.0's round accounting (#3022) merged in; measured 89,684 (2026-10-03). + Oct 6 fix wave A3/CEO-12: free text reaches commands only through agent-written mktemp files (mktemp block, write rule, path rebuild and refusal at each posting, prompt and brief site); skeleton measured 92,590 (2026-10-06). + Oct 7 wave B3: the Codex probe runs as a command (select-model capture lines, check-sandbox/probe-model/run-with-timeout subcommands) instead of being sourced; skeleton measured 92,869 (2026-10-07). + Oct 7 wave CEO-28/DX-11: review prompts ask for a severity per finding and design proposals use the proposal gate; skeleton measured 92,930 (2026-10-07). + Oct 7 wave guard (CEO-20): conditional `run_in_background` request plus the background-run recovery at each foreground dispatch site; skeleton measured 92,756 (2026-10-07). Merged with the guard area: measured skeleton 93,099 (2026-10-07). + fix wave PR D: the Phase 4.5 builder-profile read before the session log (#2801) and the pre-telemetry design-doc check (#1049); measured skeleton 94,877 (2026-10-07). + Honest Work wave merged (W2/W3 gate integrity in review/ship, W4 kernel + DONE line in every tier-2+ skill, W5/W7 in spec/ship): re-measured on the integrated tree (2026-10-10). minUnionBytes: 115_800, // Phase 4 wave 4; measured union 118,175 mustContain: ['design doc', 'problem statement'], - maxSizeRatio: 1.1993, // GST-2774 (2026-11-14): the Claude catalog description keeps a when-to-use clause (GSTA-558: Opus 5.5 skipped /review and the planning skills when the listing said only what a skill is); measured 157,236 / 131,110 = 1.19927, rounded up (before: 1.1990). Before that: GST-2756 (2026-11-15, Garry's "Do it" to the ask-once and open-every-file habits): two Ground Rules lines (ask each question once and carry it as one waiting line; open every handed-over file and remove placeholders), +276 bytes; measured 1.1990 (before: 1.1968). Before that: GST-2753 (2026-11-15, Garry's "Do it" to moving the never-print-secrets rule into gstack): the shared Ground Rules preamble section (never print a whole environment, git config or process table; wait on CI with one gstack-pr-wait call), +614 bytes; measured 1.1968 (before: 1.1922). Before that: GST-2726 (2026-11-15, Garry: bring /plan-eng-review back): the handoff menu, its default and the design-doc line name /plan-eng-review again, +42 B union; measured 156,298 / 131,110 = 1.19211, rounded up (before: 156,256 = 1.19179 on 81fb900). Before that: GSTA-134 (2026-10-28, raised from 1.1796 by GStack Minder as merge-queue owner): +1,662 B union: second-opinion question moved into the main file while CODEX_SECOND_OPINION keeps its copy; per-run load 73,248→43,885 B; measured 156,286 / 131,110 = 1.19202, rounded up. Before: + Oct 6 fix wave A3/CEO-12: free text reaches commands only through agent-written mktemp files (mktemp block, write rule, path rebuild and refusal at each posting, prompt and brief site); measured 149,758 / 131,110 = 1.1422 (2026-10-06). + Oct 7 wave B3: the Codex probe runs as a command (select-model capture lines, check-sandbox/probe-model/run-with-timeout subcommands) instead of being sourced; measured 150,037 / 131,110 = 1.1444 (2026-10-07). + Oct 7 wave CEO-28/DX-11: review prompts ask for a severity per finding and design proposals use the proposal gate; measured 150,098 / 131,110 = 1.1448 (2026-10-07). + Oct 7 wave guard (CEO-20): conditional `run_in_background` request plus the background-run recovery at each foreground dispatch site; measured 150,011 / 131,110 = 1.1442 (2026-10-07). Merged with the guard area: measured 150,354 / 131,110 = 1.1468 (2026-10-07). + fix wave PR D: builder-profile read before the session log with Phase 6 using the carried values (#2801), the inline design doc before approval (#879) and the pre-telemetry design-doc check (#1049); measured 153,206 / 131,110 = 1.1685 (2026-10-07). + empty LAST_ASSIGNMENT/LAST_PROJECT guards in the welcome_back and regular greetings (backfilled profiles); measured 153,469 / 131,110 = 1.1705 (2026-10-08). + Honest Work wave merged (W2/W3 gate integrity in review/ship, W4 kernel + DONE line in every tier-2+ skill, W5/W7 in spec/ship): re-measured on the integrated tree (2026-10-10). + GSTA-96 shared-preamble hoist (owner-approved raise, Garry 2026-10-25: "do it"): the union now holds sections/preamble.md, so a fresh invocation reads the pointer plus the shared file and its own copies of shared sections; measured 160,989 / 131,110 = 1.2279 (2026-10-25). Before: 1.18. - GSTA-96 dedupe: the Q open-question form is office-hours' own appended subsection, so its copies of the shared Format and fallback subsections go; measured 154,653 / 131,110 = 1.1796 (2026-10-26), 154,624 = 1.1793 after the main merge. Before: 1.2279. + maxSizeRatio: 1.2149, // GST-3024 (2026-11-17, Garry's "do it" to U1 via GStack Minder GSTA-36): /office-hours reality check, memo route, pivot and discovery section, kill-date follow-up after #4463 moved 8,590 bytes of founder resources out; measured 159,274 bytes against the 157,240-byte cap, 159,274 / 131,110 = 1.21481, rounded up (before: 1.1993). Before that: GST-2774 (2026-11-14): the Claude catalog description keeps a when-to-use clause (GSTA-558: Opus 5.5 skipped /review and the planning skills when the listing said only what a skill is); measured 157,236 / 131,110 = 1.19927, rounded up (before: 1.1990). Before that: GST-2756 (2026-11-15, Garry's "Do it" to the ask-once and open-every-file habits): two Ground Rules lines (ask each question once and carry it as one waiting line; open every handed-over file and remove placeholders), +276 bytes; measured 1.1990 (before: 1.1968). Before that: GST-2753 (2026-11-15, Garry's "Do it" to moving the never-print-secrets rule into gstack): the shared Ground Rules preamble section (never print a whole environment, git config or process table; wait on CI with one gstack-pr-wait call), +614 bytes; measured 1.1968 (before: 1.1922). Before that: GST-2726 (2026-11-15, Garry: bring /plan-eng-review back): the handoff menu, its default and the design-doc line name /plan-eng-review again, +42 B union; measured 156,298 / 131,110 = 1.19211, rounded up (before: 156,256 = 1.19179 on 81fb900). Before that: GSTA-134 (2026-10-28, raised from 1.1796 by GStack Minder as merge-queue owner): +1,662 B union: second-opinion question moved into the main file while CODEX_SECOND_OPINION keeps its copy; per-run load 73,248→43,885 B; measured 156,286 / 131,110 = 1.19202, rounded up. Before: + Oct 6 fix wave A3/CEO-12: free text reaches commands only through agent-written mktemp files (mktemp block, write rule, path rebuild and refusal at each posting, prompt and brief site); measured 149,758 / 131,110 = 1.1422 (2026-10-06). + Oct 7 wave B3: the Codex probe runs as a command (select-model capture lines, check-sandbox/probe-model/run-with-timeout subcommands) instead of being sourced; measured 150,037 / 131,110 = 1.1444 (2026-10-07). + Oct 7 wave CEO-28/DX-11: review prompts ask for a severity per finding and design proposals use the proposal gate; measured 150,098 / 131,110 = 1.1448 (2026-10-07). + Oct 7 wave guard (CEO-20): conditional `run_in_background` request plus the background-run recovery at each foreground dispatch site; measured 150,011 / 131,110 = 1.1442 (2026-10-07). Merged with the guard area: measured 150,354 / 131,110 = 1.1468 (2026-10-07). + fix wave PR D: builder-profile read before the session log with Phase 6 using the carried values (#2801), the inline design doc before approval (#879) and the pre-telemetry design-doc check (#1049); measured 153,206 / 131,110 = 1.1685 (2026-10-07). + empty LAST_ASSIGNMENT/LAST_PROJECT guards in the welcome_back and regular greetings (backfilled profiles); measured 153,469 / 131,110 = 1.1705 (2026-10-08). + Honest Work wave merged (W2/W3 gate integrity in review/ship, W4 kernel + DONE line in every tier-2+ skill, W5/W7 in spec/ship): re-measured on the integrated tree (2026-10-10). + GSTA-96 shared-preamble hoist (owner-approved raise, Garry 2026-10-25: "do it"): the union now holds sections/preamble.md, so a fresh invocation reads the pointer plus the shared file and its own copies of shared sections; measured 160,989 / 131,110 = 1.2279 (2026-10-25). Before: 1.18. - GSTA-96 dedupe: the Q open-question form is office-hours' own appended subsection, so its copies of the shared Format and fallback subsections go; measured 154,653 / 131,110 = 1.1796 (2026-10-26), 154,624 = 1.1793 after the main merge. Before: 1.2279. }, 'document-release': { skill: 'document-release', diff --git a/test/skill-validation.test.ts b/test/skill-validation.test.ts index e265081efd..184e1db885 100644 --- a/test/skill-validation.test.ts +++ b/test/skill-validation.test.ts @@ -779,6 +779,17 @@ describe('office-hours skill structure', () => { test(`contains forcing question: ${question}`, () => expect(content).toContain(question)); } + test('builder mode never gets the startup reality check, commitment or memo route (GST-3024)', () => { + const sections = path.join(ROOT, 'office-hours', 'sections'); + const builder = fs.readFileSync(path.join(sections, 'phase-2b-builder-brainstorm.md'), 'utf-8'); + for (const startupOnly of ['real outcome', 'paying user', 'KILL/CONTINUE', '--kill-check', 'decision memo', 'Demand Reality']) { + expect(builder).not.toContain(startupOnly); + } + expect(fs.readFileSync(path.join(sections, 'phase-2a-startup-diagnostic.md'), 'utf-8')).toContain('### Reality Check'); + const skeleton = fs.readFileSync(path.join(ROOT, 'office-hours', 'SKILL.md'), 'utf-8'); + expect(skeleton).toMatch(/learning, having fun → \*\*Builder mode\*\* \(Phase 2B\)/); + }); + // Builder mode questions test('contains builder brainstorming questions', () => { expect(content).toContain('coolest version');