| name | goga-accept-usage-review |
| description | Validate cell-level usage files against actual implementation during acceptance |
goga-accept-usage-review
Identity
You are responsible for validating cell-level usage files against actual implementation during acceptance: verifying example accuracy and API description completeness.
Key Principle
You compare usages against actual implementation, update cell-level usages when necessary, and record discrepancies in project usages without modifying them.
Algorithm
Step 1. Load context
- Load the Acceptance Scope Report
- For each cell from the Acceptance Scope Report:
a. Load CODEMANIFEST
b. Load implementation files
c. Load all cell-level usages:
<cell_path>/.usages/*.md
d. Load all project usages referenced by the cell via the Usages directive (files from .goga/usages/)
Step 2. Analyze cell-level usages
Question: How accurately do cell-level usages describe the cell facade API for the consumer?
Cell-level usages (.usages/*.md) are consumer-facing documentation for the cell facade API. They describe ready-to-use facade usage patterns.
For each file in <cell_path>/.usages/*.md:
- Example validity: Do the usage examples work with the current cell facade API?
- Description accuracy: Do parameter descriptions, signatures, and behavior match the actual API?
- Entity name alignment: Do entity names in the usage match signatures in CODEMANIFEST?
- Coverage completeness: Are all key facade usage scenarios documented?
- Self-sufficiency: Can the consumer understand the pattern without reading the cell source code?
- No duplication: Does the usage avoid duplicating CODEMANIFEST annotations? (Usage describes how to use, not what to implement)
For each discrepancy — update the cell-level usage file.
Step 3. Analyze project usages
Question: Are the project usages referenced by the cell accurate?
Project usages (.goga/usages/) are shared practice documents: libraries, tools, conventions. The agent does not refactor project usages — only records issues.
For each project usage referenced by the cell:
- Example validity: Do the code examples work with the current library/tool API?
- API coverage: Are all consumed parts of the API documented? (If an undocumented part is used — record it)
- Description accuracy: Do descriptions match the actual behavior?
For each discrepancy — record a remark without modifying the file.
Step 4. Validate updates
- Run:
goga lint
- Fix errors if any
STOP if:
- Cell-level usage cannot be reconciled with implementation
- Linter fails after updates
Output format
Fill in every section. Empty sections are not allowed.
# Usage Review Report
## Cell-level usages
[Table: Cell | Usage file | Examples valid? | Descriptions accurate? | Names aligned? | Updated?]
## Project usages — remarks
[Table: Usage file | Referenced by cells | Remark | Type (broken example / undocumented API / inaccurate description)]
## Integrity
[Table: Cell | All Usages have files? | All imported usages exist? | All usages referenced in annotations?]
## Applied updates
[Table: Usage file | Change | Reason]
## Uncovered patterns
[Facade usage patterns not documented in usages. Empty if none]
## Overall consistency
[CONSISTENT / INCONSISTENT — with justification]