@fitsummehari/mergeguard 0.1.0

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.
@@ -0,0 +1,29 @@
1
+ export const verificationQuestions = {
2
+ plausible: {
3
+ type: "noul",
4
+ instructions: "Is the candidate issue technically supported by the supplied code and repository evidence?",
5
+ criteria: { true: "The described failure mechanism is coherent and supported", false: "The detector is incidental, contradicted, or lacks necessary evidence" },
6
+ },
7
+ reachable: {
8
+ type: "noul",
9
+ instructions: "Can the problematic state realistically occur in production or a credible edge case?",
10
+ criteria: { true: "A realistic input, state, deployment, or concurrency scenario can reach it", false: "The state is effectively impossible from the visible context" },
11
+ },
12
+ severe: {
13
+ type: "score",
14
+ instructions: "How significant is the practical impact if this issue occurs?",
15
+ criteria: ["negligible", "low", "moderate", "high", "critical"],
16
+ },
17
+ protected: {
18
+ type: "noul",
19
+ instructions: "Does the visible repository context contain a concrete protection that neutralizes this issue?",
20
+ criteria: { true: "A transaction, lock, uniqueness constraint, authorization rule, validation, escaping, idempotency mechanism, bound, or equivalent protection neutralizes it", false: "No adequate neutralizing protection is visible" },
21
+ },
22
+ report: {
23
+ type: "noul",
24
+ instructions: "Should a careful professional code reviewer surface this finding, balancing usefulness against false-positive noise?",
25
+ criteria: { true: "The issue is actionable and worth interrupting the author", false: "It is too speculative, cosmetic, or already neutralized" },
26
+ },
27
+ };
28
+
29
+ export const IMPACT_LABELS = { negligible: 0.05, low: 0.25, moderate: 0.5, high: 0.78, critical: 1 };
package/src/version.js ADDED
@@ -0,0 +1 @@
1
+ export const VERSION = "0.1.0";