trace-to-skill 0.1.71 → 0.1.73
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/README.md +10 -5
- package/dist/src/cli.js +11 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/processAudit.d.ts +41 -0
- package/dist/src/processAudit.js +198 -0
- package/dist/src/processAudit.js.map +1 -0
- package/dist/src/sessionAudit.d.ts +30 -1
- package/dist/src/sessionAudit.js +144 -6
- package/dist/src/sessionAudit.js.map +1 -1
- package/docs/CODEX_ISSUE_MAP.md +6 -4
- package/docs/DISCOVERY.md +6 -2
- package/docs/OPENAI_OSS_BRIEF.md +2 -2
- package/docs/USE_CASES.md +12 -3
- package/llms.txt +4 -1
- package/package.json +6 -2
- package/schemas/process-audit-result.schema.json +155 -0
- package/schemas/session-audit-result.schema.json +99 -3
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/grnbtqdbyx-create/trace-to-skill/schemas/process-audit-result.schema.json",
|
|
4
|
+
"title": "trace-to-skill Codex process audit result",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["generatedAt", "status", "inputs", "summary", "signals", "findings", "checklist"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"generatedAt": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"status": {
|
|
13
|
+
"enum": ["pass", "warn"]
|
|
14
|
+
},
|
|
15
|
+
"inputs": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"summary": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": ["signals", "powershellCimCommands", "highCpuProcesses", "staleProcessManagerSignals", "codexHelperSignals"],
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"signals": {
|
|
27
|
+
"type": "integer",
|
|
28
|
+
"minimum": 0
|
|
29
|
+
},
|
|
30
|
+
"powershellCimCommands": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0
|
|
33
|
+
},
|
|
34
|
+
"highCpuProcesses": {
|
|
35
|
+
"type": "integer",
|
|
36
|
+
"minimum": 0
|
|
37
|
+
},
|
|
38
|
+
"staleProcessManagerSignals": {
|
|
39
|
+
"type": "integer",
|
|
40
|
+
"minimum": 0
|
|
41
|
+
},
|
|
42
|
+
"codexHelperSignals": {
|
|
43
|
+
"type": "integer",
|
|
44
|
+
"minimum": 0
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"signals": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"$ref": "#/$defs/signal"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"findings": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"$ref": "#/$defs/finding"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"checklist": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"$defs": {
|
|
68
|
+
"kind": {
|
|
69
|
+
"enum": ["powershell_cim_polling", "high_cpu_process", "stale_process_manager_entries", "codex_helper_runaway"]
|
|
70
|
+
},
|
|
71
|
+
"signal": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"required": ["kind", "source", "line", "excerpt"],
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"properties": {
|
|
76
|
+
"kind": {
|
|
77
|
+
"$ref": "#/$defs/kind"
|
|
78
|
+
},
|
|
79
|
+
"source": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"line": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"minimum": 1
|
|
85
|
+
},
|
|
86
|
+
"processName": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"pid": {
|
|
90
|
+
"type": "number"
|
|
91
|
+
},
|
|
92
|
+
"cpuPercent": {
|
|
93
|
+
"type": "number"
|
|
94
|
+
},
|
|
95
|
+
"cpuSeconds": {
|
|
96
|
+
"type": "number"
|
|
97
|
+
},
|
|
98
|
+
"ratePerSecond": {
|
|
99
|
+
"type": "number"
|
|
100
|
+
},
|
|
101
|
+
"count": {
|
|
102
|
+
"type": "number"
|
|
103
|
+
},
|
|
104
|
+
"excerpt": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"finding": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"required": ["kind", "severity", "title", "why", "evidence", "nextStep"],
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"properties": {
|
|
114
|
+
"kind": {
|
|
115
|
+
"$ref": "#/$defs/kind"
|
|
116
|
+
},
|
|
117
|
+
"severity": {
|
|
118
|
+
"enum": ["medium", "high"]
|
|
119
|
+
},
|
|
120
|
+
"title": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"why": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
"evidence": {
|
|
127
|
+
"type": "array",
|
|
128
|
+
"items": {
|
|
129
|
+
"$ref": "#/$defs/evidence"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"nextStep": {
|
|
133
|
+
"type": "string"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"evidence": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"required": ["file", "line", "excerpt"],
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"properties": {
|
|
142
|
+
"file": {
|
|
143
|
+
"type": "string"
|
|
144
|
+
},
|
|
145
|
+
"line": {
|
|
146
|
+
"type": "integer",
|
|
147
|
+
"minimum": 1
|
|
148
|
+
},
|
|
149
|
+
"excerpt": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"title": "trace-to-skill Codex session audit result",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
|
-
"required": ["generatedAt", "root", "status", "thresholds", "summary", "files", "stateFiles", "findings"],
|
|
7
|
+
"required": ["generatedAt", "root", "status", "thresholds", "summary", "files", "threads", "stateFiles", "findings"],
|
|
8
8
|
"properties": {
|
|
9
9
|
"generatedAt": {
|
|
10
10
|
"type": "string",
|
|
@@ -29,6 +29,12 @@
|
|
|
29
29
|
"$ref": "#/$defs/file"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
+
"threads": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"$ref": "#/$defs/thread"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
32
38
|
"stateFiles": {
|
|
33
39
|
"type": "array",
|
|
34
40
|
"items": {
|
|
@@ -61,7 +67,7 @@
|
|
|
61
67
|
"summary": {
|
|
62
68
|
"type": "object",
|
|
63
69
|
"additionalProperties": false,
|
|
64
|
-
"required": ["jsonlFiles", "totalBytes", "largeFiles", "hugeLineFiles", "parseErrorFiles"],
|
|
70
|
+
"required": ["jsonlFiles", "totalBytes", "largeFiles", "hugeLineFiles", "parseErrorFiles", "rolloutThreads", "indexedThreads", "unindexedRolloutThreads", "projectRoots"],
|
|
65
71
|
"properties": {
|
|
66
72
|
"jsonlFiles": {
|
|
67
73
|
"type": "integer",
|
|
@@ -90,6 +96,22 @@
|
|
|
90
96
|
"rolloutFiles": {
|
|
91
97
|
"type": "integer",
|
|
92
98
|
"minimum": 0
|
|
99
|
+
},
|
|
100
|
+
"rolloutThreads": {
|
|
101
|
+
"type": "integer",
|
|
102
|
+
"minimum": 0
|
|
103
|
+
},
|
|
104
|
+
"indexedThreads": {
|
|
105
|
+
"type": "integer",
|
|
106
|
+
"minimum": 0
|
|
107
|
+
},
|
|
108
|
+
"unindexedRolloutThreads": {
|
|
109
|
+
"type": "integer",
|
|
110
|
+
"minimum": 0
|
|
111
|
+
},
|
|
112
|
+
"projectRoots": {
|
|
113
|
+
"type": "integer",
|
|
114
|
+
"minimum": 0
|
|
93
115
|
}
|
|
94
116
|
}
|
|
95
117
|
},
|
|
@@ -130,6 +152,80 @@
|
|
|
130
152
|
"type": "integer",
|
|
131
153
|
"minimum": 0
|
|
132
154
|
}
|
|
155
|
+
},
|
|
156
|
+
"session": {
|
|
157
|
+
"$ref": "#/$defs/threadMetadata"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"threadMetadata": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"required": ["id"],
|
|
165
|
+
"properties": {
|
|
166
|
+
"id": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
"createdAt": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"cwdBasename": {
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
"cwdHash": {
|
|
176
|
+
"type": "string"
|
|
177
|
+
},
|
|
178
|
+
"originator": {
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
"cliVersion": {
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
184
|
+
"sourceKind": {
|
|
185
|
+
"type": "string"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"thread": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"additionalProperties": false,
|
|
192
|
+
"required": ["id", "path", "indexed", "recoverCommand"],
|
|
193
|
+
"properties": {
|
|
194
|
+
"id": {
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
197
|
+
"path": {
|
|
198
|
+
"type": "string"
|
|
199
|
+
},
|
|
200
|
+
"indexed": {
|
|
201
|
+
"type": "boolean"
|
|
202
|
+
},
|
|
203
|
+
"indexTitle": {
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
"indexUpdatedAt": {
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
"createdAt": {
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
"cwdBasename": {
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
215
|
+
"cwdHash": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
},
|
|
218
|
+
"originator": {
|
|
219
|
+
"type": "string"
|
|
220
|
+
},
|
|
221
|
+
"cliVersion": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"sourceKind": {
|
|
225
|
+
"type": "string"
|
|
226
|
+
},
|
|
227
|
+
"recoverCommand": {
|
|
228
|
+
"type": "string"
|
|
133
229
|
}
|
|
134
230
|
}
|
|
135
231
|
},
|
|
@@ -161,7 +257,7 @@
|
|
|
161
257
|
},
|
|
162
258
|
"kind": {
|
|
163
259
|
"type": "string",
|
|
164
|
-
"enum": ["large_rollout", "huge_jsonl_line", "json_parse_error", "short_session_index", "state_file_present"]
|
|
260
|
+
"enum": ["large_rollout", "huge_jsonl_line", "json_parse_error", "short_session_index", "unindexed_rollout_thread", "state_file_present"]
|
|
165
261
|
},
|
|
166
262
|
"path": {
|
|
167
263
|
"type": "string"
|