pmp-gywd 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +27 -0
- package/README.md +567 -0
- package/bin/install.js +348 -0
- package/commands/gywd/add-phase.md +207 -0
- package/commands/gywd/anticipate.md +271 -0
- package/commands/gywd/bootstrap.md +336 -0
- package/commands/gywd/challenge.md +344 -0
- package/commands/gywd/check-drift.md +144 -0
- package/commands/gywd/complete-milestone.md +106 -0
- package/commands/gywd/consider-issues.md +202 -0
- package/commands/gywd/context.md +93 -0
- package/commands/gywd/create-roadmap.md +115 -0
- package/commands/gywd/deps.md +169 -0
- package/commands/gywd/digest.md +138 -0
- package/commands/gywd/discuss-milestone.md +47 -0
- package/commands/gywd/discuss-phase.md +60 -0
- package/commands/gywd/execute-plan.md +161 -0
- package/commands/gywd/extract-decisions.md +325 -0
- package/commands/gywd/health.md +150 -0
- package/commands/gywd/help.md +556 -0
- package/commands/gywd/history.md +278 -0
- package/commands/gywd/impact.md +317 -0
- package/commands/gywd/init.md +95 -0
- package/commands/gywd/insert-phase.md +227 -0
- package/commands/gywd/list-phase-assumptions.md +50 -0
- package/commands/gywd/map-codebase.md +84 -0
- package/commands/gywd/memory.md +159 -0
- package/commands/gywd/new-milestone.md +59 -0
- package/commands/gywd/new-project.md +315 -0
- package/commands/gywd/pause-work.md +123 -0
- package/commands/gywd/plan-fix.md +205 -0
- package/commands/gywd/plan-phase.md +93 -0
- package/commands/gywd/preview-plan.md +139 -0
- package/commands/gywd/profile.md +363 -0
- package/commands/gywd/progress.md +317 -0
- package/commands/gywd/remove-phase.md +338 -0
- package/commands/gywd/research-phase.md +91 -0
- package/commands/gywd/resume-work.md +40 -0
- package/commands/gywd/rollback.md +179 -0
- package/commands/gywd/status.md +42 -0
- package/commands/gywd/sync-github.md +234 -0
- package/commands/gywd/verify-work.md +71 -0
- package/commands/gywd/why.md +251 -0
- package/docs/COMMANDS.md +722 -0
- package/docs/CONTRIBUTING.md +342 -0
- package/docs/EXAMPLES.md +535 -0
- package/docs/GETTING-STARTED.md +262 -0
- package/docs/README.md +55 -0
- package/docs/RELEASING.md +159 -0
- package/get-your-work-done/core/agent-patterns.md +331 -0
- package/get-your-work-done/core/architecture.md +334 -0
- package/get-your-work-done/core/context-model-schema.json +154 -0
- package/get-your-work-done/core/decisions-schema.json +193 -0
- package/get-your-work-done/core/learning-state-schema.json +133 -0
- package/get-your-work-done/core/profile-schema.json +257 -0
- package/get-your-work-done/references/adaptive-decomposition.md +175 -0
- package/get-your-work-done/references/checkpoints.md +287 -0
- package/get-your-work-done/references/confidence-scoring.md +169 -0
- package/get-your-work-done/references/continuation-format.md +255 -0
- package/get-your-work-done/references/git-integration.md +254 -0
- package/get-your-work-done/references/plan-format.md +428 -0
- package/get-your-work-done/references/principles.md +157 -0
- package/get-your-work-done/references/questioning.md +162 -0
- package/get-your-work-done/references/research-pitfalls.md +215 -0
- package/get-your-work-done/references/scope-estimation.md +172 -0
- package/get-your-work-done/references/tdd.md +263 -0
- package/get-your-work-done/templates/codebase/architecture.md +255 -0
- package/get-your-work-done/templates/codebase/concerns.md +310 -0
- package/get-your-work-done/templates/codebase/conventions.md +307 -0
- package/get-your-work-done/templates/codebase/integrations.md +280 -0
- package/get-your-work-done/templates/codebase/stack.md +186 -0
- package/get-your-work-done/templates/codebase/structure.md +285 -0
- package/get-your-work-done/templates/codebase/testing.md +480 -0
- package/get-your-work-done/templates/config.json +18 -0
- package/get-your-work-done/templates/context.md +161 -0
- package/get-your-work-done/templates/continue-here.md +78 -0
- package/get-your-work-done/templates/discovery.md +146 -0
- package/get-your-work-done/templates/issues.md +32 -0
- package/get-your-work-done/templates/milestone-archive.md +123 -0
- package/get-your-work-done/templates/milestone-context.md +93 -0
- package/get-your-work-done/templates/milestone.md +115 -0
- package/get-your-work-done/templates/phase-prompt.md +303 -0
- package/get-your-work-done/templates/project.md +184 -0
- package/get-your-work-done/templates/research.md +529 -0
- package/get-your-work-done/templates/roadmap.md +196 -0
- package/get-your-work-done/templates/state.md +210 -0
- package/get-your-work-done/templates/summary.md +273 -0
- package/get-your-work-done/templates/uat-issues.md +143 -0
- package/get-your-work-done/workflows/complete-milestone.md +643 -0
- package/get-your-work-done/workflows/create-milestone.md +416 -0
- package/get-your-work-done/workflows/create-roadmap.md +481 -0
- package/get-your-work-done/workflows/discovery-phase.md +293 -0
- package/get-your-work-done/workflows/discuss-milestone.md +236 -0
- package/get-your-work-done/workflows/discuss-phase.md +247 -0
- package/get-your-work-done/workflows/execute-phase.md +1625 -0
- package/get-your-work-done/workflows/list-phase-assumptions.md +178 -0
- package/get-your-work-done/workflows/map-codebase.md +434 -0
- package/get-your-work-done/workflows/plan-phase.md +488 -0
- package/get-your-work-done/workflows/research-phase.md +436 -0
- package/get-your-work-done/workflows/resume-project.md +287 -0
- package/get-your-work-done/workflows/transition.md +580 -0
- package/get-your-work-done/workflows/verify-work.md +202 -0
- package/lib/automation/dependency-analyzer.js +635 -0
- package/lib/automation/doc-generator.js +643 -0
- package/lib/automation/index.js +42 -0
- package/lib/automation/test-generator.js +628 -0
- package/lib/context/context-analyzer.js +554 -0
- package/lib/context/context-cache.js +426 -0
- package/lib/context/context-predictor.js +622 -0
- package/lib/context/index.js +44 -0
- package/lib/memory/confidence-calibrator.js +484 -0
- package/lib/memory/feedback-collector.js +551 -0
- package/lib/memory/global-memory.js +465 -0
- package/lib/memory/index.js +75 -0
- package/lib/memory/pattern-aggregator.js +487 -0
- package/lib/memory/team-sync.js +501 -0
- package/lib/profile/index.js +24 -0
- package/lib/profile/pattern-learner.js +303 -0
- package/lib/profile/profile-manager.js +445 -0
- package/lib/questioning/index.js +49 -0
- package/lib/questioning/question-engine.js +311 -0
- package/lib/questioning/question-templates.js +315 -0
- package/lib/validators/command-validator.js +188 -0
- package/lib/validators/index.js +29 -0
- package/lib/validators/schema-validator.js +183 -0
- package/package.json +61 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "GYWD Context Intelligence Model Schema",
|
|
4
|
+
"description": "Schema for context prediction and management",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"version": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "2.0.0"
|
|
10
|
+
},
|
|
11
|
+
"metadata": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"project": { "type": "string" },
|
|
15
|
+
"last_updated": { "type": "string", "format": "date-time" },
|
|
16
|
+
"total_files": { "type": "integer" },
|
|
17
|
+
"total_predictions": { "type": "integer" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"file_relationships": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"description": "Relationships between files based on imports and co-changes",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"file": { "type": "string" },
|
|
27
|
+
"imports": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": { "type": "string" }
|
|
30
|
+
},
|
|
31
|
+
"imported_by": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": { "type": "string" }
|
|
34
|
+
},
|
|
35
|
+
"co_changes": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"description": "Files that frequently change together",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"file": { "type": "string" },
|
|
42
|
+
"frequency": { "type": "number" },
|
|
43
|
+
"commits": { "type": "integer" }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"ownership": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"description": "Who works on this file most",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"author": { "type": "string" },
|
|
54
|
+
"commits": { "type": "integer" },
|
|
55
|
+
"percentage": { "type": "number" }
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"predictions": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"description": "Context predictions - if X, then likely need Y",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"id": { "type": "string" },
|
|
69
|
+
"type": {
|
|
70
|
+
"enum": ["file_association", "error_resolution", "feature_pattern", "decision_context"]
|
|
71
|
+
},
|
|
72
|
+
"trigger": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"condition": { "type": "string" },
|
|
76
|
+
"files": { "type": "array", "items": { "type": "string" } },
|
|
77
|
+
"keywords": { "type": "array", "items": { "type": "string" } }
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"prediction": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"files_needed": { "type": "array", "items": { "type": "string" } },
|
|
84
|
+
"decisions_relevant": { "type": "array", "items": { "type": "string" } },
|
|
85
|
+
"patterns_applicable": { "type": "array", "items": { "type": "string" } },
|
|
86
|
+
"warnings": { "type": "array", "items": { "type": "string" } }
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"confidence": { "type": "number", "minimum": 0, "maximum": 100 },
|
|
90
|
+
"times_used": { "type": "integer", "default": 0 },
|
|
91
|
+
"times_useful": { "type": "integer", "default": 0 }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"context_budget": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"description": "Token budget management",
|
|
98
|
+
"properties": {
|
|
99
|
+
"total_available": { "type": "integer", "default": 200000 },
|
|
100
|
+
"reserved_for_output": { "type": "integer", "default": 30000 },
|
|
101
|
+
"areas": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"name": { "type": "string" },
|
|
107
|
+
"estimated_tokens": { "type": "integer" },
|
|
108
|
+
"priority": { "enum": ["critical", "high", "medium", "low"] },
|
|
109
|
+
"compression_strategy": {
|
|
110
|
+
"enum": ["none", "summary", "key_points", "omit_if_needed"]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"hot_files": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"description": "Files with recent high activity",
|
|
120
|
+
"items": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"properties": {
|
|
123
|
+
"file": { "type": "string" },
|
|
124
|
+
"changes_last_week": { "type": "integer" },
|
|
125
|
+
"changes_last_month": { "type": "integer" },
|
|
126
|
+
"trend": { "enum": ["increasing", "stable", "decreasing"] }
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"patterns": {
|
|
131
|
+
"type": "array",
|
|
132
|
+
"description": "Detected coding patterns for context loading",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"name": { "type": "string" },
|
|
137
|
+
"description": { "type": "string" },
|
|
138
|
+
"files": { "type": "array", "items": { "type": "string" } },
|
|
139
|
+
"example_locations": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"properties": {
|
|
144
|
+
"file": { "type": "string" },
|
|
145
|
+
"line_start": { "type": "integer" },
|
|
146
|
+
"line_end": { "type": "integer" }
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "GYWD Decision Graph Schema",
|
|
4
|
+
"description": "Schema for storing and linking codebase decisions",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"version": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Schema version",
|
|
10
|
+
"const": "2.0.0"
|
|
11
|
+
},
|
|
12
|
+
"metadata": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"project": { "type": "string" },
|
|
16
|
+
"extracted_at": { "type": "string", "format": "date-time" },
|
|
17
|
+
"extraction_depth": { "enum": ["quick", "standard", "deep"] },
|
|
18
|
+
"commit_range": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"from": { "type": "string" },
|
|
22
|
+
"to": { "type": "string" },
|
|
23
|
+
"count": { "type": "integer" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"decisions": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"$ref": "#/definitions/Decision"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"links": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"$ref": "#/definitions/DecisionLink"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"conflicts": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"$ref": "#/definitions/Conflict"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"indexes": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"by_file": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": { "type": "string" }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"by_author": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": { "type": "string" }
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"by_tag": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": { "type": "string" }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"definitions": {
|
|
74
|
+
"Decision": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"required": ["id", "type", "summary", "confidence"],
|
|
77
|
+
"properties": {
|
|
78
|
+
"id": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"pattern": "^DEC-[0-9]{3,}$",
|
|
81
|
+
"description": "Unique decision identifier"
|
|
82
|
+
},
|
|
83
|
+
"type": {
|
|
84
|
+
"enum": ["architectural", "convention", "constraint", "trade-off", "tactical"],
|
|
85
|
+
"description": "Category of decision"
|
|
86
|
+
},
|
|
87
|
+
"summary": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"description": "One-line summary of the decision"
|
|
90
|
+
},
|
|
91
|
+
"rationale": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "Why this decision was made"
|
|
94
|
+
},
|
|
95
|
+
"alternatives_considered": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"items": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"properties": {
|
|
100
|
+
"option": { "type": "string" },
|
|
101
|
+
"reason_rejected": { "type": "string" }
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"trade_offs": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"gained": { "type": "array", "items": { "type": "string" } },
|
|
109
|
+
"sacrificed": { "type": "array", "items": { "type": "string" } }
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"confidence": {
|
|
113
|
+
"type": "number",
|
|
114
|
+
"minimum": 0,
|
|
115
|
+
"maximum": 100,
|
|
116
|
+
"description": "Confidence score (0-100%)"
|
|
117
|
+
},
|
|
118
|
+
"source": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"properties": {
|
|
121
|
+
"type": {
|
|
122
|
+
"enum": ["explicit", "inferred"],
|
|
123
|
+
"description": "Whether decision was explicitly documented or inferred"
|
|
124
|
+
},
|
|
125
|
+
"evidence": {
|
|
126
|
+
"type": "array",
|
|
127
|
+
"items": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"properties": {
|
|
130
|
+
"type": { "enum": ["commit", "pr", "comment", "doc", "pattern"] },
|
|
131
|
+
"ref": { "type": "string" },
|
|
132
|
+
"excerpt": { "type": "string" }
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"scope": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"properties": {
|
|
141
|
+
"files": { "type": "array", "items": { "type": "string" } },
|
|
142
|
+
"directories": { "type": "array", "items": { "type": "string" } },
|
|
143
|
+
"global": { "type": "boolean" }
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"author": { "type": "string" },
|
|
147
|
+
"date": { "type": "string", "format": "date" },
|
|
148
|
+
"tags": {
|
|
149
|
+
"type": "array",
|
|
150
|
+
"items": { "type": "string" }
|
|
151
|
+
},
|
|
152
|
+
"status": {
|
|
153
|
+
"enum": ["active", "superseded", "deprecated", "questioned"],
|
|
154
|
+
"default": "active"
|
|
155
|
+
},
|
|
156
|
+
"superseded_by": { "type": "string" }
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"DecisionLink": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"required": ["from", "to", "relationship"],
|
|
162
|
+
"properties": {
|
|
163
|
+
"from": { "type": "string" },
|
|
164
|
+
"to": { "type": "string" },
|
|
165
|
+
"relationship": {
|
|
166
|
+
"enum": ["led_to", "constrains", "conflicts_with", "supersedes", "enables", "depends_on"]
|
|
167
|
+
},
|
|
168
|
+
"description": { "type": "string" }
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"Conflict": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"required": ["decisions", "nature"],
|
|
174
|
+
"properties": {
|
|
175
|
+
"decisions": {
|
|
176
|
+
"type": "array",
|
|
177
|
+
"items": { "type": "string" },
|
|
178
|
+
"minItems": 2
|
|
179
|
+
},
|
|
180
|
+
"nature": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"description": "Description of the conflict"
|
|
183
|
+
},
|
|
184
|
+
"severity": {
|
|
185
|
+
"enum": ["low", "medium", "high"],
|
|
186
|
+
"default": "medium"
|
|
187
|
+
},
|
|
188
|
+
"resolution_suggestion": { "type": "string" },
|
|
189
|
+
"resolved": { "type": "boolean", "default": false }
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "GYWD Learning System State Schema",
|
|
4
|
+
"description": "Schema for continuous learning and adaptation",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"version": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "2.0.0"
|
|
10
|
+
},
|
|
11
|
+
"metadata": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"project": { "type": "string" },
|
|
15
|
+
"initialized_at": { "type": "string", "format": "date-time" },
|
|
16
|
+
"last_learning_cycle": { "type": "string", "format": "date-time" },
|
|
17
|
+
"total_interactions": { "type": "integer", "default": 0 }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"feedback_history": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"description": "Record of all feedback received",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"timestamp": { "type": "string", "format": "date-time" },
|
|
27
|
+
"type": {
|
|
28
|
+
"enum": ["suggestion_accepted", "suggestion_rejected", "suggestion_modified", "explicit_feedback", "implicit_signal"]
|
|
29
|
+
},
|
|
30
|
+
"context": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"command": { "type": "string" },
|
|
34
|
+
"file": { "type": "string" },
|
|
35
|
+
"task_type": { "type": "string" }
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"original": { "type": "string" },
|
|
39
|
+
"result": { "type": "string" },
|
|
40
|
+
"signal": {
|
|
41
|
+
"enum": ["positive", "negative", "neutral"]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"confidence_scores": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"description": "Running confidence scores for various predictions",
|
|
49
|
+
"properties": {
|
|
50
|
+
"decision_extraction": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"overall": { "type": "number" },
|
|
54
|
+
"by_type": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": { "type": "number" }
|
|
57
|
+
},
|
|
58
|
+
"recent_accuracy": { "type": "number" }
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"context_prediction": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"overall": { "type": "number" },
|
|
65
|
+
"hit_rate": { "type": "number" },
|
|
66
|
+
"false_positive_rate": { "type": "number" }
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"profile_accuracy": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"overall": { "type": "number" },
|
|
73
|
+
"style_match": { "type": "number" },
|
|
74
|
+
"preference_match": { "type": "number" }
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"learned_patterns": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"description": "Patterns learned from developer behavior",
|
|
82
|
+
"items": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"id": { "type": "string" },
|
|
86
|
+
"pattern": { "type": "string" },
|
|
87
|
+
"observations": { "type": "integer" },
|
|
88
|
+
"confidence": { "type": "number" },
|
|
89
|
+
"last_observed": { "type": "string", "format": "date-time" },
|
|
90
|
+
"category": {
|
|
91
|
+
"enum": ["coding_style", "workflow", "preference", "avoidance", "correction"]
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"adaptation_queue": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"description": "Pending adaptations to be applied",
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {
|
|
102
|
+
"id": { "type": "string" },
|
|
103
|
+
"type": {
|
|
104
|
+
"enum": ["update_decision_confidence", "add_context_prediction", "modify_profile", "add_pattern"]
|
|
105
|
+
},
|
|
106
|
+
"data": { "type": "object" },
|
|
107
|
+
"reason": { "type": "string" },
|
|
108
|
+
"scheduled_for": { "type": "string", "format": "date-time" }
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"baselines": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"description": "Baseline metrics established at initialization",
|
|
115
|
+
"properties": {
|
|
116
|
+
"established_at": { "type": "string", "format": "date-time" },
|
|
117
|
+
"decision_confidence_avg": { "type": "number" },
|
|
118
|
+
"context_prediction_accuracy": { "type": "number" },
|
|
119
|
+
"profile_inference_confidence": { "type": "number" }
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"improvement_tracking": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"description": "Track improvement over time",
|
|
125
|
+
"properties": {
|
|
126
|
+
"decision_extraction_delta": { "type": "number" },
|
|
127
|
+
"context_prediction_delta": { "type": "number" },
|
|
128
|
+
"profile_accuracy_delta": { "type": "number" },
|
|
129
|
+
"last_calculated": { "type": "string", "format": "date-time" }
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|