ripp-cli 1.0.1 → 1.2.1

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,109 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://dylan-natter.github.io/ripp-protocol/schema/intent-candidates.schema.json",
4
+ "title": "RIPP Intent Candidates Schema",
5
+ "description": "Schema for AI-inferred candidate intent requiring human confirmation",
6
+ "type": "object",
7
+ "required": ["version", "created", "candidates"],
8
+ "properties": {
9
+ "version": {
10
+ "type": "string",
11
+ "const": "1.0",
12
+ "description": "Intent candidates schema version"
13
+ },
14
+ "created": {
15
+ "type": "string",
16
+ "format": "date-time",
17
+ "description": "ISO 8601 timestamp of generation"
18
+ },
19
+ "generatedBy": {
20
+ "type": "object",
21
+ "properties": {
22
+ "provider": {
23
+ "type": "string",
24
+ "description": "AI provider used"
25
+ },
26
+ "model": {
27
+ "type": "string",
28
+ "description": "Model identifier"
29
+ },
30
+ "evidencePackHash": {
31
+ "type": "string",
32
+ "description": "Hash of evidence pack used"
33
+ }
34
+ }
35
+ },
36
+ "candidates": {
37
+ "type": "array",
38
+ "items": {
39
+ "type": "object",
40
+ "required": ["source", "confidence", "evidence", "requires_human_confirmation"],
41
+ "properties": {
42
+ "section": {
43
+ "type": "string",
44
+ "enum": [
45
+ "purpose",
46
+ "ux_flow",
47
+ "data_contracts",
48
+ "api_contracts",
49
+ "permissions",
50
+ "failure_modes",
51
+ "audit_events",
52
+ "nfrs",
53
+ "acceptance_tests"
54
+ ],
55
+ "description": "RIPP section this candidate belongs to"
56
+ },
57
+ "source": {
58
+ "type": "string",
59
+ "const": "inferred",
60
+ "description": "Must always be 'inferred' for candidates"
61
+ },
62
+ "confidence": {
63
+ "type": "number",
64
+ "minimum": 0,
65
+ "maximum": 1,
66
+ "description": "Confidence score (0.0 to 1.0)"
67
+ },
68
+ "evidence": {
69
+ "type": "array",
70
+ "items": {
71
+ "type": "object",
72
+ "required": ["file", "line"],
73
+ "properties": {
74
+ "file": {
75
+ "type": "string",
76
+ "description": "Source file path"
77
+ },
78
+ "line": {
79
+ "type": "integer",
80
+ "minimum": 1,
81
+ "description": "Line number (or start line)"
82
+ },
83
+ "endLine": {
84
+ "type": "integer",
85
+ "minimum": 1,
86
+ "description": "End line (for multi-line snippets)"
87
+ },
88
+ "snippet": {
89
+ "type": "string",
90
+ "description": "Relevant code snippet"
91
+ }
92
+ }
93
+ },
94
+ "minItems": 1,
95
+ "description": "Evidence references supporting this inference"
96
+ },
97
+ "requires_human_confirmation": {
98
+ "type": "boolean",
99
+ "const": true,
100
+ "description": "Must always be true for candidates"
101
+ },
102
+ "content": {
103
+ "description": "The inferred content (structure depends on section)"
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://dylan-natter.github.io/ripp-protocol/schema/intent-confirmed.schema.json",
4
+ "title": "RIPP Confirmed Intent Schema",
5
+ "description": "Schema for human-confirmed intent ready for compilation",
6
+ "type": "object",
7
+ "required": ["version", "confirmed"],
8
+ "properties": {
9
+ "version": {
10
+ "type": "string",
11
+ "const": "1.0",
12
+ "description": "Confirmed intent schema version"
13
+ },
14
+ "confirmed": {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "object",
18
+ "required": ["source", "confirmed_at", "content"],
19
+ "properties": {
20
+ "section": {
21
+ "type": "string",
22
+ "enum": [
23
+ "purpose",
24
+ "ux_flow",
25
+ "data_contracts",
26
+ "api_contracts",
27
+ "permissions",
28
+ "failure_modes",
29
+ "audit_events",
30
+ "nfrs",
31
+ "acceptance_tests"
32
+ ],
33
+ "description": "RIPP section this confirmed block belongs to"
34
+ },
35
+ "source": {
36
+ "type": "string",
37
+ "const": "confirmed",
38
+ "description": "Must be 'confirmed' after human review"
39
+ },
40
+ "confirmed_at": {
41
+ "type": "string",
42
+ "format": "date-time",
43
+ "description": "ISO 8601 timestamp of confirmation"
44
+ },
45
+ "confirmed_by": {
46
+ "type": "string",
47
+ "description": "Optional user identifier"
48
+ },
49
+ "original_confidence": {
50
+ "type": "number",
51
+ "minimum": 0,
52
+ "maximum": 1,
53
+ "description": "Original AI confidence score (for traceability)"
54
+ },
55
+ "evidence": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "object",
59
+ "properties": {
60
+ "file": {
61
+ "type": "string"
62
+ },
63
+ "line": {
64
+ "type": "integer",
65
+ "minimum": 1
66
+ },
67
+ "endLine": {
68
+ "type": "integer",
69
+ "minimum": 1
70
+ },
71
+ "snippet": {
72
+ "type": "string"
73
+ }
74
+ }
75
+ },
76
+ "description": "Original evidence references (preserved for traceability)"
77
+ },
78
+ "content": {
79
+ "description": "The confirmed content (structure depends on section)"
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }