forked from Dicklesworthstone/pi_agent_rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdropin-certification-contract.json
More file actions
395 lines (395 loc) · 12.7 KB
/
Copy pathdropin-certification-contract.json
File metadata and controls
395 lines (395 loc) · 12.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
{
"schema": "pi.dropin.certification_contract.v1",
"bead_id": "bd-35t7i",
"version": "1.0.0",
"effective_date_utc": "2026-02-14T19:30:00Z",
"status": "active_blocking_policy",
"policy_owner_issue": "bd-35t7i",
"normative_statement": "Pi Rust MUST NOT be described as a strict drop-in replacement unless every hard gate in this contract is PASS with verifiable evidence.",
"decision_model": {
"gate_states": [
"pass",
"fail",
"blocked",
"waived"
],
"waiver_policy": "Waivers are allowed only for non-critical gates and require explicit release-note disclosure.",
"overall_verdict_rule": "CERTIFIED only when all hard gates are pass and no critical parity ledger gaps remain open."
},
"hard_gates": [
{
"gate_id": "G01-baseline-freeze",
"domain": "baseline",
"blocking": true,
"owner_issue_primary": "bd-2ej25",
"required_beads": [
"bd-2ej25"
],
"required_artifacts": [
"docs/dropin-upstream-baseline.json"
],
"required_evidence": [
"Pinned upstream commit and package version are present.",
"Source/docs manifests are checksummed and reproducible."
],
"pass_criteria": [
"Baseline schema is valid and points to a single canonical upstream commit.",
"No active parity artifact points to a conflicting baseline snapshot."
],
"fail_conditions": [
"Baseline artifact missing, stale, or conflicting."
]
},
{
"gate_id": "G02-feature-inventory-complete",
"domain": "inventory",
"blocking": true,
"owner_issue_primary": "bd-w9i9o",
"required_beads": [
"bd-w9i9o"
],
"required_artifacts": [
"docs/evidence/dropin-feature-inventory-matrix.json",
"docs/dropin-112-feature-inventory-matrix.md"
],
"required_evidence": [
"Execution surfaces are inventoried across CLI, JSON, RPC, SDK, config, session, extensions, tools, and providers.",
"Rows carry source evidence pointers for TS and Rust."
],
"pass_criteria": [
"Inventory artifacts are present and reconciled to baseline.",
"No in-scope execution surface is missing from inventory."
],
"fail_conditions": [
"Missing surface inventory or baseline/inventory disagreement."
]
},
{
"gate_id": "G03-gap-ledger-owned",
"domain": "gap-ledger",
"blocking": true,
"owner_issue_primary": "bd-13pqz",
"required_beads": [
"bd-13pqz"
],
"required_artifacts": [
"docs/evidence/dropin-parity-gap-ledger.json",
"docs/dropin-error-crosswalk.json"
],
"required_evidence": [
"Each known mismatch has severity, ownership, and closure path.",
"Coverage mapping links mismatch sources to ledger entries."
],
"pass_criteria": [
"Ledger is schema-valid and comprehensive for known mismatches.",
"Critical mismatches have active owner beads."
],
"fail_conditions": [
"Unowned mismatch or critical mismatch without closure path."
]
},
{
"gate_id": "G04-cli-parity",
"domain": "cli",
"blocking": true,
"owner_issue_primary": "bd-3meug",
"required_beads": [
"bd-2cd9b",
"bd-3meug"
],
"required_artifacts": [
"docs/evidence/dropin-parity-gap-ledger.json"
],
"required_evidence": [
"CLI command/flag/subcommand parity matrix results.",
"Extension-registered flag pass-through conformance tests."
],
"pass_criteria": [
"No open critical/high CLI gaps in parity ledger.",
"CLI parity tests pass for baseline invocation patterns."
],
"fail_conditions": [
"Required CLI path missing or behaviorally divergent.",
"Extension flag pass-through mismatch."
]
},
{
"gate_id": "G05-json-rpc-parity",
"domain": "json-and-rpc",
"blocking": true,
"owner_issue_primary": "bd-2ez14",
"required_beads": [
"bd-15ggf",
"bd-3eb4d",
"bd-38v5y",
"bd-2my4b",
"bd-359pl",
"bd-2ez14"
],
"required_artifacts": [
"docs/evidence/dropin-parity-gap-ledger.json"
],
"required_evidence": [
"JSON event schema and ordering conformance outputs.",
"RPC command semantic parity results.",
"Extension UI/tool event parity fixtures."
],
"pass_criteria": [
"No open critical/high JSON or RPC gaps remain.",
"Differential transcript comparison shows no unresolved semantic mismatches."
],
"fail_conditions": [
"Missing/incorrect event variants or ordering drift.",
"RPC command mismatch in in-scope surface."
]
},
{
"gate_id": "G06-sdk-companion",
"domain": "sdk",
"blocking": false,
"owner_issue_primary": "bd-28zrk",
"required_beads": [
"bd-1it6z",
"bd-c9usa",
"bd-2ibww",
"bd-3fbzn",
"bd-2xhgm",
"bd-28zrk"
],
"required_artifacts": [
"docs/evidence/dropin-parity-gap-ledger.json",
"docs/dropin-sdk-contract.json"
],
"required_evidence": [
"SDK documentation and usage examples.",
"Functional capability demonstration.",
"Idiomatic Rust API patterns."
],
"pass_criteria": [
"Rust SDK provides equivalent functionality to TypeScript SDK.",
"SDK is documented as idiomatic Rust companion, not drop-in replacement.",
"Embedding examples demonstrate functional equivalence."
],
"fail_conditions": [
"SDK lacks core capabilities present in TypeScript version.",
"SDK documentation falsely claims drop-in compatibility."
]
},
{
"gate_id": "G07-config-and-env-parity",
"domain": "config-and-env",
"blocking": true,
"owner_issue_primary": "bd-uuf2z",
"required_beads": [
"bd-uuf2z"
],
"required_artifacts": [
"docs/evidence/dropin-parity-gap-ledger.json"
],
"required_evidence": [
"Config precedence/default parity tests.",
"Environment variable contract verification."
],
"pass_criteria": [
"No open critical/high config/env gaps remain.",
"Default and precedence behavior is documented and test-backed."
],
"fail_conditions": [
"Divergent defaults without approved compatibility policy.",
"Unsupported required env contract."
]
},
{
"gate_id": "G08-session-error-parity",
"domain": "session-and-errors",
"blocking": true,
"owner_issue_primary": "bd-b4s4l",
"required_beads": [
"bd-b4s4l",
"bd-3kz49"
],
"required_artifacts": [
"docs/evidence/dropin-parity-gap-ledger.json"
],
"required_evidence": [
"Session branching/compaction parity tests.",
"Error model and exit code parity map."
],
"pass_criteria": [
"Session and error gaps are closed or explicitly waived.",
"In-scope behavior is parity-verified."
],
"fail_conditions": [
"Session semantics diverge with data-loss-risk impact.",
"Exit-code/error-envelope mismatch breaks automation."
]
},
{
"gate_id": "G09-integration-io-parity",
"domain": "integration-io",
"blocking": true,
"owner_issue_primary": "bd-2xalc",
"required_beads": [
"bd-2xalc"
],
"required_artifacts": [
"docs/evidence/dropin-parity-gap-ledger.json"
],
"required_evidence": [
"stdio framing and non-interactive semantics parity checks.",
"Pipe behavior parity evidence."
],
"pass_criteria": [
"Integration I/O parity gaps closed for supported execution modes.",
"No unresolved framing/truncation mismatch."
],
"fail_conditions": [
"Protocol framing difference that can break existing clients.",
"Tool I/O limit mismatch without approved policy."
]
},
{
"gate_id": "G10-differential-evidence-suite",
"domain": "differential-testing",
"blocking": true,
"owner_issue_primary": "bd-1nq53",
"required_beads": [
"bd-37zh7",
"bd-3vraw",
"bd-1nq53"
],
"required_artifacts": [
"docs/evidence/dropin-parity-gap-ledger.json"
],
"required_evidence": [
"Differential runner outputs for mirrored scenarios.",
"Golden transcript corpus coverage across CLI, JSON, RPC, and SDK."
],
"pass_criteria": [
"Required mirrored scenarios run with no unresolved semantic diffs.",
"Corpus coverage satisfies execution-surface minimum set."
],
"fail_conditions": [
"Missing differential tests for any certified surface.",
"Unresolved critical/high semantic diff."
]
},
{
"gate_id": "G11-test-architecture-and-ci-enforcement",
"domain": "quality-gates",
"blocking": true,
"owner_issue_primary": "bd-iumsf",
"required_beads": [
"bd-2m6qw",
"bd-3d7jg",
"bd-y20iz",
"bd-322qy",
"bd-1xsus",
"bd-iumsf",
"bd-18umj"
],
"required_artifacts": [
"docs/testing-policy.md",
"docs/qa-runbook.md"
],
"required_evidence": [
"Versioned test architecture and logging contract.",
"CI parity lanes with artifact retention and blocking behavior."
],
"pass_criteria": [
"Release path enforces parity gates automatically.",
"Evidence artifacts are retained and traceable."
],
"fail_conditions": [
"Parity lanes non-blocking/bypassable for release claims.",
"Certification not reproducible from retained artifacts."
]
},
{
"gate_id": "G12-claim-language-alignment",
"domain": "docs-and-positioning",
"blocking": true,
"owner_issue_primary": "bd-3cqgd",
"required_beads": [
"bd-3cqgd",
"bd-hx9ks",
"bd-2v813"
],
"required_artifacts": [
"README.md",
"docs/evidence/dropin-parity-gap-ledger.json"
],
"required_evidence": [
"Public parity claims align with actual gate status.",
"No contradictory 'already certified' language while hard gates are open."
],
"pass_criteria": [
"External parity claims are conditioned on this contract.",
"Spec and gap-ledger artifacts are treated as normative."
],
"fail_conditions": [
"Strict drop-in claims present while hard gates are not all pass."
]
}
],
"release_process_enforcement": {
"required_sequence": [
{
"step": 1,
"description": "Refresh baseline and parity artifacts to current commit.",
"required_outputs": [
"docs/dropin-upstream-baseline.json",
"docs/evidence/dropin-feature-inventory-matrix.json",
"docs/evidence/dropin-parity-gap-ledger.json"
]
},
{
"step": 2,
"description": "Evaluate all hard gates and emit a machine-readable verdict artifact.",
"required_outputs": [
"docs/evidence/dropin-certification-verdict.json"
]
},
{
"step": 3,
"description": "Block release if verdict is not CERTIFIED.",
"required_outputs": [
"release gate log with explicit blocking reasons"
]
},
{
"step": 4,
"description": "Publish release notes that include certification verdict and evidence pointers.",
"required_outputs": [
"release notes section: drop-in certification status"
]
}
],
"verdict_artifact_contract": {
"path": "docs/evidence/dropin-certification-verdict.json",
"schema": "pi.dropin.certification_verdict.v1",
"required_fields": [
"git_commit",
"generated_at_utc",
"overall_verdict",
"hard_gate_results",
"blocking_reasons",
"evidence_index"
],
"blocking_rule": "overall_verdict MUST equal CERTIFIED for drop-in replacement release language to be allowed."
}
},
"immediate_status_snapshot": {
"overall_verdict_now": "CERTIFIED",
"reason": "docs/evidence/dropin-certification-verdict.json reports 22/22 hard gates pass, including all 16 blocking gates, with no blocking reasons.",
"open_critical_gate_domains": []
},
"maintenance_policy": {
"update_trigger": "Any newly discovered mismatch or gate-topology change.",
"required_actions_on_update": [
"Bump version when gate semantics change.",
"Update required_beads and required_artifacts.",
"Recompute immediate_status_snapshot."
]
}
}