@solaqua/ghosts 0.4.9 → 0.4.10
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.
|
@@ -19,6 +19,7 @@ AI-generated changes can overcomplicate simple problems; question whether added
|
|
|
19
19
|
- Any design or API issues when viewed from the intended caller's perspective and from outside-in, deep-module, and dependency-direction perspectives, including whether the module hides state, lifecycle, and ordering details, or exposes internal collaboration methods as public API; also consider hidden obligations, awkward call sites, leaky abstractions, or circular dependencies?
|
|
20
20
|
- Any unnecessary variables, intermediate state, interfaces, or abstractions that can be omitted? Could standard features, existing code reuse, a different design, or clearer naming solve the problem more simply?
|
|
21
21
|
- Any test smells or test-suite bloat—such as brittle or implementation-coupled tests, tautological tests that repeat the implementation or assert only mock setup, tests that only recheck documented dependency guarantees, over-mocking, conditional tests that bypass required assertions or choose expectations from actual results, unclear intent, missing negative-path coverage, surviving mutants, or redundant, overlapping, or low-signal tests whose maintenance, execution, and review costs outweigh the independent behavioral confidence they add? Any one-off checks retained as permanent regression tests, or hypothetical concurrency/timing tests without a credible execution path or meaningful failure impact? Could removal or consolidation preserve meaningful behavior, edge-case, and risk coverage? Any behavior already protected by existing tests beyond the diff, including through public entrypoints, judged by comparing scenarios and assertions rather than names alone? Could an existing case or suite be extended instead of adding a separate test, while preserving distinct behavior or regression coverage?
|
|
22
|
+
Do not request or retain tests that only recheck declared configuration or documented dependency behavior (for example, FastAPI/Pydantic's default 422 for an invalid field). Require a credible application-specific regression and an observable outcome.
|
|
22
23
|
Report findings with locations, evidence, and the smallest useful fix. Say when no actionable issue is found.
|
|
23
24
|
```
|
|
24
25
|
|
|
@@ -9,6 +9,7 @@ Review the tests read-only. Use the user's target or the change being discussed;
|
|
|
9
9
|
AI-generated tests can overcomplicate simple problems. First question whether a test is needed at all; judge its independent protection against maintenance and execution cost, not test count or coverage percentage.
|
|
10
10
|
|
|
11
11
|
- Any low-value, duplicate, implementation-shaped, tautological, obsolete, or one-off tests—including those that only recheck documented dependency guarantees—that can be removed or combined? Any hypothetical concurrency, timing, retry, or failure scenarios without a credible execution path or meaningful impact?
|
|
12
|
+
- Do not request or retain tests that only recheck declared configuration or documented dependency behavior (for example, FastAPI/Pydantic's default 422 for an invalid field). Require a credible application-specific regression and an observable outcome.
|
|
12
13
|
- Any behavior already protected by existing tests beyond the diff, including through public entrypoints? Search and compare scenarios and assertions, not names alone; cite the tests and assertions that retain protection when recommending removal or consolidation. Do not preserve incidental test behavior merely because it exists.
|
|
13
14
|
- Any important behavior, edge case, or material failure risk left unprotected by existing or new tests? Would the tests fail if that behavior broke, including when conditional branches bypass required assertions or choose expectations from actual results? Could an existing case or suite be extended to cover the gap clearly? Recommend a separate test only when it gives clearer protection for a distinct behavior or regression risk.
|
|
14
15
|
- Any unnecessary setup, mocks, fixtures, assertions, or production interfaces added for testing? Could existing public entrypoints, real collaboration, or simpler cases give clearer protection? Keep narrower tests only when they add distinct value.
|