instar 1.3.26 → 1.3.27

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.
Files changed (46) hide show
  1. package/dist/config/ConfigDefaults.d.ts.map +1 -1
  2. package/dist/config/ConfigDefaults.js +11 -0
  3. package/dist/config/ConfigDefaults.js.map +1 -1
  4. package/dist/core/types.d.ts +17 -0
  5. package/dist/core/types.d.ts.map +1 -1
  6. package/dist/core/types.js.map +1 -1
  7. package/dist/monitoring/FailureAnalyzer.d.ts +47 -0
  8. package/dist/monitoring/FailureAnalyzer.d.ts.map +1 -0
  9. package/dist/monitoring/FailureAnalyzer.js +77 -0
  10. package/dist/monitoring/FailureAnalyzer.js.map +1 -0
  11. package/dist/monitoring/FailureAttributionEngine.d.ts +89 -0
  12. package/dist/monitoring/FailureAttributionEngine.d.ts.map +1 -0
  13. package/dist/monitoring/FailureAttributionEngine.js +106 -0
  14. package/dist/monitoring/FailureAttributionEngine.js.map +1 -0
  15. package/dist/monitoring/FailureLedger.d.ts +207 -0
  16. package/dist/monitoring/FailureLedger.d.ts.map +1 -0
  17. package/dist/monitoring/FailureLedger.js +524 -0
  18. package/dist/monitoring/FailureLedger.js.map +1 -0
  19. package/dist/monitoring/FailureLoopDriver.d.ts +92 -0
  20. package/dist/monitoring/FailureLoopDriver.d.ts.map +1 -0
  21. package/dist/monitoring/FailureLoopDriver.js +101 -0
  22. package/dist/monitoring/FailureLoopDriver.js.map +1 -0
  23. package/dist/scaffold/templates.d.ts.map +1 -1
  24. package/dist/scaffold/templates.js +7 -0
  25. package/dist/scaffold/templates.js.map +1 -1
  26. package/dist/scheduler/AgentMdJobLoader.d.ts.map +1 -1
  27. package/dist/scheduler/AgentMdJobLoader.js +33 -4
  28. package/dist/scheduler/AgentMdJobLoader.js.map +1 -1
  29. package/dist/server/AgentServer.d.ts +2 -0
  30. package/dist/server/AgentServer.d.ts.map +1 -1
  31. package/dist/server/AgentServer.js +53 -0
  32. package/dist/server/AgentServer.js.map +1 -1
  33. package/dist/server/CapabilityIndex.d.ts.map +1 -1
  34. package/dist/server/CapabilityIndex.js +16 -0
  35. package/dist/server/CapabilityIndex.js.map +1 -1
  36. package/dist/server/routes.d.ts +4 -0
  37. package/dist/server/routes.d.ts.map +1 -1
  38. package/dist/server/routes.js +149 -0
  39. package/dist/server/routes.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/data/builtin-manifest.json +47 -47
  42. package/src/scaffold/templates/jobs/instar/failure-analyzer.md +32 -0
  43. package/src/scaffold/templates.ts +7 -0
  44. package/upgrades/1.3.27.md +45 -0
  45. package/upgrades/side-effects/agentmd-frontmatter-scheduling-vocabulary.md +66 -0
  46. package/upgrades/side-effects/failure-learning-loop.md +131 -0
