@dailephd/my-dev-kit-lab 0.4.4 → 0.4.5
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/CHANGELOG.md +468 -0
- package/README.md +3 -1
- package/dist/scripts/report-context-integrity-smoke.js +70 -0
- package/dist/src/evaluation/ecosystemFixtures/index.js +3 -0
- package/dist/src/evaluation/ecosystemFixtures/loadContextIntegrityFixture.js +102 -0
- package/dist/src/evaluation/ecosystemFixtures/manifestTypes.js +1 -0
- package/dist/src/evaluation/ecosystemFixtures/validateManifest.js +82 -0
- package/dist/src/evaluation/ecosystemFixtures/verifyFixtureHashes.js +45 -0
- package/dist/src/evaluation/stageContextMetrics/calculateAllocationMetrics.js +169 -0
- package/dist/src/evaluation/stageContextMetrics/calculateConditionCoverageMetrics.js +74 -0
- package/dist/src/evaluation/stageContextMetrics/calculateProducerConditionAgreement.js +113 -0
- package/dist/src/evaluation/stageContextMetrics/calculateReadinessAgreement.js +60 -0
- package/dist/src/evaluation/stageContextMetrics/calculateRunIntegrityAgreement.js +309 -0
- package/dist/src/evaluation/stageContextMetrics/calculateSupplementalRawAgreement.js +12 -2
- package/dist/src/evaluation/stageContextMetrics/calculateTruncationClassification.js +100 -0
- package/dist/src/evaluation/stageContextMetrics/evaluateProducerReadinessBridge.js +76 -5
- package/dist/src/evaluation/stageContextMetrics/index.js +4 -0
- package/dist/src/evaluation/stageContextMetrics/runIntegrityAgreementTypes.js +1 -0
- package/dist/src/evaluation/stageContextSelectors/contextArtifactConsistency.js +7 -0
- package/dist/src/evaluation/stageContextSelectors/index.js +1 -0
- package/dist/src/evaluation/stageContextSelectors/orchestratorRunIntegritySelectors.js +64 -0
- package/dist/src/evaluation/upstreamArtifacts/index.js +2 -0
- package/dist/src/evaluation/upstreamArtifacts/orchestratorRunIntegrityV1.js +33 -0
- package/dist/src/evaluation/upstreamArtifacts/readOrchestratorRunIntegrityV1.js +9 -0
- package/dist/src/evaluation/upstreamArtifacts/validateMyDevKitContextCapsuleV1.js +59 -2
- package/dist/src/evaluation/upstreamArtifacts/validateMyDevKitRetrievalAuditRecordV1.js +6 -1
- package/dist/src/evaluation/upstreamArtifacts/validateOrchestratorRunIntegrityV1.js +177 -0
- package/dist/src/report/experiments/buildContextIntegrityReport.js +204 -0
- package/dist/src/report/experiments/contextIntegrityReportModel.js +1 -0
- package/dist/src/report/experiments/index.js +5 -0
- package/dist/src/report/experiments/renderContextIntegrityHtml.js +98 -0
- package/dist/src/report/experiments/renderContextIntegrityJsonReport.js +3 -0
- package/dist/src/report/experiments/renderContextIntegrityText.js +111 -0
- package/dist/src/securityValidation/packageChecks/requiredPackageContents.js +33 -0
- package/dist/src/securityValidation/packageChecks/runPackageChecks.js +11 -5
- package/docs/METRICS.md +83 -0
- package/package.json +4 -2
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/corrected-replay/derived/run-integrity-evidence.json +99 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/corrected-replay/producer/implementation-audit.json +1585 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/corrected-replay/producer/implementation-capsule.json +11455 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/00-request.txt +1 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/architecture-context-packet.txt +82 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/behavior-model.txt +104 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/final-report.txt +41 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/implementation-context-packet.txt +114 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/implementation-report.txt +92 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/judge-report.txt +34 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/pseudocode-packet.txt +244 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/request-brief.txt +40 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/test-context-packet.txt +93 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/test-implementation-report.txt +69 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/test-strategy-packet.txt +354 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/verification-report.txt +85 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/derived/run-integrity-evidence.json +98 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/architecture-audit.json +1169 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/architecture-request.json +29 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/implementation-audit.json +1494 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/implementation-capsule.json +11364 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/implementation-request.json +33 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/test-request.json +74 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/reports/architecture-context-retrieval-report.txt +58 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/reports/implementation-context-retrieval-report.txt +75 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/reports/test-context-retrieval-report.txt +84 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/run.json +62 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/tool-versions/my-dev-kit-version.txt +1 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/tool-versions/orchestrator-version.txt +1 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/manifests/corrected-replay-manifest.json +19 -0
- package/tests/fixtures/ecosystem/context-integrity/v0.4.5/manifests/failed-run-manifest.json +56 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.4/PROVENANCE.txt +18 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.4/context-capsule/complete-v1.0.0.json +556 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.4/retrieval-audit-record/complete-v1.0.0.json +238 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit-orchestrator/1.2.3/run-integrity/PROVENANCE.txt +31 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit-orchestrator/1.2.3/run-integrity/ready-pass-final-pass.json +132 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit-orchestrator/1.2.3/run-integrity/refresh-required-need-context.json +146 -0
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"generatedAt": "2026-07-31T00:00:00.000Z",
|
|
4
|
+
"tool": { "name": "my-dev-kit", "version": "1.10.4" },
|
|
5
|
+
"request": {
|
|
6
|
+
"originalQuery": "Inspect task implementation and tests",
|
|
7
|
+
"normalizedQuery": "Inspect task implementation and tests",
|
|
8
|
+
"mode": "feature-add",
|
|
9
|
+
"requestedOutputPath": "Z:/fixture/project/.my-dev-kit/context-capsule.json",
|
|
10
|
+
"role": "implementation",
|
|
11
|
+
"requestFilePath": null
|
|
12
|
+
},
|
|
13
|
+
"index": {
|
|
14
|
+
"indexPath": "Z:/fixture/project/.my-dev-kit",
|
|
15
|
+
"manifestPath": "Z:/fixture/project/.my-dev-kit/manifest.json",
|
|
16
|
+
"manifestSchemaVersion": "1.0.0",
|
|
17
|
+
"projectRoot": "Z:/fixture/project"
|
|
18
|
+
},
|
|
19
|
+
"steps": [
|
|
20
|
+
{
|
|
21
|
+
"id": "fixture.step.001",
|
|
22
|
+
"kind": "validate-inputs",
|
|
23
|
+
"description": "Validate CLI inputs.",
|
|
24
|
+
"inputs": { "query": "Inspect task implementation and tests", "mode": "feature-add", "role": "implementation", "notes": null },
|
|
25
|
+
"outputs": { "valid": true, "warningCount": 0 },
|
|
26
|
+
"status": "ok",
|
|
27
|
+
"warnings": []
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "fixture.step.002",
|
|
31
|
+
"kind": "run-search",
|
|
32
|
+
"description": "Run search against the index.",
|
|
33
|
+
"inputs": { "query": "Inspect task implementation and tests" },
|
|
34
|
+
"outputs": { "resultCount": 1, "topScore": 12.5 },
|
|
35
|
+
"status": "ok",
|
|
36
|
+
"warnings": []
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "fixture.step.003",
|
|
40
|
+
"kind": "use-local-source-expansion",
|
|
41
|
+
"description": "Attempted local source expansion.",
|
|
42
|
+
"inputs": { "focusNodeId": "symbol:src/example.ts#Example" },
|
|
43
|
+
"outputs": { "used": false },
|
|
44
|
+
"status": "skipped",
|
|
45
|
+
"warnings": ["local expansion not required"]
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"fallbacks": [],
|
|
49
|
+
"fullFileReadRecommendations": [
|
|
50
|
+
{
|
|
51
|
+
"filePath": "src/other.ts",
|
|
52
|
+
"reason": "bounded retrieval insufficient",
|
|
53
|
+
"missingContext": "full implementation detail",
|
|
54
|
+
"continuationOrExpansionAttempted": true
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"filePath": "src/legacy.ts",
|
|
58
|
+
"reason": "continuation could not be attempted",
|
|
59
|
+
"missingContext": "legacy behavior detail",
|
|
60
|
+
"continuationOrExpansionAttempted": "unavailable"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"warnings": ["Fixture warning: synthetic data only."],
|
|
64
|
+
"contextAdequacy": {
|
|
65
|
+
"status": "context sufficient with listed assumptions",
|
|
66
|
+
"summary": "A best-effort focus node was selected; some ambiguity or thin graph/source/metadata evidence remains.",
|
|
67
|
+
"assumptions": ["Fixture assumption."],
|
|
68
|
+
"gaps": ["Fixture gap."]
|
|
69
|
+
},
|
|
70
|
+
"roleContext": {
|
|
71
|
+
"role": "implementation",
|
|
72
|
+
"focus": {
|
|
73
|
+
"focusFiles": [{ "path": "src/example.ts", "resolved": true, "matchedFilePaths": ["src/example.ts"], "containedSymbolIds": ["symbol:src/example.ts#Example"] }],
|
|
74
|
+
"focusSymbols": [{ "symbol": "Example", "resolved": true, "ambiguous": false, "matchedNodeIds": ["symbol:src/example.ts#Example"] }],
|
|
75
|
+
"unresolvedFocusFiles": [],
|
|
76
|
+
"unresolvedFocusSymbols": [],
|
|
77
|
+
"ambiguousFocusSymbols": [],
|
|
78
|
+
"warnings": []
|
|
79
|
+
},
|
|
80
|
+
"changedSurface": {
|
|
81
|
+
"available": true,
|
|
82
|
+
"diffRequested": true,
|
|
83
|
+
"files": [{ "path": "src/example.ts", "status": "modified", "provenance": "both" }],
|
|
84
|
+
"symbols": [{ "symbolId": "symbol:src/example.ts#Example", "status": "modified", "provenance": "graph-diff", "filePath": "src/example.ts", "name": "Example", "kind": "symbol" }],
|
|
85
|
+
"conflicts": [],
|
|
86
|
+
"warnings": []
|
|
87
|
+
},
|
|
88
|
+
"requestedEvidenceKinds": ["owner", "dependencies"],
|
|
89
|
+
"unsupportedRequestedEvidenceKinds": ["responsibility-mappings"],
|
|
90
|
+
"warnings": []
|
|
91
|
+
},
|
|
92
|
+
"roleConditionCoverage": [
|
|
93
|
+
{
|
|
94
|
+
"conditionId": "implementation.selected-owner",
|
|
95
|
+
"role": "implementation",
|
|
96
|
+
"required": true,
|
|
97
|
+
"evidenceGroupIds": ["implementation-owners"],
|
|
98
|
+
"witnessPolicy": "at-least-one",
|
|
99
|
+
"requiredWitnessCount": 1,
|
|
100
|
+
"availableWitnessCount": 1,
|
|
101
|
+
"retainedWitnessCount": 1,
|
|
102
|
+
"retainedWitnessIds": ["src/example.ts"],
|
|
103
|
+
"conditionSatisfied": true,
|
|
104
|
+
"lostRequiredCondition": false,
|
|
105
|
+
"lossReason": null,
|
|
106
|
+
"evaluationOrder": 10
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"conditionId": "implementation.required-contract",
|
|
110
|
+
"role": "implementation",
|
|
111
|
+
"required": true,
|
|
112
|
+
"evidenceGroupIds": ["implementation-contracts"],
|
|
113
|
+
"witnessPolicy": "at-least-one",
|
|
114
|
+
"requiredWitnessCount": 1,
|
|
115
|
+
"availableWitnessCount": 0,
|
|
116
|
+
"retainedWitnessCount": 0,
|
|
117
|
+
"retainedWitnessIds": [],
|
|
118
|
+
"conditionSatisfied": false,
|
|
119
|
+
"lostRequiredCondition": false,
|
|
120
|
+
"lossReason": null,
|
|
121
|
+
"evaluationOrder": 20
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"responsibilityMappings": {
|
|
125
|
+
"requested": true,
|
|
126
|
+
"operational": true,
|
|
127
|
+
"mappings": [
|
|
128
|
+
{
|
|
129
|
+
"responsibilityId": "fixture.responsibility.001",
|
|
130
|
+
"behavior": "Example behaves correctly.",
|
|
131
|
+
"invariant": null,
|
|
132
|
+
"criticality": "critical",
|
|
133
|
+
"productionSymbols": [{ "id": "symbol:src/example.ts#Example", "itemKind": "symbol", "symbolId": "symbol:src/example.ts#Example", "relationship": "production-symbol", "basis": "candidate-ranking", "provenance": "candidate-ranking" }],
|
|
134
|
+
"contracts": [],
|
|
135
|
+
"validators": [],
|
|
136
|
+
"constants": [],
|
|
137
|
+
"errors": [],
|
|
138
|
+
"sideEffectEvidence": [],
|
|
139
|
+
"proposedOrExistingTestFiles": [{ "id": "tests/example.spec.ts", "itemKind": "test-file", "path": "tests/example.spec.ts", "relationship": "proposed-test", "basis": "path-proximity", "provenance": "test-directory-walk" }],
|
|
140
|
+
"reusableHelpers": [],
|
|
141
|
+
"oracleEvidence": [],
|
|
142
|
+
"testCommands": [],
|
|
143
|
+
"mappingStatus": "mapped",
|
|
144
|
+
"unresolvedReasons": [],
|
|
145
|
+
"provenance": [
|
|
146
|
+
{ "id": "fixture.provenance.mapping.001", "category": "code-graph", "sourcePath": "src/example.ts", "sourceId": null, "evidenceId": "symbol:src/example.ts#Example", "relationshipBasis": "candidate-ranking", "role": "implementation", "requestField": null, "derivedByModule": "responsibilityMapping.ts" }
|
|
147
|
+
],
|
|
148
|
+
"warnings": []
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"unknownResponsibilityIds": [],
|
|
152
|
+
"duplicateResponsibilityIds": [],
|
|
153
|
+
"limit": null,
|
|
154
|
+
"availableCount": 1,
|
|
155
|
+
"usedCount": 1,
|
|
156
|
+
"truncated": false,
|
|
157
|
+
"droppedCount": 0,
|
|
158
|
+
"criticalDropped": false,
|
|
159
|
+
"warnings": []
|
|
160
|
+
},
|
|
161
|
+
"roleAdequacy": {
|
|
162
|
+
"role": "implementation",
|
|
163
|
+
"status": "context sufficient with listed assumptions",
|
|
164
|
+
"requiredConditions": ["single high-confidence focus node"],
|
|
165
|
+
"satisfiedConditions": ["single high-confidence focus node"],
|
|
166
|
+
"missingConditions": [],
|
|
167
|
+
"blockingConditions": [],
|
|
168
|
+
"warnings": [],
|
|
169
|
+
"supportingEvidence": ["symbol:src/example.ts#Example"],
|
|
170
|
+
"affectedResponsibilityIds": ["fixture.responsibility.001"],
|
|
171
|
+
"truncationImpact": false,
|
|
172
|
+
"freshnessImpact": false
|
|
173
|
+
},
|
|
174
|
+
"freshness": {
|
|
175
|
+
"state": "fresh",
|
|
176
|
+
"role": "implementation",
|
|
177
|
+
"evidenceUsed": ["code-graph"],
|
|
178
|
+
"evidenceUnavailable": ["before-index"],
|
|
179
|
+
"comparedIdentities": [
|
|
180
|
+
{ "label": "index-manifest-hash", "value": "fixture-hash-001" },
|
|
181
|
+
{ "label": "before-index-manifest-hash", "value": null }
|
|
182
|
+
],
|
|
183
|
+
"reason": "Active index manifest hash matches the most recent recorded identity.",
|
|
184
|
+
"relevantChangedPaths": ["src/example.ts"],
|
|
185
|
+
"warnings": []
|
|
186
|
+
},
|
|
187
|
+
"budget": {
|
|
188
|
+
"limits": [
|
|
189
|
+
{ "name": "candidates", "declaredValue": 50, "usedValue": 1, "availableCount": 49, "droppedCount": 0, "truncated": false, "requiredEvidenceAffected": false, "adequacyImpact": null }
|
|
190
|
+
],
|
|
191
|
+
"characters": { "measured": 1200, "limit": 8000, "truncated": false },
|
|
192
|
+
"warnings": []
|
|
193
|
+
},
|
|
194
|
+
"truncation": {
|
|
195
|
+
"truncated": false,
|
|
196
|
+
"requiredEvidenceLost": false,
|
|
197
|
+
"records": [
|
|
198
|
+
{
|
|
199
|
+
"id": "fixture.truncation.001",
|
|
200
|
+
"affectedGroup": "implementation-owners",
|
|
201
|
+
"limit": 10,
|
|
202
|
+
"used": 1,
|
|
203
|
+
"available": 1,
|
|
204
|
+
"droppedCount": 0,
|
|
205
|
+
"droppedEvidenceIds": [],
|
|
206
|
+
"requiredEvidenceLost": false,
|
|
207
|
+
"adequacyImpact": null,
|
|
208
|
+
"reason": "within declared limit"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"warnings": []
|
|
212
|
+
},
|
|
213
|
+
"fullFileFallback": {
|
|
214
|
+
"enabled": true,
|
|
215
|
+
"limit": null,
|
|
216
|
+
"used": 0,
|
|
217
|
+
"fallbacks": [
|
|
218
|
+
{
|
|
219
|
+
"id": "fixture.fallback.001",
|
|
220
|
+
"filePath": "src/other.ts",
|
|
221
|
+
"reason": "bounded retrieval insufficient",
|
|
222
|
+
"requestedEvidenceKind": null,
|
|
223
|
+
"boundedRetrievalAttempted": true,
|
|
224
|
+
"sourceRangesAttempted": 2,
|
|
225
|
+
"includedLineCount": 40,
|
|
226
|
+
"includedCharacterCount": 900,
|
|
227
|
+
"role": "implementation",
|
|
228
|
+
"responsibilityIdsAffected": [],
|
|
229
|
+
"allowed": false,
|
|
230
|
+
"provenance": "full-file-fallback"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"warnings": []
|
|
234
|
+
},
|
|
235
|
+
"provenance": [
|
|
236
|
+
{ "id": "fixture.provenance.001", "category": "code-graph", "sourcePath": "src/example.ts", "sourceId": null, "evidenceId": "symbol:src/example.ts#Example", "relationshipBasis": "candidate-ranking", "role": "implementation", "requestField": null, "derivedByModule": "candidateRanking.ts" }
|
|
237
|
+
]
|
|
238
|
+
}
|
package/tests/fixtures/upstream-artifacts/my-dev-kit-orchestrator/1.2.3/run-integrity/PROVENANCE.txt
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Artifact source: hand-built fixtures derived from the local my-dev-kit-orchestrator v1.2.3
|
|
2
|
+
readiness-candidate run-integrity contract (not a byte-for-byte real-run capture; the
|
|
3
|
+
orchestrator computes these as in-memory TypeScript results plus one real JSON file
|
|
4
|
+
[artifact-state.json record shape], not one combined JSON artifact -- this fixture bundles
|
|
5
|
+
them under one lab-owned envelope per Batch 3 section 14.1).
|
|
6
|
+
Producer repository: Z:/Users/newuser/Projects/my-dev-kit-orchestrator
|
|
7
|
+
Producer branch: fix/v1.2.3-run-integrity
|
|
8
|
+
Producer candidate commit: 2cb82f09ed423be8defd8277f28608c8a17eae3e
|
|
9
|
+
Producer contract files inspected: src/runIntegrityGate.ts, src/judgeIntegrity.ts,
|
|
10
|
+
src/artifactLifecycle.ts, src/correctionRouter.ts, src/judgeParser.ts
|
|
11
|
+
Bundled schema versions: RUN_INTEGRITY_GATE_SCHEMA_VERSION "1.0.0",
|
|
12
|
+
JUDGE_INTEGRITY_SCHEMA_VERSION "1.0.0" (both reused for the envelope's own "schemaVersion").
|
|
13
|
+
Nested implementationContext/testContext/primaryBlocker reuse the exact upstream
|
|
14
|
+
ContextReadinessResult / ContextReadinessBlockerSummary shape already mirrored by Batch 1's
|
|
15
|
+
orchestratorContextReadinessResultV1.ts -- validated through the existing
|
|
16
|
+
validateOrchestratorContextReadinessResultV1() rather than a second reader.
|
|
17
|
+
|
|
18
|
+
Fixtures in this directory:
|
|
19
|
+
- ready-pass-final-pass.json: the "everything agrees" positive chain (section 29.1) --
|
|
20
|
+
producer/readiness ready, prompt normal (implied by contextReady + no blockedStageNames),
|
|
21
|
+
expected/actual judge PASS, no correction route, final-report eligible/present/PASS,
|
|
22
|
+
lifecycle all complete.
|
|
23
|
+
- refresh-required-need-context.json: the "correctly blocked" positive chain (section 29.2)
|
|
24
|
+
-- readiness refresh-required, expected/actual judge NEED_CONTEXT, correction route active
|
|
25
|
+
to the canonical recommended stage, final report ineligible/absent, implementation stage
|
|
26
|
+
lifecycle forced to "blocked" by the gate.
|
|
27
|
+
|
|
28
|
+
Copy policy: hand-authored fixtures; edit directly when the mirrored contract changes, and
|
|
29
|
+
update this file's "Producer contract files inspected" list to match. These are bounded
|
|
30
|
+
Batch 3 contract fixtures, not the complete Batch 4 frozen ecosystem regression fixture (no
|
|
31
|
+
hash manifest, no byte-exact real-run provenance, no full negative matrix).
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"runFolder": "Z:/fixture/project/.my-dev-kit-orchestrator/runs/run-fixture-001",
|
|
4
|
+
"gate": {
|
|
5
|
+
"schemaVersion": "1.0.0",
|
|
6
|
+
"mode": "feature",
|
|
7
|
+
"contextRequired": true,
|
|
8
|
+
"applicableContextKinds": ["implementation", "test"],
|
|
9
|
+
"implementationContext": {
|
|
10
|
+
"schemaVersion": "1.0.0",
|
|
11
|
+
"kind": "implementation",
|
|
12
|
+
"role": "implementation",
|
|
13
|
+
"decision": "ready",
|
|
14
|
+
"classification": "ready",
|
|
15
|
+
"stageId": "stage.feature.implementation",
|
|
16
|
+
"packetPath": "artifacts/implementation-context-packet.txt",
|
|
17
|
+
"reportPath": "reports/implementation-context-retrieval-report.txt",
|
|
18
|
+
"issues": [],
|
|
19
|
+
"warnings": [],
|
|
20
|
+
"blockingIssueCodes": [],
|
|
21
|
+
"affectedResponsibilityIds": [],
|
|
22
|
+
"evaluatedFreshness": "fresh",
|
|
23
|
+
"evaluatedAdequacy": "sufficient",
|
|
24
|
+
"requiredEvidenceTruncated": "no",
|
|
25
|
+
"readyWithAssumptions": false,
|
|
26
|
+
"provenanceSummary": "resolved from populated packet/report pair",
|
|
27
|
+
"indexIdentity": "Z:/fixture/project"
|
|
28
|
+
},
|
|
29
|
+
"testContext": {
|
|
30
|
+
"schemaVersion": "1.0.0",
|
|
31
|
+
"kind": "test",
|
|
32
|
+
"role": "test-implementation",
|
|
33
|
+
"decision": "ready",
|
|
34
|
+
"classification": "ready",
|
|
35
|
+
"stageId": "stage.feature.test-implementation",
|
|
36
|
+
"packetPath": "artifacts/test-context-packet.txt",
|
|
37
|
+
"reportPath": "reports/test-context-retrieval-report.txt",
|
|
38
|
+
"issues": [],
|
|
39
|
+
"warnings": [],
|
|
40
|
+
"blockingIssueCodes": [],
|
|
41
|
+
"affectedResponsibilityIds": [],
|
|
42
|
+
"evaluatedFreshness": "fresh",
|
|
43
|
+
"evaluatedAdequacy": "sufficient",
|
|
44
|
+
"requiredEvidenceTruncated": "no",
|
|
45
|
+
"readyWithAssumptions": false,
|
|
46
|
+
"provenanceSummary": "resolved from populated packet/report pair",
|
|
47
|
+
"indexIdentity": "Z:/fixture/project"
|
|
48
|
+
},
|
|
49
|
+
"contextReady": true,
|
|
50
|
+
"readinessClassification": "ready",
|
|
51
|
+
"blockedStageNames": [],
|
|
52
|
+
"blockingCodes": [],
|
|
53
|
+
"recommendedCorrectionStage": null,
|
|
54
|
+
"expectedJudgeVerdict": "PASS",
|
|
55
|
+
"warnings": []
|
|
56
|
+
},
|
|
57
|
+
"judgeIntegrity": {
|
|
58
|
+
"schemaVersion": "1.0.0",
|
|
59
|
+
"judgeArtifactPresent": true,
|
|
60
|
+
"judgeVerdictParseStatus": "parsed",
|
|
61
|
+
"authoredJudgeVerdict": "PASS",
|
|
62
|
+
"expectedJudgeVerdict": "PASS",
|
|
63
|
+
"judgeVerdictMatchesExpected": true,
|
|
64
|
+
"judgeVerdictAccepted": true,
|
|
65
|
+
"correctionRequired": false,
|
|
66
|
+
"correctionBlocked": false,
|
|
67
|
+
"acceptedCorrectionStage": null,
|
|
68
|
+
"finalReportEligible": true,
|
|
69
|
+
"blockingCodes": [],
|
|
70
|
+
"acceptedCorrectionRoute": null
|
|
71
|
+
},
|
|
72
|
+
"finalReportEligibility": {
|
|
73
|
+
"eligible": true,
|
|
74
|
+
"contextReady": true,
|
|
75
|
+
"priorArtifactsValid": true,
|
|
76
|
+
"judgeIntegrity": {
|
|
77
|
+
"schemaVersion": "1.0.0",
|
|
78
|
+
"judgeArtifactPresent": true,
|
|
79
|
+
"judgeVerdictParseStatus": "parsed",
|
|
80
|
+
"authoredJudgeVerdict": "PASS",
|
|
81
|
+
"expectedJudgeVerdict": "PASS",
|
|
82
|
+
"judgeVerdictMatchesExpected": true,
|
|
83
|
+
"judgeVerdictAccepted": true,
|
|
84
|
+
"correctionRequired": false,
|
|
85
|
+
"correctionBlocked": false,
|
|
86
|
+
"acceptedCorrectionStage": null,
|
|
87
|
+
"finalReportEligible": true,
|
|
88
|
+
"blockingCodes": [],
|
|
89
|
+
"acceptedCorrectionRoute": null
|
|
90
|
+
},
|
|
91
|
+
"blockingCodes": []
|
|
92
|
+
},
|
|
93
|
+
"finalArtifactPresent": true,
|
|
94
|
+
"finalArtifactVerdict": "PASS",
|
|
95
|
+
"lifecycle": [
|
|
96
|
+
{
|
|
97
|
+
"artifactFile": "artifacts/architecture-context.txt",
|
|
98
|
+
"stageName": "architecture-context",
|
|
99
|
+
"fileExists": true,
|
|
100
|
+
"manualRecord": null,
|
|
101
|
+
"resolvedState": "complete"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"artifactFile": "artifacts/implementation.txt",
|
|
105
|
+
"stageName": "implementation",
|
|
106
|
+
"fileExists": true,
|
|
107
|
+
"manualRecord": null,
|
|
108
|
+
"resolvedState": "complete"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"artifactFile": "artifacts/test-implementation.txt",
|
|
112
|
+
"stageName": "test-implementation",
|
|
113
|
+
"fileExists": true,
|
|
114
|
+
"manualRecord": null,
|
|
115
|
+
"resolvedState": "complete"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"artifactFile": "artifacts/verification.txt",
|
|
119
|
+
"stageName": "verification",
|
|
120
|
+
"fileExists": true,
|
|
121
|
+
"manualRecord": { "state": "complete", "updatedAt": "2026-07-31T00:00:00.000Z", "source": "cli" },
|
|
122
|
+
"resolvedState": "complete"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"artifactFile": "artifacts/final-report.txt",
|
|
126
|
+
"stageName": "final-report",
|
|
127
|
+
"fileExists": true,
|
|
128
|
+
"manualRecord": null,
|
|
129
|
+
"resolvedState": "complete"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"runFolder": "Z:/fixture/project/.my-dev-kit-orchestrator/runs/run-fixture-002",
|
|
4
|
+
"gate": {
|
|
5
|
+
"schemaVersion": "1.0.0",
|
|
6
|
+
"mode": "feature",
|
|
7
|
+
"contextRequired": true,
|
|
8
|
+
"applicableContextKinds": ["implementation", "test"],
|
|
9
|
+
"implementationContext": {
|
|
10
|
+
"schemaVersion": "1.0.0",
|
|
11
|
+
"kind": "implementation",
|
|
12
|
+
"role": "implementation",
|
|
13
|
+
"decision": "refresh-required",
|
|
14
|
+
"classification": "required-evidence-truncated",
|
|
15
|
+
"stageId": "stage.feature.implementation",
|
|
16
|
+
"packetPath": "artifacts/implementation-context-packet.txt",
|
|
17
|
+
"reportPath": "reports/implementation-context-retrieval-report.txt",
|
|
18
|
+
"issues": [],
|
|
19
|
+
"warnings": [],
|
|
20
|
+
"blockingIssueCodes": ["CONTEXT_REQUIRED_EVIDENCE_TRUNCATED"],
|
|
21
|
+
"primaryIssue": {
|
|
22
|
+
"code": "CONTEXT_REQUIRED_EVIDENCE_TRUNCATED",
|
|
23
|
+
"severity": "error",
|
|
24
|
+
"message": "Required implementation evidence was truncated.",
|
|
25
|
+
"priority": 1,
|
|
26
|
+
"correctiveAction": "Refresh implementation context.",
|
|
27
|
+
"evidenceTarget": "implementation-context-packet",
|
|
28
|
+
"stageId": "stage.feature.implementation",
|
|
29
|
+
"contextKind": "implementation"
|
|
30
|
+
},
|
|
31
|
+
"blockerSummary": {
|
|
32
|
+
"contextKind": "implementation",
|
|
33
|
+
"primaryCode": "CONTEXT_REQUIRED_EVIDENCE_TRUNCATED",
|
|
34
|
+
"primaryReason": "Required implementation evidence was truncated.",
|
|
35
|
+
"correctiveAction": "Refresh implementation context.",
|
|
36
|
+
"evidenceTarget": "implementation-context-packet",
|
|
37
|
+
"blockingIssueCodes": ["CONTEXT_REQUIRED_EVIDENCE_TRUNCATED"],
|
|
38
|
+
"supportingIssueCodes": []
|
|
39
|
+
},
|
|
40
|
+
"affectedResponsibilityIds": [],
|
|
41
|
+
"evaluatedFreshness": "fresh",
|
|
42
|
+
"evaluatedAdequacy": "insufficient",
|
|
43
|
+
"requiredEvidenceTruncated": "yes",
|
|
44
|
+
"readyWithAssumptions": false,
|
|
45
|
+
"provenanceSummary": "resolved from populated packet/report pair",
|
|
46
|
+
"indexIdentity": "Z:/fixture/project"
|
|
47
|
+
},
|
|
48
|
+
"contextReady": false,
|
|
49
|
+
"readinessClassification": "refresh-required",
|
|
50
|
+
"blockedStageNames": ["implementation"],
|
|
51
|
+
"blockingCodes": ["CONTEXT_REQUIRED_EVIDENCE_TRUNCATED"],
|
|
52
|
+
"primaryBlocker": {
|
|
53
|
+
"contextKind": "implementation",
|
|
54
|
+
"primaryCode": "CONTEXT_REQUIRED_EVIDENCE_TRUNCATED",
|
|
55
|
+
"primaryReason": "Required implementation evidence was truncated.",
|
|
56
|
+
"correctiveAction": "Refresh implementation context.",
|
|
57
|
+
"evidenceTarget": "implementation-context-packet",
|
|
58
|
+
"blockingIssueCodes": ["CONTEXT_REQUIRED_EVIDENCE_TRUNCATED"],
|
|
59
|
+
"supportingIssueCodes": []
|
|
60
|
+
},
|
|
61
|
+
"recommendedCorrectionStage": "implementation",
|
|
62
|
+
"expectedJudgeVerdict": "NEED_CONTEXT",
|
|
63
|
+
"warnings": []
|
|
64
|
+
},
|
|
65
|
+
"judgeIntegrity": {
|
|
66
|
+
"schemaVersion": "1.0.0",
|
|
67
|
+
"judgeArtifactPresent": true,
|
|
68
|
+
"judgeVerdictParseStatus": "parsed",
|
|
69
|
+
"authoredJudgeVerdict": "NEED_CONTEXT",
|
|
70
|
+
"expectedJudgeVerdict": "NEED_CONTEXT",
|
|
71
|
+
"judgeVerdictMatchesExpected": true,
|
|
72
|
+
"judgeVerdictAccepted": true,
|
|
73
|
+
"correctionRequired": true,
|
|
74
|
+
"correctionBlocked": false,
|
|
75
|
+
"acceptedCorrectionStage": "implementation",
|
|
76
|
+
"finalReportEligible": false,
|
|
77
|
+
"blockingCodes": [],
|
|
78
|
+
"acceptedCorrectionRoute": {
|
|
79
|
+
"verdict": "NEED_CONTEXT",
|
|
80
|
+
"recommendedStage": "implementation",
|
|
81
|
+
"routedStage": "implementation",
|
|
82
|
+
"routeStatus": "correction_required",
|
|
83
|
+
"warnings": [],
|
|
84
|
+
"errors": [],
|
|
85
|
+
"isBlocked": false,
|
|
86
|
+
"strictFail": false
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"finalReportEligibility": {
|
|
90
|
+
"eligible": false,
|
|
91
|
+
"contextReady": false,
|
|
92
|
+
"priorArtifactsValid": false,
|
|
93
|
+
"judgeIntegrity": {
|
|
94
|
+
"schemaVersion": "1.0.0",
|
|
95
|
+
"judgeArtifactPresent": true,
|
|
96
|
+
"judgeVerdictParseStatus": "parsed",
|
|
97
|
+
"authoredJudgeVerdict": "NEED_CONTEXT",
|
|
98
|
+
"expectedJudgeVerdict": "NEED_CONTEXT",
|
|
99
|
+
"judgeVerdictMatchesExpected": true,
|
|
100
|
+
"judgeVerdictAccepted": true,
|
|
101
|
+
"correctionRequired": true,
|
|
102
|
+
"correctionBlocked": false,
|
|
103
|
+
"acceptedCorrectionStage": "implementation",
|
|
104
|
+
"finalReportEligible": false,
|
|
105
|
+
"blockingCodes": [],
|
|
106
|
+
"acceptedCorrectionRoute": {
|
|
107
|
+
"verdict": "NEED_CONTEXT",
|
|
108
|
+
"recommendedStage": "implementation",
|
|
109
|
+
"routedStage": "implementation",
|
|
110
|
+
"routeStatus": "correction_required",
|
|
111
|
+
"warnings": [],
|
|
112
|
+
"errors": [],
|
|
113
|
+
"isBlocked": false,
|
|
114
|
+
"strictFail": false
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"blockingCodes": ["FINAL_REPORT_PRIOR_ARTIFACTS_INCOMPLETE"],
|
|
118
|
+
"primaryReason": "A required prior native artifact is not yet complete."
|
|
119
|
+
},
|
|
120
|
+
"finalArtifactPresent": false,
|
|
121
|
+
"finalArtifactVerdict": null,
|
|
122
|
+
"lifecycle": [
|
|
123
|
+
{
|
|
124
|
+
"artifactFile": "artifacts/architecture-context.txt",
|
|
125
|
+
"stageName": "architecture-context",
|
|
126
|
+
"fileExists": true,
|
|
127
|
+
"manualRecord": null,
|
|
128
|
+
"resolvedState": "complete"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"artifactFile": "artifacts/implementation.txt",
|
|
132
|
+
"stageName": "implementation",
|
|
133
|
+
"fileExists": true,
|
|
134
|
+
"manualRecord": null,
|
|
135
|
+
"resolvedState": "blocked",
|
|
136
|
+
"blockingReason": "Required implementation evidence was truncated."
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"artifactFile": "artifacts/final-report.txt",
|
|
140
|
+
"stageName": "final-report",
|
|
141
|
+
"fileExists": false,
|
|
142
|
+
"manualRecord": null,
|
|
143
|
+
"resolvedState": "missing"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|