21 lines
863 B
Markdown
21 lines
863 B
Markdown
# Compile Guardrails
|
|
**Last Updated:** 2026-04-05
|
|
|
|
Preventive rules to reduce repeat compile failures.
|
|
|
|
## Core Prevention Rules
|
|
- [ ] Verify NT8 signatures in official docs before adding/changing any `protected override`.
|
|
- [ ] Keep NinjaScript edits within task scope and allowed file boundaries.
|
|
- [ ] Enforce C# 5.0 syntax only; reject C# 6+ constructs.
|
|
- [ ] Keep managed order sequence correct (stop/target before entry on same bar).
|
|
- [ ] Guard `OnBarUpdate` by `BarsInProgress` and bar readiness.
|
|
- [ ] Do not use unsupported attributes/types/enums without confirmation.
|
|
|
|
## Verification Gates
|
|
- [ ] Run `.\verify-build.bat` after changes.
|
|
- [ ] Run focused tests for changed area.
|
|
- [ ] If NinjaScript touched, compile in NT8 NinjaScript Editor.
|
|
|
|
## Update Rule
|
|
- [ ] Add a new guardrail entry whenever a compile issue reveals a missing prevention rule.
|