@codyswann/lisa 5.14.1 → 5.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.js +2 -2
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa/rules/reference/coding-philosophy.md +20 -0
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa-copilot/rules/reference/coding-philosophy.md +20 -0
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/rules/coding-philosophy-reference.mdc +20 -0
- package/plugins/lisa-cursor/rules/coding-philosophy.mdc +1 -0
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa-devin/rules/reference/coding-philosophy.md +20 -0
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/rules/eager/coding-philosophy.md +1 -0
- package/plugins/src/base/rules/reference/coding-philosophy.md +20 -0
|
@@ -41,9 +41,9 @@ export const NIGHTLY_E2E_GUARD_BEHAVIOR_CERTIFICATES = Object.freeze({
|
|
|
41
41
|
}),
|
|
42
42
|
d1b26caeaf65950e3b60ff41964d234c032c50470072e7643310b1f6722e34e6: Object.freeze({
|
|
43
43
|
contractVersion: "1.9.0",
|
|
44
|
-
packageVersions: Object.freeze(["5.14.
|
|
44
|
+
packageVersions: Object.freeze(["5.14.2"]),
|
|
45
45
|
provenances: Object.freeze([
|
|
46
|
-
"workspace package @codyswann/lisa@5.14.
|
|
46
|
+
"workspace package @codyswann/lisa@5.14.2 (typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs)",
|
|
47
47
|
]),
|
|
48
48
|
}),
|
|
49
49
|
dfd2fef680de5ef03e63075e8a61c62ca4d95cdfdff6201939b79c748d3397f6: Object.freeze({
|
|
@@ -587,7 +587,7 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
|
|
|
587
587
|
"plugins/src/base/hooks/worktree-binding-guard.sh": "9ff49d44190075b773670e6bd038cb7cac1048a5680d37570b0e7397ed20253c",
|
|
588
588
|
"plugins/src/base/rules/eager/00-rule-index.md": "95e8935ea0f7edbbcd0b626d67a252e01543073d4db0f006356edacf6fd7873f",
|
|
589
589
|
"plugins/src/base/rules/eager/base-rules.md": "816cd63221dfbe664d371877d203153877d9e3423fd32dda0a41790d893a3082",
|
|
590
|
-
"plugins/src/base/rules/eager/coding-philosophy.md": "
|
|
590
|
+
"plugins/src/base/rules/eager/coding-philosophy.md": "77037a08ce174db2150897bb7675d3df016df95752ac8291596dee362427cd2b",
|
|
591
591
|
"plugins/src/base/rules/eager/communication.md": "bc192f299fbe76f27d60aca38d461b2eec3412737e49b1e400fde8399116b389",
|
|
592
592
|
"plugins/src/base/rules/eager/config-resolution.md": "210cf9b5bfc2a4134ab62727c1c3e5b8abfc3726ef831a08587683b601a39198",
|
|
593
593
|
"plugins/src/base/rules/eager/empirical-inquiry.md": "a60fdd251ccd5338300789ca21365b70658c6ee467073dc71bc9411b669dae34",
|
|
@@ -608,7 +608,7 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
|
|
|
608
608
|
"plugins/src/base/rules/reference/claim-archaeology.md": "354204d02a2d0616747c9f46da34cf303fe9dce6b56cc10251f867fdefd62436",
|
|
609
609
|
"plugins/src/base/rules/reference/claim-evidence-mapping.md": "5771d3785d72c296854d596227aca42ea9809e15f04ca1b744d95978524bc503",
|
|
610
610
|
"plugins/src/base/rules/reference/claim-time-guards.md": "a50664632190c94a68df74cf8e1893552e1507f0162e3dc497615a8360b40007",
|
|
611
|
-
"plugins/src/base/rules/reference/coding-philosophy.md": "
|
|
611
|
+
"plugins/src/base/rules/reference/coding-philosophy.md": "30bd85c82b319aa9ba29761d08c029d10d7a0ba0a8b8db0044af6fab9dec7925",
|
|
612
612
|
"plugins/src/base/rules/reference/communication.md": "c9873d1b4564eb3cf86a350224158fe8d1c4da6a7a0644bcf4bfd200206bc174",
|
|
613
613
|
"plugins/src/base/rules/reference/completion-authorization.md": "75646f8f5b1c5aedf750e37ed3b5a1f09f6fd85932037c85ac1e8930b67100b1",
|
|
614
614
|
"plugins/src/base/rules/reference/config-resolution.md": "eb9e9d4987d415e1524a875cd9e89b14cb59ccd25d17b6dfb7711d927766b3c0",
|
package/package.json
CHANGED
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"qs": "^6.16.0"
|
|
189
189
|
},
|
|
190
190
|
"name": "@codyswann/lisa",
|
|
191
|
-
"version": "5.14.
|
|
191
|
+
"version": "5.14.2",
|
|
192
192
|
"description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
|
|
193
193
|
"main": "dist/index.js",
|
|
194
194
|
"exports": {
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
"test": "tests"
|
|
352
352
|
},
|
|
353
353
|
"types": "./dist/index.d.ts",
|
|
354
|
-
"lisaReleaseCommit": "
|
|
355
|
-
"gitHead": "
|
|
356
|
-
"lisaReleaseTag": "v5.14.
|
|
354
|
+
"lisaReleaseCommit": "652cad0f540958efa23c3a8d10609a8e72020625",
|
|
355
|
+
"gitHead": "652cad0f540958efa23c3a8d10609a8e72020625",
|
|
356
|
+
"lisaReleaseTag": "v5.14.2"
|
|
357
357
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
- **Immutability.** Create new values instead of mutating, and prefer `map`/`filter`/`reduce`. On a hot path where a stack rule forbids allocation, such as a game's `update()`, the stack rule wins.
|
|
6
6
|
- **TDD for behavior changes.** Write the failing test first, make it pass, then refactor. Learn real behavior by running code before you write expectations.
|
|
7
7
|
- **Delete replaced code completely**, with no `V2` copies or compatibility shims. Framework migrations, such as Rails migrations, are ordinary code. Simplify your diff before you finish.
|
|
8
|
+
- **No technical debt.** Fix failures in the change that surfaces them. Never add quarantine, baseline or exemption lists, silence a check, or defer part of the job as "follow-up". Split a large backlog across parallel changes; the check still turns on strict.
|
|
8
9
|
- **Comments preserve intent.** Explain why, not what: the requirement behind a non-obvious choice, the rejected alternative, the invariant a change must respect, and what breaks if someone simplifies it. Keep comments true when code changes, and do not invent a rationale. If you do not know why code exists, find out (`history-audit`). This overrides any default to match the surrounding comment density, because future agents keep no memory of today.
|
|
9
10
|
|
|
10
11
|
Examples, documentation guidelines, and anti-patterns: [reference/coding-philosophy.md](../reference/coding-philosophy.md).
|
|
@@ -129,6 +129,26 @@ const getPlayerScore = (player: Player): number => calculateScore(player);
|
|
|
129
129
|
- Never write migration code unless explicitly asked
|
|
130
130
|
- Trust git history for recovery if needed
|
|
131
131
|
|
|
132
|
+
### 6. No Technical Debt
|
|
133
|
+
|
|
134
|
+
**Fix failures in the change that surfaces them.** Turning on a lint rule, type check, coverage floor or any other check often reveals failures that already exist. Fix them. Do not exempt them.
|
|
135
|
+
|
|
136
|
+
An exemption list only grows. Once a quarantine file exists, every hard case gets added to it rather than fixed, and nobody remembers why each entry is there. It hides exactly the failures the check exists to catch, so the check reports green while the code it covers drifts. One repository's test type-check quarantine grew to 311 files hiding 1,403 errors before anyone looked.
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
Wrong: turn the check on and record today's failures as allowed
|
|
140
|
+
typecheck-quarantine.json -> ["tests/a.test.ts", "tests/b.test.ts", ...]
|
|
141
|
+
|
|
142
|
+
Right: fix every failure, then turn the check on with nothing exempted
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
**No-technical-debt rules:**
|
|
146
|
+
- Never add quarantine, baseline, exemption, grandfather or "known failures" lists that let existing failures pass a check
|
|
147
|
+
- Never silence a check: no `@ts-ignore`, `eslint-disable`, `any`, loosened compiler or linter config, lowered coverage thresholds, or skipped tests to get green
|
|
148
|
+
- Never defer part of the requested job as "follow-up" or "known gap". Finish it, or say plainly that it is not done and why
|
|
149
|
+
- If the backlog is too large for one change, split the fix into parallel changes and land them together. The check still turns on strict, with nothing exempted
|
|
150
|
+
- An existing exemption list is debt to pay off: fix its entries and delete the list and the code that reads it
|
|
151
|
+
|
|
132
152
|
---
|
|
133
153
|
|
|
134
154
|
## Quick Reference
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
- **Immutability.** Create new values instead of mutating, and prefer `map`/`filter`/`reduce`. On a hot path where a stack rule forbids allocation, such as a game's `update()`, the stack rule wins.
|
|
6
6
|
- **TDD for behavior changes.** Write the failing test first, make it pass, then refactor. Learn real behavior by running code before you write expectations.
|
|
7
7
|
- **Delete replaced code completely**, with no `V2` copies or compatibility shims. Framework migrations, such as Rails migrations, are ordinary code. Simplify your diff before you finish.
|
|
8
|
+
- **No technical debt.** Fix failures in the change that surfaces them. Never add quarantine, baseline or exemption lists, silence a check, or defer part of the job as "follow-up". Split a large backlog across parallel changes; the check still turns on strict.
|
|
8
9
|
- **Comments preserve intent.** Explain why, not what: the requirement behind a non-obvious choice, the rejected alternative, the invariant a change must respect, and what breaks if someone simplifies it. Keep comments true when code changes, and do not invent a rationale. If you do not know why code exists, find out (`history-audit`). This overrides any default to match the surrounding comment density, because future agents keep no memory of today.
|
|
9
10
|
|
|
10
11
|
Examples, documentation guidelines, and anti-patterns: [reference/coding-philosophy.md](../reference/coding-philosophy.md).
|
|
@@ -129,6 +129,26 @@ const getPlayerScore = (player: Player): number => calculateScore(player);
|
|
|
129
129
|
- Never write migration code unless explicitly asked
|
|
130
130
|
- Trust git history for recovery if needed
|
|
131
131
|
|
|
132
|
+
### 6. No Technical Debt
|
|
133
|
+
|
|
134
|
+
**Fix failures in the change that surfaces them.** Turning on a lint rule, type check, coverage floor or any other check often reveals failures that already exist. Fix them. Do not exempt them.
|
|
135
|
+
|
|
136
|
+
An exemption list only grows. Once a quarantine file exists, every hard case gets added to it rather than fixed, and nobody remembers why each entry is there. It hides exactly the failures the check exists to catch, so the check reports green while the code it covers drifts. One repository's test type-check quarantine grew to 311 files hiding 1,403 errors before anyone looked.
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
Wrong: turn the check on and record today's failures as allowed
|
|
140
|
+
typecheck-quarantine.json -> ["tests/a.test.ts", "tests/b.test.ts", ...]
|
|
141
|
+
|
|
142
|
+
Right: fix every failure, then turn the check on with nothing exempted
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
**No-technical-debt rules:**
|
|
146
|
+
- Never add quarantine, baseline, exemption, grandfather or "known failures" lists that let existing failures pass a check
|
|
147
|
+
- Never silence a check: no `@ts-ignore`, `eslint-disable`, `any`, loosened compiler or linter config, lowered coverage thresholds, or skipped tests to get green
|
|
148
|
+
- Never defer part of the requested job as "follow-up" or "known gap". Finish it, or say plainly that it is not done and why
|
|
149
|
+
- If the backlog is too large for one change, split the fix into parallel changes and land them together. The check still turns on strict, with nothing exempted
|
|
150
|
+
- An existing exemption list is debt to pay off: fix its entries and delete the list and the code that reads it
|
|
151
|
+
|
|
132
152
|
---
|
|
133
153
|
|
|
134
154
|
## Quick Reference
|
|
@@ -134,6 +134,26 @@ const getPlayerScore = (player: Player): number => calculateScore(player);
|
|
|
134
134
|
- Never write migration code unless explicitly asked
|
|
135
135
|
- Trust git history for recovery if needed
|
|
136
136
|
|
|
137
|
+
### 6. No Technical Debt
|
|
138
|
+
|
|
139
|
+
**Fix failures in the change that surfaces them.** Turning on a lint rule, type check, coverage floor or any other check often reveals failures that already exist. Fix them. Do not exempt them.
|
|
140
|
+
|
|
141
|
+
An exemption list only grows. Once a quarantine file exists, every hard case gets added to it rather than fixed, and nobody remembers why each entry is there. It hides exactly the failures the check exists to catch, so the check reports green while the code it covers drifts. One repository's test type-check quarantine grew to 311 files hiding 1,403 errors before anyone looked.
|
|
142
|
+
|
|
143
|
+
```text
|
|
144
|
+
Wrong: turn the check on and record today's failures as allowed
|
|
145
|
+
typecheck-quarantine.json -> ["tests/a.test.ts", "tests/b.test.ts", ...]
|
|
146
|
+
|
|
147
|
+
Right: fix every failure, then turn the check on with nothing exempted
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**No-technical-debt rules:**
|
|
151
|
+
- Never add quarantine, baseline, exemption, grandfather or "known failures" lists that let existing failures pass a check
|
|
152
|
+
- Never silence a check: no `@ts-ignore`, `eslint-disable`, `any`, loosened compiler or linter config, lowered coverage thresholds, or skipped tests to get green
|
|
153
|
+
- Never defer part of the requested job as "follow-up" or "known gap". Finish it, or say plainly that it is not done and why
|
|
154
|
+
- If the backlog is too large for one change, split the fix into parallel changes and land them together. The check still turns on strict, with nothing exempted
|
|
155
|
+
- An existing exemption list is debt to pay off: fix its entries and delete the list and the code that reads it
|
|
156
|
+
|
|
137
157
|
---
|
|
138
158
|
|
|
139
159
|
## Quick Reference
|
|
@@ -10,6 +10,7 @@ alwaysApply: true
|
|
|
10
10
|
- **Immutability.** Create new values instead of mutating, and prefer `map`/`filter`/`reduce`. On a hot path where a stack rule forbids allocation, such as a game's `update()`, the stack rule wins.
|
|
11
11
|
- **TDD for behavior changes.** Write the failing test first, make it pass, then refactor. Learn real behavior by running code before you write expectations.
|
|
12
12
|
- **Delete replaced code completely**, with no `V2` copies or compatibility shims. Framework migrations, such as Rails migrations, are ordinary code. Simplify your diff before you finish.
|
|
13
|
+
- **No technical debt.** Fix failures in the change that surfaces them. Never add quarantine, baseline or exemption lists, silence a check, or defer part of the job as "follow-up". Split a large backlog across parallel changes; the check still turns on strict.
|
|
13
14
|
- **Comments preserve intent.** Explain why, not what: the requirement behind a non-obvious choice, the rejected alternative, the invariant a change must respect, and what breaks if someone simplifies it. Keep comments true when code changes, and do not invent a rationale. If you do not know why code exists, find out (`history-audit`). This overrides any default to match the surrounding comment density, because future agents keep no memory of today.
|
|
14
15
|
|
|
15
16
|
Examples, documentation guidelines, and anti-patterns: [reference/coding-philosophy.md](coding-philosophy-reference.mdc).
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
- **Immutability.** Create new values instead of mutating, and prefer `map`/`filter`/`reduce`. On a hot path where a stack rule forbids allocation, such as a game's `update()`, the stack rule wins.
|
|
6
6
|
- **TDD for behavior changes.** Write the failing test first, make it pass, then refactor. Learn real behavior by running code before you write expectations.
|
|
7
7
|
- **Delete replaced code completely**, with no `V2` copies or compatibility shims. Framework migrations, such as Rails migrations, are ordinary code. Simplify your diff before you finish.
|
|
8
|
+
- **No technical debt.** Fix failures in the change that surfaces them. Never add quarantine, baseline or exemption lists, silence a check, or defer part of the job as "follow-up". Split a large backlog across parallel changes; the check still turns on strict.
|
|
8
9
|
- **Comments preserve intent.** Explain why, not what: the requirement behind a non-obvious choice, the rejected alternative, the invariant a change must respect, and what breaks if someone simplifies it. Keep comments true when code changes, and do not invent a rationale. If you do not know why code exists, find out (`history-audit`). This overrides any default to match the surrounding comment density, because future agents keep no memory of today.
|
|
9
10
|
|
|
10
11
|
Examples, documentation guidelines, and anti-patterns: [reference/coding-philosophy.md](../reference/coding-philosophy.md).
|
|
@@ -129,6 +129,26 @@ const getPlayerScore = (player: Player): number => calculateScore(player);
|
|
|
129
129
|
- Never write migration code unless explicitly asked
|
|
130
130
|
- Trust git history for recovery if needed
|
|
131
131
|
|
|
132
|
+
### 6. No Technical Debt
|
|
133
|
+
|
|
134
|
+
**Fix failures in the change that surfaces them.** Turning on a lint rule, type check, coverage floor or any other check often reveals failures that already exist. Fix them. Do not exempt them.
|
|
135
|
+
|
|
136
|
+
An exemption list only grows. Once a quarantine file exists, every hard case gets added to it rather than fixed, and nobody remembers why each entry is there. It hides exactly the failures the check exists to catch, so the check reports green while the code it covers drifts. One repository's test type-check quarantine grew to 311 files hiding 1,403 errors before anyone looked.
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
Wrong: turn the check on and record today's failures as allowed
|
|
140
|
+
typecheck-quarantine.json -> ["tests/a.test.ts", "tests/b.test.ts", ...]
|
|
141
|
+
|
|
142
|
+
Right: fix every failure, then turn the check on with nothing exempted
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
**No-technical-debt rules:**
|
|
146
|
+
- Never add quarantine, baseline, exemption, grandfather or "known failures" lists that let existing failures pass a check
|
|
147
|
+
- Never silence a check: no `@ts-ignore`, `eslint-disable`, `any`, loosened compiler or linter config, lowered coverage thresholds, or skipped tests to get green
|
|
148
|
+
- Never defer part of the requested job as "follow-up" or "known gap". Finish it, or say plainly that it is not done and why
|
|
149
|
+
- If the backlog is too large for one change, split the fix into parallel changes and land them together. The check still turns on strict, with nothing exempted
|
|
150
|
+
- An existing exemption list is debt to pay off: fix its entries and delete the list and the code that reads it
|
|
151
|
+
|
|
132
152
|
---
|
|
133
153
|
|
|
134
154
|
## Quick Reference
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
- **Immutability.** Create new values instead of mutating, and prefer `map`/`filter`/`reduce`. On a hot path where a stack rule forbids allocation, such as a game's `update()`, the stack rule wins.
|
|
6
6
|
- **TDD for behavior changes.** Write the failing test first, make it pass, then refactor. Learn real behavior by running code before you write expectations.
|
|
7
7
|
- **Delete replaced code completely**, with no `V2` copies or compatibility shims. Framework migrations, such as Rails migrations, are ordinary code. Simplify your diff before you finish.
|
|
8
|
+
- **No technical debt.** Fix failures in the change that surfaces them. Never add quarantine, baseline or exemption lists, silence a check, or defer part of the job as "follow-up". Split a large backlog across parallel changes; the check still turns on strict.
|
|
8
9
|
- **Comments preserve intent.** Explain why, not what: the requirement behind a non-obvious choice, the rejected alternative, the invariant a change must respect, and what breaks if someone simplifies it. Keep comments true when code changes, and do not invent a rationale. If you do not know why code exists, find out (`history-audit`). This overrides any default to match the surrounding comment density, because future agents keep no memory of today.
|
|
9
10
|
|
|
10
11
|
Examples, documentation guidelines, and anti-patterns: [reference/coding-philosophy.md](../reference/coding-philosophy.md).
|
|
@@ -129,6 +129,26 @@ const getPlayerScore = (player: Player): number => calculateScore(player);
|
|
|
129
129
|
- Never write migration code unless explicitly asked
|
|
130
130
|
- Trust git history for recovery if needed
|
|
131
131
|
|
|
132
|
+
### 6. No Technical Debt
|
|
133
|
+
|
|
134
|
+
**Fix failures in the change that surfaces them.** Turning on a lint rule, type check, coverage floor or any other check often reveals failures that already exist. Fix them. Do not exempt them.
|
|
135
|
+
|
|
136
|
+
An exemption list only grows. Once a quarantine file exists, every hard case gets added to it rather than fixed, and nobody remembers why each entry is there. It hides exactly the failures the check exists to catch, so the check reports green while the code it covers drifts. One repository's test type-check quarantine grew to 311 files hiding 1,403 errors before anyone looked.
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
Wrong: turn the check on and record today's failures as allowed
|
|
140
|
+
typecheck-quarantine.json -> ["tests/a.test.ts", "tests/b.test.ts", ...]
|
|
141
|
+
|
|
142
|
+
Right: fix every failure, then turn the check on with nothing exempted
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
**No-technical-debt rules:**
|
|
146
|
+
- Never add quarantine, baseline, exemption, grandfather or "known failures" lists that let existing failures pass a check
|
|
147
|
+
- Never silence a check: no `@ts-ignore`, `eslint-disable`, `any`, loosened compiler or linter config, lowered coverage thresholds, or skipped tests to get green
|
|
148
|
+
- Never defer part of the requested job as "follow-up" or "known gap". Finish it, or say plainly that it is not done and why
|
|
149
|
+
- If the backlog is too large for one change, split the fix into parallel changes and land them together. The check still turns on strict, with nothing exempted
|
|
150
|
+
- An existing exemption list is debt to pay off: fix its entries and delete the list and the code that reads it
|
|
151
|
+
|
|
132
152
|
---
|
|
133
153
|
|
|
134
154
|
## Quick Reference
|