Skip to content

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

TypeScript

/office-hours keeps its founder resources out of the skill file (GST-3024) (#4463)

Garry Tanfc5c285035b5
diff --git a/TODOS.md b/TODOS.md
index 3329db324..1303e4af3 100644
--- a/TODOS.md
+++ b/TODOS.md
@@ -2,6 +2,10 @@
## 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-founder-resources b/bin/gstack-founder-resources
new file mode 100755
index 000000000..ce7bece39
--- /dev/null
+++ b/bin/gstack-founder-resources
@@ -0,0 +1,35 @@
+#!/usr/bin/env -S bun --no-env-file --config=/dev/null
+/**
+ * gstack-founder-resources — the office-hours founder-resource pool, served on demand.
+ *
+ * gstack-founder-resources [--shown <url,url,...>]
+ *
+ * Prints RESOURCES_TOTAL and RESOURCES_SHOWN_COUNT, then either
+ * `RESOURCES: exhausted` or every entry the user has not been shown yet, under
+ * its category header, exactly as the prompt used to carry it. Shown URLs come
+ * from the builder profile (`gstack-developer-profile --read`, RESOURCES_SHOWN)
+ * unless --shown is given; when the profile can't be read it prints
+ * `PROFILE_READ: failed` and treats nothing as shown, as the prompt did.
+ * Exit 0, or 2 on a usage error. Data: lib/founder-resources.ts.
+ */
+import * as path from 'node:path';
+import { renderIndex } from '../lib/founder-resources';
+import { runScriptSync } from '../lib/script-invocation';
+
+const args = process.argv.slice(2);
+const at = args.indexOf('--shown');
+if (args.length && !(at === 0 && args.length === 2)) {
+ process.stderr.write('usage: gstack-founder-resources [--shown <url,...>]\n');
+ process.exit(args[0] === '--help' || args[0] === '-h' ? 0 : 2);
+}
+
+let shown: string[] = [];
+if (at === 0) {
+ shown = args[1]!.split(',').map(s => s.trim()).filter(Boolean);
+} else {
+ const r = runScriptSync(path.join(import.meta.dir, 'gstack-developer-profile'), ['--read'], { encoding: 'utf8', timeout: 15_000 });
+ const line = r.status === 0 ? (r.stdout ?? '').split('\n').find(l => l.startsWith('RESOURCES_SHOWN: ')) : undefined;
+ if (line === undefined) process.stdout.write('PROFILE_READ: failed\n');
+ else shown = line.slice('RESOURCES_SHOWN: '.length).split(',').map(s => s.trim()).filter(Boolean);
+}
+process.stdout.write(renderIndex(shown));
diff --git a/changelog.d/office-hours-resources-lookup.md b/changelog.d/office-hours-resources-lookup.md
new file mode 100644
index 000000000..69a6bf2df
--- /dev/null
+++ b/changelog.d/office-hours-resources-lookup.md
@@ -0,0 +1 @@
+- **/office-hours keeps its 34 founder videos and essays out of the skill file.** The list now lives in `lib/founder-resources.ts`, and the closing runs the new `gstack-founder-resources` command, which prints the ones a user hasn't been shown yet. The resources, the dedup and the opt-out work as before; the skill's own text is about 8.6 KB smaller.
diff --git a/lib/founder-resources.ts b/lib/founder-resources.ts
new file mode 100644
index 000000000..a9f63f072
--- /dev/null
+++ b/lib/founder-resources.ts
@@ -0,0 +1,71 @@
+/**
+ * The office-hours founder-resource pool (Phase 6 "Founder Resources").
+ *
+ * The 34 entries used to sit inline in office-hours/sections/design-and-handoff.md.
+ * They live here now and bin/gstack-founder-resources prints the ones a user
+ * has not been shown yet, in the exact form the prompt carried.
+ * test/founder-resources-bin.test.ts checks the pool against
+ * test/fixtures/founder-resources-pool.txt, the prompt's last inline copy.
+ */
+export interface FounderResource { id: number; category: string; text: string }
+
+export const FOUNDER_RESOURCES: readonly FounderResource[] = [
+ { id: 1, category: "GARRY TAN VIDEOS", text: "\"My $200 million startup mistake: Peter Thiel asked and I said no\" (5 min) — The single best \"why you should take the leap\" video. Peter Thiel writes him a check at dinner, he says no because he might get promoted to Level 60. That 1% stake would be worth $350-500M today. https://www.youtube.com/watch?v=dtnG0ELjvcM" },
+ { id: 2, category: "GARRY TAN VIDEOS", text: "\"Unconventional Advice for Founders\" (48 min, Stanford) — The magnum opus. Covers everything a pre-launch founder needs: get therapy before your psychology kills your company, good ideas look like bad ideas, the Katamari Damacy metaphor for growth. No filler. https://www.youtube.com/watch?v=Y4yMc99fpfY" },
+ { id: 3, category: "GARRY TAN VIDEOS", text: "\"The New Way To Build A Startup\" (8 min) — The 2026 playbook. Introduces the \"20x company\" — tiny teams beating incumbents through AI automation. Three real case studies. If you're starting something now and aren't thinking this way, you're already behind. https://www.youtube.com/watch?v=rWUWfj_PqmM" },
+ { id: 4, category: "GARRY TAN VIDEOS", text: "\"How To Build The Future: Sam Altman\" (30 min) — Sam talks about what it takes to go from an idea to something real — picking what's important, finding your tribe, and why conviction matters more than credentials. https://www.youtube.com/watch?v=xXCBz_8hM9w" },
+ { id: 5, category: "GARRY TAN VIDEOS", text: "\"What Founders Can Do To Improve Their Design Game\" (15 min) — Garry was a designer before he was an investor. Taste and craft are the real competitive advantage, not MBA skills or fundraising tricks. https://www.youtube.com/watch?v=ksGNfd-wQY4" },
+ { id: 6, category: "YC BACKSTORY / HOW TO BUILD THE FUTURE", text: "\"Tom Blomfield: How I Created Two Billion-Dollar Fintech Startups\" (20 min) — Tom built Monzo from nothing into a bank used by 10% of the UK. The actual human journey — fear, mess, persistence. Makes founding feel like something a real person does. https://www.youtube.com/watch?v=QKPgBAnbc10" },
+ { id: 7, category: "YC BACKSTORY / HOW TO BUILD THE FUTURE", text: "\"DoorDash CEO: Customer Obsession, Surviving Startup Death & Creating A New Market\" (30 min) — Tony started DoorDash by literally driving food deliveries himself. If you've ever thought \"I'm not the startup type,\" this will change your mind. https://www.youtube.com/watch?v=3N3TnaViyjk" },
+ { id: 8, category: "LIGHTCONE PODCAST", text: "\"How to Spend Your 20s in the AI Era\" (40 min) — The old playbook (good job, climb the ladder) may not be the best path anymore. How to position yourself to build things that matter in an AI-first world. https://www.youtube.com/watch?v=ShYKkPPhOoc" },
+ { id: 9, category: "LIGHTCONE PODCAST", text: "\"How Do Billion Dollar Startups Start?\" (25 min) — They start tiny, scrappy, and embarrassing. Demystifies the origin stories and shows that the beginning always looks like a side project, not a corporation. https://www.youtube.com/watch?v=HB3l1BPi7zo" },
+ { id: 10, category: "LIGHTCONE PODCAST", text: "\"Billion-Dollar Unpopular Startup Ideas\" (25 min) — Uber, Coinbase, DoorDash — they all sounded terrible at first. The best opportunities are the ones most people dismiss. Liberating if your idea feels \"weird.\" https://www.youtube.com/watch?v=Hm-ZIiwiN1o" },
+ { id: 11, category: "LIGHTCONE PODCAST", text: "\"Vertical AI Agents Could Be 10X Bigger Than SaaS\" (40 min) — The most-watched Lightcone episode. If you're building in AI, this is the landscape map — where the biggest opportunities are and why vertical agents win. https://www.youtube.com/watch?v=ASABxNenD_U" },
+ { id: 12, category: "LIGHTCONE PODCAST", text: "\"The Truth About Building AI Startups Today\" (35 min) — Cuts through the hype. What's actually working, what's not, and where the real defensibility comes from in AI startups right now. https://www.youtube.com/watch?v=TwDJhUJL-5o" },
+ { id: 13, category: "LIGHTCONE PODCAST", text: "\"Startup Ideas You Can Now Build With AI\" (30 min) — Concrete, actionable ideas for things that weren't possible 12 months ago. If you're looking for what to build, start here. https://www.youtube.com/watch?v=K4s6Cgicw_A" },
+ { id: 14, category: "LIGHTCONE PODCAST", text: "\"Vibe Coding Is The Future\" (30 min) — Building software just changed forever. If you can describe what you want, you can build it. The barrier to being a technical founder has never been lower. https://www.youtube.com/watch?v=IACHfKmZMr8" },
+ { id: 15, category: "LIGHTCONE PODCAST", text: "\"How To Get AI Startup Ideas\" (30 min) — Not theoretical. Walks through specific AI startup ideas that are working right now and explains why the window is open. https://www.youtube.com/watch?v=TANaRNMbYgk" },
+ { id: 16, category: "LIGHTCONE PODCAST", text: "\"10 People + AI = Billion Dollar Company?\" (25 min) — The thesis behind the 20x company. Small teams with AI leverage are outperforming 100-person incumbents. If you're a solo builder or small team, this is your permission slip to think big. https://www.youtube.com/watch?v=CKvo_kQbakU" },
+ { id: 17, category: "YC STARTUP SCHOOL", text: "\"Should You Start A Startup?\" (17 min, Harj Taggar) — Directly addresses the question most people are too afraid to ask out loud. Breaks down the real tradeoffs honestly, without hype. https://www.youtube.com/watch?v=BUE-icVYRFU" },
+ { id: 18, category: "YC STARTUP SCHOOL", text: "\"How to Get and Evaluate Startup Ideas\" (30 min, Jared Friedman) — YC's most-watched Startup School video. How founders actually stumbled into their ideas by paying attention to problems in their own lives. https://www.youtube.com/watch?v=Th8JoIan4dg" },
+ { id: 19, category: "YC STARTUP SCHOOL", text: "\"How David Lieb Turned a Failing Startup Into Google Photos\" (20 min) — His company Bump was dying. He noticed a photo-sharing behavior in his own data, and it became Google Photos (1B+ users). A masterclass in seeing opportunity where others see failure. https://www.youtube.com/watch?v=CcnwFJqEnxU" },
+ { id: 20, category: "YC STARTUP SCHOOL", text: "\"Tips For Technical Startup Founders\" (15 min, Diana Hu) — How to leverage your engineering skills as a founder rather than thinking you need to become a different person. https://www.youtube.com/watch?v=rP7bpYsfa6Q" },
+ { id: 21, category: "YC STARTUP SCHOOL", text: "\"Why Startup Founders Should Launch Companies Sooner Than They Think\" (12 min, Tyler Bosmeny) — Most builders over-prepare and under-ship. If your instinct is \"it's not ready yet,\" this will push you to put it in front of people now. https://www.youtube.com/watch?v=Nsx5RDVKZSk" },
+ { id: 22, category: "YC STARTUP SCHOOL", text: "\"How To Talk To Users\" (20 min, Gustaf Alströmer) — You don't need sales skills. You need genuine conversations about problems. The most approachable tactical talk for someone who's never done it. https://www.youtube.com/watch?v=z1iF1c8w5Lg" },
+ { id: 23, category: "YC STARTUP SCHOOL", text: "\"How To Find A Co-Founder\" (15 min, Harj Taggar) — The practical mechanics of finding someone to build with. If \"I don't want to do this alone\" is stopping you, this removes that blocker. https://www.youtube.com/watch?v=Fk9BCr5pLTU" },
+ { id: 24, category: "YC STARTUP SCHOOL", text: "\"Should You Quit Your Job At A Unicorn?\" (12 min, Tom Blomfield) — Directly speaks to people at big tech companies who feel the pull to build something of their own. If that's your situation, this is the permission slip. https://www.youtube.com/watch?v=chAoH_AeGAg" },
+ { id: 25, category: "PAUL GRAHAM ESSAYS", text: "\"How to Do Great Work\" — Not about startups. About finding the most meaningful work of your life. The roadmap that often leads to founding without ever saying \"startup.\" https://paulgraham.com/greatwork.html" },
+ { id: 26, category: "PAUL GRAHAM ESSAYS", text: "\"How to Do What You Love\" — Most people keep their real interests separate from their career. Makes the case for collapsing that gap — which is usually how companies get born. https://paulgraham.com/love.html" },
+ { id: 27, category: "PAUL GRAHAM ESSAYS", text: "\"The Bus Ticket Theory of Genius\" — The thing you're obsessively into that other people find boring? PG argues it's the actual mechanism behind every breakthrough. https://paulgraham.com/genius.html" },
+ { id: 28, category: "PAUL GRAHAM ESSAYS", text: "\"Why to Not Not Start a Startup\" — Takes apart every quiet reason you have for not starting — too young, no idea, don't know business — and shows why none hold up. https://paulgraham.com/notnot.html" },
+ { id: 29, category: "PAUL GRAHAM ESSAYS", text: "\"Before the Startup\" — Written specifically for people who haven't started anything yet. What to focus on now, what to ignore, and how to tell if this path is for you. https://paulgraham.com/before.html" },
+ { id: 30, category: "PAUL GRAHAM ESSAYS", text: "\"Superlinear Returns\" — Some efforts compound exponentially; most don't. Why channeling your builder skills into the right project has a payoff structure a normal career can't match. https://paulgraham.com/superlinear.html" },
+ { id: 31, category: "PAUL GRAHAM ESSAYS", text: "\"How to Get Startup Ideas\" — The best ideas aren't brainstormed. They're noticed. Teaches you to look at your own frustrations and recognize which ones could be companies. https://paulgraham.com/startupideas.html" },
+ { id: 32, category: "PAUL GRAHAM ESSAYS", text: "\"Schlep Blindness\" — The best opportunities hide inside boring, tedious problems everyone avoids. If you're willing to tackle the unsexy thing you see up close, you might already be standing on a company. https://paulgraham.com/schlep.html" },
+ { id: 33, category: "PAUL GRAHAM ESSAYS", text: "\"You Weren't Meant to Have a Boss\" — If working inside a big organization has always felt slightly wrong, this explains why. Small groups on self-chosen problems is the natural state for builders. https://paulgraham.com/boss.html" },
+ { id: 34, category: "PAUL GRAHAM ESSAYS", text: "\"Relentlessly Resourceful\" — PG's two-word description of the ideal founder. Not \"brilliant.\" Not \"visionary.\" Just someone who keeps figuring things out. If that's you, you're already qualified. https://paulgraham.com/relres.html" },
+];
+
+export const resourceUrl = (r: FounderResource): string => r.text.slice(r.text.lastIndexOf(' ') + 1);
+
+export function renderPool(entries: readonly FounderResource[] = FOUNDER_RESOURCES): string {
+ const out: string[] = [];
+ let category = '';
+ for (const r of entries) {
+ if (r.category !== category) {
+ if (category) out.push('');
+ out.push(`${r.category}:`);
+ category = r.category;
+ }
+ out.push(`${r.id}. ${r.text}`);
+ }
+ return out.join('\n') + '\n';
+}
+
+export function renderIndex(shownUrls: readonly string[]): string {
+ const shown = new Set(shownUrls);
+ const left = FOUNDER_RESOURCES.filter(r => !shown.has(resourceUrl(r)));
+ const head = [`RESOURCES_TOTAL: ${FOUNDER_RESOURCES.length}`, `RESOURCES_SHOWN_COUNT: ${FOUNDER_RESOURCES.length - left.length}`];
+ if (!left.length) return [...head, 'RESOURCES: exhausted'].join('\n') + '\n';
+ return [...head, `RESOURCES: ${left.length} not yet shown`, '', renderPool(left)].join('\n');
+}
diff --git a/office-hours/sections/design-and-handoff.md b/office-hours/sections/design-and-handoff.md
index e201e0c85..bbf4ffac8 100644
--- a/office-hours/sections/design-and-handoff.md
+++ b/office-hours/sections/design-and-handoff.md
@@ -550,13 +550,19 @@ VERIFY the write (`gstack-config get founder_resources` must read back
this session only. On success confirm in one line with the re-enable command
and continue the handoff.
-**Dedup check:** Read `RESOURCES_SHOWN` from the builder profile output above.
-If `RESOURCES_SHOWN_COUNT` is 34 or more, skip this section entirely (all resources exhausted).
-Otherwise, avoid selecting any URL that appears in the RESOURCES_SHOWN list.
+**Resource pool and dedup check:** Print the resources this user hasn't been shown yet (it
+reads `RESOURCES_SHOWN` from the builder profile itself), grouped by category, each as
+`N. "Title" (length) — blurb. URL`:
+
+```bash
+~/.claude/skills/gstack/bin/gstack-founder-resources
+```
+
+If it prints `RESOURCES: exhausted`, skip this section entirely (all resources shown).
**Selection rules:**
- Pick 2-3 resources. Mix categories — never 3 of the same type.
-- Never pick a resource whose URL appears in the dedup log above.
+- Pick only from the list above; it already leaves out everything shown before.
- Match to session context (what came up matters more than random variety):
- Hesitant about leaving their job → "My $200M Startup Mistake" or "Should You Quit Your Job At A Unicorn?"
- Building an AI product → "The New Way To Build A Startup" or "Vertical AI Agents Could Be 10X Bigger Than SaaS"
@@ -575,52 +581,6 @@ Otherwise, avoid selecting any URL that appears in the RESOURCES_SHOWN list.
> {1-2 sentence blurb — direct, specific, encouraging. Match Garry's voice: tell them WHY this one matters for THEIR situation.}
> {url}
-**Resource Pool:**
-
-GARRY TAN VIDEOS:
-1. "My $200 million startup mistake: Peter Thiel asked and I said no" (5 min) — The single best "why you should take the leap" video. Peter Thiel writes him a check at dinner, he says no because he might get promoted to Level 60. That 1% stake would be worth $350-500M today. https://www.youtube.com/watch?v=dtnG0ELjvcM
-2. "Unconventional Advice for Founders" (48 min, Stanford) — The magnum opus. Covers everything a pre-launch founder needs: get therapy before your psychology kills your company, good ideas look like bad ideas, the Katamari Damacy metaphor for growth. No filler. https://www.youtube.com/watch?v=Y4yMc99fpfY
-3. "The New Way To Build A Startup" (8 min) — The 2026 playbook. Introduces the "20x company" — tiny teams beating incumbents through AI automation. Three real case studies. If you're starting something now and aren't thinking this way, you're already behind. https://www.youtube.com/watch?v=rWUWfj_PqmM
-4. "How To Build The Future: Sam Altman" (30 min) — Sam talks about what it takes to go from an idea to something real — picking what's important, finding your tribe, and why conviction matters more than credentials. https://www.youtube.com/watch?v=xXCBz_8hM9w
-5. "What Founders Can Do To Improve Their Design Game" (15 min) — Garry was a designer before he was an investor. Taste and craft are the real competitive advantage, not MBA skills or fundraising tricks. https://www.youtube.com/watch?v=ksGNfd-wQY4
-
-YC BACKSTORY / HOW TO BUILD THE FUTURE:
-6. "Tom Blomfield: How I Created Two Billion-Dollar Fintech Startups" (20 min) — Tom built Monzo from nothing into a bank used by 10% of the UK. The actual human journey — fear, mess, persistence. Makes founding feel like something a real person does. https://www.youtube.com/watch?v=QKPgBAnbc10
-7. "DoorDash CEO: Customer Obsession, Surviving Startup Death & Creating A New Market" (30 min) — Tony started DoorDash by literally driving food deliveries himself. If you've ever thought "I'm not the startup type," this will change your mind. https://www.youtube.com/watch?v=3N3TnaViyjk
-
-LIGHTCONE PODCAST:
-8. "How to Spend Your 20s in the AI Era" (40 min) — The old playbook (good job, climb the ladder) may not be the best path anymore. How to position yourself to build things that matter in an AI-first world. https://www.youtube.com/watch?v=ShYKkPPhOoc
-9. "How Do Billion Dollar Startups Start?" (25 min) — They start tiny, scrappy, and embarrassing. Demystifies the origin stories and shows that the beginning always looks like a side project, not a corporation. https://www.youtube.com/watch?v=HB3l1BPi7zo
-10. "Billion-Dollar Unpopular Startup Ideas" (25 min) — Uber, Coinbase, DoorDash — they all sounded terrible at first. The best opportunities are the ones most people dismiss. Liberating if your idea feels "weird." https://www.youtube.com/watch?v=Hm-ZIiwiN1o
-11. "Vertical AI Agents Could Be 10X Bigger Than SaaS" (40 min) — The most-watched Lightcone episode. If you're building in AI, this is the landscape map — where the biggest opportunities are and why vertical agents win. https://www.youtube.com/watch?v=ASABxNenD_U
-12. "The Truth About Building AI Startups Today" (35 min) — Cuts through the hype. What's actually working, what's not, and where the real defensibility comes from in AI startups right now. https://www.youtube.com/watch?v=TwDJhUJL-5o
-13. "Startup Ideas You Can Now Build With AI" (30 min) — Concrete, actionable ideas for things that weren't possible 12 months ago. If you're looking for what to build, start here. https://www.youtube.com/watch?v=K4s6Cgicw_A
-14. "Vibe Coding Is The Future" (30 min) — Building software just changed forever. If you can describe what you want, you can build it. The barrier to being a technical founder has never been lower. https://www.youtube.com/watch?v=IACHfKmZMr8
-15. "How To Get AI Startup Ideas" (30 min) — Not theoretical. Walks through specific AI startup ideas that are working right now and explains why the window is open. https://www.youtube.com/watch?v=TANaRNMbYgk
-16. "10 People + AI = Billion Dollar Company?" (25 min) — The thesis behind the 20x company. Small teams with AI leverage are outperforming 100-person incumbents. If you're a solo builder or small team, this is your permission slip to think big. https://www.youtube.com/watch?v=CKvo_kQbakU
-
-YC STARTUP SCHOOL:
-17. "Should You Start A Startup?" (17 min, Harj Taggar) — Directly addresses the question most people are too afraid to ask out loud. Breaks down the real tradeoffs honestly, without hype. https://www.youtube.com/watch?v=BUE-icVYRFU
-18. "How to Get and Evaluate Startup Ideas" (30 min, Jared Friedman) — YC's most-watched Startup School video. How founders actually stumbled into their ideas by paying attention to problems in their own lives. https://www.youtube.com/watch?v=Th8JoIan4dg
-19. "How David Lieb Turned a Failing Startup Into Google Photos" (20 min) — His company Bump was dying. He noticed a photo-sharing behavior in his own data, and it became Google Photos (1B+ users). A masterclass in seeing opportunity where others see failure. https://www.youtube.com/watch?v=CcnwFJqEnxU
-20. "Tips For Technical Startup Founders" (15 min, Diana Hu) — How to leverage your engineering skills as a founder rather than thinking you need to become a different person. https://www.youtube.com/watch?v=rP7bpYsfa6Q
-21. "Why Startup Founders Should Launch Companies Sooner Than They Think" (12 min, Tyler Bosmeny) — Most builders over-prepare and under-ship. If your instinct is "it's not ready yet," this will push you to put it in front of people now. https://www.youtube.com/watch?v=Nsx5RDVKZSk
-22. "How To Talk To Users" (20 min, Gustaf Alströmer) — You don't need sales skills. You need genuine conversations about problems. The most approachable tactical talk for someone who's never done it. https://www.youtube.com/watch?v=z1iF1c8w5Lg
-23. "How To Find A Co-Founder" (15 min, Harj Taggar) — The practical mechanics of finding someone to build with. If "I don't want to do this alone" is stopping you, this removes that blocker. https://www.youtube.com/watch?v=Fk9BCr5pLTU
-24. "Should You Quit Your Job At A Unicorn?" (12 min, Tom Blomfield) — Directly speaks to people at big tech companies who feel the pull to build something of their own. If that's your situation, this is the permission slip. https://www.youtube.com/watch?v=chAoH_AeGAg
-
-PAUL GRAHAM ESSAYS:
-25. "How to Do Great Work" — Not about startups. About finding the most meaningful work of your life. The roadmap that often leads to founding without ever saying "startup." https://paulgraham.com/greatwork.html
-26. "How to Do What You Love" — Most people keep their real interests separate from their career. Makes the case for collapsing that gap — which is usually how companies get born. https://paulgraham.com/love.html
-27. "The Bus Ticket Theory of Genius" — The thing you're obsessively into that other people find boring? PG argues it's the actual mechanism behind every breakthrough. https://paulgraham.com/genius.html
-28. "Why to Not Not Start a Startup" — Takes apart every quiet reason you have for not starting — too young, no idea, don't know business — and shows why none hold up. https://paulgraham.com/notnot.html
-29. "Before the Startup" — Written specifically for people who haven't started anything yet. What to focus on now, what to ignore, and how to tell if this path is for you. https://paulgraham.com/before.html
-30. "Superlinear Returns" — Some efforts compound exponentially; most don't. Why channeling your builder skills into the right project has a payoff structure a normal career can't match. https://paulgraham.com/superlinear.html
-31. "How to Get Startup Ideas" — The best ideas aren't brainstormed. They're noticed. Teaches you to look at your own frustrations and recognize which ones could be companies. https://paulgraham.com/startupideas.html
-32. "Schlep Blindness" — The best opportunities hide inside boring, tedious problems everyone avoids. If you're willing to tackle the unsexy thing you see up close, you might already be standing on a company. https://paulgraham.com/schlep.html
-33. "You Weren't Meant to Have a Boss" — If working inside a big organization has always felt slightly wrong, this explains why. Small groups on self-chosen problems is the natural state for builders. https://paulgraham.com/boss.html
-34. "Relentlessly Resourceful" — PG's two-word description of the ideal founder. Not "brilliant." Not "visionary." Just someone who keeps figuring things out. If that's you, you're already qualified. https://paulgraham.com/relres.html
-
**After presenting resources — log to builder profile and offer to open:**
1. Log the selected resource URLs to the builder profile (single source of truth).
diff --git a/office-hours/sections/design-and-handoff.md.tmpl b/office-hours/sections/design-and-handoff.md.tmpl
index e9d57fe7a..9e3c1b06f 100644
--- a/office-hours/sections/design-and-handoff.md.tmpl
+++ b/office-hours/sections/design-and-handoff.md.tmpl
@@ -391,13 +391,19 @@ VERIFY the write (`gstack-config get founder_resources` must read back
this session only. On success confirm in one line with the re-enable command
and continue the handoff.
-**Dedup check:** Read `RESOURCES_SHOWN` from the builder profile output above.
-If `RESOURCES_SHOWN_COUNT` is 34 or more, skip this section entirely (all resources exhausted).
-Otherwise, avoid selecting any URL that appears in the RESOURCES_SHOWN list.
+**Resource pool and dedup check:** Print the resources this user hasn't been shown yet (it
+reads `RESOURCES_SHOWN` from the builder profile itself), grouped by category, each as
+`N. "Title" (length) — blurb. URL`:
+
+```bash
+~/.claude/skills/gstack/bin/gstack-founder-resources
+```
+
+If it prints `RESOURCES: exhausted`, skip this section entirely (all resources shown).
**Selection rules:**
- Pick 2-3 resources. Mix categories — never 3 of the same type.
-- Never pick a resource whose URL appears in the dedup log above.
+- Pick only from the list above; it already leaves out everything shown before.
- Match to session context (what came up matters more than random variety):
- Hesitant about leaving their job → "My $200M Startup Mistake" or "Should You Quit Your Job At A Unicorn?"
- Building an AI product → "The New Way To Build A Startup" or "Vertical AI Agents Could Be 10X Bigger Than SaaS"
@@ -416,52 +422,6 @@ Otherwise, avoid selecting any URL that appears in the RESOURCES_SHOWN list.
> {1-2 sentence blurb — direct, specific, encouraging. Match Garry's voice: tell them WHY this one matters for THEIR situation.}
> {url}
-**Resource Pool:**
-
-GARRY TAN VIDEOS:
-1. "My $200 million startup mistake: Peter Thiel asked and I said no" (5 min) — The single best "why you should take the leap" video. Peter Thiel writes him a check at dinner, he says no because he might get promoted to Level 60. That 1% stake would be worth $350-500M today. https://www.youtube.com/watch?v=dtnG0ELjvcM
-2. "Unconventional Advice for Founders" (48 min, Stanford) — The magnum opus. Covers everything a pre-launch founder needs: get therapy before your psychology kills your company, good ideas look like bad ideas, the Katamari Damacy metaphor for growth. No filler. https://www.youtube.com/watch?v=Y4yMc99fpfY
-3. "The New Way To Build A Startup" (8 min) — The 2026 playbook. Introduces the "20x company" — tiny teams beating incumbents through AI automation. Three real case studies. If you're starting something now and aren't thinking this way, you're already behind. https://www.youtube.com/watch?v=rWUWfj_PqmM
-4. "How To Build The Future: Sam Altman" (30 min) — Sam talks about what it takes to go from an idea to something real — picking what's important, finding your tribe, and why conviction matters more than credentials. https://www.youtube.com/watch?v=xXCBz_8hM9w
-5. "What Founders Can Do To Improve Their Design Game" (15 min) — Garry was a designer before he was an investor. Taste and craft are the real competitive advantage, not MBA skills or fundraising tricks. https://www.youtube.com/watch?v=ksGNfd-wQY4
-
-YC BACKSTORY / HOW TO BUILD THE FUTURE:
-6. "Tom Blomfield: How I Created Two Billion-Dollar Fintech Startups" (20 min) — Tom built Monzo from nothing into a bank used by 10% of the UK. The actual human journey — fear, mess, persistence. Makes founding feel like something a real person does. https://www.youtube.com/watch?v=QKPgBAnbc10
-7. "DoorDash CEO: Customer Obsession, Surviving Startup Death & Creating A New Market" (30 min) — Tony started DoorDash by literally driving food deliveries himself. If you've ever thought "I'm not the startup type," this will change your mind. https://www.youtube.com/watch?v=3N3TnaViyjk
-
-LIGHTCONE PODCAST:
-8. "How to Spend Your 20s in the AI Era" (40 min) — The old playbook (good job, climb the ladder) may not be the best path anymore. How to position yourself to build things that matter in an AI-first world. https://www.youtube.com/watch?v=ShYKkPPhOoc
-9. "How Do Billion Dollar Startups Start?" (25 min) — They start tiny, scrappy, and embarrassing. Demystifies the origin stories and shows that the beginning always looks like a side project, not a corporation. https://www.youtube.com/watch?v=HB3l1BPi7zo
-10. "Billion-Dollar Unpopular Startup Ideas" (25 min) — Uber, Coinbase, DoorDash — they all sounded terrible at first. The best opportunities are the ones most people dismiss. Liberating if your idea feels "weird." https://www.youtube.com/watch?v=Hm-ZIiwiN1o
-11. "Vertical AI Agents Could Be 10X Bigger Than SaaS" (40 min) — The most-watched Lightcone episode. If you're building in AI, this is the landscape map — where the biggest opportunities are and why vertical agents win. https://www.youtube.com/watch?v=ASABxNenD_U
-12. "The Truth About Building AI Startups Today" (35 min) — Cuts through the hype. What's actually working, what's not, and where the real defensibility comes from in AI startups right now. https://www.youtube.com/watch?v=TwDJhUJL-5o
-13. "Startup Ideas You Can Now Build With AI" (30 min) — Concrete, actionable ideas for things that weren't possible 12 months ago. If you're looking for what to build, start here. https://www.youtube.com/watch?v=K4s6Cgicw_A
-14. "Vibe Coding Is The Future" (30 min) — Building software just changed forever. If you can describe what you want, you can build it. The barrier to being a technical founder has never been lower. https://www.youtube.com/watch?v=IACHfKmZMr8
-15. "How To Get AI Startup Ideas" (30 min) — Not theoretical. Walks through specific AI startup ideas that are working right now and explains why the window is open. https://www.youtube.com/watch?v=TANaRNMbYgk
-16. "10 People + AI = Billion Dollar Company?" (25 min) — The thesis behind the 20x company. Small teams with AI leverage are outperforming 100-person incumbents. If you're a solo builder or small team, this is your permission slip to think big. https://www.youtube.com/watch?v=CKvo_kQbakU
-
-YC STARTUP SCHOOL:
-17. "Should You Start A Startup?" (17 min, Harj Taggar) — Directly addresses the question most people are too afraid to ask out loud. Breaks down the real tradeoffs honestly, without hype. https://www.youtube.com/watch?v=BUE-icVYRFU
-18. "How to Get and Evaluate Startup Ideas" (30 min, Jared Friedman) — YC's most-watched Startup School video. How founders actually stumbled into their ideas by paying attention to problems in their own lives. https://www.youtube.com/watch?v=Th8JoIan4dg
-19. "How David Lieb Turned a Failing Startup Into Google Photos" (20 min) — His company Bump was dying. He noticed a photo-sharing behavior in his own data, and it became Google Photos (1B+ users). A masterclass in seeing opportunity where others see failure. https://www.youtube.com/watch?v=CcnwFJqEnxU
-20. "Tips For Technical Startup Founders" (15 min, Diana Hu) — How to leverage your engineering skills as a founder rather than thinking you need to become a different person. https://www.youtube.com/watch?v=rP7bpYsfa6Q
-21. "Why Startup Founders Should Launch Companies Sooner Than They Think" (12 min, Tyler Bosmeny) — Most builders over-prepare and under-ship. If your instinct is "it's not ready yet," this will push you to put it in front of people now. https://www.youtube.com/watch?v=Nsx5RDVKZSk
-22. "How To Talk To Users" (20 min, Gustaf Alströmer) — You don't need sales skills. You need genuine conversations about problems. The most approachable tactical talk for someone who's never done it. https://www.youtube.com/watch?v=z1iF1c8w5Lg
-23. "How To Find A Co-Founder" (15 min, Harj Taggar) — The practical mechanics of finding someone to build with. If "I don't want to do this alone" is stopping you, this removes that blocker. https://www.youtube.com/watch?v=Fk9BCr5pLTU
-24. "Should You Quit Your Job At A Unicorn?" (12 min, Tom Blomfield) — Directly speaks to people at big tech companies who feel the pull to build something of their own. If that's your situation, this is the permission slip. https://www.youtube.com/watch?v=chAoH_AeGAg
-
-PAUL GRAHAM ESSAYS:
-25. "How to Do Great Work" — Not about startups. About finding the most meaningful work of your life. The roadmap that often leads to founding without ever saying "startup." https://paulgraham.com/greatwork.html
-26. "How to Do What You Love" — Most people keep their real interests separate from their career. Makes the case for collapsing that gap — which is usually how companies get born. https://paulgraham.com/love.html
-27. "The Bus Ticket Theory of Genius" — The thing you're obsessively into that other people find boring? PG argues it's the actual mechanism behind every breakthrough. https://paulgraham.com/genius.html
-28. "Why to Not Not Start a Startup" — Takes apart every quiet reason you have for not starting — too young, no idea, don't know business — and shows why none hold up. https://paulgraham.com/notnot.html
-29. "Before the Startup" — Written specifically for people who haven't started anything yet. What to focus on now, what to ignore, and how to tell if this path is for you. https://paulgraham.com/before.html
-30. "Superlinear Returns" — Some efforts compound exponentially; most don't. Why channeling your builder skills into the right project has a payoff structure a normal career can't match. https://paulgraham.com/superlinear.html
-31. "How to Get Startup Ideas" — The best ideas aren't brainstormed. They're noticed. Teaches you to look at your own frustrations and recognize which ones could be companies. https://paulgraham.com/startupideas.html
-32. "Schlep Blindness" — The best opportunities hide inside boring, tedious problems everyone avoids. If you're willing to tackle the unsexy thing you see up close, you might already be standing on a company. https://paulgraham.com/schlep.html
-33. "You Weren't Meant to Have a Boss" — If working inside a big organization has always felt slightly wrong, this explains why. Small groups on self-chosen problems is the natural state for builders. https://paulgraham.com/boss.html
-34. "Relentlessly Resourceful" — PG's two-word description of the ideal founder. Not "brilliant." Not "visionary." Just someone who keeps figuring things out. If that's you, you're already qualified. https://paulgraham.com/relres.html
-
**After presenting resources — log to builder profile and offer to open:**
1. Log the selected resource URLs to the builder profile (single source of truth).
diff --git a/test/fixtures/founder-resources-pool.txt b/test/fixtures/founder-resources-pool.txt
new file mode 100644
index 000000000..8d6531999
--- /dev/null
+++ b/test/fixtures/founder-resources-pool.txt
@@ -0,0 +1,43 @@
+GARRY TAN VIDEOS:
+1. "My $200 million startup mistake: Peter Thiel asked and I said no" (5 min) — The single best "why you should take the leap" video. Peter Thiel writes him a check at dinner, he says no because he might get promoted to Level 60. That 1% stake would be worth $350-500M today. https://www.youtube.com/watch?v=dtnG0ELjvcM
+2. "Unconventional Advice for Founders" (48 min, Stanford) — The magnum opus. Covers everything a pre-launch founder needs: get therapy before your psychology kills your company, good ideas look like bad ideas, the Katamari Damacy metaphor for growth. No filler. https://www.youtube.com/watch?v=Y4yMc99fpfY
+3. "The New Way To Build A Startup" (8 min) — The 2026 playbook. Introduces the "20x company" — tiny teams beating incumbents through AI automation. Three real case studies. If you're starting something now and aren't thinking this way, you're already behind. https://www.youtube.com/watch?v=rWUWfj_PqmM
+4. "How To Build The Future: Sam Altman" (30 min) — Sam talks about what it takes to go from an idea to something real — picking what's important, finding your tribe, and why conviction matters more than credentials. https://www.youtube.com/watch?v=xXCBz_8hM9w
+5. "What Founders Can Do To Improve Their Design Game" (15 min) — Garry was a designer before he was an investor. Taste and craft are the real competitive advantage, not MBA skills or fundraising tricks. https://www.youtube.com/watch?v=ksGNfd-wQY4
+
+YC BACKSTORY / HOW TO BUILD THE FUTURE:
+6. "Tom Blomfield: How I Created Two Billion-Dollar Fintech Startups" (20 min) — Tom built Monzo from nothing into a bank used by 10% of the UK. The actual human journey — fear, mess, persistence. Makes founding feel like something a real person does. https://www.youtube.com/watch?v=QKPgBAnbc10
+7. "DoorDash CEO: Customer Obsession, Surviving Startup Death & Creating A New Market" (30 min) — Tony started DoorDash by literally driving food deliveries himself. If you've ever thought "I'm not the startup type," this will change your mind. https://www.youtube.com/watch?v=3N3TnaViyjk
+
+LIGHTCONE PODCAST:
+8. "How to Spend Your 20s in the AI Era" (40 min) — The old playbook (good job, climb the ladder) may not be the best path anymore. How to position yourself to build things that matter in an AI-first world. https://www.youtube.com/watch?v=ShYKkPPhOoc
+9. "How Do Billion Dollar Startups Start?" (25 min) — They start tiny, scrappy, and embarrassing. Demystifies the origin stories and shows that the beginning always looks like a side project, not a corporation. https://www.youtube.com/watch?v=HB3l1BPi7zo
+10. "Billion-Dollar Unpopular Startup Ideas" (25 min) — Uber, Coinbase, DoorDash — they all sounded terrible at first. The best opportunities are the ones most people dismiss. Liberating if your idea feels "weird." https://www.youtube.com/watch?v=Hm-ZIiwiN1o
+11. "Vertical AI Agents Could Be 10X Bigger Than SaaS" (40 min) — The most-watched Lightcone episode. If you're building in AI, this is the landscape map — where the biggest opportunities are and why vertical agents win. https://www.youtube.com/watch?v=ASABxNenD_U
+12. "The Truth About Building AI Startups Today" (35 min) — Cuts through the hype. What's actually working, what's not, and where the real defensibility comes from in AI startups right now. https://www.youtube.com/watch?v=TwDJhUJL-5o
+13. "Startup Ideas You Can Now Build With AI" (30 min) — Concrete, actionable ideas for things that weren't possible 12 months ago. If you're looking for what to build, start here. https://www.youtube.com/watch?v=K4s6Cgicw_A
+14. "Vibe Coding Is The Future" (30 min) — Building software just changed forever. If you can describe what you want, you can build it. The barrier to being a technical founder has never been lower. https://www.youtube.com/watch?v=IACHfKmZMr8
+15. "How To Get AI Startup Ideas" (30 min) — Not theoretical. Walks through specific AI startup ideas that are working right now and explains why the window is open. https://www.youtube.com/watch?v=TANaRNMbYgk
+16. "10 People + AI = Billion Dollar Company?" (25 min) — The thesis behind the 20x company. Small teams with AI leverage are outperforming 100-person incumbents. If you're a solo builder or small team, this is your permission slip to think big. https://www.youtube.com/watch?v=CKvo_kQbakU
+
+YC STARTUP SCHOOL:
+17. "Should You Start A Startup?" (17 min, Harj Taggar) — Directly addresses the question most people are too afraid to ask out loud. Breaks down the real tradeoffs honestly, without hype. https://www.youtube.com/watch?v=BUE-icVYRFU
+18. "How to Get and Evaluate Startup Ideas" (30 min, Jared Friedman) — YC's most-watched Startup School video. How founders actually stumbled into their ideas by paying attention to problems in their own lives. https://www.youtube.com/watch?v=Th8JoIan4dg
+19. "How David Lieb Turned a Failing Startup Into Google Photos" (20 min) — His company Bump was dying. He noticed a photo-sharing behavior in his own data, and it became Google Photos (1B+ users). A masterclass in seeing opportunity where others see failure. https://www.youtube.com/watch?v=CcnwFJqEnxU
+20. "Tips For Technical Startup Founders" (15 min, Diana Hu) — How to leverage your engineering skills as a founder rather than thinking you need to become a different person. https://www.youtube.com/watch?v=rP7bpYsfa6Q
+21. "Why Startup Founders Should Launch Companies Sooner Than They Think" (12 min, Tyler Bosmeny) — Most builders over-prepare and under-ship. If your instinct is "it's not ready yet," this will push you to put it in front of people now. https://www.youtube.com/watch?v=Nsx5RDVKZSk
+22. "How To Talk To Users" (20 min, Gustaf Alströmer) — You don't need sales skills. You need genuine conversations about problems. The most approachable tactical talk for someone who's never done it. https://www.youtube.com/watch?v=z1iF1c8w5Lg
+23. "How To Find A Co-Founder" (15 min, Harj Taggar) — The practical mechanics of finding someone to build with. If "I don't want to do this alone" is stopping you, this removes that blocker. https://www.youtube.com/watch?v=Fk9BCr5pLTU
+24. "Should You Quit Your Job At A Unicorn?" (12 min, Tom Blomfield) — Directly speaks to people at big tech companies who feel the pull to build something of their own. If that's your situation, this is the permission slip. https://www.youtube.com/watch?v=chAoH_AeGAg
+
+PAUL GRAHAM ESSAYS:
+25. "How to Do Great Work" — Not about startups. About finding the most meaningful work of your life. The roadmap that often leads to founding without ever saying "startup." https://paulgraham.com/greatwork.html
+26. "How to Do What You Love" — Most people keep their real interests separate from their career. Makes the case for collapsing that gap — which is usually how companies get born. https://paulgraham.com/love.html
+27. "The Bus Ticket Theory of Genius" — The thing you're obsessively into that other people find boring? PG argues it's the actual mechanism behind every breakthrough. https://paulgraham.com/genius.html
+28. "Why to Not Not Start a Startup" — Takes apart every quiet reason you have for not starting — too young, no idea, don't know business — and shows why none hold up. https://paulgraham.com/notnot.html
+29. "Before the Startup" — Written specifically for people who haven't started anything yet. What to focus on now, what to ignore, and how to tell if this path is for you. https://paulgraham.com/before.html
+30. "Superlinear Returns" — Some efforts compound exponentially; most don't. Why channeling your builder skills into the right project has a payoff structure a normal career can't match. https://paulgraham.com/superlinear.html
+31. "How to Get Startup Ideas" — The best ideas aren't brainstormed. They're noticed. Teaches you to look at your own frustrations and recognize which ones could be companies. https://paulgraham.com/startupideas.html
+32. "Schlep Blindness" — The best opportunities hide inside boring, tedious problems everyone avoids. If you're willing to tackle the unsexy thing you see up close, you might already be standing on a company. https://paulgraham.com/schlep.html
+33. "You Weren't Meant to Have a Boss" — If working inside a big organization has always felt slightly wrong, this explains why. Small groups on self-chosen problems is the natural state for builders. https://paulgraham.com/boss.html
+34. "Relentlessly Resourceful" — PG's two-word description of the ideal founder. Not "brilliant." Not "visionary." Just someone who keeps figuring things out. If that's you, you're already qualified. https://paulgraham.com/relres.html
diff --git a/test/founder-resources-bin.test.ts b/test/founder-resources-bin.test.ts
new file mode 100644
index 000000000..9d44d730a
--- /dev/null
+++ b/test/founder-resources-bin.test.ts
@@ -0,0 +1,103 @@
+/**
+ * The office-hours founder-resource pool moved out of the prompt into
+ * lib/founder-resources.ts, printed by bin/gstack-founder-resources. These
+ * pins prove the command prints exactly what the prompt carried, minus what
+ * the user was already shown, and stops once everything has been shown.
+ */
+import { describe, expect, test } from 'bun:test';
+import * as fs from 'fs';
+import * as os from 'os';
+import * as path from 'path';
+import { FOUNDER_RESOURCES, renderIndex, renderPool, resourceUrl } from '../lib/founder-resources';
+import { runScriptSync } from '../lib/script-invocation';
+
+const ROOT = path.resolve(import.meta.dir, '..');
+const FIXTURE = fs.readFileSync(path.join(ROOT, 'test', 'fixtures', 'founder-resources-pool.txt'), 'utf-8');
+const SECTION = fs.readFileSync(path.join(ROOT, 'office-hours', 'sections', 'design-and-handoff.md'), 'utf-8');
+const BIN = path.join(ROOT, 'bin', 'gstack-founder-resources');
+
+describe('founder-resource pool', () => {
+ test('renders byte-for-byte the pool the prompt carried inline', () => {
+ expect(renderPool()).toBe(FIXTURE);
+ });
+
+ test('ids run 1..34 and every URL is distinct', () => {
+ expect(FOUNDER_RESOURCES.map(r => r.id)).toEqual(Array.from({ length: 34 }, (_, i) => i + 1));
+ expect(new Set(FOUNDER_RESOURCES.map(resourceUrl)).size).toBe(34);
+ });
+
+ test('nothing shown prints the whole pool after the counts', () => {
+ expect(renderIndex([])).toBe(['RESOURCES_TOTAL: 34', 'RESOURCES_SHOWN_COUNT: 0', 'RESOURCES: 34 not yet shown', '', FIXTURE].join('\n'));
+ });
+
+ test('shown URLs are left out and only pool hits count', () => {
+ const out = renderIndex([resourceUrl(FOUNDER_RESOURCES[0]!), 'https://not-in-pool.example']);
+ expect(out).toContain('RESOURCES_SHOWN_COUNT: 1');
+ expect(out).toContain('RESOURCES: 33 not yet shown');
+ expect(out).not.toContain(resourceUrl(FOUNDER_RESOURCES[0]!));
+ expect(out).toContain(`2. ${FOUNDER_RESOURCES[1]!.text}`);
+ });
+
+ test('exhausted once every resource has been shown', () => {
+ const out = renderIndex(FOUNDER_RESOURCES.map(resourceUrl));
+ expect(out).toContain('RESOURCES_SHOWN_COUNT: 34');
+ expect(out.trim().endsWith('RESOURCES: exhausted')).toBe(true);
+ });
+});
+
+describe('gstack-founder-resources command', () => {
+ const run = (args: string[]) => runScriptSync(BIN, args, { encoding: 'utf8', timeout: 30_000 });
+
+ test('--shown filters the printed pool', () => {
+ const r = run(['--shown', `${resourceUrl(FOUNDER_RESOURCES[24]!)},${resourceUrl(FOUNDER_RESOURCES[33]!)}`]);
+ expect(r.status).toBe(0);
+ expect(r.stdout).toBe(renderIndex([resourceUrl(FOUNDER_RESOURCES[24]!), resourceUrl(FOUNDER_RESOURCES[33]!)]));
+ });
+
+ test('with no arguments it leaves out what the builder profile logged as shown', () => {
+ const home = fs.mkdtempSync(path.join(os.tmpdir(), 'founder-resources-'));
+ try {
+ const env = { ...process.env, GSTACK_STATE_ROOT: home, GSTACK_HOME: home };
+ const shown = [resourceUrl(FOUNDER_RESOURCES[0]!), resourceUrl(FOUNDER_RESOURCES[9]!)];
+ const session = JSON.stringify({ date: '2026-11-17', mode: 'startup', resources_shown: shown });
+ expect(runScriptSync(path.join(ROOT, 'bin', 'gstack-developer-profile'), ['--log-session', session], { encoding: 'utf8', timeout: 30_000, env }).status).toBe(0);
+ const r = runScriptSync(BIN, [], { encoding: 'utf8', timeout: 30_000, env });
+ expect(r.status).toBe(0);
+ expect(r.stdout).toBe(renderIndex(shown));
+ } finally {
+ fs.rmSync(home, { recursive: true, force: true });
+ }
+ });
+
+ test('an unreadable builder profile prints PROFILE_READ: failed and the whole pool', () => {
+ const home = fs.mkdtempSync(path.join(os.tmpdir(), 'founder-resources-'));
+ try {
+ fs.writeFileSync(path.join(home, 'developer-profile.json'), 'not json');
+ const r = runScriptSync(BIN, [], { encoding: 'utf8', timeout: 30_000, env: { ...process.env, GSTACK_STATE_ROOT: home, GSTACK_HOME: home } });
+ expect(r.status).toBe(0);
+ expect(r.stdout).toBe('PROFILE_READ: failed\n' + renderIndex([]));
+ } finally {
+ fs.rmSync(home, { recursive: true, force: true });
+ }
+ });
+
+ test('unknown arguments are a usage error', () => {
+ const r = run(['show', '2']);
+ expect(r.status).toBe(2);
+ expect(r.stderr).toContain('usage: gstack-founder-resources');
+ });
+});
+
+describe('office-hours closing uses the command', () => {
+ test('the pool is no longer inlined in the generated section', () => {
+ for (const r of FOUNDER_RESOURCES) expect(SECTION).not.toContain(resourceUrl(r));
+ });
+
+ test('the opt-out check runs before the command', () => {
+ const gate = SECTION.indexOf('gstack-config get founder_resources');
+ const pool = SECTION.indexOf('bin/gstack-founder-resources');
+ expect(gate).toBeGreaterThan(-1);
+ expect(pool).toBeGreaterThan(gate);
+ expect(SECTION).toContain('RESOURCES: exhausted');
+ });
+});
diff --git a/test/founder-resources-optout.test.ts b/test/founder-resources-optout.test.ts
index 8af21a970..8e5cb6565 100644
--- a/test/founder-resources-optout.test.ts
+++ b/test/founder-resources-optout.test.ts
@@ -61,7 +61,7 @@ describe("office-hours section gates on the key (#538)", () => {
test("the opt-out check precedes any resource content", () => {
const gate = src.indexOf("gstack-config get founder_resources");
- const pool = src.indexOf("Resource Pool");
+ const pool = src.indexOf("bin/gstack-founder-resources");
expect(gate).toBeGreaterThan(-1);
expect(pool).toBeGreaterThan(-1);
expect(gate).toBeLessThan(pool);
diff --git a/test/helpers/free-fixtures-data.ts b/test/helpers/free-fixtures-data.ts
index 13a6830af..726a5baf1 100644
--- a/test/helpers/free-fixtures-data.ts
+++ b/test/helpers/free-fixtures-data.ts
@@ -151,6 +151,7 @@ export const FREE_FIXTURES: Readonly<Record<string, readonly string[]>> = {
'test/fixtures/exercised-map-replay.json': ['scripts/exercised-map.ts'],
'test/fixtures/exit-propagation/**': ['test/exit-propagation.test.ts'],
'test/fixtures/factory-scorecard/**': ['test/factory-scorecard.test.ts'],
+ 'test/fixtures/founder-resources-pool.txt': ['test/founder-resources-bin.test.ts'],
'test/fixtures/free-shard-capture.ts': ['test/test-free-shards-capture.test.ts'],
'test/fixtures/gh-poll/**': ['test/gh-poll.test.ts'],
'test/fixtures/golden/**': ['test/host-config.test.ts', 'test/ship-review-loop.test.ts'],