@@ -0,0 +1,106 @@
1
+ const TRAILER_FEATURE = /^\s*Fixes-Feature:\s*(\S+)\s*$/im;
2
+ const TRAILER_FAIL = /^\s*Fixes:\s*(FAIL-\S+)\s*$/im;
3
+ export class FailureAttributionEngine {
4
+ deps;
5
+ constructor(deps) {
6
+ this.deps = deps;
7
+ }
8
+ /** Parse the bugfix-commit trailers from a commit message. */
9
+ static parseTrailers(commitMessage) {
10
+ const out = {};
11
+ const f = commitMessage.match(TRAILER_FEATURE);
12
+ if (f)
13
+ out.fixesFeature = f[1].trim();
14
+ const x = commitMessage.match(TRAILER_FAIL);
15
+ if (x)
16
+ out.fixesFailId = x[1].trim();
17
+ return out;
18
+ }
19
+ /** Normalize a path for overlap comparison (strip leading ./, lowercase drive-irrelevant). */
20
+ static norm(p) {
21
+ return p.replace(/^\.\//, '').trim();
22
+ }
23
+ /**
24
+ * Attribute a bugfix commit. The trailer is a HINT that must be reconciled
25
+ * against reality: the cited initiative must exist AND the fix commit's
26
+ * touched files must intersect its coveredFiles. Verified overlap → automatic;
27
+ * trailer-without-overlap (or missing initiative) → inferred (needs attribution).
28
+ */
29
+ attributeBugfixCommit(input) {
30
+ const trailers = FailureAttributionEngine.parseTrailers(input.commitMessage);
31
+ if (!trailers.fixesFeature) {
32
+ // Trailer omission is a measured coverage gap, not a silent drop (§4.2 #A).
33
+ return {
34
+ attribution: 'inferred',
35
+ attributionConfidence: 0,
36
+ causeCommitOid: input.commitOid,
37
+ noFeatureLink: true,
38
+ note: 'no Fixes-Feature trailer — counted in the no-feature-link coverage bucket',
39
+ };
40
+ }
41
+ const initiative = this.deps.getInitiative(trailers.fixesFeature);
42
+ if (!initiative) {
43
+ return {
44
+ attribution: 'inferred',
45
+ attributionConfidence: 0.1,
46
+ causeCommitOid: input.commitOid,
47
+ note: `trailer cites unknown initiative "${trailers.fixesFeature}" — needs attribution`,
48
+ };
49
+ }
50
+ const touched = new Set(this.deps.commitTouchedFiles(input.commitOid).map(FailureAttributionEngine.norm));
51
+ const covered = (initiative.coveredFiles ?? []).map(FailureAttributionEngine.norm);
52
+ const overlap = covered.some((f) => touched.has(f));
53
+ if (!overlap) {
54
+ // Forged/mistaken trailer: the fix doesn't touch the feature's code (§4.2 M7).
55
+ return {
56
+ attribution: 'inferred',
57
+ attributionConfidence: 0.2,
58
+ initiativeId: initiative.id,
59
+ projectId: initiative.parentProjectId,
60
+ specPath: initiative.specPath,
61
+ causeCommitOid: input.commitOid,
62
+ note: `trailer cites "${initiative.id}" but fix touches none of its coveredFiles — needs attribution (possible mis-blame)`,
63
+ };
64
+ }
65
+ return {
66
+ attribution: 'automatic',
67
+ attributionConfidence: 0.9,
68
+ initiativeId: initiative.id,
69
+ projectId: initiative.parentProjectId,
70
+ specPath: initiative.specPath,
71
+ causeCommitOid: input.commitOid,
72
+ note: `trailer cross-checked: fix overlaps ${initiative.id} coveredFiles`,
73
+ };
74
+ }
75
+ /**
76
+ * Validate an agent-diagnosed one-tap filing. The cited initiative must
77
+ * exist. A caller-supplied causeCommitOid NEVER upgrades to automatic (B6);
78
+ * the verdict stays one-tap.
79
+ */
80
+ validateAgentDiagnosed(input) {
81
+ const initiative = this.deps.getInitiative(input.initiativeId);
82
+ if (!initiative) {
83
+ return { ok: false, reason: `initiative "${input.initiativeId}" does not exist` };
84
+ }
85
+ return {
86
+ ok: true,
87
+ verdict: {
88
+ attribution: 'one-tap',
89
+ attributionConfidence: 0.5,
90
+ initiativeId: initiative.id,
91
+ projectId: initiative.parentProjectId,
92
+ specPath: initiative.specPath,
93
+ causeCommitOid: input.causeCommitOid, // recorded but does NOT raise confidence/attribution
94
+ note: 'agent-diagnosed one-tap — excluded from toolchain-blame aggregates',
95
+ },
96
+ };
97
+ }
98
+ /** Pick a category enum value defensively — never trust free text (§4.4). */
99
+ static coerceCategory(value) {
100
+ const allowed = [
101
+ 'concurrency', 'config-parse', 'wiring', 'logic', 'migration', 'test-gap', 'unknown',
102
+ ];
103
+ return allowed.includes(value) ? value : 'unknown';
104
+ }
105
+ }
106
+ //# sourceMappingURL=FailureAttributionEngine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FailureAttributionEngine.js","sourceRoot":"","sources":["../../src/monitoring/FailureAttributionEngine.ts"],"names":[],"mappings":"AA0DA,MAAM,eAAe,GAAG,kCAAkC,CAAC;AAC3D,MAAM,YAAY,GAAG,+BAA+B,CAAC;AAErD,MAAM,OAAO,wBAAwB;IACN;IAA7B,YAA6B,IAAqB;QAArB,SAAI,GAAJ,IAAI,CAAiB;IAAG,CAAC;IAEtD,8DAA8D;IAC9D,MAAM,CAAC,aAAa,CAAC,aAAqB;QACxC,MAAM,GAAG,GAAmB,EAAE,CAAC;QAC/B,MAAM,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC/C,IAAI,CAAC;YAAE,GAAG,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACtC,MAAM,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAC5C,IAAI,CAAC;YAAE,GAAG,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACrC,OAAO,GAAG,CA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;aAC3E;SACF,CAAC;IACJ,CAAC;IAED,6EAA6E;IAC7E,MAAM,CAAC,cAAc,CAAC,KAAyB;QAC7C,MAAM,OAAO,GAAsB;YACjC,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS;SACrF,CAAC;QACF,OAAO,OAAO,CAAC,QAAQ,CAAC,KAAwB,CAAC,CAAC,CAAC,CAAE,KAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7F,CAAC;CACF"}
@@ -0,0 +1,207 @@
1
+ export type FailureSource = 'bugfix-commit' | 'agent-diagnosed' | 'ci' | 'revert' | 'regression' | 'degradation';
2
+ export type FailureSeverity = 'low' | 'medium' | 'high';
3
+ export type FailureCategory = 'concurrency' | 'config-parse' | 'wiring' | 'logic' | 'migration' | 'test-gap' | 'unknown';
4
+ export type AttributionMode = 'automatic' | 'one-tap' | 'inferred';
5
+ export type FailureStatus = 'open' | 'attributed' | 'analyzed' | 'resolved' | 'reopened';
6
+ /** Internal-only severity-split detail (spec §4.8). `full` never leaves via HTTP. */
7
+ export interface FailureDetail {
8
+ redacted: string;
9
+ full: string;
10
+ }
11
+ export interface FailureRecord {
12
+ id: string;
13
+ dedupeKey: string;
14
+ occurrenceCount: number;
15
+ detectedAt: string;
16
+ filedBy: string;
17
+ source: FailureSource;
18
+ severity: FailureSeverity;
19
+ summary: string;
20
+ detail: FailureDetail;
21
+ category: FailureCategory;
22
+ initiativeId?: string;
23
+ projectId?: string;
24
+ specPath?: string;
25
+ causeCommitOid?: string;
26
+ fixCommitOid?: string;
27
+ prNumber?: number;
28
+ toolchainRef?: string;
29
+ buildSkill?: string;
30
+ provenance?: 'verified' | 'claimed' | 'unknown';
31
+ attribution: AttributionMode;
32
+ attributionConfidence: number;
33
+ status: FailureStatus;
34
+ learningId?: string;
35
+ createdAt: string;
36
+ updatedAt: string;
37
+ version: number;
38
+ }
39
+ /** The shape returned over HTTP / to the dashboard — detail.full stripped. */
40
+ export interface FailureRecordApiView extends Omit<FailureRecord, 'detail'> {
41
+ detail: {
42
+ redacted: string;
43
+ };
44
+ }
45
+ export type InsightStatus = 'discovered' | 'acted-on' | 'verified-effective' | 'verified-ineffective' | 'inconclusive' | 'dismissed';
46
+ export type VerifiedOutcome = 'pending' | 'effective' | 'ineffective' | 'insufficient-exposure' | 'n/a';
47
+ /** A discovered process-gap insight (spec §4.4 / §4.6.1). */
48
+ export interface InsightRecord {
49
+ id: string;
50
+ /** Content-stable across analyzer runs (so the same pattern updates, never re-announces). */
51
+ identityKey: string;
52
+ discoveredAt: string;
53
+ summary: string;
54
+ recommendation: string;
55
+ supportingFailureIds: string[];
56
+ distinctSessions: number;
57
+ distinctCauseCommits: number;
58
+ status: InsightStatus;
59
+ actedOnVia?: string;
60
+ verifyWindowStart?: string;
61
+ verifyWindowEnd?: string;
62
+ targetCategory?: string;
63
+ baselineRate?: number;
64
+ reopenCount: number;
65
+ verifiedOutcome: VerifiedOutcome;
66
+ /** True once this insight has been pushed to the system topic (push exactly once). */
67
+ announced: boolean;
68
+ createdAt: string;
69
+ updatedAt: string;
70
+ version: number;
71
+ }
72
+ export interface UpsertInsightInput {
73
+ identityKey: string;
74
+ summary: string;
75
+ recommendation: string;
76
+ supportingFailureIds: string[];
77
+ distinctSessions: number;
78
+ distinctCauseCommits: number;
79
+ targetCategory?: string;
80
+ baselineRate?: number;
81
+ }
82
+ export interface OpenFailureInput {
83
+ detectedAt?: string;
84
+ filedBy: string;
85
+ source: FailureSource;
86
+ severity: FailureSeverity;
87
+ summary: string;
88
+ detail: FailureDetail;
89
+ category?: FailureCategory;
90
+ initiativeId?: string;
91
+ projectId?: string;
92
+ specPath?: string;
93
+ causeCommitOid?: string;
94
+ prNumber?: number;
95
+ toolchainRef?: string;
96
+ buildSkill?: string;
97
+ provenance?: 'verified' | 'claimed' | 'unknown';
98
+ attribution: AttributionMode;
99
+ attributionConfidence?: number;
100
+ }
101
+ export interface ListFilter {
102
+ source?: FailureSource;
103
+ category?: FailureCategory;
104
+ initiativeId?: string;
105
+ attribution?: AttributionMode;
106
+ status?: FailureStatus;
107
+ sinceMs?: number;
108
+ limit?: number;
109
+ }
110
+ export type UpdateResult = {
111
+ ok: true;
112
+ record: FailureRecord;
113
+ } | {
114
+ ok: false;
115
+ conflict: true;
116
+ current?: FailureRecord;
117
+ } | {
118
+ ok: false;
119
+ conflict: false;
120
+ reason: string;
121
+ };
122
+ export type InsightUpdateResult = {
123
+ ok: true;
124
+ record: InsightRecord;
125
+ } | {
126
+ ok: false;
127
+ conflict: true;
128
+ current?: InsightRecord;
129
+ } | {
130
+ ok: false;
131
+ conflict: false;
132
+ reason: string;
133
+ };
134
+ export interface DistinctCounts {
135
+ sessions: number;
136
+ causeCommits: number;
137
+ }
138
+ export interface FailureLedgerOptions {
139
+ dbPath: string;
140
+ /** Stable machine identifier for machine-scoped IDs (spec §4.2 M2). */
141
+ machineId?: string;
142
+ /** Sink for fail-open write errors (defaults to console.error). */
143
+ onError?: (where: string, err: unknown) => void;
144
+ }
145
+ export declare class FailureLedger {
146
+ private db;
147
+ private readonly machineId;
148
+ private readonly onError;
149
+ constructor(opts: FailureLedgerOptions);
150
+ /** Deterministic dedupe key (spec §4.2 M5). */
151
+ static dedupeKey(source: FailureSource, causeCommitOid: string | undefined, category: FailureCategory): string;
152
+ private nextId;
153
+ /**
154
+ * Open (or upsert) a failure record. A repeat on the same dedupeKey
155
+ * increments occurrenceCount and logs a distinct occurrence rather than
156
+ * duplicating. Fail-open: returns null on any storage error.
157
+ */
158
+ open(input: OpenFailureInput): FailureRecord | null;
159
+ get(id: string): FailureRecord | null;
160
+ getByDedupeKey(dedupeKey: string): FailureRecord | null;
161
+ list(filter?: ListFilter): FailureRecord[];
162
+ /**
163
+ * Mutate a record. `ifMatch` is MANDATORY (spec §4.2 M4) — a stale version
164
+ * loses with {ok:false, conflict:true}. Caller retries (bounded).
165
+ */
166
+ update(id: string, patch: Partial<Pick<FailureRecord, 'status' | 'category' | 'fixCommitOid' | 'learningId' | 'attribution' | 'attributionConfidence' | 'provenance' | 'buildSkill' | 'initiativeId' | 'projectId' | 'specPath' | 'toolchainRef'>>, ifMatch: number): UpdateResult;
167
+ /** Distinct sessions + cause-commits for the diversity gate (spec §4.4). */
168
+ distinctCounts(dedupeKey: string): DistinctCounts;
169
+ /**
170
+ * Analyzer query path (spec §4.4): indexed group-bys directly in SQL, never a
171
+ * full cache-rebuild + JS filter. Toolchain-blame counts are restricted to
172
+ * `verified`-provenance, `automatic`-attribution records (claimed / one-tap /
173
+ * inferred are excluded from blame aggregates). Also reports coverage so a
174
+ * low-attribution rate reads as low-confidence, not as the rate.
175
+ */
176
+ analyze(opts?: {
177
+ sinceMs?: number;
178
+ }): {
179
+ total: number;
180
+ attributed: number;
181
+ byCategory: Record<string, number>;
182
+ byBuildSkill: Record<string, number>;
183
+ unknownToolchainByAuthor: Record<string, number>;
184
+ noFeatureLink: number;
185
+ };
186
+ /**
187
+ * Upsert an insight keyed on its content-stable identityKey. A re-discovery
188
+ * UPDATES the existing record (refreshes evidence + counts) but PRESERVES its
189
+ * lifecycle (status/actedOnVia/verify window/announced) — so a pattern is
190
+ * never re-announced and an in-flight loop is never reset (spec §4.5 stable-key).
191
+ * Returns the resulting insight (fail-open: null on storage error).
192
+ */
193
+ upsertInsight(input: UpsertInsightInput): InsightRecord | null;
194
+ private nextInsightSeq;
195
+ getInsight(id: string): InsightRecord | null;
196
+ getInsightByIdentity(identityKey: string): InsightRecord | null;
197
+ listInsights(filter?: {
198
+ status?: InsightStatus;
199
+ }): InsightRecord[];
200
+ updateInsight(id: string, patch: Partial<Pick<InsightRecord, 'status' | 'actedOnVia' | 'verifyWindowStart' | 'verifyWindowEnd' | 'targetCategory' | 'baselineRate' | 'reopenCount' | 'verifiedOutcome' | 'announced'>>, ifMatch: number): InsightUpdateResult;
201
+ private rowToInsight;
202
+ /** Strip detail.full — the ONLY shape that may cross an HTTP boundary (spec §4.8). */
203
+ static toApiView(record: FailureRecord): FailureRecordApiView;
204
+ close(): void;
205
+ private rowToRecord;
206
+ }
207
+ //# sourceMappingURL=FailureLedger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FailureLedger.d.ts","sourceRoot":"","sources":["../../src/monitoring/FailureLedger.ts"],"names":[],"mappings":"AAsCA,MAAM,MAAM,aAAa,GACrB,eAAe,GACf,iBAAiB,GACjB,IAAI,GACJ,QAAQ,GACR,YAAY,GACZ,aAAa,CAAC;AAElB,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAExD,MAAM,MAAM,eAAe,GACvB,aAAa,GACb,cAAc,GACd,QAAQ,GACR,OAAO,GACP,WAAW,GACX,UAAU,GACV,SAAS,CAAC;AAEd,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC;AAEnE,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,YAAY,GACZ,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAEf,qFAAqF;AACrF,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,eAAe,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,eAAe,CAAC;IAE1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAA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