| name | fit-spec |
| description | Allows for a piece of code to be updated to a specification. Called when a specification file was changed and those changes should be applied to code. |
To update code at $1 to fit the specification file $0:
- First read the specification file $0, then read all referenced files, all diagrams, and related information. Read the implementation give at $1.
- Review the generated implementation: Check that all points of the specification are met, if any are missing or contradicted by the implementation, inform the user in a list.
- Generate a new tentative implementation plan, it should update the current implementation, taking into account previous design decision, changing them when needed.
- Indicate to the user all lacking specifications, and all particular implementation pain points, propose a common sense solution (if available) of the previous points.
- The user should read and address all previous issues, taking the new information into account, and repeat from point 1. When there are no more issues to deal with continue with point 4.
- Apply the implementation corrections, verify and update comments and relevant documentation.
- Review the generated implementation: reread all generated source files, and the specification $0, check that all points of the specification are met, if any are missing or contradicted by the implementation, inform the user in a list and abort the implementation.
- Run, execute tests and perform other necessary checks. Implement final cosmetic changes.