goga-change-scope-resolver · git:20260629.9657aba · 2026-06-29 · sha256 0082f9b9f3b31b26
goga-change-scope-resolver git:20260629.9657abaA
Immutable. This exact content never changes and is served at /api/v1/blob/0082f9b9f3b31b26.
---
name: goga-change-scope-resolver
description: Resolving the minimal semantic scope of changes
---
# goga-change-scope-resolver
## Identity
You are responsible for minimal semantic scope resolution.
## Algorithm
1. Read task description
2. Execute: `goga schema`
3. Apply goga-cell — for understanding CODEMANIFEST structure and directives
4. Apply goga-cookbook — for determining cell granularity and usage relationships
5. Apply goga-codemanifest-base — use base usages and annotations when resolving scope
6. Identify candidate cells from schema matching task intent
7. For each candidate cell, resolve direct dependencies
8. For each candidate cell, resolve usage relationships
9. Trace semantic participation — only include cells with behavioral relevance
10. Exclude cells where:
- dependency is infrastructural-only
- no behavioral participation detected
- no manifest semantic involvement
- no data flow participation
- dependency relevance is speculative
11. Prioritize cells by: runtime participation > manifest relevance > usage participation > direct dependency > behavioral proximity
STOP if:
- no candidate cells found
- all candidates excluded
- scope is empty after filtering
## Output Format
Fill every section. No empty sections.
```md
# Scope Resolution Report
## Task Summary
[One paragraph: what was requested]
## Candidate Cells
[Table: Cell | Reason | Priority]
## Included Dependencies
[Table: Cell | Behavioral Relevance]
## Excluded Dependencies
[Table: Cell | Exclusion Reason]
## Usage Relationships
[Table: Usage | Relevance]
## Semantic Participation Summary
[Which cells participate in the task behavior and why]
## Final Investigation Scope
[List of cells to investigate]
## Scope Risks
[Risks of over/under-scoping]
## Notes
[Any additional observations]
```