You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Manifest Development Guidelines
2
2
3
-
Last updated: 2026-03-02
3
+
Last updated: 2026-03-05
4
4
5
5
## IMPORTANT: Local Mode First
6
6
@@ -429,11 +429,21 @@ Codecov runs on every PR via the `codecov/patch` and `codecov/project` checks. C
429
429
### Thresholds
430
430
431
431
-**Project coverage** (`codecov/project`): Must not drop more than **1%** below the base branch (`target: auto`, `threshold: 1%`).
432
-
-**Patch coverage** (`codecov/patch`): New/changed lines must have at least **auto - 5%** coverage (`target: auto`, `threshold: 5%`). In practice, aim for **>90%** patch coverage.
432
+
-**Patch coverage** (`codecov/patch`): New/changed lines must have at least **auto - 5%** coverage (`target: auto`, `threshold: 5%`).
433
433
434
-
### CRITICAL: Write Tests for New Code
434
+
### CRITICAL: 100% Line Coverage Required
435
435
436
-
**Every new source file or modified function must have corresponding tests.** Codecov will fail the PR if changed lines are not covered. This applies to:
436
+
**Every PR must maintain 100% line coverage across all three packages.** The codebase currently has full line coverage and every PR must preserve it. This means:
437
+
438
+
- All new source files must have corresponding tests with 100% line coverage
439
+
- All modified functions must have tests covering every line, including error paths
440
+
-**Patch coverage must be 100%** — no new uncovered lines allowed
441
+
- Run coverage locally before creating a PR:
442
+
-`cd packages/backend && npx jest --coverage`
443
+
-`cd packages/frontend && npx vitest run --coverage`
444
+
-`cd packages/openclaw-plugin && npx jest --coverage`
445
+
446
+
This applies to:
437
447
438
448
- New services, guards, controllers, or utilities in `packages/backend/src/`
439
449
- New components or functions in `packages/frontend/src/`
0 commit comments