@dailephd/my-dev-kit-lab 0.4.2 → 0.4.4
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 +28 -113
- package/benchmarks/contracts/todo-behavior.md +1 -1
- package/benchmarks/projects/task-analytics-large-mixed/README.md +2 -0
- package/benchmarks/projects/task-workflow-medium-ts/README.md +3 -1
- package/dist/src/evaluation/stageContextDeterminism/calculateStageContextDeterminism.js +52 -0
- package/dist/src/evaluation/stageContextDeterminism/canonicalizeStageContextRun.js +53 -0
- package/dist/src/evaluation/stageContextDeterminism/index.js +2 -0
- package/dist/src/evaluation/stageContextDeterminism/types.js +1 -0
- package/dist/src/evaluation/stageContextExpectations/index.js +2 -0
- package/dist/src/evaluation/stageContextExpectations/producerReadinessExpectationTypes.js +8 -0
- package/dist/src/evaluation/stageContextExpectations/readStageContextExpectationFixtureV1.js +50 -0
- package/dist/src/evaluation/stageContextExpectations/readTypes.js +1 -0
- package/dist/src/evaluation/stageContextExpectations/types.js +1 -0
- package/dist/src/evaluation/stageContextExpectations/validation.js +768 -0
- package/dist/src/evaluation/stageContextMetrics/calculateAllocationMetrics.js +96 -0
- package/dist/src/evaluation/stageContextMetrics/calculateArtifactStateMetrics.js +130 -0
- package/dist/src/evaluation/stageContextMetrics/calculateContextSizeMetrics.js +85 -0
- package/dist/src/evaluation/stageContextMetrics/calculateCriticalityMetrics.js +112 -0
- package/dist/src/evaluation/stageContextMetrics/calculateExpectationMetrics.js +103 -0
- package/dist/src/evaluation/stageContextMetrics/calculateOwnerMetrics.js +84 -0
- package/dist/src/evaluation/stageContextMetrics/calculateReadinessAgreement.js +152 -0
- package/dist/src/evaluation/stageContextMetrics/calculateResponsibilityMappingMetrics.js +36 -0
- package/dist/src/evaluation/stageContextMetrics/calculateSupplementalRawAgreement.js +50 -0
- package/dist/src/evaluation/stageContextMetrics/calculateTruncationClassification.js +44 -0
- package/dist/src/evaluation/stageContextMetrics/collectContextCapsuleEvidence.js +312 -0
- package/dist/src/evaluation/stageContextMetrics/collectRetrievalAuditEvidence.js +35 -0
- package/dist/src/evaluation/stageContextMetrics/collectWorkflowInstructionEvidence.js +137 -0
- package/dist/src/evaluation/stageContextMetrics/evaluateProducerReadinessBridge.js +127 -0
- package/dist/src/evaluation/stageContextMetrics/evaluateV043StageContextExecution.js +247 -0
- package/dist/src/evaluation/stageContextMetrics/index.js +17 -0
- package/dist/src/evaluation/stageContextMetrics/matchStageContextExpectations.js +38 -0
- package/dist/src/evaluation/stageContextMetrics/producerReadinessMetricTypes.js +1 -0
- package/dist/src/evaluation/stageContextMetrics/targetKeys.js +35 -0
- package/dist/src/evaluation/stageContextMetrics/types.js +1 -0
- package/dist/src/evaluation/stageContextSelectors/contextArtifactConsistency.js +89 -0
- package/dist/src/evaluation/stageContextSelectors/contextCapsuleSelectors.js +126 -0
- package/dist/src/evaluation/stageContextSelectors/index.js +4 -0
- package/dist/src/evaluation/stageContextSelectors/retrievalAuditRecordSelectors.js +54 -0
- package/dist/src/evaluation/stageContextSelectors/workflowInstructionPacketSelectors.js +51 -0
- package/dist/src/evaluation/targetImmutability/captureTargetSnapshot.js +208 -0
- package/dist/src/evaluation/targetImmutability/compareTargetSnapshots.js +56 -0
- package/dist/src/evaluation/targetImmutability/index.js +3 -0
- package/dist/src/evaluation/targetImmutability/types.js +1 -0
- package/dist/src/evaluation/targetImmutability/validateTargetImmutabilityConfig.js +130 -0
- package/dist/src/evaluation/upstreamArtifacts/artifactReadTypes.js +1 -0
- package/dist/src/evaluation/upstreamArtifacts/index.js +9 -0
- package/dist/src/evaluation/upstreamArtifacts/jsonTypes.js +1 -0
- package/dist/src/evaluation/upstreamArtifacts/myDevKitClassificationTypesV1.js +1 -0
- package/dist/src/evaluation/upstreamArtifacts/myDevKitContextArtifactsV1.js +1 -0
- package/dist/src/evaluation/upstreamArtifacts/myDevKitSemanticTypesV1.js +1 -0
- package/dist/src/evaluation/upstreamArtifacts/orchestratorContextReadinessResultV1.js +247 -0
- package/dist/src/evaluation/upstreamArtifacts/orchestratorWorkflowInstructionPacketV1.js +1 -0
- package/dist/src/evaluation/upstreamArtifacts/readImplementationContextPacketV1.js +9 -0
- package/dist/src/evaluation/upstreamArtifacts/readImplementationContextRetrievalReportV1.js +9 -0
- package/dist/src/evaluation/upstreamArtifacts/readJsonArtifact.js +53 -0
- package/dist/src/evaluation/upstreamArtifacts/readMyDevKitContextCapsuleV1.js +9 -0
- package/dist/src/evaluation/upstreamArtifacts/readMyDevKitRetrievalAuditRecordV1.js +9 -0
- package/dist/src/evaluation/upstreamArtifacts/readOrchestratorWorkflowInstructionPacketV1.js +9 -0
- package/dist/src/evaluation/upstreamArtifacts/readSupplementalContextTextFile.js +29 -0
- package/dist/src/evaluation/upstreamArtifacts/readTestContextPacketV1.js +9 -0
- package/dist/src/evaluation/upstreamArtifacts/readTestContextRetrievalReportV1.js +9 -0
- package/dist/src/evaluation/upstreamArtifacts/runtimeValidation.js +131 -0
- package/dist/src/evaluation/upstreamArtifacts/schemaVersion.js +32 -0
- package/dist/src/evaluation/upstreamArtifacts/supplementalContextTextParser.js +75 -0
- package/dist/src/evaluation/upstreamArtifacts/supplementalContextTypes.js +152 -0
- package/dist/src/evaluation/upstreamArtifacts/validateMyDevKitContextCapsuleV1.js +1208 -0
- package/dist/src/evaluation/upstreamArtifacts/validateMyDevKitRetrievalAuditRecordV1.js +112 -0
- package/dist/src/evaluation/upstreamArtifacts/validateOrchestratorWorkflowInstructionPacketV1.js +235 -0
- package/dist/src/evaluation/upstreamArtifacts/validateSupplementalContextDocumentV1.js +148 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/executeV043StageContextStrategy.js +46 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/index.js +9 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/loadV043StrategyArtifacts.js +397 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/plugin.js +39 -1
- package/dist/src/experiments/plugins/contextStrategyComparison/readV043FullWorkflowLibraryFixture.js +162 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/resolveV043StrategyInputs.js +43 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/resultMapping.js +3 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/runV043StageContextStrategyWithAssurance.js +205 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/v043FullWorkflowLibraryFixture.js +1 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/v043RunAssuranceTypes.js +1 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/v043StrategyExecutionTypes.js +1 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/v043StrategyIds.js +13 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/v043StrategyInputContracts.js +1 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/validateV043RunAssuranceConfig.js +59 -0
- package/dist/src/experiments/plugins/contextStrategyComparison/validateV043StrategyInput.js +266 -0
- package/dist/src/report/experiments/buildContextStrategyComparisonV043Report.js +520 -0
- package/dist/src/report/experiments/buildPluginExperimentReport.js +21 -6
- package/dist/src/report/experiments/contextStrategyComparisonV043ReportModel.js +1 -0
- package/dist/src/report/experiments/index.js +4 -0
- package/dist/src/report/experiments/renderContextStrategyComparisonV043Html.js +296 -0
- package/dist/src/report/experiments/renderPluginExperimentReportHtml.js +3 -0
- package/dist/src/report/experiments/renderPluginExperimentReportText.js +292 -0
- package/dist/src/report/experiments/writePluginExperimentReports.js +3 -0
- package/dist/src/securityValidation/attackScenarios/scenarios/secretLeakageScenario.js +215 -9
- package/docs/METRICS.md +84 -10
- package/package.json +2 -2
- package/tests/fixtures/full-workflow-library/complete-v1.0.0.json +24 -0
- package/tests/fixtures/full-workflow-library/future-minor-v1.1.0-additive.json +25 -0
- package/tests/fixtures/stage-context-expectations/complete-v1.0.0.json +230 -0
- package/tests/fixtures/stage-context-expectations/future-minor-v1.1.0-additive.json +232 -0
- package/tests/fixtures/stage-context-expectations/invalid/malformed-json.txt +1 -0
- package/tests/fixtures/stage-context-expectations/invalid/non-object-root.json +1 -0
- package/tests/fixtures/stage-context-expectations/minimal-v1.0.0.json +18 -0
- package/tests/fixtures/upstream-artifacts/invalid/malformed-json.txt +1 -0
- package/tests/fixtures/upstream-artifacts/invalid/non-object-root.json +1 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.2/context-capsule/complete-v1.0.0.json +504 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.2/context-capsule/future-minor-v1.1.0-additive.json +955 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.2/retrieval-audit-record/complete-v1.0.0.json +190 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.2/retrieval-audit-record/future-minor-v1.1.0-additive.json +327 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit-1.10.2-identity/PROVENANCE.txt +13 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit-1.10.2-identity/context-capsule.json +7874 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit-1.10.2-identity/retrieval-audit-record.json +1076 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit-orchestrator/1.2.1/workflow-instruction-packet/complete-v1.0.0.json +160 -0
- package/tests/fixtures/upstream-artifacts/my-dev-kit-orchestrator/1.2.1/workflow-instruction-packet/future-minor-v1.1.0-additive.json +186 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"generatedAt": "2026-07-21T00:00:00.000Z",
|
|
4
|
+
"tool": { "name": "my-dev-kit", "version": "1.10.2" },
|
|
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/retrieval-audit-record.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
|
+
},
|
|
17
|
+
"steps": [
|
|
18
|
+
{
|
|
19
|
+
"id": "fixture.step.001",
|
|
20
|
+
"kind": "validate-inputs",
|
|
21
|
+
"description": "Validate CLI inputs.",
|
|
22
|
+
"inputs": { "query": "Inspect task implementation and tests", "mode": "feature-add", "role": "implementation", "notes": null },
|
|
23
|
+
"outputs": { "valid": true, "warningCount": 0 },
|
|
24
|
+
"status": "ok",
|
|
25
|
+
"warnings": []
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "fixture.step.002",
|
|
29
|
+
"kind": "run-search",
|
|
30
|
+
"description": "Run search against the index.",
|
|
31
|
+
"inputs": { "query": "Inspect task implementation and tests" },
|
|
32
|
+
"outputs": { "resultCount": 1, "topScore": 12.5 },
|
|
33
|
+
"status": "ok",
|
|
34
|
+
"warnings": []
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "fixture.step.003",
|
|
38
|
+
"kind": "use-local-source-expansion",
|
|
39
|
+
"description": "Attempted local source expansion.",
|
|
40
|
+
"inputs": { "focusNodeId": "symbol:src/example.ts#Example" },
|
|
41
|
+
"outputs": { "used": false },
|
|
42
|
+
"status": "skipped",
|
|
43
|
+
"warnings": ["local expansion not required"]
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"fallbacks": [],
|
|
47
|
+
"fullFileReadRecommendations": [
|
|
48
|
+
{
|
|
49
|
+
"filePath": "src/other.ts",
|
|
50
|
+
"reason": "bounded retrieval insufficient",
|
|
51
|
+
"missingContext": "full implementation detail",
|
|
52
|
+
"continuationOrExpansionAttempted": true
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"filePath": "src/legacy.ts",
|
|
56
|
+
"reason": "continuation could not be attempted",
|
|
57
|
+
"missingContext": "legacy behavior detail",
|
|
58
|
+
"continuationOrExpansionAttempted": "unavailable"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"warnings": ["Fixture warning: synthetic data only."],
|
|
62
|
+
"contextAdequacy": {
|
|
63
|
+
"status": "context sufficient with listed assumptions",
|
|
64
|
+
"summary": "A best-effort focus node was selected; some ambiguity or thin graph/source/metadata evidence remains.",
|
|
65
|
+
"assumptions": ["Fixture assumption."],
|
|
66
|
+
"gaps": ["Fixture gap."]
|
|
67
|
+
},
|
|
68
|
+
"roleContext": {
|
|
69
|
+
"role": "implementation",
|
|
70
|
+
"focus": {
|
|
71
|
+
"focusFiles": [{ "path": "src/example.ts", "resolved": true, "matchedFilePaths": ["src/example.ts"], "containedSymbolIds": ["symbol:src/example.ts#Example"] }],
|
|
72
|
+
"focusSymbols": [{ "symbol": "Example", "resolved": true, "ambiguous": false, "matchedNodeIds": ["symbol:src/example.ts#Example"] }],
|
|
73
|
+
"unresolvedFocusFiles": [],
|
|
74
|
+
"unresolvedFocusSymbols": [],
|
|
75
|
+
"ambiguousFocusSymbols": [],
|
|
76
|
+
"warnings": []
|
|
77
|
+
},
|
|
78
|
+
"changedSurface": {
|
|
79
|
+
"available": true,
|
|
80
|
+
"diffRequested": true,
|
|
81
|
+
"files": [{ "path": "src/example.ts", "status": "modified", "provenance": "both" }],
|
|
82
|
+
"symbols": [{ "symbolId": "symbol:src/example.ts#Example", "status": "modified", "provenance": "graph-diff", "filePath": "src/example.ts", "name": "Example", "kind": "symbol" }],
|
|
83
|
+
"conflicts": [],
|
|
84
|
+
"warnings": []
|
|
85
|
+
},
|
|
86
|
+
"requestedEvidenceKinds": ["owner", "dependencies"],
|
|
87
|
+
"unsupportedRequestedEvidenceKinds": ["responsibility-mappings"],
|
|
88
|
+
"warnings": []
|
|
89
|
+
},
|
|
90
|
+
"responsibilityMappings": {
|
|
91
|
+
"requested": true,
|
|
92
|
+
"operational": true,
|
|
93
|
+
"mappings": [
|
|
94
|
+
{
|
|
95
|
+
"responsibilityId": "fixture.responsibility.001",
|
|
96
|
+
"behavior": "Example behaves correctly.",
|
|
97
|
+
"invariant": null,
|
|
98
|
+
"criticality": "critical",
|
|
99
|
+
"productionSymbols": [{ "id": "symbol:src/example.ts#Example", "itemKind": "symbol", "symbolId": "symbol:src/example.ts#Example", "relationship": "production-symbol", "basis": "candidate-ranking", "provenance": "candidate-ranking" }],
|
|
100
|
+
"contracts": [],
|
|
101
|
+
"validators": [],
|
|
102
|
+
"constants": [],
|
|
103
|
+
"errors": [],
|
|
104
|
+
"sideEffectEvidence": [],
|
|
105
|
+
"proposedOrExistingTestFiles": [{ "id": "tests/example.spec.ts", "itemKind": "test-file", "path": "tests/example.spec.ts", "relationship": "proposed-test", "basis": "path-proximity", "provenance": "test-directory-walk" }],
|
|
106
|
+
"reusableHelpers": [],
|
|
107
|
+
"oracleEvidence": [],
|
|
108
|
+
"testCommands": [],
|
|
109
|
+
"mappingStatus": "mapped",
|
|
110
|
+
"unresolvedReasons": [],
|
|
111
|
+
"provenance": [
|
|
112
|
+
{ "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" }
|
|
113
|
+
],
|
|
114
|
+
"warnings": []
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"unknownResponsibilityIds": [],
|
|
118
|
+
"duplicateResponsibilityIds": [],
|
|
119
|
+
"limit": null,
|
|
120
|
+
"availableCount": 1,
|
|
121
|
+
"usedCount": 1,
|
|
122
|
+
"truncated": false,
|
|
123
|
+
"droppedCount": 0,
|
|
124
|
+
"criticalDropped": false,
|
|
125
|
+
"warnings": []
|
|
126
|
+
},
|
|
127
|
+
"roleAdequacy": {
|
|
128
|
+
"role": "implementation",
|
|
129
|
+
"status": "context sufficient with listed assumptions",
|
|
130
|
+
"requiredConditions": ["single high-confidence focus node"],
|
|
131
|
+
"satisfiedConditions": ["single high-confidence focus node"],
|
|
132
|
+
"missingConditions": [],
|
|
133
|
+
"blockingConditions": [],
|
|
134
|
+
"warnings": [],
|
|
135
|
+
"supportingEvidence": ["symbol:src/example.ts#Example"],
|
|
136
|
+
"affectedResponsibilityIds": ["fixture.responsibility.001"],
|
|
137
|
+
"truncationImpact": false,
|
|
138
|
+
"freshnessImpact": false
|
|
139
|
+
},
|
|
140
|
+
"freshness": {
|
|
141
|
+
"state": "fresh",
|
|
142
|
+
"role": "implementation",
|
|
143
|
+
"evidenceUsed": ["code-graph"],
|
|
144
|
+
"evidenceUnavailable": ["before-index"],
|
|
145
|
+
"comparedIdentities": [
|
|
146
|
+
{ "label": "index-manifest-hash", "value": "fixture-hash-001" },
|
|
147
|
+
{ "label": "before-index-manifest-hash", "value": null }
|
|
148
|
+
],
|
|
149
|
+
"reason": "Active index manifest hash matches the most recent recorded identity.",
|
|
150
|
+
"relevantChangedPaths": ["src/example.ts"],
|
|
151
|
+
"warnings": []
|
|
152
|
+
},
|
|
153
|
+
"budget": {
|
|
154
|
+
"limits": [
|
|
155
|
+
{ "name": "candidates", "declaredValue": 50, "usedValue": 1, "availableCount": 49, "droppedCount": 0, "truncated": false, "requiredEvidenceAffected": false, "adequacyImpact": null }
|
|
156
|
+
],
|
|
157
|
+
"characters": null,
|
|
158
|
+
"warnings": []
|
|
159
|
+
},
|
|
160
|
+
"truncation": {
|
|
161
|
+
"truncated": false,
|
|
162
|
+
"records": [],
|
|
163
|
+
"warnings": []
|
|
164
|
+
},
|
|
165
|
+
"fullFileFallback": {
|
|
166
|
+
"enabled": true,
|
|
167
|
+
"limit": null,
|
|
168
|
+
"used": 1,
|
|
169
|
+
"fallbacks": [
|
|
170
|
+
{
|
|
171
|
+
"id": "fixture.fallback.001",
|
|
172
|
+
"filePath": "src/other.ts",
|
|
173
|
+
"reason": "bounded retrieval insufficient",
|
|
174
|
+
"requestedEvidenceKind": null,
|
|
175
|
+
"boundedRetrievalAttempted": true,
|
|
176
|
+
"sourceRangesAttempted": 2,
|
|
177
|
+
"includedLineCount": 40,
|
|
178
|
+
"includedCharacterCount": 900,
|
|
179
|
+
"role": "implementation",
|
|
180
|
+
"responsibilityIdsAffected": [],
|
|
181
|
+
"allowed": true,
|
|
182
|
+
"provenance": "full-file-fallback"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"warnings": []
|
|
186
|
+
},
|
|
187
|
+
"provenance": [
|
|
188
|
+
{ "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" }
|
|
189
|
+
]
|
|
190
|
+
}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.1.0",
|
|
3
|
+
"generatedAt": "2026-07-21T00:00:00.000Z",
|
|
4
|
+
"tool": {
|
|
5
|
+
"name": "my-dev-kit",
|
|
6
|
+
"version": "1.10.2",
|
|
7
|
+
"futureNestedField": "preserved"
|
|
8
|
+
},
|
|
9
|
+
"request": {
|
|
10
|
+
"originalQuery": "Inspect task implementation and tests",
|
|
11
|
+
"normalizedQuery": "Inspect task implementation and tests",
|
|
12
|
+
"mode": "feature-add",
|
|
13
|
+
"requestedOutputPath": "Z:/fixture/project/.my-dev-kit/retrieval-audit-record.json",
|
|
14
|
+
"role": "implementation",
|
|
15
|
+
"requestFilePath": null
|
|
16
|
+
},
|
|
17
|
+
"index": {
|
|
18
|
+
"indexPath": "Z:/fixture/project/.my-dev-kit",
|
|
19
|
+
"manifestPath": "Z:/fixture/project/.my-dev-kit/manifest.json"
|
|
20
|
+
},
|
|
21
|
+
"steps": [
|
|
22
|
+
{
|
|
23
|
+
"id": "fixture.step.001",
|
|
24
|
+
"kind": "validate-inputs",
|
|
25
|
+
"description": "Validate CLI inputs.",
|
|
26
|
+
"inputs": {
|
|
27
|
+
"query": "Inspect task implementation and tests",
|
|
28
|
+
"mode": "feature-add",
|
|
29
|
+
"role": "implementation",
|
|
30
|
+
"notes": null
|
|
31
|
+
},
|
|
32
|
+
"outputs": {
|
|
33
|
+
"valid": true,
|
|
34
|
+
"warningCount": 0
|
|
35
|
+
},
|
|
36
|
+
"status": "ok",
|
|
37
|
+
"warnings": []
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "fixture.step.002",
|
|
41
|
+
"kind": "run-search",
|
|
42
|
+
"description": "Run search against the index.",
|
|
43
|
+
"inputs": {
|
|
44
|
+
"query": "Inspect task implementation and tests"
|
|
45
|
+
},
|
|
46
|
+
"outputs": {
|
|
47
|
+
"resultCount": 1,
|
|
48
|
+
"topScore": 12.5
|
|
49
|
+
},
|
|
50
|
+
"status": "ok",
|
|
51
|
+
"warnings": []
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "fixture.step.003",
|
|
55
|
+
"kind": "use-local-source-expansion",
|
|
56
|
+
"description": "Attempted local source expansion.",
|
|
57
|
+
"inputs": {
|
|
58
|
+
"focusNodeId": "symbol:src/example.ts#Example"
|
|
59
|
+
},
|
|
60
|
+
"outputs": {
|
|
61
|
+
"used": false
|
|
62
|
+
},
|
|
63
|
+
"status": "skipped",
|
|
64
|
+
"warnings": [
|
|
65
|
+
"local expansion not required"
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"fallbacks": [],
|
|
70
|
+
"fullFileReadRecommendations": [
|
|
71
|
+
{
|
|
72
|
+
"filePath": "src/other.ts",
|
|
73
|
+
"reason": "bounded retrieval insufficient",
|
|
74
|
+
"missingContext": "full implementation detail",
|
|
75
|
+
"continuationOrExpansionAttempted": true
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"filePath": "src/legacy.ts",
|
|
79
|
+
"reason": "continuation could not be attempted",
|
|
80
|
+
"missingContext": "legacy behavior detail",
|
|
81
|
+
"continuationOrExpansionAttempted": "unavailable"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"warnings": [
|
|
85
|
+
"Fixture warning: synthetic data only."
|
|
86
|
+
],
|
|
87
|
+
"contextAdequacy": {
|
|
88
|
+
"status": "context sufficient with listed assumptions",
|
|
89
|
+
"summary": "A best-effort focus node was selected; some ambiguity or thin graph/source/metadata evidence remains.",
|
|
90
|
+
"assumptions": [
|
|
91
|
+
"Fixture assumption."
|
|
92
|
+
],
|
|
93
|
+
"gaps": [
|
|
94
|
+
"Fixture gap."
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"roleContext": {
|
|
98
|
+
"role": "implementation",
|
|
99
|
+
"focus": {
|
|
100
|
+
"focusFiles": [
|
|
101
|
+
{
|
|
102
|
+
"path": "src/example.ts",
|
|
103
|
+
"resolved": true,
|
|
104
|
+
"matchedFilePaths": [
|
|
105
|
+
"src/example.ts"
|
|
106
|
+
],
|
|
107
|
+
"containedSymbolIds": [
|
|
108
|
+
"symbol:src/example.ts#Example"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"focusSymbols": [
|
|
113
|
+
{
|
|
114
|
+
"symbol": "Example",
|
|
115
|
+
"resolved": true,
|
|
116
|
+
"ambiguous": false,
|
|
117
|
+
"matchedNodeIds": [
|
|
118
|
+
"symbol:src/example.ts#Example"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"unresolvedFocusFiles": [],
|
|
123
|
+
"unresolvedFocusSymbols": [],
|
|
124
|
+
"ambiguousFocusSymbols": [],
|
|
125
|
+
"warnings": []
|
|
126
|
+
},
|
|
127
|
+
"changedSurface": {
|
|
128
|
+
"available": true,
|
|
129
|
+
"diffRequested": true,
|
|
130
|
+
"files": [
|
|
131
|
+
{
|
|
132
|
+
"path": "src/example.ts",
|
|
133
|
+
"status": "modified",
|
|
134
|
+
"provenance": "both"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"symbols": [
|
|
138
|
+
{
|
|
139
|
+
"symbolId": "symbol:src/example.ts#Example",
|
|
140
|
+
"status": "modified",
|
|
141
|
+
"provenance": "graph-diff",
|
|
142
|
+
"filePath": "src/example.ts",
|
|
143
|
+
"name": "Example",
|
|
144
|
+
"kind": "symbol"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"conflicts": [],
|
|
148
|
+
"warnings": []
|
|
149
|
+
},
|
|
150
|
+
"requestedEvidenceKinds": [
|
|
151
|
+
"owner",
|
|
152
|
+
"dependencies"
|
|
153
|
+
],
|
|
154
|
+
"unsupportedRequestedEvidenceKinds": [
|
|
155
|
+
"responsibility-mappings"
|
|
156
|
+
],
|
|
157
|
+
"warnings": []
|
|
158
|
+
},
|
|
159
|
+
"responsibilityMappings": {
|
|
160
|
+
"requested": true,
|
|
161
|
+
"operational": true,
|
|
162
|
+
"mappings": [
|
|
163
|
+
{
|
|
164
|
+
"responsibilityId": "fixture.responsibility.001",
|
|
165
|
+
"behavior": "Example behaves correctly.",
|
|
166
|
+
"invariant": null,
|
|
167
|
+
"criticality": "critical",
|
|
168
|
+
"productionSymbols": [
|
|
169
|
+
{
|
|
170
|
+
"id": "symbol:src/example.ts#Example",
|
|
171
|
+
"itemKind": "symbol",
|
|
172
|
+
"symbolId": "symbol:src/example.ts#Example",
|
|
173
|
+
"relationship": "production-symbol",
|
|
174
|
+
"basis": "candidate-ranking",
|
|
175
|
+
"provenance": "candidate-ranking"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"contracts": [],
|
|
179
|
+
"validators": [],
|
|
180
|
+
"constants": [],
|
|
181
|
+
"errors": [],
|
|
182
|
+
"sideEffectEvidence": [],
|
|
183
|
+
"proposedOrExistingTestFiles": [
|
|
184
|
+
{
|
|
185
|
+
"id": "tests/example.spec.ts",
|
|
186
|
+
"itemKind": "test-file",
|
|
187
|
+
"path": "tests/example.spec.ts",
|
|
188
|
+
"relationship": "proposed-test",
|
|
189
|
+
"basis": "path-proximity",
|
|
190
|
+
"provenance": "test-directory-walk"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"reusableHelpers": [],
|
|
194
|
+
"oracleEvidence": [],
|
|
195
|
+
"testCommands": [],
|
|
196
|
+
"mappingStatus": "mapped",
|
|
197
|
+
"unresolvedReasons": [],
|
|
198
|
+
"provenance": [
|
|
199
|
+
{
|
|
200
|
+
"id": "fixture.provenance.mapping.001",
|
|
201
|
+
"category": "code-graph",
|
|
202
|
+
"sourcePath": "src/example.ts",
|
|
203
|
+
"sourceId": null,
|
|
204
|
+
"evidenceId": "symbol:src/example.ts#Example",
|
|
205
|
+
"relationshipBasis": "candidate-ranking",
|
|
206
|
+
"role": "implementation",
|
|
207
|
+
"requestField": null,
|
|
208
|
+
"derivedByModule": "responsibilityMapping.ts"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"warnings": []
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"unknownResponsibilityIds": [],
|
|
215
|
+
"duplicateResponsibilityIds": [],
|
|
216
|
+
"limit": null,
|
|
217
|
+
"availableCount": 1,
|
|
218
|
+
"usedCount": 1,
|
|
219
|
+
"truncated": false,
|
|
220
|
+
"droppedCount": 0,
|
|
221
|
+
"criticalDropped": false,
|
|
222
|
+
"warnings": []
|
|
223
|
+
},
|
|
224
|
+
"roleAdequacy": {
|
|
225
|
+
"role": "implementation",
|
|
226
|
+
"status": "context sufficient with listed assumptions",
|
|
227
|
+
"requiredConditions": [
|
|
228
|
+
"single high-confidence focus node"
|
|
229
|
+
],
|
|
230
|
+
"satisfiedConditions": [
|
|
231
|
+
"single high-confidence focus node"
|
|
232
|
+
],
|
|
233
|
+
"missingConditions": [],
|
|
234
|
+
"blockingConditions": [],
|
|
235
|
+
"warnings": [],
|
|
236
|
+
"supportingEvidence": [
|
|
237
|
+
"symbol:src/example.ts#Example"
|
|
238
|
+
],
|
|
239
|
+
"affectedResponsibilityIds": [
|
|
240
|
+
"fixture.responsibility.001"
|
|
241
|
+
],
|
|
242
|
+
"truncationImpact": false,
|
|
243
|
+
"freshnessImpact": false
|
|
244
|
+
},
|
|
245
|
+
"freshness": {
|
|
246
|
+
"state": "fresh",
|
|
247
|
+
"role": "implementation",
|
|
248
|
+
"evidenceUsed": [
|
|
249
|
+
"code-graph"
|
|
250
|
+
],
|
|
251
|
+
"evidenceUnavailable": [
|
|
252
|
+
"before-index"
|
|
253
|
+
],
|
|
254
|
+
"comparedIdentities": [
|
|
255
|
+
{
|
|
256
|
+
"label": "index-manifest-hash",
|
|
257
|
+
"value": "fixture-hash-001"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"label": "before-index-manifest-hash",
|
|
261
|
+
"value": null
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"reason": "Active index manifest hash matches the most recent recorded identity.",
|
|
265
|
+
"relevantChangedPaths": [
|
|
266
|
+
"src/example.ts"
|
|
267
|
+
],
|
|
268
|
+
"warnings": []
|
|
269
|
+
},
|
|
270
|
+
"budget": {
|
|
271
|
+
"limits": [
|
|
272
|
+
{
|
|
273
|
+
"name": "candidates",
|
|
274
|
+
"declaredValue": 50,
|
|
275
|
+
"usedValue": 1,
|
|
276
|
+
"availableCount": 49,
|
|
277
|
+
"droppedCount": 0,
|
|
278
|
+
"truncated": false,
|
|
279
|
+
"requiredEvidenceAffected": false,
|
|
280
|
+
"adequacyImpact": null
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"characters": null,
|
|
284
|
+
"warnings": []
|
|
285
|
+
},
|
|
286
|
+
"truncation": {
|
|
287
|
+
"truncated": false,
|
|
288
|
+
"records": [],
|
|
289
|
+
"warnings": []
|
|
290
|
+
},
|
|
291
|
+
"fullFileFallback": {
|
|
292
|
+
"enabled": true,
|
|
293
|
+
"limit": null,
|
|
294
|
+
"used": 1,
|
|
295
|
+
"fallbacks": [
|
|
296
|
+
{
|
|
297
|
+
"id": "fixture.fallback.001",
|
|
298
|
+
"filePath": "src/other.ts",
|
|
299
|
+
"reason": "bounded retrieval insufficient",
|
|
300
|
+
"requestedEvidenceKind": null,
|
|
301
|
+
"boundedRetrievalAttempted": true,
|
|
302
|
+
"sourceRangesAttempted": 2,
|
|
303
|
+
"includedLineCount": 40,
|
|
304
|
+
"includedCharacterCount": 900,
|
|
305
|
+
"role": "implementation",
|
|
306
|
+
"responsibilityIdsAffected": [],
|
|
307
|
+
"allowed": true,
|
|
308
|
+
"provenance": "full-file-fallback"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"warnings": []
|
|
312
|
+
},
|
|
313
|
+
"provenance": [
|
|
314
|
+
{
|
|
315
|
+
"id": "fixture.provenance.001",
|
|
316
|
+
"category": "code-graph",
|
|
317
|
+
"sourcePath": "src/example.ts",
|
|
318
|
+
"sourceId": null,
|
|
319
|
+
"evidenceId": "symbol:src/example.ts#Example",
|
|
320
|
+
"relationshipBasis": "candidate-ranking",
|
|
321
|
+
"role": "implementation",
|
|
322
|
+
"requestField": null,
|
|
323
|
+
"derivedByModule": "candidateRanking.ts"
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"futureMinorRootField": "preserved"
|
|
327
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Artifact source: real local my-dev-kit `context` command
|
|
2
|
+
Producer package version: 1.10.2
|
|
3
|
+
Producer CLI version: 1.10.2
|
|
4
|
+
Producer branch: fix/v1.10.3-context-readiness
|
|
5
|
+
Producer base commit: 9f1c7c5392e2dde9a1aae80e330134950e6e101f
|
|
6
|
+
Producer final commit: e2d8c66075036824c8eeb5290b630979ab7cee79
|
|
7
|
+
Context capsule schema version: 1.0.0
|
|
8
|
+
Retrieval audit schema version: 1.0.0
|
|
9
|
+
Source repository: Z:/Users/newuser/Projects/my-dev-kit-orchestrator
|
|
10
|
+
Expected evaluator result: consistent
|
|
11
|
+
Context capsule SHA-256: 2AA664F02A4830D0698FBF6D4C8203F99EE1EA420142EB58A5EDF284ED26EE66
|
|
12
|
+
Retrieval audit SHA-256: 5D5B0129EC3FAF92F87AD58A846EECB930FE6DD2CE66C0D26F5F51CD08879585
|
|
13
|
+
Copy policy: both JSON files are byte-for-byte copies and must not be hand-edited.
|