* fix(#2376): emit absolute subagent-facing init/state paths Make init.* and state.* path fields absolute rather than cwd-relative so subagent prompts resolve correctly regardless of working directory. Adds intel_dir/conflicts_path/requirements_path/roadmap_path/state_path to cmdInitIngestDocs, an absolute debug_dir to cmdStateLoad, and replaces bare .planning/... literals in 12 workflow Agent() prompt blocks with the absolute init-JSON path fields. Includes decoy-cwd regression tests and realpath'd tmpdir fixtures for macOS. Squashed rebase of the #2376 commit series onto a fresh origin/next (previous merge ee25543a1 was against a now-stale next). * chore(#2376): add changeset * chore(#2376): regenerate golden fixtures + workflow size baseline Regenerated after rebasing the absolute-path fix onto current next (picks up #2351's run-with-timeout content in execute-phase.md too). * fix(#2376): trim execute-phase.md redundancy to stay under the size margin * chore(#2376): regenerate golden/size baseline after rebase onto next
This commit is contained in:
@@ -65,7 +65,7 @@ AGENT_SKILLS_SYNTHESIZER=$(gsd_run query agent-skills gsd-research-synthesizer)
|
||||
AGENT_SKILLS_ROADMAPPER=$(gsd_run query agent-skills gsd-roadmapper)
|
||||
```
|
||||
|
||||
Parse JSON for: `researcher_model`, `synthesizer_model`, `roadmapper_model`, `commit_docs`, `project_exists`, `has_codebase_map`, `planning_exists`, `has_existing_code`, `has_package_file`, `is_brownfield`, `needs_codebase_map`, `has_git`, `git_worktree_root`, `in_nested_subdir`, `project_path`, `agents_installed`, `missing_agents`, `agent_runtime`, `agents_dir`, `required_agents`, `required_agents_installed`, `missing_required_agents`, `agent_skill_payloads_available`, `agent_skill_payload_agents`.
|
||||
Parse JSON for: `researcher_model`, `synthesizer_model`, `roadmapper_model`, `commit_docs`, `project_exists`, `has_codebase_map`, `planning_exists`, `has_existing_code`, `has_package_file`, `is_brownfield`, `needs_codebase_map`, `has_git`, `git_worktree_root`, `in_nested_subdir`, `project_path`, `agents_installed`, `missing_agents`, `agent_runtime`, `agents_dir`, `required_agents`, `required_agents_installed`, `missing_required_agents`, `agent_skill_payloads_available`, `agent_skill_payload_agents`, `requirements_path`, `roadmap_path`, `config_path`, `research_dir`.
|
||||
|
||||
**If `agents_installed` is false:** Display a warning before proceeding:
|
||||
```text
|
||||
@@ -980,7 +980,7 @@ Your STACK.md feeds into roadmap creation. Be prescriptive:
|
||||
</quality_gate>
|
||||
|
||||
<output>
|
||||
Write to: .planning/research/STACK.md
|
||||
Write to: {research_dir}/STACK.md
|
||||
Use template: ~/.claude/gsd-core/templates/research-project/STACK.md
|
||||
</output>
|
||||
", subagent_type="gsd-project-researcher", model="{researcher_model}", description="Stack research")
|
||||
@@ -1020,7 +1020,7 @@ Your FEATURES.md feeds into requirements definition. Categorize clearly:
|
||||
</quality_gate>
|
||||
|
||||
<output>
|
||||
Write to: .planning/research/FEATURES.md
|
||||
Write to: {research_dir}/FEATURES.md
|
||||
Use template: ~/.claude/gsd-core/templates/research-project/FEATURES.md
|
||||
</output>
|
||||
", subagent_type="gsd-project-researcher", model="{researcher_model}", description="Features research")
|
||||
@@ -1060,7 +1060,7 @@ Your ARCHITECTURE.md informs phase structure in roadmap. Include:
|
||||
</quality_gate>
|
||||
|
||||
<output>
|
||||
Write to: .planning/research/ARCHITECTURE.md
|
||||
Write to: {research_dir}/ARCHITECTURE.md
|
||||
Use template: ~/.claude/gsd-core/templates/research-project/ARCHITECTURE.md
|
||||
</output>
|
||||
", subagent_type="gsd-project-researcher", model="{researcher_model}", description="Architecture research")
|
||||
@@ -1100,7 +1100,7 @@ Your PITFALLS.md prevents mistakes in roadmap/planning. For each pitfall:
|
||||
</quality_gate>
|
||||
|
||||
<output>
|
||||
Write to: .planning/research/PITFALLS.md
|
||||
Write to: {research_dir}/PITFALLS.md
|
||||
Use template: ~/.claude/gsd-core/templates/research-project/PITFALLS.md
|
||||
</output>
|
||||
", subagent_type="gsd-project-researcher", model="{researcher_model}", description="Pitfalls research")
|
||||
@@ -1117,16 +1117,16 @@ Synthesize research outputs into SUMMARY.md.
|
||||
</task>
|
||||
|
||||
<files_to_read>
|
||||
- .planning/research/STACK.md
|
||||
- .planning/research/FEATURES.md
|
||||
- .planning/research/ARCHITECTURE.md
|
||||
- .planning/research/PITFALLS.md
|
||||
- {research_dir}/STACK.md
|
||||
- {research_dir}/FEATURES.md
|
||||
- {research_dir}/ARCHITECTURE.md
|
||||
- {research_dir}/PITFALLS.md
|
||||
</files_to_read>
|
||||
|
||||
${AGENT_SKILLS_SYNTHESIZER}
|
||||
|
||||
<output>
|
||||
Write to: .planning/research/SUMMARY.md
|
||||
Write to: {research_dir}/SUMMARY.md
|
||||
Use template: ~/.claude/gsd-core/templates/research-project/SUMMARY.md
|
||||
Commit after writing.
|
||||
</output>
|
||||
@@ -1366,10 +1366,10 @@ Agent(prompt="
|
||||
<planning_context>
|
||||
|
||||
<files_to_read>
|
||||
- .planning/PROJECT.md (Project context)
|
||||
- .planning/REQUIREMENTS.md (v1 Requirements)
|
||||
- .planning/research/SUMMARY.md (Research findings - if exists)
|
||||
- .planning/config.json (Granularity and mode settings)
|
||||
- {project_path} (Project context)
|
||||
- {requirements_path} (v1 Requirements)
|
||||
- {research_dir}/SUMMARY.md (Research findings - if exists)
|
||||
- {config_path} (Granularity and mode settings)
|
||||
</files_to_read>
|
||||
|
||||
${AGENT_SKILLS_ROADMAPPER}
|
||||
@@ -1467,7 +1467,7 @@ Use AskUserQuestion:
|
||||
[user's notes]
|
||||
|
||||
<files_to_read>
|
||||
- .planning/ROADMAP.md (Current roadmap to revise)
|
||||
- {roadmap_path} (Current roadmap to revise)
|
||||
</files_to_read>
|
||||
|
||||
${AGENT_SKILLS_ROADMAPPER}
|
||||
|
||||
Reference in New Issue
Block a user