@dailephd/my-dev-kit-lab 0.4.2 → 0.4.3
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 +23 -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/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 +568 -0
- package/dist/src/evaluation/stageContextMetrics/calculateArtifactStateMetrics.js +130 -0
- package/dist/src/evaluation/stageContextMetrics/calculateContextSizeMetrics.js +85 -0
- package/dist/src/evaluation/stageContextMetrics/calculateExpectationMetrics.js +103 -0
- package/dist/src/evaluation/stageContextMetrics/calculateResponsibilityMappingMetrics.js +36 -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/evaluateV043StageContextExecution.js +247 -0
- package/dist/src/evaluation/stageContextMetrics/index.js +10 -0
- package/dist/src/evaluation/stageContextMetrics/matchStageContextExpectations.js +38 -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 +79 -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 +3 -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/orchestratorWorkflowInstructionPacketV1.js +1 -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/runtimeValidation.js +131 -0
- package/dist/src/evaluation/upstreamArtifacts/schemaVersion.js +32 -0
- package/dist/src/evaluation/upstreamArtifacts/validateMyDevKitContextCapsuleV1.js +1208 -0
- package/dist/src/evaluation/upstreamArtifacts/validateMyDevKitRetrievalAuditRecordV1.js +105 -0
- package/dist/src/evaluation/upstreamArtifacts/validateOrchestratorWorkflowInstructionPacketV1.js +235 -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 +286 -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 +190 -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 +252 -0
- package/dist/src/report/experiments/buildContextStrategyComparisonV043Report.js +398 -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 +234 -0
- package/dist/src/report/experiments/renderPluginExperimentReportHtml.js +3 -0
- package/dist/src/report/experiments/renderPluginExperimentReportText.js +225 -0
- package/dist/src/report/experiments/writePluginExperimentReports.js +3 -0
- package/dist/src/securityValidation/attackScenarios/scenarios/secretLeakageScenario.js +215 -9
- package/docs/METRICS.md +56 -10
- package/package.json +1 -1
- 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-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,160 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"catalogSchemaVersion": "1.0.0",
|
|
4
|
+
"catalogVersion": "1.0.0",
|
|
5
|
+
"workflowId": "workflow.feature",
|
|
6
|
+
"stageId": "stage.feature.implementation",
|
|
7
|
+
"primaryEntry": {
|
|
8
|
+
"id": "stage.feature.implementation",
|
|
9
|
+
"kind": "stage",
|
|
10
|
+
"title": "Implementation stage",
|
|
11
|
+
"description": "Implement the requested feature.",
|
|
12
|
+
"workflowRef": "workflow.feature",
|
|
13
|
+
"stageName": "implementation",
|
|
14
|
+
"commandRefs": ["command.repo.build"],
|
|
15
|
+
"ruleRefs": ["rule.quality.no-dead-code"],
|
|
16
|
+
"optionalCommandRefs": ["command.repo.lint"],
|
|
17
|
+
"optionalRuleRefs": ["rule.quality.prefer-tests"],
|
|
18
|
+
"reportContractRef": "report.implementation-summary",
|
|
19
|
+
"taskInstructions": "Implement the feature and keep behavior backward compatible.",
|
|
20
|
+
"validationRequirements": ["Run the build.", "Run the test suite."],
|
|
21
|
+
"stopConditions": ["Stop if the build fails."]
|
|
22
|
+
},
|
|
23
|
+
"resolvedCommands": [
|
|
24
|
+
{
|
|
25
|
+
"id": "command.repo.build",
|
|
26
|
+
"kind": "command",
|
|
27
|
+
"title": "Build the repository",
|
|
28
|
+
"description": "Compiles all TypeScript sources.",
|
|
29
|
+
"owner": "repo",
|
|
30
|
+
"command": "npm run build",
|
|
31
|
+
"purpose": "Confirm the project compiles.",
|
|
32
|
+
"sideEffect": "read-only",
|
|
33
|
+
"included": "required"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "command.repo.lint",
|
|
37
|
+
"kind": "command",
|
|
38
|
+
"title": "Lint the repository",
|
|
39
|
+
"description": "Runs the linter.",
|
|
40
|
+
"owner": "repo",
|
|
41
|
+
"command": "npm run lint",
|
|
42
|
+
"purpose": "Confirm style conformance.",
|
|
43
|
+
"sideEffect": "read-only",
|
|
44
|
+
"included": "optional"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"resolvedRules": [
|
|
48
|
+
{
|
|
49
|
+
"id": "rule.quality.no-dead-code",
|
|
50
|
+
"kind": "rule",
|
|
51
|
+
"title": "No dead code",
|
|
52
|
+
"description": "Do not leave unreachable code behind.",
|
|
53
|
+
"category": "quality",
|
|
54
|
+
"instruction": "Remove unreachable code before finishing the stage.",
|
|
55
|
+
"ruleRefs": [],
|
|
56
|
+
"included": "required",
|
|
57
|
+
"depth": 0
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "rule.quality.prefer-tests",
|
|
61
|
+
"kind": "rule",
|
|
62
|
+
"title": "Prefer tests",
|
|
63
|
+
"description": "Prefer covering new behavior with tests.",
|
|
64
|
+
"category": "quality",
|
|
65
|
+
"instruction": "Add or update tests for new behavior.",
|
|
66
|
+
"ruleRefs": ["rule.quality.no-dead-code"],
|
|
67
|
+
"included": "optional",
|
|
68
|
+
"depth": 1
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"reportContract": {
|
|
72
|
+
"id": "report.implementation-summary",
|
|
73
|
+
"kind": "report-contract",
|
|
74
|
+
"title": "Implementation summary report",
|
|
75
|
+
"description": "Summarizes the implementation stage outcome.",
|
|
76
|
+
"artifactKind": "implementation-summary",
|
|
77
|
+
"purpose": "Give reviewers a concise implementation summary.",
|
|
78
|
+
"requiredOutputCategory": "summary"
|
|
79
|
+
},
|
|
80
|
+
"validationRequirements": ["Run the build.", "Run the test suite."],
|
|
81
|
+
"stopConditions": ["Stop if the build fails."],
|
|
82
|
+
"resolutionProvenance": [
|
|
83
|
+
{
|
|
84
|
+
"rootWorkflowId": "workflow.feature",
|
|
85
|
+
"rootStageId": "stage.feature.implementation",
|
|
86
|
+
"sourceEntryId": "stage.feature.implementation",
|
|
87
|
+
"referenceField": "commandRefs",
|
|
88
|
+
"referencedEntryId": "command.repo.build",
|
|
89
|
+
"inclusionReason": "required command reference",
|
|
90
|
+
"depth": 0
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"rootWorkflowId": "workflow.feature",
|
|
94
|
+
"rootStageId": "stage.feature.implementation",
|
|
95
|
+
"sourceEntryId": "stage.feature.implementation",
|
|
96
|
+
"referenceField": "ruleRefs",
|
|
97
|
+
"referencedEntryId": "rule.quality.no-dead-code",
|
|
98
|
+
"inclusionReason": "required rule reference",
|
|
99
|
+
"depth": 0
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"budget": {
|
|
103
|
+
"findings": [
|
|
104
|
+
{
|
|
105
|
+
"limitName": "maxCommands",
|
|
106
|
+
"declaredLimit": 20,
|
|
107
|
+
"used": 2,
|
|
108
|
+
"available": 18,
|
|
109
|
+
"overLimit": false,
|
|
110
|
+
"amountExceeded": 0,
|
|
111
|
+
"affectedEntryIds": []
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"limitName": "maxRuleDepth",
|
|
115
|
+
"declaredLimit": null,
|
|
116
|
+
"used": 1,
|
|
117
|
+
"available": null,
|
|
118
|
+
"overLimit": false,
|
|
119
|
+
"amountExceeded": 0,
|
|
120
|
+
"affectedEntryIds": []
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"overLimit": false,
|
|
124
|
+
"adequate": true,
|
|
125
|
+
"totalCharacters": 3200,
|
|
126
|
+
"perEntryCharacters": {
|
|
127
|
+
"stage.feature.implementation": 1800,
|
|
128
|
+
"command.repo.build": 200,
|
|
129
|
+
"rule.quality.no-dead-code": 150
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"truncation": {
|
|
133
|
+
"truncated": false,
|
|
134
|
+
"records": [
|
|
135
|
+
{
|
|
136
|
+
"rootOptionalEntryId": "command.repo.lint",
|
|
137
|
+
"affectedEntryIds": ["command.repo.lint"],
|
|
138
|
+
"limitingField": "maxCommands",
|
|
139
|
+
"declaredLimit": 20,
|
|
140
|
+
"usedBefore": 1,
|
|
141
|
+
"attemptedAfter": 2,
|
|
142
|
+
"reason": "included within budget"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"droppedOptionalCommandIds": [],
|
|
146
|
+
"droppedOptionalRuleIds": [],
|
|
147
|
+
"droppedOptionalDependencyIds": [],
|
|
148
|
+
"warnings": []
|
|
149
|
+
},
|
|
150
|
+
"adequacy": {
|
|
151
|
+
"status": "adequate",
|
|
152
|
+
"reasons": [],
|
|
153
|
+
"requiredContentComplete": true,
|
|
154
|
+
"requiredBudgetSatisfied": true,
|
|
155
|
+
"optionalContentDropped": false,
|
|
156
|
+
"affectedEntryIds": []
|
|
157
|
+
},
|
|
158
|
+
"unresolvedReferences": ["command.repo.unresolved-example"],
|
|
159
|
+
"warnings": []
|
|
160
|
+
}
|