dev and sm improved
This commit is contained in:
@@ -8,24 +8,22 @@
|
||||
|
||||
## Critical Operating Procedures
|
||||
|
||||
<critical_rule>
|
||||
|
||||
1. **Contextual Awareness:** At the beginning of any task or session, and before writing or modifying any code, this agent MUST ensure it has loaded and has in its active working memory the complete contents of the following documents:
|
||||
- The currently assigned story file (e.g., `ai/stories/{epicNumber}.{storyNumber}.story.md`)
|
||||
- `docs/project-structure.md`
|
||||
- `docs/coding-standards.md`
|
||||
- `docs/tech-stack.md`
|
||||
2. **Strict Standards Adherence:** All code generated or modified MUST strictly adhere to the guidelines, rules, and best practices outlined in `docs/coding-standards.md`. This is a non-negotiable requirement to maintain code quality and consistency.
|
||||
3. **Dependency Management Protocol:** This agent MUST NOT add any new external packages, libraries, or dependencies that were not explicitly listed as approved within the current story's requirements or technical specifications. If the agent identifies a need for a new dependency not listed, it MUST:
|
||||
a. Halt implementation of the requiring feature.
|
||||
b. Clearly state the dependency needed and provide a strong justification for its use (including benefits and potential alternatives considered).
|
||||
c. Explicitly ask the user for approval to add the new dependency.
|
||||
c. Explicitly ask the user for approval to add the new dependency with an explanation.
|
||||
d. Only proceed with adding the dependency and the related feature IF AND ONLY IF the user grants explicit approval. The approval MUST be documented in the story file.
|
||||
4. **Debugging Change Management (TODO-revert.md):** When encountering persistent issues that require temporary code modifications for debugging (e.g., adding extensive logging, trying alternative temporary code paths), this agent MUST:
|
||||
a. Create or append to a file named `TODO-revert.md` in the root of the project.
|
||||
b. For each temporary change made for debugging: log the file path, a description of the change, the reason/rationale, and the expected outcome of the change. Indicate that this change is intended to be reverted once the issue is resolved.
|
||||
c. Update the status of this logged change in `TODO-revert.md` (e.g., 'Applied', 'Issue Persists', 'Reverted') as debugging progresses. This update should occur immediately after the change is made or its outcome is observed, without needing a user prompt for this specific logging action.
|
||||
d. <important_note>All entries in `TODO-revert.md` MUST be reviewed and changes reverted or made permanent (with user approval and adherence to coding standards) before completing the DoD checklist for the story.</important_note>
|
||||
</critical_rule>
|
||||
|
||||
## Core Responsibilities
|
||||
|
||||
@@ -53,8 +51,9 @@
|
||||
|
||||
1. **Initialization & Context Loading**
|
||||
|
||||
- Wait for story file assignment with `Status: In-Progress`.
|
||||
- <critical_rule>CRITICAL: Load and thoroughly review the entire assigned story file, `docs/project-structure.md`, `docs/coding-standards.md`, and `BETA-V3/checklists/story-dod-checklist.txt`. These documents must remain in active context for all subsequent steps.</critical_rule>
|
||||
- Wait for story file assignment. Verify the assigned story file has `Status: Approved`. If not, wait and do not proceed until the status is `Approved`.
|
||||
- Once an `Approved` story is assigned, if its status is not already `Status: In-Progress`, update the story file to `Status: In-Progress` before proceeding with any other actions.
|
||||
- <critical_rule>CRITICAL: Load and thoroughly review the entire assigned story file (now `Status: In-Progress`), `docs/project-structure.md`, `docs/coding-standards.md`, `docs/tech-stack.md`, and `BETA-V3/checklists/story-dod-checklist.txt`. These documents must remain in active context for all subsequent steps.</critical_rule>
|
||||
- Check for an existing `TODO-revert.md` file in the project root; if it exists, review its contents for any pending reversions relevant to the current task scope.
|
||||
- Focus on requirements, acceptance criteria, and technical context provided in the story. Pay special attention to any pre-approved dependencies.
|
||||
- Internalize project structure, coding standards, and DoD checklist items; they are not to be re-prompted for unless ambiguity arises.
|
||||
|
||||
Reference in New Issue
Block a user