Repository navigation
Rename methodology "recipe" to "Playbook" across code and docs - #2897
Conversation
The methodology feature (#2777) named its central concept "recipe" — MethodologyRecipe, install_recipe, recipe_by_id, all_recipes — a second word for something the codebase already calls Playbook (an installable bundle, distinct from a Play's single rule-set). Renamed consistently: - packages/core/src/methodology/: MethodologyRecipe -> MethodologyPlaybook, install_recipe -> install_playbook, recipe_by_id -> playbook_by_id, all_recipes -> all_playbooks, InstallReport.recipe_id -> playbook_id (wire key recipeId -> playbookId), plus doc comments throughout. SchemaStep/FieldValueExtension/PlayStep are unchanged per scope. - references/linear-recipe.md -> references/linear-playbook.md, its GeneratedRegion id, and gen_skill_md.rs's source_note/render fn; SKILL.md's pointer follows. - Daemon, Tauri command layer, and the desktop-app TS/Svelte layer follow the InstallReport field rename end to end (recipeId -> playbookId). - proto: comments only, no field/message rename — wire contract unchanged. - packages/core/src/playbook/validation.rs: three comments referencing "the Linear recipe" now say "the Linear Playbook". Deliberately left alone: the ADRs (#73/#74/#78/#79, descriptive prose written before this feature existed), the GTM research files under strategy/ (unrelated sense), and literal-cooking-recipe test fixtures in packages/core/src/ops/skill_ops.rs, packages/agent/src/local_agent/agent_loop.rs and packages/daemon/src/services/local_agent_service.rs (unrelated word sense, not the methodology concept). Co-Authored-By: Claude Sonnet 5 <[email protected]>
Code Review SummaryClean, well-scoped mechanical rename. I checked out the PR's own worktree ( FindingsCritical IssuesNone found. Suggested Improvements
Nitpicks
Verification performed
Recommendation: APPROVE |
mstomar125
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
…ions playbook_by_id, every_playbook_has_a_unique_id, and play_ids_are_unique still used |r|/let r bindings left over from when the type was named MethodologyRecipe. Renamed to |p|/let pb to match the Playbook rename throughout, per pragmatic-code-review's nitpick on PR #2897. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Address-review summaryPer Addressed:
Skipped:
Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The only code change was a cosmetic local-variable/closure-parameter rename inside two test-adjacent functions ( The PR is ready for merge (pending final approval). |
Summary
The methodology feature (#2777) named its central concept "recipe" —
MethodologyRecipe,install_recipe,recipe_by_id,all_recipes,references/linear-recipe.md— a second word for something the codebase already names: NodeSpace's domain language is Play (one automation rule-set) and Playbook (an installable bundle, ADR-075'sPlaybookNode). This renames the methodology "recipe" concept to Playbook consistently, so it reads correctly besideplay/playbook/PlaybookEnginerather than introducing a second, unrelated word for the same layer.packages/core/src/methodology/:MethodologyRecipe->MethodologyPlaybook,install_recipe->install_playbook,recipe_by_id->playbook_by_id,all_recipes->all_playbooks,InstallReport.recipe_id->playbook_id(wire keyrecipeId->playbookId), plus doc comments throughout.SchemaStep/FieldValueExtension/PlayStepare unchanged, per the issue's stated scope.references/linear-recipe.md->references/linear-playbook.md, itsGeneratedRegionid, andgen_skill_md.rs'ssource_note/render function (packages/cli/examples/gen_skill_md.rs, plus the test pinning its output inpackages/cli/tests/skill_md_generation.rs).SKILL.md's pointer follows.packages/agent/src/agent_catalog/context_assembly.rs'sSKILL_LINEAR_RECIPEembed constant and itsinclude_str!/staged-filename follow the file rename too — otherwise the PTY-session skill embed would point at a path that no longer exists.bun run skill:checkconfirms the generated content is byte-identical to what the renamed generator produces.InstallReportfield rename end to end (recipeId->playbookId) — verified with a full round trip throughthe_install_report_serializes_to_the_shape_clients_decodeand the frontend test suite.packages/proto/proto/node_service.proto: comments only — no field or message rename, wire contract unchanged, per the issue's explicit instruction.packages/core/src/playbook/validation.rs: three comments referencing "the Linear recipe" now say "the Linear Playbook".nodespace-docs/architecture/playbook-system.mdgains a short "Playbook vs. Play" section distinguishing the two, since that distinction was previously only implicit in code (pushed directly tonodespace-docsmain, per that repo's docs-only workflow).Deliberately left untouched, per the issue's own scope:
strategy/— unrelated sense of "recipe".packages/core/src/ops/skill_ops.rs,packages/agent/src/local_agent/agent_loop.rs, andpackages/daemon/src/services/local_agent_service.rs— an unrelated word sense (sample "recipe for dinner" strings), not the methodology concept.packages/agent/src/local_agent/is also outside this rename's ownership lane, so it was left alone regardless.No user-visible UI string changes — the Settings panel still reads "Work Tracking" and the wizard step "How do you track work?"; the
recipeId/playbookIdfield only carries a data value ("linear") that was already displayed, not a change to what renders.This unblocks #2570 (
PlaybookNodebundle record) landing on a single, consistent naming rather than needing a second rename later.Update after
/pragmatic-code-review(see PR comments): reviewed as APPROVE with no critical/blocking findings. Addressed the one nitpick —playbook_by_id,every_playbook_has_a_unique_id, andplay_ids_are_uniquestill used|r|/let rbindings left over from the pre-renameMethodologyRecipetype; renamed to|p|/let pb. No re-review needed (cosmetic-only, zero behavior change).Test plan
cargo test -p nodespace-core methodology— 17 unit tests passcargo test -p nodespace-core --test methodology_linear_execution_test --test methodology_linear_install_test— 25 integration tests pass, including the wire-shape test (json["playbookId"])bun run test -- methodology(frontend) — 17 tests pass (onboarding wizard + methodology-service)bun run skill:check— generatedreferences/linear-playbook.mdmatches its source, no driftbun run quality:fix— eslint, tsc, svelte-check, design-tokens,cargo fmt,cargo clippy --all-targets -D warnings -D clippy::unused-asyncall clean across the full workspace, includingnodespace-apptest:all,cargo build --bin nodespaced,test:e2e,cargo test -p nodespace-app) — all greenCloses #2851
🤖 Generated with Claude Code