@cat-factory/agents 0.157.2 → 0.159.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/dist/agents/catalog.js +2 -2
- package/dist/agents/catalog.js.map +1 -1
- package/dist/agents/kinds/versions.d.ts +10 -0
- package/dist/agents/kinds/versions.d.ts.map +1 -1
- package/dist/agents/kinds/versions.js +22 -0
- package/dist/agents/kinds/versions.js.map +1 -1
- package/dist/agents/prompts/environment-probe.d.ts +51 -0
- package/dist/agents/prompts/environment-probe.d.ts.map +1 -0
- package/dist/agents/prompts/environment-probe.js +180 -0
- package/dist/agents/prompts/environment-probe.js.map +1 -0
- package/dist/agents/prompts/environment-under-test.d.ts +69 -0
- package/dist/agents/prompts/environment-under-test.d.ts.map +1 -0
- package/dist/agents/prompts/environment-under-test.js +109 -0
- package/dist/agents/prompts/environment-under-test.js.map +1 -0
- package/dist/agents/prompts/shared.d.ts +16 -0
- package/dist/agents/prompts/shared.d.ts.map +1 -1
- package/dist/agents/prompts/shared.js +19 -0
- package/dist/agents/prompts/shared.js.map +1 -1
- package/dist/agents/prompts/standard.d.ts +45 -9
- package/dist/agents/prompts/standard.d.ts.map +1 -1
- package/dist/agents/prompts/standard.js +50 -34
- package/dist/agents/prompts/standard.js.map +1 -1
- package/dist/agents/prompts/testing.d.ts.map +1 -1
- package/dist/agents/prompts/testing.js +10 -1
- package/dist/agents/prompts/testing.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/agents/catalog.js
CHANGED
|
@@ -528,7 +528,7 @@ function buildBaseUserPrompt(context, registry, opts = {}) {
|
|
|
528
528
|
// Standard phases get their built-out, templated user prompt.
|
|
529
529
|
const phase = phaseForKind(context.agentKind);
|
|
530
530
|
if (phase)
|
|
531
|
-
return { prompt: renderStandardUserPrompt(phase, context, opts) };
|
|
531
|
+
return { prompt: renderStandardUserPrompt(phase, context, registry, opts) };
|
|
532
532
|
const dispatch = opts.dispatch;
|
|
533
533
|
// A registered custom kind may supply its own user prompt; otherwise it falls through
|
|
534
534
|
// to the generic block-context prompt below, like any other non-standard-phase kind. Even a
|
|
@@ -585,7 +585,7 @@ function buildBaseUserPrompt(context, registry, opts = {}) {
|
|
|
585
585
|
if (spikeSection)
|
|
586
586
|
lines.push(spikeSection);
|
|
587
587
|
}
|
|
588
|
-
const envSection = environmentSection(context);
|
|
588
|
+
const envSection = environmentSection(context, registry);
|
|
589
589
|
if (envSection)
|
|
590
590
|
lines.push(envSection);
|
|
591
591
|
const involvedSection = involvedServicesSection(context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/agents/catalog.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/E,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAEpF,OAAO,EAAsB,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAC3E,OAAO,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uBAAuB;gBAChF,QAAQ,QAAQ,CAAC,SAAS,4CAA4C,CACvE,CAAA;QACH,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC"}
|
|
@@ -91,6 +91,16 @@ export declare const PROMPT_VERSIONS: {
|
|
|
91
91
|
readonly version: 2;
|
|
92
92
|
readonly text: string;
|
|
93
93
|
};
|
|
94
|
+
readonly 'environment-probe-api': {
|
|
95
|
+
readonly id: 'environment-probe-api';
|
|
96
|
+
readonly version: 2;
|
|
97
|
+
readonly text: string;
|
|
98
|
+
};
|
|
99
|
+
readonly 'environment-probe-ui': {
|
|
100
|
+
readonly id: 'environment-probe-ui';
|
|
101
|
+
readonly version: 2;
|
|
102
|
+
readonly text: string;
|
|
103
|
+
};
|
|
94
104
|
};
|
|
95
105
|
/** Ids of the prompts currently under version control. */
|
|
96
106
|
export type PromptId = keyof typeof PROMPT_VERSIONS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/agents/kinds/versions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/agents/kinds/versions.ts"],"names":[],"mappings":"AAmCA,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,8DAA8D;AAC9D,eAAO,MAAM,eAAe;;iBAgBF,EAAE,EAAE,oBAAoB;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBAC1C,EAAE,EAAE,oBAAoB;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBAC1C,EAAE,EAAE,oBAAoB;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBAG9C,EAAE,EAAE,gBAAgB;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBACtC,EAAE,EAAE,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AoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGzD;AAED,8CAA8C;AAC9C,wBAAgB,aAAa,CAAC,EAAE,EAAE,QAAQ,GAAG,eAAe,CAE3D;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAGvE"}
|
|
@@ -3,6 +3,7 @@ import { REVIEW_SYSTEM_PROMPT, REWORK_SYSTEM_PROMPT, WRITER_SYSTEM_PROMPT, } fro
|
|
|
3
3
|
import { CLARITY_REVIEW_SYSTEM_PROMPT, CLARITY_REWORK_SYSTEM_PROMPT } from '../prompts/clarity.js';
|
|
4
4
|
import { ARCHITECTURE_BRAINSTORM_REWORK_SYSTEM_PROMPT, ARCHITECTURE_BRAINSTORM_SYSTEM_PROMPT, REQUIREMENTS_BRAINSTORM_REWORK_SYSTEM_PROMPT, REQUIREMENTS_BRAINSTORM_SYSTEM_PROMPT, } from '../prompts/brainstorm.js';
|
|
5
5
|
import { ENVIRONMENT_INVESTIGATION_SYSTEM_PROMPT } from '../prompts/environment-investigation.js';
|
|
6
|
+
import { ENVIRONMENT_PROBE_API_SYSTEM_PROMPT, ENVIRONMENT_PROBE_UI_SYSTEM_PROMPT, } from '../prompts/environment-probe.js';
|
|
6
7
|
import { KAIZEN_SYSTEM_PROMPT } from '../prompts/kaizen.js';
|
|
7
8
|
import { FORK_PROPOSER_SYSTEM_PROMPT } from './fork-proposer.js';
|
|
8
9
|
import { FORK_CHAT_SYSTEM_PROMPT } from '../prompts/fork-decision.js';
|
|
@@ -96,6 +97,27 @@ export const PROMPT_VERSIONS = {
|
|
|
96
97
|
version: 2,
|
|
97
98
|
text: ENVIRONMENT_INVESTIGATION_SYSTEM_PROMPT,
|
|
98
99
|
},
|
|
100
|
+
// The two AGENT DRY RUN probers. Numbered SEPARATELY, unlike the requirements trio: they share
|
|
101
|
+
// their rules block but state different roles, and an edit to the browser prompt says nothing
|
|
102
|
+
// about whether the HTTP one still produces the report an operator acted on.
|
|
103
|
+
//
|
|
104
|
+
// v2 on both, because the edit is to the rules block they share. Two of its rules are now the
|
|
105
|
+
// fragments the TESTER steps carry verbatim: the repository-discovery list
|
|
106
|
+
// (`SERVICE_DISCOVERY_GUIDANCE`) and the shapes of a success nobody observed
|
|
107
|
+
// (`FALSE_SUCCESS_SHAPES`). That is the dry run's whole claim made structural: it predicts what
|
|
108
|
+
// a tester will manage, which it can only do if both are sent looking in the same places and
|
|
109
|
+
// held to the same bar. So a benchmark comparing a report against a v1 one is comparing two
|
|
110
|
+
// materially different prompts.
|
|
111
|
+
'environment-probe-api': {
|
|
112
|
+
id: 'environment-probe-api',
|
|
113
|
+
version: 2,
|
|
114
|
+
text: ENVIRONMENT_PROBE_API_SYSTEM_PROMPT,
|
|
115
|
+
},
|
|
116
|
+
'environment-probe-ui': {
|
|
117
|
+
id: 'environment-probe-ui',
|
|
118
|
+
version: 2,
|
|
119
|
+
text: ENVIRONMENT_PROBE_UI_SYSTEM_PROMPT,
|
|
120
|
+
},
|
|
99
121
|
};
|
|
100
122
|
/**
|
|
101
123
|
* The versioned prompt id for each STANDARD PHASE that is under version control. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/agents/kinds/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC/F,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAA;AAClG,OAAO,EACL,4CAA4C,EAC5C,qCAAqC,EACrC,4CAA4C,EAC5C,qCAAqC,GACtC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAA;AACjG,OAAO,EAAE,oBAAo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AO,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;AAC7C,CAAC;AAED,8CAA8C;AAC9C,MAAM,UAAU,aAAa,CAAC,EAAY;IACxC,OAAO,eAAe,CAAC,EAAE,CAAC,CAAA;AAC5B,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,kBAAkB,CAAC,EAAU,EAAE,OAAgB;IAC7D,MAAM,CAAC,GAAG,OAAO,IAAI,CAAC,EAAE,IAAI,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,EAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC1F,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,CAAA;AACtB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { EnvironmentProbeSurface, EnvironmentReachabilityNote, EnvironmentAccessHandle, TestCredentialBrief } from '@cat-factory/kernel';
|
|
2
|
+
/** The JSON shape both probers emit, kept in step with `environmentProbeReportSchema`. */
|
|
3
|
+
export declare const ENVIRONMENT_PROBE_SHAPE_HINT: string;
|
|
4
|
+
/** The API prober: HTTP calls against a backend service's live ephemeral environment. */
|
|
5
|
+
export declare const ENVIRONMENT_PROBE_API_SYSTEM_PROMPT: string;
|
|
6
|
+
/** The UI prober: a browser against a frontend frame's live ephemeral environment. */
|
|
7
|
+
export declare const ENVIRONMENT_PROBE_UI_SYSTEM_PROMPT: string;
|
|
8
|
+
/** The system prompt for `surface`. */
|
|
9
|
+
export declare function environmentProbeSystemPrompt(surface: EnvironmentProbeSurface): string;
|
|
10
|
+
/**
|
|
11
|
+
* What the platform can tell the prober about the frame's sealed test credentials.
|
|
12
|
+
*
|
|
13
|
+
* The shared {@link TestCredentialBrief} under its name in this flow. Not a second type: the
|
|
14
|
+
* tester step is handed the same three states through the same renderer, which is what lets a dry
|
|
15
|
+
* run's verdict about "could an agent authenticate here" predict the tester's.
|
|
16
|
+
*/
|
|
17
|
+
export type EnvironmentProbeSecretsBrief = TestCredentialBrief;
|
|
18
|
+
/** Everything the platform knows about the target, as the prompt states it. */
|
|
19
|
+
export interface EnvironmentProbeBrief {
|
|
20
|
+
surface: EnvironmentProbeSurface;
|
|
21
|
+
service: {
|
|
22
|
+
title: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
};
|
|
25
|
+
environment: {
|
|
26
|
+
url: string | null;
|
|
27
|
+
status: string;
|
|
28
|
+
access?: EnvironmentAccessHandle | null;
|
|
29
|
+
reachability?: EnvironmentReachabilityNote;
|
|
30
|
+
};
|
|
31
|
+
testSecrets: EnvironmentProbeSecretsBrief;
|
|
32
|
+
repo: {
|
|
33
|
+
owner: string;
|
|
34
|
+
name: string;
|
|
35
|
+
branch: string;
|
|
36
|
+
serviceDirectory?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Render the dry run's USER prompt: the system under test, the environment the platform stood up,
|
|
41
|
+
* and the credentials it can reach.
|
|
42
|
+
*
|
|
43
|
+
* Every absence is STATED rather than omitted, and that is load-bearing here in a way it is not
|
|
44
|
+
* in an ordinary prompt. The report's most valuable field is `missingContext`, and a prober that
|
|
45
|
+
* cannot tell "no credentials were configured for this service" from "credentials exist and I was
|
|
46
|
+
* not shown them" cannot fill it usefully: it would report the platform's gap as its own
|
|
47
|
+
* ignorance, or the reverse. Same rule the own-service section follows for exactly the same
|
|
48
|
+
* reason.
|
|
49
|
+
*/
|
|
50
|
+
export declare function environmentProbeUserPrompt(brief: EnvironmentProbeBrief): string;
|
|
51
|
+
//# sourceMappingURL=environment-probe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment-probe.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/environment-probe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;AAmC5B,0FAA0F;AAC1F,eAAO,MAAM,4BAA4B,QAoB7B,CAAA;AA+CZ,yFAAyF;AACzF,eAAO,MAAM,mCAAmC,QAapC,CAAA;AAEZ,sFAAsF;AACtF,eAAO,MAAM,kCAAkC,QAenC,CAAA;AAEZ,uCAAuC;AACvC,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,uBAAuB,GAAG,MAAM,CAErF;AAWD;;;;;;GAMG;AACH,MAAM,MAAM,4BAA4B,GAAG,mBAAmB,CAAA;AAE9D,+EAA+E;AAC/E,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,uBAAuB,CAAA;IAChC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAChD,WAAW,EAAE;QACX,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;QAClB,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAA;QACvC,YAAY,CAAC,EAAE,2BAA2B,CAAA;KAC3C,CAAA;IACD,WAAW,EAAE,4BAA4B,CAAA;IACzC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACjF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,qBAAqB,GAAG,MAAM,CA2C/E"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { FALSE_SUCCESS_SHAPES, FINAL_ANSWER_IN_REPLY } from './shared.js';
|
|
2
|
+
import { reachabilityLines } from './standard.js';
|
|
3
|
+
// Everything the PLATFORM states about a live environment, rendered by the same code the tester
|
|
4
|
+
// steps render it with. A dry run that was told different things than the tester it predicts is a
|
|
5
|
+
// dry run whose verdict means nothing (see the module's own note).
|
|
6
|
+
import { SERVICE_DISCOVERY_GUIDANCE, environmentAccessLines, testCredentialLines, } from './environment-under-test.js';
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
// The AGENT DRY RUN's prompts: the two probers a self-test can dispatch at a freshly
|
|
9
|
+
// provisioned ephemeral environment.
|
|
10
|
+
//
|
|
11
|
+
// What they are FOR is narrower than a Tester, and the difference is the whole point. A Tester
|
|
12
|
+
// judges a CHANGE: it exercises this task's requirements and reports whether the software is safe
|
|
13
|
+
// to release. A prober judges the SETUP: given the environment the platform just stood up, the
|
|
14
|
+
// credentials it was handed and the repository it can read, can an agent work out how to operate
|
|
15
|
+
// this service at all? Every finding is about what the PLATFORM failed to supply, which is why
|
|
16
|
+
// the report has a `missingContext` list and why an operation the prober could not even attempt
|
|
17
|
+
// is a first-class outcome rather than a failure.
|
|
18
|
+
//
|
|
19
|
+
// Both prompts therefore push hard in the same two directions:
|
|
20
|
+
// - Do something that goes THROUGH AUTHENTICATION. A healthcheck answering 200 proves an
|
|
21
|
+
// ingress exists and nothing about whether an agent can work here, and the platform's verdict
|
|
22
|
+
// refuses `operable` without an authenticated success (`summarizeEnvironmentProbe`), so a
|
|
23
|
+
// prober that only pings has failed its own brief.
|
|
24
|
+
// - Never invent success. A guessed endpoint that 404s is a REPORTABLE FINDING; describing it as
|
|
25
|
+
// a limitation of the service, or quietly dropping it, destroys the only thing the diagnostic
|
|
26
|
+
// produces.
|
|
27
|
+
// ---------------------------------------------------------------------------
|
|
28
|
+
/** The JSON shape both probers emit, kept in step with `environmentProbeReportSchema`. */
|
|
29
|
+
export const ENVIRONMENT_PROBE_SHAPE_HINT = [
|
|
30
|
+
'{',
|
|
31
|
+
' "summary": string, // what you did, what worked, and what a human must fix',
|
|
32
|
+
' "operations": [ // one entry per operation you attempted OR deliberately did not',
|
|
33
|
+
' {',
|
|
34
|
+
' "name": string, // "list projects", "sign in and open the dashboard"',
|
|
35
|
+
' "target": string, // "GET /api/v1/projects", or the UI path you drove',
|
|
36
|
+
' "authenticated": boolean, // did this operation actually go through authentication?',
|
|
37
|
+
' "outcome": "succeeded" | "failed" | "not_attempted",',
|
|
38
|
+
' "failure": "auth_missing" | "auth_rejected" | "access_unclear" | "endpoint_unknown"',
|
|
39
|
+
' | "unreachable" | "timeout" | "server_error" | "bad_request"',
|
|
40
|
+
' | "tooling_missing" | "other", // omit when it succeeded',
|
|
41
|
+
' "detail": string // the status code, the message, what you saw',
|
|
42
|
+
' }',
|
|
43
|
+
' ],',
|
|
44
|
+
' "missingContext": string[], // what the PLATFORM did not tell you and you needed',
|
|
45
|
+
' "blockers": [ // things that stopped the whole dry run, not one operation',
|
|
46
|
+
' { "kind": <same values as "failure">, "detail": string }',
|
|
47
|
+
' ]',
|
|
48
|
+
'}',
|
|
49
|
+
].join('\n');
|
|
50
|
+
/**
|
|
51
|
+
* The failure vocabulary explained to the model, one line each.
|
|
52
|
+
*
|
|
53
|
+
* Stated in the prompt rather than left to the shape hint's bare union because the members
|
|
54
|
+
* encode WHOSE PROBLEM each failure is, and that distinction is the report's product. A model
|
|
55
|
+
* choosing `other` for a rejected token, or `server_error` for an endpoint it never found, hands
|
|
56
|
+
* an operator the wrong fix while looking perfectly well-formed.
|
|
57
|
+
*/
|
|
58
|
+
const FAILURE_VOCABULARY = [
|
|
59
|
+
'Choosing a `failure` value. Pick the one that names WHOSE problem it was, because that is what a human acts on.',
|
|
60
|
+
'- `auth_missing`: you had no credential for this operation and none was supplied to you.',
|
|
61
|
+
'- `auth_rejected`: you sent a credential you were given and the service refused it (401/403).',
|
|
62
|
+
'- `access_unclear`: a credential existed but you could not work out HOW to present it (which header, which flow, which scope).',
|
|
63
|
+
'- `endpoint_unknown`: you could not work out WHAT to call, or where to click, for this operation.',
|
|
64
|
+
'- `unreachable`: nothing answered at all, i.e. DNS, TLS or a refused connection.',
|
|
65
|
+
'- `timeout`: it answered too slowly to complete.',
|
|
66
|
+
'- `server_error`: the service answered with a 5xx or an unhandled error.',
|
|
67
|
+
'- `bad_request`: it rejected your request as malformed (4xx that is not auth), i.e. you had the endpoint but not its contract.',
|
|
68
|
+
'- `tooling_missing`: this container had no usable HTTP client or browser, so the attempt says nothing about the environment.',
|
|
69
|
+
'- `other`: anything else; put the specifics in `detail`.',
|
|
70
|
+
].join('\n');
|
|
71
|
+
/**
|
|
72
|
+
* The rules that make the report worth reading. Shared by both surfaces verbatim: they are about
|
|
73
|
+
* honesty and about what the diagnostic exists to surface, neither of which differs between
|
|
74
|
+
* calling an API and driving a browser.
|
|
75
|
+
*/
|
|
76
|
+
const PROBE_RULES = [
|
|
77
|
+
'How to work:',
|
|
78
|
+
// The discovery list is the TESTER's own, verbatim: what a dry run establishes is whether the
|
|
79
|
+
// knowledge a tester will go looking for is actually there to find.
|
|
80
|
+
`1. READ THE REPOSITORY FIRST. It is checked out read-only at the exact revision this environment was built from. Find how the service is addressed and how it authenticates. ${SERVICE_DISCOVERY_GUIDANCE}`,
|
|
81
|
+
'2. Pick 3 to 5 SIMPLE but MEANINGFUL operations: the kind of thing this service exists to do (list something, create something, read one record back). At least ONE of them MUST go through authentication. A healthcheck, a version endpoint or a static asset does not count as one of them: it proves an ingress exists and nothing about whether an agent can operate the service. Include a healthcheck only as a first sanity check, and mark it `authenticated: false`.',
|
|
82
|
+
'3. ATTEMPT each one against the live environment above and record exactly what happened. Read every credential from the environment variables named below; never print a secret value into your reply, your `detail` fields or a log.',
|
|
83
|
+
'4. Report an operation you could NOT attempt as `outcome: "not_attempted"` with the `failure` kind saying why. That is a real finding, not a gap to hide: the whole purpose of this run is to discover what an agent is missing BEFORE a build spends a step on it.',
|
|
84
|
+
'',
|
|
85
|
+
'Rules that make this report worth reading:',
|
|
86
|
+
`- NEVER report an operation as \`succeeded\` unless you saw a real, successful response with plausible content. ${FALSE_SUCCESS_SHAPES}`,
|
|
87
|
+
'- NEVER change the service, the repository or the environment. You do not commit, you do not push, and you avoid destructive calls (no DELETE on data you did not create). Creating a small record and reading it back is fine and is often the most meaningful thing you can do.',
|
|
88
|
+
'- Fill `missingContext` with what the PLATFORM should have told you and did not: a credential you had no reference for, a base path or port you had to guess, an auth flow you had to reverse-engineer, seed data you needed and could not find. Be concrete and name the fix ("no test user credentials were supplied; the service requires a bearer token issued by /auth/token"). This list is the main product of the run.',
|
|
89
|
+
'- If the environment itself never answered, say so once in `blockers` with `unreachable` and do not pad `operations` with attempts you never made.',
|
|
90
|
+
'- Do not grade the run. Report per-operation outcomes and let the platform draw the conclusion.',
|
|
91
|
+
FINAL_ANSWER_IN_REPLY,
|
|
92
|
+
].join('\n');
|
|
93
|
+
/** The API prober: HTTP calls against a backend service's live ephemeral environment. */
|
|
94
|
+
export const ENVIRONMENT_PROBE_API_SYSTEM_PROMPT = [
|
|
95
|
+
'You are an integration-readiness prober. A brand-new ephemeral environment of one service has just been provisioned for you, and you have a read-only checkout of the exact revision it was built from. Your job is to find out whether an autonomous agent handed this environment could actually OPERATE the service: work out what to call, authenticate, and get real work done.',
|
|
96
|
+
'',
|
|
97
|
+
'You are NOT testing the software for defects and you are NOT reviewing the code. You are testing the SETUP: the endpoints, the credentials and the knowledge an agent is given. Everything you could not find out is as important as everything you managed to do.',
|
|
98
|
+
'',
|
|
99
|
+
'Drive the service over HTTP with the tools available in this container (`curl`, or a script in whatever runtime the repo already uses). Speak the protocol the repository says it speaks, over the URL given below.',
|
|
100
|
+
'',
|
|
101
|
+
PROBE_RULES,
|
|
102
|
+
'',
|
|
103
|
+
FAILURE_VOCABULARY,
|
|
104
|
+
'',
|
|
105
|
+
'Respond with ONLY a JSON object (no prose, no code fences) of this shape:',
|
|
106
|
+
ENVIRONMENT_PROBE_SHAPE_HINT,
|
|
107
|
+
].join('\n');
|
|
108
|
+
/** The UI prober: a browser against a frontend frame's live ephemeral environment. */
|
|
109
|
+
export const ENVIRONMENT_PROBE_UI_SYSTEM_PROMPT = [
|
|
110
|
+
'You are an interface-readiness prober. A brand-new ephemeral environment of one frontend application has just been provisioned for you, and you have a read-only checkout of the exact revision it was built from. Your job is to find out whether an autonomous agent handed this environment could actually OPERATE the application: reach it in a browser, sign in, and complete a few real user actions.',
|
|
111
|
+
'',
|
|
112
|
+
'You are NOT testing the application for defects and you are NOT reviewing the code. You are testing the SETUP: the URL, the credentials and the knowledge an agent is given. Everything you could not find out is as important as everything you managed to do.',
|
|
113
|
+
'',
|
|
114
|
+
'Drive the application with Playwright (this container ships it, with a browser). Load the URL below, then act as a user would. Take a screenshot when something is unexpected and describe what you saw in the relevant `detail`. Do not attach images to your reply.',
|
|
115
|
+
'',
|
|
116
|
+
'Signing in is the operation that matters most here: an application whose landing page renders is not an application an agent can use. If the sign-in flow needs an identity provider, a magic link, an emailed code or an OAuth redirect this environment cannot complete, report that as `access_unclear` (or `auth_missing` when no test account exists at all) and say exactly what a human must provide. That is precisely the finding this run exists to produce.',
|
|
117
|
+
'',
|
|
118
|
+
PROBE_RULES,
|
|
119
|
+
'',
|
|
120
|
+
FAILURE_VOCABULARY,
|
|
121
|
+
'',
|
|
122
|
+
'Respond with ONLY a JSON object (no prose, no code fences) of this shape:',
|
|
123
|
+
ENVIRONMENT_PROBE_SHAPE_HINT,
|
|
124
|
+
].join('\n');
|
|
125
|
+
/** The system prompt for `surface`. */
|
|
126
|
+
export function environmentProbeSystemPrompt(surface) {
|
|
127
|
+
return surface === 'ui' ? ENVIRONMENT_PROBE_UI_SYSTEM_PROMPT : ENVIRONMENT_PROBE_API_SYSTEM_PROMPT;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* How a PROBER records a credential gap, in its own report's words. The states themselves, and
|
|
131
|
+
* whose fault each one is, come from the shared renderers.
|
|
132
|
+
*/
|
|
133
|
+
const PROBE_GAP_GUIDANCE = {
|
|
134
|
+
missing: 'record it as `auth_missing` and say in `missingContext` what is needed',
|
|
135
|
+
unusable: 'treat it as `access_unclear` and say so',
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Render the dry run's USER prompt: the system under test, the environment the platform stood up,
|
|
139
|
+
* and the credentials it can reach.
|
|
140
|
+
*
|
|
141
|
+
* Every absence is STATED rather than omitted, and that is load-bearing here in a way it is not
|
|
142
|
+
* in an ordinary prompt. The report's most valuable field is `missingContext`, and a prober that
|
|
143
|
+
* cannot tell "no credentials were configured for this service" from "credentials exist and I was
|
|
144
|
+
* not shown them" cannot fill it usefully: it would report the platform's gap as its own
|
|
145
|
+
* ignorance, or the reverse. Same rule the own-service section follows for exactly the same
|
|
146
|
+
* reason.
|
|
147
|
+
*/
|
|
148
|
+
export function environmentProbeUserPrompt(brief) {
|
|
149
|
+
const lines = [
|
|
150
|
+
`## The system under test: ${brief.service.title}`,
|
|
151
|
+
'',
|
|
152
|
+
brief.service.description?.trim() ||
|
|
153
|
+
'No description was recorded for this service on the board. Work only from what the repository tells you; do not infer a product or a domain it does not name.',
|
|
154
|
+
'',
|
|
155
|
+
'## The environment the platform just provisioned',
|
|
156
|
+
'',
|
|
157
|
+
`- URL: ${brief.environment.url ?? 'NOT STATED. The provider exposed no URL for this environment. Report this as a blocker; there is nothing for you to drive.'}`,
|
|
158
|
+
`- Provisioning status: ${brief.environment.status}`,
|
|
159
|
+
];
|
|
160
|
+
// The SAME renderer the tester's environment section uses, so the two cannot disagree about
|
|
161
|
+
// what the platform proved. It is deliberately silent when the name carried and when nothing
|
|
162
|
+
// has probed at all; the prober needs the second of those said out loud, because it decides
|
|
163
|
+
// whether a connection failure is the environment's fault or its own.
|
|
164
|
+
const proved = reachabilityLines(brief.environment.reachability);
|
|
165
|
+
lines.push(...(proved.length > 0
|
|
166
|
+
? proved
|
|
167
|
+
: [
|
|
168
|
+
'- Reachability: the platform has not proved a route to this environment (either its own name carried, or nothing has dialled it). If you cannot connect, report `unreachable` and say what you tried. Do not assume your tooling is at fault.',
|
|
169
|
+
]));
|
|
170
|
+
lines.push(...environmentAccessLines(brief.environment.access, PROBE_GAP_GUIDANCE));
|
|
171
|
+
lines.push('', '## Credentials your shell carries', '');
|
|
172
|
+
lines.push(...testCredentialLines(brief.testSecrets, PROBE_GAP_GUIDANCE));
|
|
173
|
+
lines.push('', '## The repository', '', `- \`${brief.repo.owner}/${brief.repo.name}\` at branch \`${brief.repo.branch}\`: the exact revision this environment was built from, checked out read-only.`);
|
|
174
|
+
if (brief.repo.serviceDirectory) {
|
|
175
|
+
lines.push(`- This service lives in \`${brief.repo.serviceDirectory}\` within that repository. Its siblings are other services: read them only if this one's own code sends you there.`);
|
|
176
|
+
}
|
|
177
|
+
lines.push('', 'Now probe the environment and report. Remember: at least one authenticated operation, and everything you could not work out goes in `missingContext`.');
|
|
178
|
+
return lines.join('\n');
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=environment-probe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment-probe.js","sourceRoot":"","sources":["../../../src/agents/prompts/environment-probe.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjD,gGAAgG;AAChG,kGAAkG;AAClG,mEAAmE;AACnE,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,GAEpB,MAAM,6BAA6B,CAAA;AAEpC,8EAA8E;AAC9E,qFAAqF;AACrF,qCAAqC;AACrC,EAAE;AACF,+FAA+F;AAC/F,kGAAkG;AAClG,+FAA+F;AAC/F,iGAAiG;AACjG,+FAA+F;AAC/F,gGAAgG;AAChG,kDAAkD;AAClD,EAAE;AACF,+DAA+D;AAC/D,2FAA2F;AAC3F,kGAAkG;AAClG,8FAA8F;AAC9F,uDAAuD;AACvD,mGAAmG;AACnG,kGAAkG;AAClG,gBAAgB;AAChB,8EAA8E;AAE9E,0FAA0F;AAC1F,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,GAAG;IACH,4FAA4F;IAC5F,qGAAqG;IACrG,OAAO;IACP,yFAAyF;IACzF,wFAAwF;IACxF,8FA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,IAAI,CAAC,GAAG,mBAAmB,CAAC,KAAK,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC,CAAA;IACzE,KAAK,CAAC,IAAI,CACR,EAAE,EACF,mBAAmB,EACnB,EAAE,EACF,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,kBAAkB,KAAK,CAAC,IAAI,CAAC,MAAM,gFAAgF,CAC9J,CAAA;IACD,IAAI,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAChC,KAAK,CAAC,IAAI,CACR,6BAA6B,KAAK,CAAC,IAAI,CAAC,gBAAgB,oHAAoH,CAC7K,CAAA;IACH,CAAC;IACD,KAAK,CAAC,IAAI,CACR,EAAE,EACF,uJAAuJ,CACxJ,CAAA;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { EnvironmentAccessHandle, TestCredentialBrief } from '@cat-factory/kernel';
|
|
2
|
+
/**
|
|
3
|
+
* The one thing each role must say for itself: how it RECORDS a credential gap in its own report
|
|
4
|
+
* shape.
|
|
5
|
+
*
|
|
6
|
+
* Taken as guidance rather than left out, because naming the fix inside the credentials section is
|
|
7
|
+
* load-bearing: the agent writing "what was missing" can only name a remedy it was told about, and
|
|
8
|
+
* the two report shapes have different words for it (a prober files `missingContext`, a tester
|
|
9
|
+
* files a concern). Everything else about a gap, above all WHOSE gap it is, is stated by the
|
|
10
|
+
* renderers below so the two roles cannot disagree about attribution.
|
|
11
|
+
*/
|
|
12
|
+
export interface CredentialGapGuidance {
|
|
13
|
+
/** How this role records an operation it had no credential for at all. */
|
|
14
|
+
missing: string;
|
|
15
|
+
/** How this role records a credential it could not work out how to present. */
|
|
16
|
+
unusable: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The default for every kind whose DELIVERABLE IS ITS REPLY and that has no bespoke report shape:
|
|
20
|
+
* say it in the report and name what is needed. A tester uses this too, its own rules already
|
|
21
|
+
* covering what a failed check does to the greenlight.
|
|
22
|
+
*/
|
|
23
|
+
export declare const DEFAULT_CREDENTIAL_GAP_GUIDANCE: CredentialGapGuidance;
|
|
24
|
+
/**
|
|
25
|
+
* For a kind whose product is a pushed COMMIT (the implementers: `coder`, `ci-fixer`, `mocker`,
|
|
26
|
+
* the Playwright author, a deployment's own `container-coding` kind).
|
|
27
|
+
*
|
|
28
|
+
* Its own guidance rather than the default, because the default names a REPORT such a kind never
|
|
29
|
+
* writes: those agents legitimately end with no final text at all and their work is in the branch
|
|
30
|
+
* (`deliverableIsReply` is the declaration that decides which it is). Told to "record it as a
|
|
31
|
+
* failure", an implementer reads an instruction to stop and write one up instead of building, so
|
|
32
|
+
* this one names the channel it actually has and says to carry on with the rest.
|
|
33
|
+
*/
|
|
34
|
+
export declare const IMPLEMENTER_CREDENTIAL_GAP_GUIDANCE: CredentialGapGuidance;
|
|
35
|
+
/**
|
|
36
|
+
* How to authenticate, as the environment's own provider stated it.
|
|
37
|
+
*
|
|
38
|
+
* The `none` scheme is RENDERED rather than skipped: a provider that explicitly issued no
|
|
39
|
+
* credentials and a provider whose access bag never arrived are opposite facts, and an agent told
|
|
40
|
+
* neither files the platform's silence as a missing credential on a service that is genuinely
|
|
41
|
+
* open. So is a scheme declared with nothing usable behind it, which is the case that reads as a
|
|
42
|
+
* broken service to everyone who is not told the credential never arrived.
|
|
43
|
+
*
|
|
44
|
+
* Values are inlined. These are throwaway-environment credentials, minted for an environment that
|
|
45
|
+
* is torn down with the run, and an agent that cannot authenticate reports nothing worth reading;
|
|
46
|
+
* the alternative was a prompt pointing at an out-of-band channel that did not exist.
|
|
47
|
+
*/
|
|
48
|
+
export declare function environmentAccessLines(access: EnvironmentAccessHandle | null | undefined, guidance?: CredentialGapGuidance): string[];
|
|
49
|
+
/**
|
|
50
|
+
* The test-credentials section, one wording per {@link TestCredentialBrief} state.
|
|
51
|
+
*
|
|
52
|
+
* The two failure states say who is at fault IN THE PROMPT, because the agent is the one writing
|
|
53
|
+
* up what was missing and it can only name a fix it was told about. Left to the "none configured"
|
|
54
|
+
* wording, a platform that could not open its own store produces a report telling an operator to
|
|
55
|
+
* configure credentials that already exist, which is worse than silence: it is a confident wrong
|
|
56
|
+
* answer with a run's evidence behind it.
|
|
57
|
+
*/
|
|
58
|
+
export declare function testCredentialLines(brief: TestCredentialBrief, guidance?: CredentialGapGuidance): string[];
|
|
59
|
+
/**
|
|
60
|
+
* How to work out how to OPERATE a service from its repository: where its address, its protocol
|
|
61
|
+
* and its authentication are actually written down.
|
|
62
|
+
*
|
|
63
|
+
* One list for the tester and the prober, because it is the exact knowledge a dry run exists to
|
|
64
|
+
* test the availability of. A prober that discovers a service through its OpenAPI schema and seed
|
|
65
|
+
* fixtures, and a tester that was only told to read the README, do not exercise the same surface,
|
|
66
|
+
* so a green dry run would say nothing about whether the tester can get in.
|
|
67
|
+
*/
|
|
68
|
+
export declare const SERVICE_DISCOVERY_GUIDANCE: string;
|
|
69
|
+
//# sourceMappingURL=environment-under-test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment-under-test.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/environment-under-test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAmBvF;;;;;;;;;GASG;AACH,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAA;IACf,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,qBAI7C,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,mCAAmC,EAAE,qBAKjD,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,uBAAuB,GAAG,IAAI,GAAG,SAAS,EAClD,QAAQ,GAAE,qBAAuD,GAChE,MAAM,EAAE,CA2BV;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,mBAAmB,EAC1B,QAAQ,GAAE,qBAAuD,GAChE,MAAM,EAAE,CAoBV;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,QAKH,CAAA"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The default for every kind whose DELIVERABLE IS ITS REPLY and that has no bespoke report shape:
|
|
3
|
+
* say it in the report and name what is needed. A tester uses this too, its own rules already
|
|
4
|
+
* covering what a failed check does to the greenlight.
|
|
5
|
+
*/
|
|
6
|
+
export const DEFAULT_CREDENTIAL_GAP_GUIDANCE = {
|
|
7
|
+
missing: 'record it as a failure and name the credential that is needed',
|
|
8
|
+
unusable: 'record it as a failure, and say which header, flow or scope you could not work out rather than reporting the service as broken',
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* For a kind whose product is a pushed COMMIT (the implementers: `coder`, `ci-fixer`, `mocker`,
|
|
12
|
+
* the Playwright author, a deployment's own `container-coding` kind).
|
|
13
|
+
*
|
|
14
|
+
* Its own guidance rather than the default, because the default names a REPORT such a kind never
|
|
15
|
+
* writes: those agents legitimately end with no final text at all and their work is in the branch
|
|
16
|
+
* (`deliverableIsReply` is the declaration that decides which it is). Told to "record it as a
|
|
17
|
+
* failure", an implementer reads an instruction to stop and write one up instead of building, so
|
|
18
|
+
* this one names the channel it actually has and says to carry on with the rest.
|
|
19
|
+
*/
|
|
20
|
+
export const IMPLEMENTER_CREDENTIAL_GAP_GUIDANCE = {
|
|
21
|
+
missing: 'note it where you record the change and name the credential that is needed, then carry on with what you can do without it',
|
|
22
|
+
unusable: 'say which header, flow or scope you could not work out where you record the change, and treat it as a gap in the SETUP rather than a defect in the service',
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* How to authenticate, as the environment's own provider stated it.
|
|
26
|
+
*
|
|
27
|
+
* The `none` scheme is RENDERED rather than skipped: a provider that explicitly issued no
|
|
28
|
+
* credentials and a provider whose access bag never arrived are opposite facts, and an agent told
|
|
29
|
+
* neither files the platform's silence as a missing credential on a service that is genuinely
|
|
30
|
+
* open. So is a scheme declared with nothing usable behind it, which is the case that reads as a
|
|
31
|
+
* broken service to everyone who is not told the credential never arrived.
|
|
32
|
+
*
|
|
33
|
+
* Values are inlined. These are throwaway-environment credentials, minted for an environment that
|
|
34
|
+
* is torn down with the run, and an agent that cannot authenticate reports nothing worth reading;
|
|
35
|
+
* the alternative was a prompt pointing at an out-of-band channel that did not exist.
|
|
36
|
+
*/
|
|
37
|
+
export function environmentAccessLines(access, guidance = DEFAULT_CREDENTIAL_GAP_GUIDANCE) {
|
|
38
|
+
if (!access) {
|
|
39
|
+
return [
|
|
40
|
+
`- Environment access: NOT STATED. The provider returned no access credentials for this environment. It may be open, or it may expect a credential the platform never received; work out which from the repository, and if an operation needs a credential you do not have, ${guidance.missing}.`,
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
if (access.scheme === 'none') {
|
|
44
|
+
return [
|
|
45
|
+
'- Environment access: the provider states this environment needs NO credential of its own. Any authentication you meet belongs to the application itself.',
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
if (access.scheme === 'bearer' && access.token) {
|
|
49
|
+
return [`- Environment access: send \`Authorization: Bearer ${access.token}\`.`];
|
|
50
|
+
}
|
|
51
|
+
if (access.scheme === 'basic' && access.username !== undefined) {
|
|
52
|
+
return [
|
|
53
|
+
`- Environment access: HTTP Basic, username \`${access.username}\`, password \`${access.password ?? ''}\`.`,
|
|
54
|
+
];
|
|
55
|
+
}
|
|
56
|
+
if (access.scheme === 'custom_header' && access.headerName) {
|
|
57
|
+
return [
|
|
58
|
+
`- Environment access: send the header \`${access.headerName}: ${access.headerValue ?? ''}\`.`,
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
return [
|
|
62
|
+
`- Environment access: the provider declared the \`${access.scheme}\` scheme and supplied no usable credential for it. The PLATFORM is short a credential here, not the service: if an operation needs it, ${guidance.unusable}.`,
|
|
63
|
+
];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The test-credentials section, one wording per {@link TestCredentialBrief} state.
|
|
67
|
+
*
|
|
68
|
+
* The two failure states say who is at fault IN THE PROMPT, because the agent is the one writing
|
|
69
|
+
* up what was missing and it can only name a fix it was told about. Left to the "none configured"
|
|
70
|
+
* wording, a platform that could not open its own store produces a report telling an operator to
|
|
71
|
+
* configure credentials that already exist, which is worse than silence: it is a confident wrong
|
|
72
|
+
* answer with a run's evidence behind it.
|
|
73
|
+
*/
|
|
74
|
+
export function testCredentialLines(brief, guidance = DEFAULT_CREDENTIAL_GAP_GUIDANCE) {
|
|
75
|
+
if (brief.status === 'unreadable') {
|
|
76
|
+
return [
|
|
77
|
+
`NONE REACHED YOU, AND THE PLATFORM IS AT FAULT. This service may well have test credentials configured on the board: the platform could not open its own sealed credential store to fetch them, so your shell carries none of them. If an operation needs one, ${guidance.missing}, and say that the PLATFORM failed to supply the configured credentials. Do NOT tell a human to configure credentials for this service: that may already be done, and this run cannot tell.`,
|
|
78
|
+
];
|
|
79
|
+
}
|
|
80
|
+
if (brief.status === 'unwired') {
|
|
81
|
+
return [
|
|
82
|
+
`NONE, AND NONE ARE POSSIBLE HERE. This deployment has no sealed credential store wired, so no service on this board can be handed test credentials. The only auth material you have is whatever the environment section states and whatever the repository documents. If an operation needs a credential, ${guidance.missing}, and say that the DEPLOYMENT has no credential store, rather than asking for this service to be reconfigured.`,
|
|
83
|
+
];
|
|
84
|
+
}
|
|
85
|
+
if (brief.refs.length === 0) {
|
|
86
|
+
return [
|
|
87
|
+
`NONE. This service has no test credentials configured on the board, so the only auth material you have is whatever the environment section states and whatever the repository itself documents. If an operation needs a credential you do not have, ${guidance.missing}.`,
|
|
88
|
+
];
|
|
89
|
+
}
|
|
90
|
+
return [
|
|
91
|
+
'Read each of these from the environment (e.g. `$API_TOKEN`). The values are NOT printed here and must never appear in your reply or your logs:',
|
|
92
|
+
...brief.refs.map((ref) => `- \`${ref.key}\`${ref.description ? `: ${ref.description}` : ''}`),
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* How to work out how to OPERATE a service from its repository: where its address, its protocol
|
|
97
|
+
* and its authentication are actually written down.
|
|
98
|
+
*
|
|
99
|
+
* One list for the tester and the prober, because it is the exact knowledge a dry run exists to
|
|
100
|
+
* test the availability of. A prober that discovers a service through its OpenAPI schema and seed
|
|
101
|
+
* fixtures, and a tester that was only told to read the README, do not exercise the same surface,
|
|
102
|
+
* so a green dry run would say nothing about whether the tester can get in.
|
|
103
|
+
*/
|
|
104
|
+
export const SERVICE_DISCOVERY_GUIDANCE = 'Work out how to operate the service from the REPOSITORY, not from guesswork: its ' +
|
|
105
|
+
'OpenAPI/GraphQL schema, route definitions, auth middleware, the README and any docs it ' +
|
|
106
|
+
'points to, seed/fixture data naming test users, and any `.http` or `curl` examples. Prefer ' +
|
|
107
|
+
"what the CODE says over what prose claims, and prefer the repo's own examples over an " +
|
|
108
|
+
'endpoint shape you would expect.';
|
|
109
|
+
//# sourceMappingURL=environment-under-test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment-under-test.js","sourceRoot":"","sources":["../../../src/agents/prompts/environment-under-test.ts"],"names":[],"mappings":"AAoCA;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAA0B;IACpE,OAAO,EAAE,+DAA+D;IACxE,QAAQ,EACN,gIAAgI;CACnI,CAAA;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAA0B;IACxE,OAAO,EACL,2HAA2H;IAC7H,QAAQ,EACN,4JAA4J;CAC/J,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAAkD,EAClD,QAAQ,GAA0B,+BAA+B;IA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