@dsh-ray/assistant-growth-driver 0.0.1-seed.0 → 0.2.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 +21 -0
- package/README.md +321 -1
- package/cordis.patch.yml +3 -0
- package/lib/association-intake.d.ts +55 -0
- package/lib/association-intake.d.ts.map +1 -0
- package/lib/association-intake.js +253 -0
- package/lib/association-intake.js.map +1 -0
- package/lib/config.d.ts +171 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +401 -0
- package/lib/config.js.map +1 -0
- package/lib/deposit.d.ts +53 -0
- package/lib/deposit.d.ts.map +1 -0
- package/lib/deposit.js +56 -0
- package/lib/deposit.js.map +1 -0
- package/lib/dreaming-intake.d.ts +37 -0
- package/lib/dreaming-intake.d.ts.map +1 -0
- package/lib/dreaming-intake.js +180 -0
- package/lib/dreaming-intake.js.map +1 -0
- package/lib/growth-agent.d.ts +193 -0
- package/lib/growth-agent.d.ts.map +1 -0
- package/lib/growth-agent.js +1633 -0
- package/lib/growth-agent.js.map +1 -0
- package/lib/index.d.ts +79 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +662 -0
- package/lib/index.js.map +1 -0
- package/lib/revision-target-matcher.d.ts +23 -0
- package/lib/revision-target-matcher.d.ts.map +1 -0
- package/lib/revision-target-matcher.js +51 -0
- package/lib/revision-target-matcher.js.map +1 -0
- package/lib/scanner-owner-runtime.d.ts +34 -0
- package/lib/scanner-owner-runtime.d.ts.map +1 -0
- package/lib/scanner-owner-runtime.js +99 -0
- package/lib/scanner-owner-runtime.js.map +1 -0
- package/lib/source-edits.d.ts +22 -0
- package/lib/source-edits.d.ts.map +1 -0
- package/lib/source-edits.js +77 -0
- package/lib/source-edits.js.map +1 -0
- package/lib/source-port.d.ts +223 -0
- package/lib/source-port.d.ts.map +1 -0
- package/lib/source-port.js +8 -0
- package/lib/source-port.js.map +1 -0
- package/lib/usage-runtime.d.ts +116 -0
- package/lib/usage-runtime.d.ts.map +1 -0
- package/lib/usage-runtime.js +853 -0
- package/lib/usage-runtime.js.map +1 -0
- package/lib/usage-store.d.ts +119 -0
- package/lib/usage-store.d.ts.map +1 -0
- package/lib/usage-store.js +343 -0
- package/lib/usage-store.js.map +1 -0
- package/lib/version.d.ts +2 -0
- package/lib/version.d.ts.map +1 -0
- package/lib/version.js +2 -0
- package/lib/version.js.map +1 -0
- package/lib/work-item-source.d.ts +63 -0
- package/lib/work-item-source.d.ts.map +1 -0
- package/lib/work-item-source.js +126 -0
- package/lib/work-item-source.js.map +1 -0
- package/package.json +146 -4
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
const CORDIS_ORIGINAL = Symbol.for('cordis.original');
|
|
3
|
+
const DIGEST_HEX = /^[a-f0-9]{64}$/u;
|
|
4
|
+
const DAY_KEY = /^\d{4}-\d{2}-\d{2}$/u;
|
|
5
|
+
const MAX_SCAN_IDEAS = 64;
|
|
6
|
+
function boundedPrintable(value, maxBytes) {
|
|
7
|
+
if (typeof value !== 'string')
|
|
8
|
+
return null;
|
|
9
|
+
const text = value.normalize('NFC').trim();
|
|
10
|
+
if (text.length === 0 || !text.isWellFormed() || Buffer.byteLength(text, 'utf8') > maxBytes)
|
|
11
|
+
return null;
|
|
12
|
+
if ([...text].some(char => {
|
|
13
|
+
const code = char.codePointAt(0);
|
|
14
|
+
return (code <= 0x1f && code !== 0x0a && code !== 0x09) || code === 0x7f;
|
|
15
|
+
}))
|
|
16
|
+
return null;
|
|
17
|
+
return text;
|
|
18
|
+
}
|
|
19
|
+
function digestValidatedIdea(idea) {
|
|
20
|
+
return createHash('sha256').update(JSON.stringify({
|
|
21
|
+
id: idea.id,
|
|
22
|
+
lane: idea.lane,
|
|
23
|
+
dayKey: idea.dayKey,
|
|
24
|
+
createdAt: idea.createdAt,
|
|
25
|
+
state: 'validated',
|
|
26
|
+
summary: idea.summary,
|
|
27
|
+
detail: idea.detail,
|
|
28
|
+
evidenceRefs: idea.evidenceRefs,
|
|
29
|
+
})).digest('hex');
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Validate a candidate idea before admitting it into growth-driver prompt or
|
|
33
|
+
* wake context. Only strictly `state === 'validated'` ideas with bounded fields
|
|
34
|
+
* and digest-format evidence references are ever accepted.
|
|
35
|
+
*/
|
|
36
|
+
export function assertValidatedDreamIdeaInput(value) {
|
|
37
|
+
if (value === null || typeof value !== 'object' || Array.isArray(value)) {
|
|
38
|
+
throw new Error('assistant-growth-driver: dreaming idea must be an object');
|
|
39
|
+
}
|
|
40
|
+
const raw = value;
|
|
41
|
+
if (raw.state !== 'validated') {
|
|
42
|
+
throw new Error(`assistant-growth-driver: refusing unvalidated dreaming idea (state=${String(raw.state)})`);
|
|
43
|
+
}
|
|
44
|
+
const id = boundedPrintable(raw.id, 128);
|
|
45
|
+
const lane = boundedPrintable(raw.lane, 128);
|
|
46
|
+
const dayKey = typeof raw.dayKey === 'string' && DAY_KEY.test(raw.dayKey) ? raw.dayKey : null;
|
|
47
|
+
const createdAt = typeof raw.createdAt === 'number' && Number.isSafeInteger(raw.createdAt) && raw.createdAt >= 0
|
|
48
|
+
? raw.createdAt
|
|
49
|
+
: null;
|
|
50
|
+
const summary = boundedPrintable(raw.summary, 2_048);
|
|
51
|
+
const detail = boundedPrintable(raw.detail, 8_192);
|
|
52
|
+
if (id === null || lane === null || dayKey === null || createdAt === null || summary === null || detail === null) {
|
|
53
|
+
throw new Error('assistant-growth-driver: invalid validated dreaming idea fields');
|
|
54
|
+
}
|
|
55
|
+
if (!Array.isArray(raw.evidenceRefs) || raw.evidenceRefs.length === 0 || raw.evidenceRefs.length > 16) {
|
|
56
|
+
throw new Error('assistant-growth-driver: validated dreaming idea requires bounded evidenceRefs');
|
|
57
|
+
}
|
|
58
|
+
const evidenceRefs = [];
|
|
59
|
+
for (const ref of raw.evidenceRefs) {
|
|
60
|
+
if (typeof ref !== 'string' || !DIGEST_HEX.test(ref)) {
|
|
61
|
+
throw new Error('assistant-growth-driver: invalid dreaming evidenceRef digest');
|
|
62
|
+
}
|
|
63
|
+
evidenceRefs.push(ref);
|
|
64
|
+
}
|
|
65
|
+
const base = {
|
|
66
|
+
id,
|
|
67
|
+
state: 'validated',
|
|
68
|
+
lane,
|
|
69
|
+
dayKey,
|
|
70
|
+
createdAt,
|
|
71
|
+
summary,
|
|
72
|
+
detail,
|
|
73
|
+
evidenceRefs: Object.freeze(evidenceRefs),
|
|
74
|
+
};
|
|
75
|
+
const digest = digestValidatedIdea(base);
|
|
76
|
+
if (raw.digest !== undefined && raw.digest !== digest) {
|
|
77
|
+
throw new Error('assistant-growth-driver: dreaming idea digest mismatch');
|
|
78
|
+
}
|
|
79
|
+
return Object.freeze({ ...base, digest });
|
|
80
|
+
}
|
|
81
|
+
function hasOwnerValidationAudit(events) {
|
|
82
|
+
if (!Array.isArray(events) || events.length === 0)
|
|
83
|
+
return false;
|
|
84
|
+
const last = events[events.length - 1];
|
|
85
|
+
if (last === undefined || last.state !== 'validated')
|
|
86
|
+
return false;
|
|
87
|
+
return events.some(event => event?.state === 'validated' && event?.actor === 'owner');
|
|
88
|
+
}
|
|
89
|
+
function unwrapDreaming(ctx) {
|
|
90
|
+
const service = ctx.get('assistantDreaming', false);
|
|
91
|
+
if (service === undefined)
|
|
92
|
+
return undefined;
|
|
93
|
+
return service[CORDIS_ORIGINAL] ?? service;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Bounded, read-only ingestion of owner-validated dreaming ideas.
|
|
97
|
+
* Strictly ignores any idea that is not `state === 'validated'` (or lacks an
|
|
98
|
+
* owner validation audit event when `inspectIdeaEvents` is available).
|
|
99
|
+
*/
|
|
100
|
+
export function readValidatedDreamIdeas(ctx, authority, maxIdeas) {
|
|
101
|
+
authority.assertCurrent();
|
|
102
|
+
const limit = Number.isSafeInteger(maxIdeas) ? Math.min(Math.max(1, maxIdeas), 10) : 3;
|
|
103
|
+
const dreaming = unwrapDreaming(ctx);
|
|
104
|
+
if (dreaming === undefined || typeof dreaming.health !== 'function') {
|
|
105
|
+
return Object.freeze({
|
|
106
|
+
ideas: Object.freeze([]),
|
|
107
|
+
summary: Object.freeze({
|
|
108
|
+
enabled: false,
|
|
109
|
+
considered: 0,
|
|
110
|
+
ingested: 0,
|
|
111
|
+
rejectedUnvalidated: 0,
|
|
112
|
+
ideaIds: Object.freeze([]),
|
|
113
|
+
}),
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
const health = dreaming.health();
|
|
117
|
+
if (health === null || typeof health !== 'object' || health.enabled !== true) {
|
|
118
|
+
return Object.freeze({
|
|
119
|
+
ideas: Object.freeze([]),
|
|
120
|
+
summary: Object.freeze({
|
|
121
|
+
enabled: false,
|
|
122
|
+
considered: 0,
|
|
123
|
+
ingested: 0,
|
|
124
|
+
rejectedUnvalidated: 0,
|
|
125
|
+
ideaIds: Object.freeze([]),
|
|
126
|
+
}),
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
const scanLimit = Math.min(Math.max(limit * 4, 20), MAX_SCAN_IDEAS);
|
|
130
|
+
const rawCandidates = typeof dreaming.inspectValidatedIdeas === 'function'
|
|
131
|
+
? dreaming.inspectValidatedIdeas(scanLimit)
|
|
132
|
+
: typeof dreaming.inspectIdeas === 'function'
|
|
133
|
+
? dreaming.inspectIdeas(scanLimit)
|
|
134
|
+
: [];
|
|
135
|
+
const ideas = [];
|
|
136
|
+
const seenIds = new Set();
|
|
137
|
+
let considered = 0;
|
|
138
|
+
let rejectedUnvalidated = 0;
|
|
139
|
+
if (Array.isArray(rawCandidates)) {
|
|
140
|
+
for (const candidate of rawCandidates) {
|
|
141
|
+
if (ideas.length >= limit || considered >= MAX_SCAN_IDEAS)
|
|
142
|
+
break;
|
|
143
|
+
considered += 1;
|
|
144
|
+
let validated;
|
|
145
|
+
try {
|
|
146
|
+
validated = assertValidatedDreamIdeaInput(candidate);
|
|
147
|
+
}
|
|
148
|
+
catch {
|
|
149
|
+
rejectedUnvalidated += 1;
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
if (seenIds.has(validated.id))
|
|
153
|
+
continue;
|
|
154
|
+
if (typeof dreaming.inspectIdeaEvents === 'function') {
|
|
155
|
+
const events = dreaming.inspectIdeaEvents(validated.id, 32);
|
|
156
|
+
if (!hasOwnerValidationAudit(events)) {
|
|
157
|
+
rejectedUnvalidated += 1;
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
authority.assertCurrent();
|
|
162
|
+
seenIds.add(validated.id);
|
|
163
|
+
ideas.push(validated);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
authority.assertCurrent();
|
|
167
|
+
const frozenIdeas = Object.freeze(ideas);
|
|
168
|
+
const ideaIds = Object.freeze(frozenIdeas.map(item => item.id));
|
|
169
|
+
return Object.freeze({
|
|
170
|
+
ideas: frozenIdeas,
|
|
171
|
+
summary: Object.freeze({
|
|
172
|
+
enabled: true,
|
|
173
|
+
considered,
|
|
174
|
+
ingested: frozenIdeas.length,
|
|
175
|
+
rejectedUnvalidated,
|
|
176
|
+
ideaIds,
|
|
177
|
+
}),
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=dreaming-intake.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dreaming-intake.js","sourceRoot":"","sources":["../src/dreaming-intake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAKxC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;AACrD,MAAM,UAAU,GAAG,iBAAiB,CAAA;AACpC,MAAM,OAAO,GAAG,sBAAsB,CAAA;AACtC,MAAM,cAAc,GAAG,EAAE,CAAA;AAgCzB,SAAS,gBAAgB,CAAC,KAAc,EAAE,QAAgB;IACxD,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,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CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
declare module '@deepseek-ai/dsh-llm' {
|
|
2
|
+
interface MessageSourceMap {
|
|
3
|
+
'assistant-growth-driver': {
|
|
4
|
+
kind: 'assistant-growth-driver';
|
|
5
|
+
form?: 'notice';
|
|
6
|
+
summary?: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
import { type AnySourceGrowthRunBinding, type SourceGrowthRunBinding } from '@dsh-ray/assistant-growth-contract';
|
|
11
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
12
|
+
import { type ModelSelection } from '@deepseek-ai/dsh-agent';
|
|
13
|
+
import type { AssistantGoalsService } from '@dsh-ray/assistant-goals';
|
|
14
|
+
import type { BenchmarkPlan } from '@dsh-ray/assistant-evaluation/benchmark';
|
|
15
|
+
import type { AssistantSkillsService } from '@dsh-ray/assistant-skills';
|
|
16
|
+
import type { NormalizedGrowthDriverConfig } from './config.js';
|
|
17
|
+
import type { GrowthAuthority } from './deposit.js';
|
|
18
|
+
import { type AssociationSkillCandidateInput } from './association-intake.js';
|
|
19
|
+
import { type ValidatedDreamIdeaInput } from './dreaming-intake.js';
|
|
20
|
+
import { type GrowthSourcePlanePort } from './source-port.js';
|
|
21
|
+
export declare const GROWTH_PROMPT: string;
|
|
22
|
+
/**
|
|
23
|
+
* Extra prompt section mounted ONLY when the owner opted into
|
|
24
|
+
* pluginSourceProposals. It defines the three source tools and the hard
|
|
25
|
+
* boundaries around the isolated modify lane.
|
|
26
|
+
*/
|
|
27
|
+
export declare const SOURCE_PROPOSALS_PROMPT: string;
|
|
28
|
+
export declare const SOURCE_TARGETS_PROMPT: string;
|
|
29
|
+
export declare const DREAMING_IDEAS_PROMPT: string;
|
|
30
|
+
export declare const ASSOCIATION_CANDIDATES_PROMPT: string;
|
|
31
|
+
/**
|
|
32
|
+
* Native-check guidance for authored @deepseek-ai/dsh-tools code. Sealed attempt 5
|
|
33
|
+
* failed `tsc --noEmit` on exactly these two coupled mistakes: a nested schema as
|
|
34
|
+
* `additionalProperties`, which made the inferred output `never` for the handler.
|
|
35
|
+
*/
|
|
36
|
+
export declare const SOURCE_TYPECHECK_GUIDANCE: string;
|
|
37
|
+
/**
|
|
38
|
+
* Generic secure-coding and documentation rules for authored tool code. Tool inputs are untrusted:
|
|
39
|
+
* plain `{}` accumulators drop or reinterpret keys such as `__proto__`, and README claims that
|
|
40
|
+
* contradict the code leave reviewers unable to tell which behavior is intended.
|
|
41
|
+
*/
|
|
42
|
+
export declare const SOURCE_SECURE_CODING_GUIDANCE: string;
|
|
43
|
+
/** Upper bound on one plugin_source_job_status wait; also capped by the wake deadline. */
|
|
44
|
+
export declare const MAX_SOURCE_JOB_WAIT_MS = 240000;
|
|
45
|
+
/** At most one Host-certified build repair per gap/name per wake (two create attempts in total). */
|
|
46
|
+
export declare const MAX_SOURCE_BUILD_REPAIRS = 1;
|
|
47
|
+
export declare const SOURCE_BUILD_CHECK_FAILED = "source-build-check-failed";
|
|
48
|
+
/** Re-project untrusted peer diagnostics into a bounded, plain shape for the model. */
|
|
49
|
+
export declare function projectBuildDiagnostics(value: unknown): Record<string, unknown> | undefined;
|
|
50
|
+
/** Bounded in-run repair: one revision, only after a Host-certified deterministic build/check failure. */
|
|
51
|
+
export declare const SOURCE_REPAIR_GUIDANCE: string;
|
|
52
|
+
export declare const SOURCE_CREATION_PROMPT: string;
|
|
53
|
+
export declare const SOURCE_REVISION_PROMPT: string;
|
|
54
|
+
export interface GrowthSourceWakeCounters {
|
|
55
|
+
readonly queued: number;
|
|
56
|
+
readonly prepared: number;
|
|
57
|
+
readonly rejected: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Bounded structural summary of one PTC-presented growth wake. It exists so a
|
|
61
|
+
* trajectory can inform later RSI work without ever retaining the program
|
|
62
|
+
* source, nested call arguments, parameter bodies or tool result bodies: every
|
|
63
|
+
* field is a counter, a byte length, a time span or a digest.
|
|
64
|
+
*
|
|
65
|
+
* `toolCallsByName` is bounded by the frozen allowlist (unknown nested names
|
|
66
|
+
* are counted in `unadmittedNestedCalls` instead), and the script digest is a
|
|
67
|
+
* one-way SHA-256 over length-prefixed scripts, never the scripts themselves.
|
|
68
|
+
*/
|
|
69
|
+
export interface GrowthPtcTrajectory {
|
|
70
|
+
readonly protocol: 'assistant-growth/ptc-trajectory/v1';
|
|
71
|
+
/** Model-direct `run_code` calls in this wake. */
|
|
72
|
+
readonly runCodeCalls: number;
|
|
73
|
+
/** `run_code` calls whose final tool result was an error. */
|
|
74
|
+
readonly failedRunCodeCalls: number;
|
|
75
|
+
/** Total UTF-8 bytes of all program sources (a size, never the source). */
|
|
76
|
+
readonly scriptBytes: number;
|
|
77
|
+
/** SHA-256 over the ordered, length-prefixed program sources; null when none ran. */
|
|
78
|
+
readonly scriptDigest: string | null;
|
|
79
|
+
/** Settled nested sub-dispatches across every program. */
|
|
80
|
+
readonly nestedCalls: number;
|
|
81
|
+
readonly failedNestedCalls: number;
|
|
82
|
+
/** Nested sub-dispatches naming a tool outside the frozen allowlist (all denied). */
|
|
83
|
+
readonly unadmittedNestedCalls: number;
|
|
84
|
+
/** Nested sub-dispatch counts keyed by allowlisted tool name; bounded by the allowlist. */
|
|
85
|
+
readonly toolCallsByName: Readonly<Record<string, number>>;
|
|
86
|
+
/** Longest settled nested sub-dispatch in milliseconds. */
|
|
87
|
+
readonly longestSubCallMs: number;
|
|
88
|
+
/** Longest model-direct `run_code` call in milliseconds. */
|
|
89
|
+
readonly longestRunCodeMs: number;
|
|
90
|
+
}
|
|
91
|
+
export interface GrowthAgentRunResult {
|
|
92
|
+
readonly model: Readonly<ModelSelection>;
|
|
93
|
+
readonly sessionId: string;
|
|
94
|
+
readonly outcome: 'succeeded' | 'cancelled' | 'failed' | 'unknown';
|
|
95
|
+
readonly output: string;
|
|
96
|
+
readonly usage: {
|
|
97
|
+
inputTokens: number;
|
|
98
|
+
outputTokens: number;
|
|
99
|
+
cacheReadTokens: number;
|
|
100
|
+
cacheWriteTokens: number;
|
|
101
|
+
reasoningTokens: number;
|
|
102
|
+
modelCalls: number;
|
|
103
|
+
toolCalls: number;
|
|
104
|
+
/**
|
|
105
|
+
* Present only when the wake ran with `toolPresentation: 'ptc'`; native runs
|
|
106
|
+
* keep exactly their previous usage shape (zero behavior change when off).
|
|
107
|
+
*/
|
|
108
|
+
ptc?: GrowthPtcTrajectory;
|
|
109
|
+
};
|
|
110
|
+
/** Zeroed unless the owner opted into pluginSourceProposals and a source port is bound. */
|
|
111
|
+
readonly sourceProposals: GrowthSourceWakeCounters;
|
|
112
|
+
}
|
|
113
|
+
type Goals = Pick<AssistantGoalsService, 'inspectOwnerGoals' | 'inspectOwnerVerifiedWorkflowSource'>;
|
|
114
|
+
type Skills = Pick<AssistantSkillsService, 'inspectOwnerActiveSkills' | 'inspectOwnerSkillCandidates' | 'stageOwnerVerifiedSuccessCandidate'>;
|
|
115
|
+
export interface GrowthAgentInput {
|
|
116
|
+
wakeId: string;
|
|
117
|
+
authority: GrowthAuthority;
|
|
118
|
+
config: NormalizedGrowthDriverConfig;
|
|
119
|
+
model: Readonly<ModelSelection>;
|
|
120
|
+
goals: Goals;
|
|
121
|
+
skills: Skills;
|
|
122
|
+
/**
|
|
123
|
+
* Host-only benchmark provenance for any candidate derived from benchmark
|
|
124
|
+
* data. Production owner-task evidence leaves it absent; a benchmark-derived
|
|
125
|
+
* caller MUST pass the exact plan so the holdout guard can reject it before
|
|
126
|
+
* any candidate is written.
|
|
127
|
+
*/
|
|
128
|
+
benchmarkPlan?: BenchmarkPlan;
|
|
129
|
+
/** Host source plane; the source kind and explicit grants freeze the exact realm tools. */
|
|
130
|
+
sourcePlane?: GrowthSourcePlanePort;
|
|
131
|
+
/** Bounded owner-validated dreaming ideas supplied by the Host service as advisory leads only. */
|
|
132
|
+
validatedDreamIdeas?: readonly ValidatedDreamIdeaInput[];
|
|
133
|
+
/** Bounded WP04-verified association skill candidates supplied by the Host service as advisory leads only. */
|
|
134
|
+
associationCandidates?: readonly AssociationSkillCandidateInput[];
|
|
135
|
+
signal?: AbortSignal;
|
|
136
|
+
/** Actual task context is data, never authority or independent success proof. */
|
|
137
|
+
feedback?: import('@dsh-ray/assistant-delivery').OwnerForegroundLearningTask | import('./work-item-source.js').WorkItemUsageSource;
|
|
138
|
+
assertFirstModelAdmission?: () => void;
|
|
139
|
+
workItemAuthorization?: {
|
|
140
|
+
runId: string;
|
|
141
|
+
intentDigest: string;
|
|
142
|
+
definitionHash: string;
|
|
143
|
+
occurrenceId: string;
|
|
144
|
+
assertCurrent(): void;
|
|
145
|
+
};
|
|
146
|
+
/** Host-only callback after the real Agent realm, model, tools and guards are pinned. */
|
|
147
|
+
onSourceExecution?: (input: Pick<SourceGrowthRunBinding, 'model' | 'sessionId' | 'toolContractDigest' | 'executionContractDigest' | 'createdAt' | 'generationDeadlineAt' | 'creationAcceptance' | 'revisionAcceptance' | 'revisionRegressionAcceptance'>) => void | AnySourceGrowthRunBinding | Promise<void | AnySourceGrowthRunBinding>;
|
|
148
|
+
/** Durable source expiry can shorten, but never extend, the Agent deadline. */
|
|
149
|
+
generationDeadlineAt?: number;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Project a bounded structural trajectory from the session's PTC log events.
|
|
153
|
+
* Deliberately reads only names, ids, times, error flags and byte lengths: the
|
|
154
|
+
* nested `arguments` and `content` carried by `tool/ptc-dispatch`/`-start`
|
|
155
|
+
* and the program source in `tool/call` never survive into the returned
|
|
156
|
+
* object, and unknown/malformed records are skipped rather than trusted.
|
|
157
|
+
* Bounded by the frozen tool allowlist and by plain integer counters.
|
|
158
|
+
*/
|
|
159
|
+
export declare function ptcTrajectory(events: readonly unknown[], admittedToolNames: ReadonlySet<string>): GrowthPtcTrajectory;
|
|
160
|
+
/**
|
|
161
|
+
* Split the registry's presentation-agnostic visibility view into the frozen
|
|
162
|
+
* allowlist surface and the reserved PTC transport. `schemas(scope)` stays
|
|
163
|
+
* presentation-agnostic for everything the growth agent registered, but under
|
|
164
|
+
* `ptc` the Host registry appends its own reserved `run_code` definition.
|
|
165
|
+
* Keeping the split in one pure helper means the contract digest can never
|
|
166
|
+
* accidentally include the presentation transport (native and PTC runs of the
|
|
167
|
+
* same configuration persist the identical tool contract digest) while the
|
|
168
|
+
* fail-closed surface check can still require exactly one reserved transport.
|
|
169
|
+
*/
|
|
170
|
+
export declare function splitGrowthToolSurface<T extends {
|
|
171
|
+
name: string;
|
|
172
|
+
}>(schemas: readonly T[]): {
|
|
173
|
+
surface: T[];
|
|
174
|
+
reserved: T[];
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Host-only provenance gate for candidate generation. Benchmark-derived input
|
|
178
|
+
* must carry its exact plan and pass the evaluation holdout guard; ordinary
|
|
179
|
+
* owner-task evidence is structurally not benchmark data. Anything else fails
|
|
180
|
+
* closed before any candidate write or model call.
|
|
181
|
+
*/
|
|
182
|
+
export declare function assertCandidateGenerationOrigin(input: {
|
|
183
|
+
feedback?: GrowthAgentInput['feedback'];
|
|
184
|
+
benchmarkPlan?: BenchmarkPlan;
|
|
185
|
+
}): Promise<void>;
|
|
186
|
+
/**
|
|
187
|
+
* Create, run to idle and dispose exactly one bounded growth agent. Never
|
|
188
|
+
* mounts a preset: the complete realm tool surface is frozen for this source,
|
|
189
|
+
* and any extra visible tool fails closed before the prompt is submitted.
|
|
190
|
+
*/
|
|
191
|
+
export declare function runGrowthAgent(ctx: Context, input: GrowthAgentInput): Promise<GrowthAgentRunResult>;
|
|
192
|
+
export {};
|
|
193
|
+
//# sourceMappingURL=growth-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"growth-agent.d.ts","sourceRoot":"","sources":["../src/growth-agent.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,gBAAgB;QACxB,yBAAyB,EAAE;YAAE,IAAI,EAAE,yBAAyB,CAAC;YAAC,IAAI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