mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 08:56:32 +00:00
Update coding standards and testing guidelines
- Revised coding rules to emphasize readability, meaningful comments, and maintainability. - Adjusted thresholds for test coverage on business logic from 80% to 75%, aligning with the new quality standards. - Enhanced guidelines for handling skipped tests, introducing classifications for legitimate and illegitimate skips. - Updated the requirements for test scenarios to ensure every test has a clear pass/fail criterion. Made-with: Cursor
This commit is contained in:
@@ -12,3 +12,39 @@ alwaysApply: true
|
||||
- Project name: AZAION
|
||||
- All task IDs follow the format `AZ-<number>`
|
||||
- Issue types: Epic, Story, Task, Bug, Subtask
|
||||
|
||||
## Tracker Availability Gate
|
||||
- If Jira MCP returns **Unauthorized**, **errored**, **connection refused**, or any non-success response: **STOP** tracker operations and notify the user.
|
||||
- The user must fix the Jira MCP connection before any further ticket creation/transition/query is attempted.
|
||||
- Do NOT silently create local-only tasks, skip Jira steps, or pretend the write succeeded. The tracker is the source of truth — if a status transition is lost, the team loses visibility.
|
||||
|
||||
## Leftovers Mechanism (non-user-input blockers only)
|
||||
|
||||
When a **non-user** blocker prevents a tracker write (MCP down, network error, transient failure, ticket linkage recoverable later), record the deferred write in `_docs/_process_leftovers/<YYYY-MM-DD>_<topic>.md` and continue non-tracker work. Each entry must include:
|
||||
|
||||
- Timestamp (ISO 8601)
|
||||
- What was blocked (ticket creation, status transition, comment, link)
|
||||
- Full payload that would have been written (summary, description, story points, epic, target status) — so the write can be replayed later
|
||||
- Reason for the blockage (MCP unavailable, auth expired, unknown epic ID pending user clarification, etc.)
|
||||
|
||||
### Hard gates that CANNOT be deferred to leftovers
|
||||
|
||||
Anything requiring user input MUST still block:
|
||||
|
||||
- Clarifications about requirements, scope, or priority
|
||||
- Approval for destructive actions or irreversible changes
|
||||
- Choice between alternatives (A/B/C decisions)
|
||||
- Confirmation of assumptions that change task outcome
|
||||
|
||||
If a blocker of this kind appears, STOP and ASK — do not write to leftovers.
|
||||
|
||||
### Replay obligation
|
||||
|
||||
At the start of every `/autopilot` invocation, and before any new tracker write in any skill, check `_docs/_process_leftovers/` for pending entries. For each entry:
|
||||
|
||||
1. Attempt to replay the deferred write against the tracker
|
||||
2. If replay succeeds → delete the leftover entry
|
||||
3. If replay still fails → update the entry's timestamp and reason, continue
|
||||
4. If the blocker now requires user input (e.g., MCP still down after N retries) → surface to the user
|
||||
|
||||
Autopilot must not progress past its own step 0 until all leftovers that CAN be replayed have been replayed.
|
||||
|
||||
Reference in New Issue
Block a user