@company-semantics/contracts 0.11.0 → 0.12.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,6 +45,10 @@
45
45
  "rule": {
46
46
  "type": "string",
47
47
  "description": "Rule identifier that triggered this message (e.g., 'file-size', 'readme')"
48
+ },
49
+ "promotesWhen": {
50
+ "type": "string",
51
+ "description": "Condition that would promote this warning to an error. Enables deliberate severity evolution."
48
52
  }
49
53
  }
50
54
  },
@@ -29,6 +29,12 @@ export interface GuardMessage {
29
29
  line?: number;
30
30
  /** Rule identifier that triggered this message (e.g., 'file-size', 'readme') */
31
31
  rule?: string;
32
+ /**
33
+ * Condition that would promote this warning to an error.
34
+ * Enables deliberate severity evolution and prevents warning creep.
35
+ * For drift guards: 'Never (drift guard — advisory only)'
36
+ */
37
+ promotesWhen?: string;
32
38
  }
33
39
 
34
40
  // =============================================================================