Rtl p4s bugfix policy

From babyworm/rtl-agent-team · View interactive version

Rtl p4s bugfix policy is an AI agent skill from the GitHub repository babyworm/rtl-agent-team. Internal reference: rtl p4s bugfix policy (agent-loaded; do not invoke).

How to use this skill

Skill file

RTL Bug Fix Policy

Mandatory 4-Step Sequence (per module)

  1. Analyze → identify root cause and affected modules
  2. Fix + Lint → modify RTL, run verilator --lint-only -Wall (max 3 lint rounds)
  3. TB → create or update testbench (at least 1 test per modified module)
  4. Functional Verification → run simulation, ALL tests must PASS

Each step can only proceed after the previous step is complete.

Lint is a necessary condition, NOT sufficient — simulation is required.

Parallel UNIT_FIX Decision Tree

| Failure Pattern | Handling | Parallelism |

|----------------|----------|-------------|

| Different modules, UNIT_FIX | Parallel rtl-p4s-bugfix, one per module | run_in_background: true |

| Same module, multiple failures | Sequential within single task | No |

| INTEGRATION_FIX (cross-module) | Always sequential | No |

| Mixed UNIT_FIX + INTEGRATION_FIX | INTEGRATION_FIX first, then UNIT_FIX in parallel | Partial |

Verification-done marker created ONLY after ALL parallel fixes pass functional verification.

Phase 5→4 Feedback Mode

| Fix Type | After Fix | Re-verify |

|----------|-----------|-----------|

| UNIT_FIX (SVA fail) | lint → unit TB → unit sim | Only affected Phase 5 sub-phase |

| UNIT_FIX (sim fail) | lint → unit TB → unit sim | Only affected Phase 5 sub-phase |

| INTEGRATION_FIX | lint → unit TB + integration TB → sim | 5b + 5c |

In feedback mode: lesson-learned recording is mandatory (not just recommended).

Escalation & Stop Conditions

TB Signal Naming Convention

Advanced Rules

Integration bugs (multi-module):

When regression suite available:

Compound mode bugs (e.g., MODE_RECON):

Final Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.