From 915ec5e64959a8b6fa6da1fb9afb2f9e17b660ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Prado?= Date: Mon, 19 Jan 2026 19:17:42 +0100 Subject: [PATCH 1/2] fix: update remaining spec-machine references to devorch Updates all remaining references from spec-machine to devorch: - context-training paths now use devorch/context-training/ - config file references now point to devorch/config.local.yml - documentation updated to reflect new paths Fixes test failure in lib/harness/templates test suite Co-Authored-By: Claude --- docs/user-guide/harness-loop.md | 4 ++-- src/cli/commands/harness/create-specs.ts | 2 +- src/cli/commands/harness/init.ts | 2 +- src/cli/lib/harness/templates.test.ts | 2 +- src/cli/lib/harness/templates.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/user-guide/harness-loop.md b/docs/user-guide/harness-loop.md index f7b257d..e374e98 100644 --- a/docs/user-guide/harness-loop.md +++ b/docs/user-guide/harness-loop.md @@ -23,7 +23,7 @@ The Harness Loop implements the [Ralph Wiggum technique](https://ghuntley.com/ra Ralph requires **context training** to be configured. This provides Claude with your project's patterns and conventions. ```yaml -# spec-machine/config.local.yml +# devorch/config.local.yml profile: context_training: your-training-name ``` @@ -270,7 +270,7 @@ The prompt sent to Claude each iteration. Created at `init` time with your conte **IMPORTANT:** Before starting work, use the Explore subagent to understand project patterns: Task tool with subagent_type=Explore: -"Quickly scan spec-machine/context-training/your-training-name for key patterns..." +"Quickly scan devorch/context-training/your-training-name for key patterns..." --- diff --git a/src/cli/commands/harness/create-specs.ts b/src/cli/commands/harness/create-specs.ts index 24e8eed..a5a8935 100644 --- a/src/cli/commands/harness/create-specs.ts +++ b/src/cli/commands/harness/create-specs.ts @@ -108,7 +108,7 @@ export async function createSpecsCommand(options: CreateSpecsOptions): Promise { log('', 'info'); log('To fix this:', 'info'); log(' 1. Run /train-context to create context training for your project', 'info'); - log(' 2. Add to spec-machine/config.local.yml:', 'info'); + log(' 2. Add to devorch/config.local.yml:', 'info'); log(' profile:', 'info'); log(' context_training: your-training-name', 'info'); await flushAndExit(1); diff --git a/src/cli/lib/harness/templates.test.ts b/src/cli/lib/harness/templates.test.ts index 7a7027d..b20a74f 100644 --- a/src/cli/lib/harness/templates.test.ts +++ b/src/cli/lib/harness/templates.test.ts @@ -54,7 +54,7 @@ describe('lib/harness/templates', () => { const rendered = renderPromptTemplate('auth-system', 'mobile-app'); expect(rendered).toContain('auth-system'); expect(rendered).toContain('devorch/harness/auth-system'); - expect(rendered).toContain('spec-machine/context-training/mobile-app'); + expect(rendered).toContain('devorch/context-training/mobile-app'); }); }); diff --git a/src/cli/lib/harness/templates.ts b/src/cli/lib/harness/templates.ts index 2fe3776..5ff9826 100644 --- a/src/cli/lib/harness/templates.ts +++ b/src/cli/lib/harness/templates.ts @@ -51,7 +51,7 @@ export function renderPromptTemplate(featureName: string, contextTrainingName: s return renderTemplate('PROMPT.template.md', { FEATURE_NAME: featureName, HARNESS_DIR: `devorch/harness/${featureName}`, - CONTEXT_TRAINING_PATH: `spec-machine/context-training/${contextTrainingName}`, + CONTEXT_TRAINING_PATH: `devorch/context-training/${contextTrainingName}`, }); } From 690ade2e199b12aa84512fc4e495df0190069e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Prado?= Date: Mon, 19 Jan 2026 19:22:18 +0100 Subject: [PATCH 2/2] fix: use RALPH_DIR variable name in template rendering The PROMPT.template.md uses {{{RALPH_DIR}}} but the code was passing HARNESS_DIR, causing the mustache template to not substitute the variable. This fixes the failing test in lib/harness/templates Co-Authored-By: Claude --- src/cli/lib/harness/templates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/lib/harness/templates.ts b/src/cli/lib/harness/templates.ts index 5ff9826..aeb75dc 100644 --- a/src/cli/lib/harness/templates.ts +++ b/src/cli/lib/harness/templates.ts @@ -50,7 +50,7 @@ export function getAsciiArt(): string { export function renderPromptTemplate(featureName: string, contextTrainingName: string): string { return renderTemplate('PROMPT.template.md', { FEATURE_NAME: featureName, - HARNESS_DIR: `devorch/harness/${featureName}`, + RALPH_DIR: `devorch/harness/${featureName}`, CONTEXT_TRAINING_PATH: `devorch/context-training/${contextTrainingName}`, }); }