@dsh-enhanced/assistant-evolution 0.1.6 → 0.1.12

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/lib/service.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { Context, Service } from '@deepseek-ai/cordis';
2
2
  import type { Agent } from '@deepseek-ai/dsh-agent';
3
3
  import Schema from '@deepseek-ai/schemastery';
4
+ import type { TrustedDeliveryPresentationProducer, TrustedDeliveryPresentationRegistration } from '@dsh-enhanced/assistant-delivery';
4
5
  import type { ApprovalProposalResult } from '@dsh-enhanced/assistant-policy';
5
- import type { EvolutionProposalMutation, RuleCandidate, StoredEpisode, StoredProposal, StoredRule } from './types.js';
6
+ import type { EvolutionProposalMutation, QualityEvidenceKind, RuleCandidate, StoredAutonomousRollback, StoredEpisode, StoredProposal, StoredRule, SupervisedGrowthAnalystProposalInput, SupervisedGrowthAnalystReview } from './types.js';
6
7
  export interface Config {
7
8
  databasePath: string;
8
9
  /** Recent episodes per situation considered when judging a rule. */
@@ -25,12 +26,40 @@ export interface Config {
25
26
  /** Poll interval for committing decisions settled after the originating turn. */
26
27
  reconcileIntervalMs?: number;
27
28
  reconcileLimit?: number;
29
+ /**
30
+ * Permit the narrow evidence-gated rollback lane. This only enables the code
31
+ * path; Policy must independently allow exact `rollback` actions.
32
+ */
33
+ autonomousRollback?: boolean;
28
34
  }
29
35
  export type AssistantEvolutionErrorCode = 'disposed' | 'forbidden' | 'invalid-input' | 'missing-identity' | 'not-found';
30
36
  export declare class AssistantEvolutionError extends Error {
31
37
  readonly code: AssistantEvolutionErrorCode;
32
38
  constructor(code: AssistantEvolutionErrorCode, message: string);
33
39
  }
40
+ /** Fixed Policy subject used by the non-model supervised-growth runbook. */
41
+ export declare const HOST_RECOVERY_BACKGROUND_ID = "dsh-enhanced-assistant-recovery";
42
+ /** The only Automation allowed to use the model-visible analyst capability. */
43
+ export declare const SUPERVISED_GROWTH_ANALYST_AUTOMATION_ID: "heartbeat:supervised-growth-analyst";
44
+ declare const evolutionHostScopeBrand: unique symbol;
45
+ export interface EvolutionHostScope extends Readonly<{
46
+ workspace: string;
47
+ preset: string;
48
+ }> {
49
+ readonly [evolutionHostScopeBrand]: true;
50
+ }
51
+ /** Canonical, immutable and intentionally non-serializable Host scope token. */
52
+ export declare function canonicalEvolutionHostScope(input: {
53
+ workspace: string;
54
+ preset: string;
55
+ }): EvolutionHostScope;
56
+ export interface EvolutionHostOperation {
57
+ scope: EvolutionHostScope;
58
+ /** Authenticated owner identity supplied by the Host route. */
59
+ principal: string;
60
+ /** Exact fixed-run receipt/run identifier used for Policy budget idempotency. */
61
+ operationId: string;
62
+ }
34
63
  export interface EvolutionProposalResult {
35
64
  proposalId: string;
36
65
  policyProposalId: string;
@@ -39,6 +68,40 @@ export interface EvolutionProposalResult {
39
68
  replayed: boolean;
40
69
  rule: StoredRule | undefined;
41
70
  }
71
+ export interface EvolutionRollbackResult {
72
+ rollback: StoredAutonomousRollback;
73
+ rule: StoredRule;
74
+ replayed: boolean;
75
+ }
76
+ export interface EvolutionOwnerUndoInput {
77
+ ruleId: string;
78
+ expectedVersion: number;
79
+ /** Host-generated stable identity for exact request replay. */
80
+ operationId: string;
81
+ ttlMs?: number;
82
+ }
83
+ /** Content-free, global operational summary for local health aggregation. */
84
+ export interface AssistantEvolutionHealth {
85
+ activeRules: number;
86
+ retiredRules: number;
87
+ pendingProposals: number;
88
+ conflictedProposals: number;
89
+ trustedEpisodes: number;
90
+ qualityEligibleEpisodes: number;
91
+ operationalEpisodes: number;
92
+ legacyQuarantinedEpisodes: number;
93
+ unattributedTrustedEpisodes: number;
94
+ unattributedQualityEligibleEpisodes: number;
95
+ lastTrustedEpisodeAt: number;
96
+ lastQualityEligibleEpisodeAt: number;
97
+ /** Last fully completed reconciliation pass; zero means none has completed. */
98
+ lastReconciledAt: number;
99
+ autonomousRollbacks: number;
100
+ taskLearningProjections: number;
101
+ retractedTaskLearningProjections: number;
102
+ taskLearningProjectionRevisions: number;
103
+ taskLearningProjectionIntegrityErrors: number;
104
+ }
42
105
  export interface ForegroundEpisodeInput {
43
106
  situation: string;
44
107
  outcome: 'succeeded' | 'failed';
@@ -49,6 +112,30 @@ export interface ForegroundEpisodeInput {
49
112
  occurredAt: number;
50
113
  idempotencyKey: string;
51
114
  }
115
+ /**
116
+ * Deprecated pre-v7 free-form shape, retained only as a source-compatibility
117
+ * type. recordEvaluationOutcome() always rejects it and never writes evidence.
118
+ */
119
+ export interface EvaluationOutcomeInput {
120
+ situation: string;
121
+ outcome: 'succeeded' | 'failed';
122
+ detail: string;
123
+ evidenceKind: QualityEvidenceKind;
124
+ evaluationId: string;
125
+ idempotencyKey: string;
126
+ occurredAt: number;
127
+ workspace: string;
128
+ agentPreset: string;
129
+ automationId?: string;
130
+ sessionId?: string;
131
+ ruleId?: string;
132
+ guidanceVersion?: number;
133
+ }
134
+ /** The only input accepted by the authoritative quality projection seam. */
135
+ export interface EvaluationProjectionInput {
136
+ scope: EvolutionHostScope;
137
+ evaluationId: string;
138
+ }
52
139
  export declare function canonicalEvolutionScope(workspace: string, preset: string): string;
53
140
  declare module '@deepseek-ai/cordis' {
54
141
  interface Context {
@@ -62,29 +149,48 @@ declare module '@deepseek-ai/cordis' {
62
149
  * only then let an approved rule shape future sessions as injected advisory
63
150
  * context. Three boundaries are structural rather than cosmetic:
64
151
  *
65
- * - **No self-approval.** Every rule change is an `assistant-policy` proposal. The
66
- * service cannot decide its own proposals, so the assistant can never grant
67
- * itself a new behaviour.
152
+ * - **No self-adoption.** New or changed guidance is always an
153
+ * `assistant-policy` proposal. The only optional autonomous mutation removes
154
+ * an exact active rule after Host-recomputed regression evidence; it can never
155
+ * create or revise guidance.
68
156
  * - **No privilege growth.** Guidance is injected as data and policy never reads
69
157
  * the rule table, so a rule can change approach but never authority.
70
- * - **No in-place revision.** Changing behaviour is retire-then-adopt, each
71
- * separately approved, so an old approval can never silently cover new guidance.
158
+ * - **No in-place revision.** Replacement is always retire-then-adopt. A rollback
159
+ * may remove the old rule, but the replacement still needs its own approval,
160
+ * so an old decision can never silently cover new guidance.
72
161
  */
73
- export declare class AssistantEvolutionService extends Service {
162
+ export declare class AssistantEvolutionService extends Service implements TrustedDeliveryPresentationProducer {
74
163
  static Config: Schema<Config>;
75
164
  static inject: string[];
76
165
  private readonly store;
77
166
  private readonly policy;
167
+ private readonly context;
78
168
  private readonly config;
79
- private readonly injected;
169
+ private readonly now;
80
170
  private delivery;
171
+ private readonly presentationProducerGeneration;
172
+ private presentationSink;
81
173
  private active;
82
- constructor(ctx: Context, input: Config);
83
- /** Record one observed outcome as evidence. */
174
+ private lastReconciledAt;
175
+ constructor(ctx: Context, input: Config, options?: {
176
+ now?: () => number;
177
+ });
178
+ /** Aggregate health seam. It never returns content, identities, scopes, or paths. */
179
+ health(): Readonly<AssistantEvolutionHealth>;
180
+ trustedDeliveryPresentationProducerGeneration(): string;
181
+ /**
182
+ * Accept only the publisher minted by the exact live Delivery instance.
183
+ * The registration is held privately; it is never surfaced to an Agent,
184
+ * tool schema, proposal payload, or Evolution read API.
185
+ */
186
+ registerTrustedDeliveryPresentationSink(registration: Readonly<TrustedDeliveryPresentationRegistration>): () => void;
187
+ /** Record one model-reported outcome as learning-ineligible operational audit. */
84
188
  recordEpisode(agent: Agent | undefined, input: ForegroundEpisodeInput): StoredEpisode;
85
189
  /**
86
- * Record an outcome observed by trusted local infrastructure rather than a model
87
- * turn, for example a finished background automation run.
190
+ * Record an execution outcome observed by trusted local infrastructure rather
191
+ * than a model turn, for example a finished background automation run. It is
192
+ * deliberately operational and learning-ineligible: execution success/failure
193
+ * does not establish objective task quality.
88
194
  *
89
195
  * There is no Agent to authorize here, so this is deliberately narrow: it can
90
196
  * only append evidence. It cannot adopt, retire, or read rules, so an automation
@@ -104,6 +210,55 @@ export declare class AssistantEvolutionService extends Service {
104
210
  ruleId?: string;
105
211
  guidanceVersion?: number;
106
212
  }): StoredEpisode;
213
+ /**
214
+ * Deprecated unsafe v5 shape. Free caller-supplied quality fields can never
215
+ * produce learning-eligible evidence again; use projectEvaluationOutcome().
216
+ */
217
+ recordEvaluationOutcome(input: EvaluationOutcomeInput): StoredEpisode;
218
+ /**
219
+ * Project one exact trusted Evaluation row into the learning ledger. The
220
+ * caller cannot supply outcome, detail, kind, time, situation or attribution.
221
+ */
222
+ projectEvaluationOutcome(input: EvaluationProjectionInput): StoredEpisode;
223
+ /**
224
+ * Narrow structural seam used only by Evaluation's durable outbox. The raw
225
+ * scope is canonicalized here; quality fields are still fetched exclusively
226
+ * from the trusted Evaluation ledger.
227
+ */
228
+ projectTrustedEvaluationOutcome(_input: {
229
+ scope: Readonly<{
230
+ workspace: string;
231
+ preset: string;
232
+ }>;
233
+ evaluationId: string;
234
+ }): never;
235
+ /** Evaluation protocol v2 sink. Every success echoes the exact applied revision. */
236
+ projectTrustedEvaluationTaskRevision(input: {
237
+ scope: Readonly<{
238
+ workspace: string;
239
+ preset: string;
240
+ }>;
241
+ evaluationId: string;
242
+ }): Readonly<{
243
+ triggerOutcomeId: string;
244
+ subjectKind: 'automation-run' | 'outcome';
245
+ subjectRef: string;
246
+ version: number;
247
+ digest: string;
248
+ scopeWatermark: number;
249
+ disposition: 'upsert' | 'retract';
250
+ status: 'applied' | 'replayed';
251
+ }>;
252
+ /**
253
+ * Called by Assistant Automations only after it installed the immutable
254
+ * production execution context and bound the Policy initiator. This closes
255
+ * the session-start ordering gap without weakening background Policy.
256
+ */
257
+ injectAutomationGuidance(agent: Agent, execution: Readonly<{
258
+ mode: 'preview' | 'production';
259
+ automationId: string;
260
+ occurrenceId: string;
261
+ }>): void;
107
262
  /** Query an exact post-injection receipt for trusted automation attribution. */
108
263
  captureAutomationExposure(input: {
109
264
  workspace: string;
@@ -116,7 +271,56 @@ export declare class AssistantEvolutionService extends Service {
116
271
  } | undefined>;
117
272
  /** Candidate rule changes implied by current evidence. Never auto-applied. */
118
273
  candidates(agent: Agent | undefined): RuleCandidate[];
274
+ /** Agent-free, exact-scope candidate inspection for the fixed Host runbook. */
275
+ hostCandidates(input: EvolutionHostOperation): RuleCandidate[];
276
+ /**
277
+ * Review exactly one adoption candidate from the dedicated production
278
+ * analyst. The random review token is durable and bound to this occurrence;
279
+ * no foreground or preview session can obtain one.
280
+ */
281
+ reviewSupervisedGrowthAdoption(agent: Agent | undefined): Readonly<SupervisedGrowthAnalystReview>;
282
+ /**
283
+ * Turn one frozen analyst review into the normal owner approval. Identity is
284
+ * evidence-derived; wording changes and concurrent executions join the first
285
+ * durable proposal instead of producing several cards.
286
+ */
287
+ proposeSupervisedGrowthAdoption(agent: Agent | undefined, input: SupervisedGrowthAnalystProposalInput): EvolutionProposalResult;
119
288
  listRules(agent: Agent | undefined, status?: 'active' | 'retired'): StoredRule[];
289
+ /** Agent-free, exact-scope rule inspection for the fixed Host runbook. */
290
+ hostListRules(input: EvolutionHostOperation & {
291
+ status?: 'active' | 'retired';
292
+ }): StoredRule[];
293
+ /**
294
+ * Remove one exact active guidance generation through the opt-in low-risk lane.
295
+ *
296
+ * The model identifies only the immutable rule and its observed version. This
297
+ * method derives scope from the Agent, authorizes the exact Policy action, and
298
+ * delegates the evidence/risk/reason decision to one transactional Host path.
299
+ */
300
+ rollback(agent: Agent | undefined, input: {
301
+ ruleId: string;
302
+ expectedVersion: number;
303
+ }): EvolutionRollbackResult;
304
+ /**
305
+ * Retire one exact active rule by CAS. The Store admits only quality-eligible
306
+ * objective/verification evidence attributed to an exact exposure receipt;
307
+ * operational automation outcomes cannot satisfy this lane.
308
+ */
309
+ hostRollbackOne(input: EvolutionHostOperation & {
310
+ ruleId: string;
311
+ expectedVersion: number;
312
+ }): EvolutionRollbackResult;
313
+ /**
314
+ * Ask the authenticated owner to remove one exact active guidance version.
315
+ *
316
+ * This is intentionally a proposal, not a direct rollback: the current Agent
317
+ * supplies the exact workspace/preset scope, Delivery supplies the owner
318
+ * principal, and Policy freezes a distinct `evolution.owner-undo` review
319
+ * tuple. Approval can only retire the rule; it cannot revise its guidance or
320
+ * grant authority. No regression sample is required because the owner is the
321
+ * authority withdrawing their own earlier approval.
322
+ */
323
+ requestOwnerUndo(agent: Agent | undefined, input: EvolutionOwnerUndoInput): EvolutionProposalResult;
120
324
  /**
121
325
  * Propose adopting or retiring a rule. Returns a pending proposal; the owner
122
326
  * decides through the normal approval surface.
@@ -133,10 +337,30 @@ export declare class AssistantEvolutionService extends Service {
133
337
  * pending forever. Safe to call repeatedly.
134
338
  */
135
339
  reconcileProposals(limit?: number): EvolutionProposalResult[];
340
+ /**
341
+ * Publish domain terminal receipts independently from proposal polling. A
342
+ * crash after Delivery accepts but before the local ack simply republishes the
343
+ * same revision and digest on restart.
344
+ */
345
+ reconcileApplicationPresentations(limit?: number): number;
346
+ private applicationPresentation;
136
347
  private submitLocalProposal;
137
348
  private attachPolicySnapshot;
138
349
  private settleAttached;
139
350
  private approvalRoute;
351
+ /**
352
+ * Acquire Evaluation first and Evolution only inside its synchronous callback.
353
+ * No code holding an Evolution writer lock is allowed to call this method.
354
+ */
355
+ private withLearningWriterFence;
356
+ private candidatesForScope;
357
+ private trustedTaskLearningReceipt;
358
+ private applyTrustedTaskLearningReceipt;
359
+ private verifiedAutomationAttribution;
360
+ private normalizedRollbackInput;
361
+ private rollbackForScope;
362
+ private authorizeHost;
363
+ private authorizeSupervisedGrowthAnalyst;
140
364
  /** Guidance block for the current active rules, as injected into a session. */
141
365
  guidance(agent?: Agent): string;
142
366
  private guidanceForScope;
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAEnD,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,KAAK,EAGV,sBAAsB,EAGvB,MAAM,gCAAgC,CAAA;AASvC,OAAO,KAAK,EAGV,yBAAyB,EACzB,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