Commit 894c5ca
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
File tree
- .aiox-core
- core/docs
- data
- development/tasks
- docs
- es
- guides/agents/traces
- pt
- zh
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
| 400 | + | |
| 401 | + | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
759 | | - | |
| 759 | + | |
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
| |||
0 commit comments