clean-room-skill 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.
Files changed (56) hide show
  1. package/.claude-plugin/marketplace.json +19 -0
  2. package/.claude-plugin/plugin.json +20 -0
  3. package/.codex-plugin/plugin.json +36 -0
  4. package/LICENSE +21 -0
  5. package/README.md +376 -0
  6. package/agents/clean-architect.md +27 -0
  7. package/agents/clean-qa-editor.md +27 -0
  8. package/agents/contaminated-manager-verifier.md +35 -0
  9. package/agents/contaminated-source-analyst.md +26 -0
  10. package/bin/install.js +535 -0
  11. package/examples/codex/.codex/agents/clean-architect.toml +17 -0
  12. package/examples/codex/.codex/agents/clean-qa-editor.toml +17 -0
  13. package/examples/codex/.codex/agents/contaminated-manager-verifier.toml +21 -0
  14. package/examples/codex/.codex/agents/contaminated-source-analyst.toml +17 -0
  15. package/hooks/check-artifact-leakage.py +317 -0
  16. package/hooks/clean-room-hook.py +88 -0
  17. package/hooks/clean_room_paths.py +130 -0
  18. package/hooks/deny-clean-room-shell.py +30 -0
  19. package/hooks/deny-clean-source-read.py +104 -0
  20. package/hooks/deny-contaminated-clean-write.py +134 -0
  21. package/hooks/hooks.json +44 -0
  22. package/hooks/require-clean-room-env.py +127 -0
  23. package/hooks/validate-handoff-package.py +140 -0
  24. package/hooks/validate-json-schema.py +283 -0
  25. package/lib/fs-utils.cjs +123 -0
  26. package/lib/hooks.cjs +214 -0
  27. package/package.json +49 -0
  28. package/plugin.json +20 -0
  29. package/skills/attended/SKILL.md +25 -0
  30. package/skills/clean-room/SKILL.md +134 -0
  31. package/skills/clean-room/assets/behavior-spec.schema.json +367 -0
  32. package/skills/clean-room/assets/contamination-incident.schema.json +60 -0
  33. package/skills/clean-room/assets/coverage-ledger.schema.json +139 -0
  34. package/skills/clean-room/assets/evidence-ledger.schema.json +80 -0
  35. package/skills/clean-room/assets/handoff-package.schema.json +114 -0
  36. package/skills/clean-room/assets/qc-report.schema.json +248 -0
  37. package/skills/clean-room/assets/skeleton-manifest.schema.json +239 -0
  38. package/skills/clean-room/assets/source-index.schema.json +622 -0
  39. package/skills/clean-room/assets/task-manifest.schema.json +593 -0
  40. package/skills/clean-room/examples/README.md +18 -0
  41. package/skills/clean-room/examples/minimal-spec-package/behavior-spec.json +61 -0
  42. package/skills/clean-room/examples/minimal-spec-package/coverage-ledger.json +27 -0
  43. package/skills/clean-room/examples/minimal-spec-package/evidence-ledger.json +17 -0
  44. package/skills/clean-room/examples/minimal-spec-package/handoff-package.json +26 -0
  45. package/skills/clean-room/examples/minimal-spec-package/qc-report.json +25 -0
  46. package/skills/clean-room/examples/minimal-spec-package/skeleton-manifest.json +45 -0
  47. package/skills/clean-room/examples/minimal-spec-package/source-index.json +156 -0
  48. package/skills/clean-room/examples/minimal-spec-package/task-manifest.json +220 -0
  49. package/skills/clean-room/references/LEAKAGE-RULES.md +92 -0
  50. package/skills/clean-room/references/PROCESS.md +185 -0
  51. package/skills/clean-room/references/SPEC-SCHEMA.md +185 -0
  52. package/skills/clean-room/references/TARGET-LANGUAGE-GUIDE.md +43 -0
  53. package/skills/clean-room/scripts/build_source_index.py +1253 -0
  54. package/skills/clean-room/scripts/clean_room_tool_manager.py +199 -0
  55. package/skills/clean-room/scripts/clean_room_tooling.py +370 -0
  56. package/skills/unattended/SKILL.md +26 -0
