@solaqua/ghosts 0.4.8 → 0.4.9

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.
@@ -18,7 +18,7 @@ AI-generated changes can overcomplicate simple problems; question whether added
18
18
  - Any downstream contract breaks beyond the diff: callers, persisted data, wire formats, cross-language consumers, feature flags, or lifecycle ordering? Trace concrete failure paths, including transitive dependencies; check pinned dependency versions and local patches where behavior depends on them.
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
- - 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, 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?
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
22
  Report findings with locations, evidence, and the smallest useful fix. Say when no actionable issue is found.
23
23
  ```
24
24
 
@@ -11,7 +11,7 @@ Design outside-in from caller usage and domain invariants. Repeated workarounds
11
11
  - Order functions so each callee appears below its caller.
12
12
  - Write tests as behavioral specifications: each test docstring or doc comment must stand alone, describe the scenario and observable outcome, and avoid relying on surrounding context, implementation details, or comparative wording. Keep names concise and behavior-based (JS/TS `it(...)` / `test(...)` descriptions suffice), and use `Given` / `When` / `Then` sections in the body.
13
13
  - When complex setup, concurrency, timing, or multi-step control flow makes a test hard to follow, add concise comments at key transitions to explain the scenario and synchronization; do not narrate obvious code.
14
- - Avoid low-value, brittle, implementation-coupled, or over-mocked tests—including tests that merely restate literals, constants, or configuration wiring; prefer outside-in integration tests through public interfaces, and add tests only when they specify meaningful externally observable behavior or guard against a substantive regression.
14
+ - Avoid low-value, brittle, implementation-coupled, over-mocked tests, or conditional tests that bypass required assertions or choose expectations from actual results—including tests that merely restate literals, constants, or configuration wiring; prefer outside-in integration tests through public interfaces, and add tests only when they specify meaningful externally observable behavior or guard against a substantive regression.
15
15
  - Treat test-suite growth as a cost: search relevant existing tests before adding coverage, and extend an existing case or suite when it can cover the behavior clearly. Avoid redundant or low-signal tests whose behavior is already meaningfully covered elsewhere, including tests that only recheck documented dependency guarantees, unless they add independent behavioral confidence or protect a distinct regression risk.
16
16
  - Do not expose private members solely for testing.
17
17
  - Keep tests focused on current, externally observable behavior: do not add temporary tests solely for intermediate layers when a planned integration test better specifies the behavior, or regression tests for intentionally removed code paths; add tests only when omitting them leaves an immediate regression or safety gap, and update or remove obsolete tests instead.
@@ -10,7 +10,7 @@ AI-generated tests can overcomplicate simple problems. First question whether a
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
12
  - 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
- - Any important behavior, edge case, or material failure risk left unprotected by existing or new tests? Would the tests fail if that behavior broke? 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.
13
+ - 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
14
  - 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.
15
15
 
16
16
  Apply these criteria where relevant:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solaqua/ghosts",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Reusable agent skills and reviewers.",
5
5
  "license": "MIT",
6
6
  "repository": {