You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs-build and ralph-triage tests break on team rebirths and blog changes #282
Several tests read live .squad/ and docs/blog/ files but hardcode specific content in assertions. This means routine team operations (rebirths, adding/removing members, blog posts) break CI.
Affected tests
ralph-triage.test.ts — reads live .squad/team.md\ and .squad/routing.md, then asserts specific agent names:
\�xpect(roster.find(m => m.name === 'Hockney'))\ — breaks on any rename
\�xpect(rules.find(r => r.workType === 'Core runtime')?.agentName).toBe('Fenster')\ — same
docs-build.test.ts — hardcodes an \EXPECTED_BLOG\ array with every blog post slug:
Adding/removing a blog post requires updating the test
speed-gates.test.ts — hardcodes help output line count:
Adding any new CLI command to help text can exceed the budget
Root cause
Tests that validate parsing logic (does parseRoster work?) are coupled to live mutable content (what's the current roster?). These are two separate concerns that should be tested independently.
Proposed fix
ralph-triage.test.ts: Live-file tests should assert structure/behavior (non-empty results, correct property shapes, emoji presence), not specific names. Name-specific tests should use inline fixtures.
docs-build.test.ts: Instead of hardcoding \EXPECTED_BLOG = ['026-...', '025-...', ...], dynamically discover blog posts from the filesystem:
eaddirSync('docs/blog').filter(f => f.endsWith('.md')).
speed-gates.test.ts: Use a generous budget or make it relative to the number of registered commands.
Impact
PR #280 includes the ralph-triage + speed-gates fix. The docs-build fix (dynamic discovery) is a separate change worth doing.
Activity
fix: use dynamic blog discovery in docs-build test (github#282)
fix: use dynamic blog discovery in docs-build test (github#282) (gith…