@@ -0,0 +1,239 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "Clean-Room Skeleton Manifest",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "manifest_id",
8
+ "target_language",
9
+ "area_id_naming_policy",
10
+ "areas",
11
+ "public_contracts",
12
+ "dependency_constraints",
13
+ "implementation_forbidden_material",
14
+ "test_mapping",
15
+ "test_obligations",
16
+ "open_decisions"
17
+ ],
18
+ "properties": {
19
+ "manifest_id": {
20
+ "type": "string",
21
+ "minLength": 1
22
+ },
23
+ "target_language": {
24
+ "type": "string",
25
+ "minLength": 1,
26
+ "default": "unspecified"
27
+ },
28
+ "area_id_naming_policy": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ "target_constraints": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "areas": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "object",
42
+ "additionalProperties": false,
43
+ "required": [
44
+ "area_id",
45
+ "purpose",
46
+ "spec_ids",
47
+ "public_contract_refs",
48
+ "test_obligations"
49
+ ],
50
+ "properties": {
51
+ "area_id": {
52
+ "type": "string",
53
+ "minLength": 1
54
+ },
55
+ "purpose": {
56
+ "type": "string",
57
+ "minLength": 1
58
+ },
59
+ "spec_ids": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ },
65
+ "public_contract_refs": {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "string"
69
+ }
70
+ },
71
+ "target_constraints": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "string"
75
+ }
76
+ },
77
+ "dependency_constraints": {
78
+ "type": "array",
79
+ "items": {
80
+ "type": "string"
81
+ }
82
+ },
83
+ "test_obligations": {
84
+ "type": "array",
85
+ "items": {
86
+ "type": "string"
87
+ }
88
+ },
89
+ "open_decisions": {
90
+ "type": "array",
91
+ "items": {
92
+ "$ref": "#/$defs/open_decision"
93
+ }
94
+ }
95
+ }
96
+ }
97
+ },
98
+ "public_contracts": {
99
+ "type": "array",
100
+ "items": {
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": [
104
+ "contract_id",
105
+ "source_spec_id",
106
+ "name",
107
+ "kind",
108
+ "visibility",
109
+ "compatibility_reason"
110
+ ],
111
+ "properties": {
112
+ "contract_id": {
113
+ "type": "string",
114
+ "minLength": 1
115
+ },
116
+ "source_spec_id": {
117
+ "type": "string",
118
+ "minLength": 1
119
+ },
120
+ "name": {
121
+ "type": "string",
122
+ "minLength": 1
123
+ },
124
+ "kind": {
125
+ "type": "string",
126
+ "minLength": 1
127
+ },
128
+ "visibility": {
129
+ "enum": [
130
+ "public",
131
+ "destination",
132
+ "protocol",
133
+ "user-required"
134
+ ]
135
+ },
136
+ "compatibility_reason": {
137
+ "type": "string",
138
+ "minLength": 1
139
+ }
140
+ }
141
+ }
142
+ },
143
+ "dependency_constraints": {
144
+ "type": "array",
145
+ "items": {
146
+ "type": "string"
147
+ }
148
+ },
149
+ "implementation_forbidden_material": {
150
+ "type": "array",
151
+ "items": {
152
+ "enum": [
153
+ "source_excerpt",
154
+ "raw_diff",
155
+ "private_identifier",
156
+ "source_shaped_pseudocode",
157
+ "copied_comments",
158
+ "decompiled_output",
159
+ "other"
160
+ ]
161
+ }
162
+ },
163
+ "test_mapping": {
164
+ "type": "array",
165
+ "items": {
166
+ "type": "object",
167
+ "additionalProperties": false,
168
+ "required": [
169
+ "test_id",
170
+ "spec_ids",
171
+ "scenario_refs"
172
+ ],
173
+ "properties": {
174
+ "test_id": {
175
+ "type": "string",
176
+ "minLength": 1
177
+ },
178
+ "spec_ids": {
179
+ "type": "array",
180
+ "items": {
181
+ "type": "string"
182
+ }
183
+ },
184
+ "scenario_refs": {
185
+ "type": "array",
186
+ "items": {
187
+ "type": "string"
188
+ }
189
+ }
190
+ }
191
+ }
192
+ },
193
+ "test_obligations": {
194
+ "type": "array",
195
+ "items": {
196
+ "type": "string"
197
+ }
198
+ },
199
+ "open_decisions": {
200
+ "type": "array",
201
+ "items": {
202
+ "$ref": "#/$defs/open_decision"
203
+ }
204
+ }
205
+ },
206
+ "$defs": {
207
+ "open_decision": {
208
+ "type": "object",
209
+ "additionalProperties": false,
210
+ "required": [
211
+ "decision_id",
212
+ "summary",
213
+ "status",
214
+ "owner"
215
+ ],
216
+ "properties": {
217
+ "decision_id": {
218
+ "type": "string",
219
+ "minLength": 1
220
+ },
221
+ "summary": {
222
+ "type": "string",
223
+ "minLength": 1
224
+ },
225
+ "status": {
226
+ "enum": [
227
+ "open",
228
+ "resolved",
229
+ "deferred"
230
+ ]
231
+ },
232
+ "owner": {
233
+ "type": "string",
234
+ "minLength": 1
235
+ }
236
+ }
237
+ }
238
+ }
239
+ }