@solaqua/ghosts 0.4.17 → 0.4.19

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.
@@ -21,6 +21,7 @@ AI-generated changes can overcomplicate simple problems; question whether added
21
21
  - 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?
22
22
  - 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?
23
23
  - 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?
24
+ Flag every `if` statement or conditional expression in test code, including setup, helpers, and assertions. Require separate cases or parameterization with inputs and expected outcomes defined before execution instead of branching.
24
25
  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.
25
26
  Report findings with locations, evidence, and the smallest useful fix. Say when no actionable issue is found.
26
27
  ```
@@ -9,7 +9,9 @@ Design outside-in from caller usage and domain invariants. Repeated workarounds
9
9
 
10
10
  - Before writing, briefly inspect existing code with a similar role in the repository and follow its conventions where applicable.
11
11
  - Order functions so each callee appears below its caller.
12
+ - Write function and method docstring and TSDoc summaries as concise statements of purpose in domain terms. Describe what the function accomplishes without narrating internal steps or enumerating permissions, side effects, and error handling. Add contract details separately only when callers need them to use the function correctly. Prefer one sentence; expand only when necessary.
12
13
  - 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.
14
+ - Never use `if` statements or conditional expressions in test code, including setup, helpers, and assertions. Define each case's inputs and expected outcomes before execution; use separate cases or parameterization instead of branching.
13
15
  - 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
16
  - 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
17
  - 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.
@@ -15,6 +15,7 @@ Review the artifact or change read-only:
15
15
  AI-generated work can overcomplicate simple problems and overfill documents and interfaces. Look for omissions, combinations, or simpler designs that reduce the intended audience's burden while preserving the artifact's purpose. Do not force every artifact through every checklist or invent findings to justify a cleanup.
16
16
 
17
17
  For code:
18
+ - Any function or method docstring or TSDoc summaries that narrate internal steps or enumerate permissions, side effects, and error handling instead of stating the function's purpose in domain terms? Reduce these to a concise statement of what the function accomplishes, usually one sentence. Preserve contract details separately only when callers need them to use the function correctly.
18
19
  - Any low-value, duplicate, implementation-shaped, or one-off tests—including those that only recheck documented dependency guarantees—that can be removed or combined without losing meaningful behavior, edge-case, or risk coverage? Any tests for hypothetical concurrency or timing risks without a credible execution path or meaningful failure impact?
19
20
  - 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. Could an existing case or suite be extended instead of adding a separate test, while preserving distinct behavior or regression coverage?
20
21
  - Any unnecessary variables or intermediate state that can be omitted, inlined, or reused without obscuring intent?
@@ -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
+ - Flag every `if` statement or conditional expression in test code, including setup, helpers, and assertions. Require separate cases or parameterization with inputs and expected outcomes defined before execution instead of branching.
12
13
  - 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.
13
14
  - 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.
14
15
  - 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solaqua/ghosts",
3
- "version": "0.4.17",
3
+ "version": "0.4.19",
4
4
  "description": "Reusable agent skills and reviewers.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "target": "skills",
36
36
  "name": "orca-cli",
37
37
  "source": "stablyai/orca",
38
- "ref": "17828c78f1b5e524e9b6a935cf8d434b703b195a"
38
+ "ref": "81ec82b3651703f6ab3ba1a74b729453919e69e5"
39
39
  },
40
40
  {
41
41
  "target": "skills",