Skip to content

Commit 894c5ca

Browse files
rafaelscostaclaude
andcommitted
fix: align legacy path references with current directory layout (closes #741)
The framework directory layout was reorganized at some point with templates, checklists, tasks, agents, workflows, and agent-teams moving under `.aiox-core/` subdirectories (`product/`, `development/`), but ~70 references across docs, tasks, and the knowledge base never followed. The result: `@po *validate-story-draft` (and other story-flow steps) tries to load template paths like `aiox-core/templates/story-tmpl.yaml` that no longer exist, breaking the Story Development Cycle at the validation gate as reported by @renatolhamas in #741. ## Mapping applied | Legacy path | Current path | |---|---| | `aiox-core/templates/<X>` | `.aiox-core/product/templates/<X>` | | `aiox-core/checklists/<X>` | `.aiox-core/product/checklists/<X>` | | `aiox-core/agents/<X>` | `.aiox-core/development/agents/<X>` | | `aiox-core/tasks/<X>` | `.aiox-core/development/tasks/<X>` | | `aiox-core/workflows/<X>` | `.aiox-core/development/workflows/<X>` | | `aiox-core/agent-teams/<X>` | `.aiox-core/development/agent-teams/<X>` | | `aiox-core/data/<X>` | `.aiox-core/data/<X>` (data did NOT move into a subdir; only the prefix gets the dot) | Note the leading dot: `aiox-core/` → `.aiox-core/`. The post-reorganization codebase already uses the dotted form (`.aiox-core/...`); only the legacy non-dotted references needed updating. A negative-lookbehind `(?<![\.])` in the substitution script protects existing dotted references from being rewritten twice. ## Files touched (17 — one extra came in from the pre-commit hook regenerating `entity-registry.yaml`) - **Runtime-affecting (story flow, agent flow):** - `.aiox-core/development/tasks/validate-next-story.md` (the file @renatolhamas pointed at — Line 228 was the trigger) - `.aiox-core/development/tasks/dev-validate-next-story.md` - `.aiox-core/development/tasks/create-next-story.md` - `.aiox-core/development/tasks/sm-create-next-story.md` - `.aiox-core/development/tasks/modify-agent.md` - `.aiox-core/development/tasks/modify-task.md` - `.aiox-core/development/tasks/architect-analyze-impact.md` - `.aiox-core/development/tasks/pr-automation.md` - **Documentation (operator-facing):** - `.aiox-core/user-guide.md` - `.aiox-core/core/docs/component-creation-guide.md` - `.aiox-core/data/aiox-kb.md` - `docs/core-architecture.md` (+ pt/es/zh localizations) - `docs/guides/agents/traces/ux-design-expert-execution-trace.md` - **Generated (regenerated by pre-commit hook, not authored):** - `.aiox-core/data/entity-registry.yaml` ## Method Substitution was scripted (not freehand `sed`) with a negative-lookbehind guard `(?<![\.])aiox-core/<subdir>/` so already-correct dotted references stay intact. Audit verifies zero remaining matches across `.aiox-core/` and `docs/`: ``` $ grep -rnE "['\\\`\\\"]aiox-core/(templates|tasks|checklists|agents|data|workflows|agent-teams)/" .aiox-core/ docs/ | grep -v "\\.aiox-core" | wc -l 0 ``` ## Out of scope (deferred) Other legacy refs that exist in the codebase but were not part of the reorganization that #741 reports: - `aiox-core/core-config.yaml` (root-level config, not a subdir reorg) - `aiox-core/tools/mcp/clickup.yaml` (only 1 occurrence in aiox-kb.md — needs separate decision on where this should live, will follow up) These are 1-off references that don't break the story flow and need their own decision per ref. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 342ef63 commit 894c5ca

18 files changed

Lines changed: 133 additions & 223 deletions

.aiox-core/core/docs/component-creation-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,16 +397,16 @@ This shows:
397397

398398
### Getting Help
399399

400-
1. **Check component examples**: `aiox-core/agents/examples/`
401-
2. **Review templates**: `aiox-core/templates/`
400+
1. **Check component examples**: `.aiox-core/development/agents/examples/`
401+
2. **Review templates**: `.aiox-core/product/templates/`
402402
3. **Run validation**: `*validate-component`
403403
4. **Ask meta-agent**: `*help create-agent`
404404

405405
## Advanced Features
406406

407407
### Custom Templates
408408

409-
Create custom templates in `aiox-core/templates/custom/`:
409+
Create custom templates in `.aiox-core/product/templates/custom/`:
410410

411411
```yaml
412412
# custom-agent-template.yaml

.aiox-core/data/aiox-kb.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -349,31 +349,31 @@ The AIOX-Method is built around a modular architecture centered on the `aiox-cor
349349

350350
### Key Architectural Components
351351

352-
#### 1. Agents (`aiox-core/agents/`)
352+
#### 1. Agents (`.aiox-core/development/agents/`)
353353

354354
- **Purpose**: Each markdown file defines a specialized AI agent for a specific Agile role (PM, Dev, Architect, etc.)
355355
- **Structure**: Contains YAML headers specifying the agent's persona, capabilities, and dependencies
356356
- **Dependencies**: Lists of tasks, templates, checklists, and data files the agent can use
357357
- **Startup Instructions**: Can load project-specific documentation for immediate context
358358

359-
#### 2. Agent Teams (`aiox-core/agent-teams/`)
359+
#### 2. Agent Teams (`.aiox-core/development/agent-teams/`)
360360

361361
- **Purpose**: Define collections of agents bundled together for specific purposes
362362
- **Examples**: `team-all.yaml` (comprehensive bundle), `team-fullstack.yaml` (full-stack development)
363363
- **Usage**: Creates pre-packaged contexts for web UI environments
364364

365-
#### 3. Workflows (`aiox-core/workflows/`)
365+
#### 3. Workflows (`.aiox-core/development/workflows/`)
366366

367367
- **Purpose**: YAML files defining prescribed sequences of steps for specific project types
368368
- **Types**: Greenfield (new projects) and Brownfield (existing projects) for UI, service, and fullstack development
369369
- **Structure**: Defines agent interactions, artifacts created, and transition conditions
370370

371371
#### 4. Reusable Resources
372372

373-
- **Templates** (`aiox-core/templates/`): Markdown templates for PRDs, architecture specs, user stories
374-
- **Tasks** (`aiox-core/tasks/`): Instructions for specific repeatable actions like "shard-doc" or "create-next-story"
375-
- **Checklists** (`aiox-core/checklists/`): Quality assurance checklists for validation and review
376-
- **Data** (`aiox-core/data/`): Core knowledge base and technical preferences
373+
- **Templates** (`.aiox-core/product/templates/`): Markdown templates for PRDs, architecture specs, user stories
374+
- **Tasks** (`.aiox-core/development/tasks/`): Instructions for specific repeatable actions like "shard-doc" or "create-next-story"
375+
- **Checklists** (`.aiox-core/product/checklists/`): Quality assurance checklists for validation and review
376+
- **Data** (`.aiox-core/data/`): Core knowledge base and technical preferences
377377

378378
### Dual Environment Architecture
379379

@@ -756,7 +756,7 @@ custom_fields:
756756

757757
**Where to find examples:**
758758
- Complete workflow: `aiox-core/tools/mcp/clickup.yaml` (story_creation_workflow section)
759-
- Task instructions: `aiox-core/tasks/create-next-story.md` (sections 5.1 and 5.3)
759+
- Task instructions: `.aiox-core/development/tasks/create-next-story.md` (sections 5.1 and 5.3)
760760
- Validators: `aiox-core/tools/mcp/clickup.yaml` (executable_knowledge section)
761761

762762
**Response Handling:**

0 commit comments

Comments
 (0)