@allurereport/plugin-agent 3.10.0 → 3.11.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/README.md +85 -79
- package/dist/capabilities.d.ts +99 -0
- package/dist/capabilities.js +173 -0
- package/dist/errors.d.ts +9 -0
- package/dist/errors.js +15 -0
- package/dist/guidance.d.ts +4 -5
- package/dist/guidance.js +194 -57
- package/dist/harness.d.ts +68 -4
- package/dist/harness.js +45 -17
- package/dist/index.d.ts +9 -1
- package/dist/index.js +9 -0
- package/dist/inline-expectations.d.ts +23 -0
- package/dist/inline-expectations.js +186 -0
- package/dist/invalid-output.d.ts +58 -0
- package/dist/invalid-output.js +238 -0
- package/dist/model.d.ts +34 -0
- package/dist/model.js +8 -1
- package/dist/paths.d.ts +3 -0
- package/dist/paths.js +10 -0
- package/dist/plugin.js +847 -136
- package/dist/query.d.ts +193 -0
- package/dist/query.js +175 -0
- package/dist/selection.d.ts +42 -0
- package/dist/selection.js +141 -0
- package/dist/state.d.ts +15 -0
- package/dist/state.js +83 -0
- package/package.json +6 -6
package/dist/guidance.d.ts
CHANGED
|
@@ -5,14 +5,13 @@ export type EnrichmentActionDefinition = {
|
|
|
5
5
|
guidance: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const ENRICHMENT_ACTIONS_BY_CHECK_NAME: Record<string, EnrichmentActionDefinition>;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const AGENT_WORKFLOWS_MARKDOWN = "Use the smallest workflow that matches the task. Each workflow has the same shape: when to use it, which agent-mode commands help, and what must be true before you call the task done.\n\n### Validate A Change\n\nUse when code or tests changed and you need a user-facing safety conclusion. For small mechanical changes, use this same workflow with narrower expectations rather than a separate shortcut.\n\nCommands:\n\n- `allure agent --goal <text> --expect-* -- <command>`\n\nDone when:\n\n- the expected scope ran and no forbidden scope appeared\n- `index.md`, `manifest/run.json`, `manifest/tests.jsonl`, and `manifest/findings.jsonl` were reviewed\n- the `index.md` path was reported\n- the changed package build and required static checks passed when this repository guide requires them\n\n### Add Or Update Tests\n\nUse when creating or changing tests for a feature, fix, or behavior gap.\n\nCommands:\n\n- `allure agent --goal <text> --expect-tests <count> --expect-test \"<fullName>\" --expect-label name=value --expect-step-containing <text> -- <command>`\n\nDone when:\n\n- the tests prove the intended behavior rather than only touching the code path\n- scope expectations match the intended feature, issue, or package slice\n- each expected test has enough steps or attachments for a reviewer to understand what happened\n- weak evidence, scope drift, and unexpected-test findings are fixed or explicitly accepted as out of scope\n\n### Review Existing Coverage\n\nUse when auditing a package, command matrix, feature area, or business behavior without necessarily changing tests first.\n\nCommands:\n\n- one scoped `allure agent --goal <text> --expect-* -- <command>` run per review group\n\nDone when:\n\n- the audit is split into reviewable groups, or it is explicitly documented as a broad package-health run\n- each group has expectations that describe the intended scope\n- runtime artifacts are reviewed before source-only coverage conclusions\n- uncovered behavior is recorded as follow-up test work instead of being hidden in a broad pass/fail summary\n\n### Triage Failures\n\nUse when tests failed, broke, or runner output does not match agent artifacts.\n\nCommands:\n\n- `allure agent latest`\n- `allure agent --rerun-latest --rerun-preset failed -- <command>`\n- `allure agent --rerun-from <output-dir> --rerun-preset failed -- <command>`\n\nDone when:\n\n- failing, broken, or unmodeled runner-visible failures are represented in agent artifacts, or partial modeling is called out explicitly\n- `artifacts/global/stderr.txt` and global errors were checked when failures are missing from `manifest/tests.jsonl`\n- reruns use prior agent output instead of hand-built runner test names whenever the runner can consume the generated test plan\n\n### Rerun A Prior Scope\n\nUse when prior agent output already identifies failed, unsuccessful, or review-targeted tests and the next run should stay focused.\n\nCommands:\n\n- `allure agent select --latest [--preset review|failed|unsuccessful|all]`\n- `allure agent select --from <output-dir> [--environment <id>] [--label name=value]`\n- `allure agent --rerun-latest -- <command>`\n- `allure agent --rerun-from <output-dir> -- <command>`\n\nDone when:\n\n- the rerun scope comes from Allure testplan support\n- `--rerun-preset`, `--rerun-environment`, or `--rerun-label` filters explain any narrowed selection\n- manual test names are used only as a fallback when testplan support is unavailable\n- the rerun output is reviewed before making a new conclusion\n\n### Improve Evidence Quality\n\nUse when tests pass or fail but the runtime story is too weak to review.\n\nCommands:\n\n- `allure agent --expect-step-containing <text> --expect-steps <count> --expect-attachments <count> -- <command>`\n- `allure agent --expect-attachment <name|name=value|content-type=value> -- <command>`\n\nDone when:\n\n- steps describe real setup, actions, state transitions, or assertions\n- attachments contain runtime evidence such as payloads, responses, screenshots, DOM snapshots, diffs, logs, or traces\n- placeholder steps, generic `\"passed\"` attachments, and other dummy evidence are removed\n- the same intended scope was rerun and no high-confidence evidence findings remain\n\n### Recover Or Diagnose Agent Mode\n\nUse when agent output is missing, the latest run cannot be found, local CLI support is unclear, or state behaves differently in CI or a sandbox.\n\nCommands:\n\n- `allure --version`\n- `allure agent capabilities --json`\n- `allure agent --help`\n- `allure agent latest`\n- `allure agent state-dir`\n- `ALLURE_AGENT_STATE_DIR=<dir>`\n\nDone when:\n\n- supported local commands and flags are known from capabilities or help output\n- the output directory, `index.md` path, or state directory is identified, or the reason it is unavailable is documented\n- console-only conclusions stay provisional until agent-mode artifacts are available";
|
|
9
|
+
export declare const AGENT_COMMAND_TASK_MAP: readonly ["`allure --version`, `allure agent capabilities --json`, and `allure agent --help`: setup and capability-detection loop. Use when the local CLI surface is unknown, generated guidance may be stale, or you need to choose supported flags without guessing.", "`allure agent --goal ... -- <command>`: test review, feature delivery, smoke-check, and coverage loops. Use when a test command needs runtime evidence, scope expectations, and user-facing conclusions based on agent artifacts rather than console output alone.", "`allure agent latest`: output recovery loop. Use when a previous run omitted `--output`, you need the newest output directory and `index.md` path, or a follow-up task needs prior output before selecting or rerunning tests.", "`allure agent state-dir`: tooling diagnosis loop. Use when `latest` cannot find a run, CI or sandbox state looks wrong, or you need to explain where project-scoped latest pointers are stored.", "`allure agent query --latest summary|tests|findings|test` / `allure agent query --from <output-dir> ...`: output inspection loop. Use when you need a focused JSON summary, filtered tests, filtered findings, or one test from prior agent output without manually loading raw manifests first.", "`allure agent select --latest` / `allure agent select --from <output-dir>`: rerun-planning loop. Use when you need to inspect, filter, or write the Allure test plan from prior results before executing another run. Without `--output`, stdout is raw testplan JSON; with `--output`, stdout summarizes the file path, source output, preset, and selected count.", "`allure agent --rerun-latest` / `allure agent --rerun-from <output-dir>`: focused retry loop. Use when prior output already identifies failed, unsuccessful, or review-targeted tests and you should rerun that slice through Allure testplan support instead of rebuilding runner-specific test names.", "`ALLURE_AGENT_STATE_DIR=<dir>`: CI and sandbox state-control loop. Use when multiple jobs need a deterministic state location, the default temp state is not shared, or the default state directory is not writable."];
|
|
9
10
|
export declare const AGENT_VERIFICATION_RULES: readonly ["If a command executes tests and its result will be used for smoke checking, reasoning, review, coverage analysis, debugging, or any user-facing conclusion, run it through `allure agent`. It preserves the original console logs and adds agent-mode artifacts without inheriting the normal report or export plugins from the project config.", "Use `allure agent` for smoke checks too, even when the change is small or mechanical.", "Only skip agent mode when it is impossible or when you are debugging agent mode itself.", "After changing a package in this repository, run that package build command before finalizing (for example, `yarn workspace <package-name> build`).", "After each agent-mode test run, print the `index.md` path from that run's output directory so users can open the run overview quickly."];
|
|
10
|
-
export declare const AGENT_SMALL_TEST_CHANGE_WORKFLOW: readonly ["Create a fresh temp `ALLURE_AGENT_OUTPUT` and `ALLURE_AGENT_EXPECTATIONS` for the touched scope before closing the task.", "Run the touched scope with `allure agent`, even if the goal is only a smoke check after a mechanical change such as typing cleanup, mock refactors, or helper extraction.", "Review `manifest/run.json`, `manifest/test-events.jsonl`, `index.md`, `manifest/tests.jsonl`, and `manifest/findings.jsonl` before making any final claim."];
|
|
11
|
-
export declare const AGENT_COVERAGE_REVIEW_WORKFLOW: readonly ["Split package or business-logic audits into scoped groups and give each group its own temp output directory and expectations file.", "Review agent-mode artifacts first for each group, then inspect source code only after the runtime evidence shows what actually ran.", "Treat grouped coverage review as incomplete until each scoped run has matching expectations or an explicit note that the audit is intentionally broad."];
|
|
12
11
|
export declare const AGENT_TEST_ENRICHMENT_BEST_PRACTICES: readonly ["Steps must wrap real actions, state transitions, or assertions. Prefer a small setup/action/assertion narrative over event-by-event step spam.", "Attachments must capture real runtime evidence from that execution: payloads, responses, screenshots, DOM snapshots, diffs, logs, or traces.", "Add metadata only when it improves scope review, debugging, or downstream policy. Keep labels and parameters intentionally minimal.", "If multiple call sites need the same evidence, instrument the helper once. Example: teach `runCommand` to emit a step instead of wrapping every `runCommand(...)` call site with identical step blocks."];
|
|
13
12
|
export declare const AGENT_ANTI_DUMMY_POLICY: readonly ["Do not add empty wrapper steps, placeholder attachments, or generic strings such as `passed`, `success`, or static boilerplate.", "Do not attach evidence that is not grounded in the current test execution. Synthetic summaries are fine only when they are derived from real runtime artifacts.", "Do not inflate metadata with labels, stories, or severities that no expectation, review step, or policy actually uses."];
|
|
14
13
|
export declare const AGENT_ACCEPTANCE_CHECKLIST: readonly ["The rerun matches the intended scope and does not trigger forbidden or unexpected-test findings.", "Each touched test shows enough evidence to explain what happened and what was verified.", "Retries include per-attempt diagnostics when the same test reruns.", "No high-confidence anti-dummy findings remain, especially `noop-dominated-steps` or low-signal `step-spam` traces."];
|
|
15
14
|
export declare const AGENT_REVIEW_COMPLETENESS_CHECKLIST: readonly ["The relevant scope was run with agent mode unless that was impossible.", "Scoped reviews created expectations before the final rerun, unless the task was an intentionally broad package-health audit.", "The final conclusion was based on `manifest/run.json`, `manifest/test-events.jsonl`, `index.md`, `manifest/tests.jsonl`, and `manifest/findings.jsonl` rather than console output alone.", "Any missing or partial runtime modeling was called out explicitly before the review was considered complete."];
|
|
16
15
|
export declare const AGENT_PARTIAL_RUNTIME_REVIEW_RULES: readonly ["Suite-load, import, or setup failures may appear only in `artifacts/global/stderr.txt` or global errors instead of `manifest/tests.jsonl`.", "If runner-visible failures are not represented as logical tests, inspect global stderr and treat the run as a partial runtime review, not a clean result set.", "Console-only conclusions stay provisional when agent output is missing, incomplete, or partially modeled."];
|
|
17
|
-
export declare const AGENT_INSTRUCTIONS_TEMPLATE = "## Allure Agent Mode Instructions\n\n- If a command executes tests and its result will be used for smoke checking, reasoning, review, coverage analysis, debugging, or any user-facing conclusion, run it through `allure agent`. It preserves the original console logs and adds agent-mode artifacts without inheriting the normal report or export plugins from the project config.\n- Use `allure agent` for smoke checks too, even when the change is small or mechanical.\n- Only skip agent mode when it is impossible or when you are debugging agent mode itself.\n- After each agent-mode test run, print the `index.md` path from that run's output directory so users can open the run overview quickly.\n- Use `
|
|
18
|
-
export declare const renderAgentsGuide: (
|
|
16
|
+
export declare const AGENT_INSTRUCTIONS_TEMPLATE = "## Allure Agent Mode Instructions\n\n- If a command executes tests and its result will be used for smoke checking, reasoning, review, coverage analysis, debugging, or any user-facing conclusion, run it through `allure agent`. It preserves the original console logs and adds agent-mode artifacts without inheriting the normal report or export plugins from the project config.\n- Use `allure agent` for smoke checks too, even when the change is small or mechanical.\n- Only skip agent mode when it is impossible or when you are debugging agent mode itself.\n- After each agent-mode test run, print the `index.md` path from that run's output directory so users can open the run overview quickly.\n- Use `allure agent latest` to print the newest output directory and `index.md` path when `--output` was omitted.\n- Use `allure agent capabilities --json` when you need structured supported-command, expectation, output, rerun, and unsupported-feature data without scraping help text.\n- Use `allure agent state-dir` to inspect where the current project stores its latest-agent state.\n- Use `allure agent latest`, `state-dir`, `query`, `select`, and `--rerun-*` according to their loop/task/problem mapping instead of treating them as interchangeable helper commands.\n- Use `allure agent query --latest summary|tests|findings|test` or `allure agent query --from <output-dir> ...` to inspect prior output as focused JSON before manually opening raw manifests.\n- Use `allure agent select --latest` or `allure agent select --from <output-dir>` to inspect the review-targeted test plan before rerunning; add `--output <file>` when you want the CLI to write the plan and print a short selection summary.\n- Use `allure agent --rerun-latest -- <command>` or `allure agent --rerun-from <output-dir> -- <command>` to rerun only the selected tests.\n- When rerunning previous failures, use `allure agent --rerun-latest --rerun-preset failed -- <command>` or `allure agent --rerun-from <output-dir> --rerun-preset failed -- <command>` instead of manually rebuilding runner-specific test names.\n- Use `--rerun-preset review|failed|unsuccessful|all`, repeated `--rerun-environment <id>`, and repeated `--rerun-label name=value` when you need a narrower rerun selection from the previous output.\n- Use `ALLURE_AGENT_STATE_DIR` when you need to override where the current project stores latest-agent state for `latest`, `state-dir`, or `--rerun-latest`.\n- Prefer inline `allure agent` expectation flags such as `--goal`, `--expect-tests`, `--expect-test`, `--expect-label`, and `--expect-step-containing`; use `--expectations <file>` only when flags become awkward.\n- Run tests with `allure agent` and review `manifest/run.json`, `manifest/test-events.jsonl`, `index.md`, `manifest/tests.jsonl`, and `manifest/findings.jsonl`.\n- Enrich only the intended tests. Add real steps for real setup, actions, and assertions.\n- Attach only real runtime evidence such as payloads, responses, screenshots, DOM snapshots, diffs, logs, or traces.\n- Keep metadata minimal. Add labels or severity only when scope review, debugging, or quality policy uses them.\n- Instrument stable helpers when several call sites need the same evidence. For example, teach `runCommand` to emit a step instead of wrapping every caller.\n- Reject the rerun if scope drifts, evidence stays weak, or high-confidence noop-style findings remain.";
|
|
17
|
+
export declare const renderAgentsGuide: () => string;
|
package/dist/guidance.js
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
export const ENRICHMENT_ACTIONS_BY_CHECK_NAME = {
|
|
2
|
-
"
|
|
2
|
+
"expectations-invalid": {
|
|
3
3
|
category: "bootstrap-allure",
|
|
4
|
-
title: "Repair the expectations
|
|
5
|
-
guidance: "Regenerate a valid YAML
|
|
4
|
+
title: "Repair the expectations input",
|
|
5
|
+
guidance: "Regenerate valid inline expectations or a valid YAML/JSON expectations file before the next iteration.",
|
|
6
6
|
},
|
|
7
|
-
"
|
|
7
|
+
"expectations-empty": {
|
|
8
|
+
category: "narrow-test-scope",
|
|
9
|
+
title: "Add recognized expectation controls",
|
|
10
|
+
guidance: "Rerun with supported M1 expectation controls or omit expectations for an intentionally broad review.",
|
|
11
|
+
},
|
|
12
|
+
"expectations-unsupported-control": {
|
|
13
|
+
category: "review-manually",
|
|
14
|
+
title: "Use supported expectation controls",
|
|
15
|
+
guidance: "Replace unsupported controls with supported M1 flags or report weaker checking explicitly.",
|
|
16
|
+
},
|
|
17
|
+
"expectations-weak-goal": {
|
|
18
|
+
category: "review-manually",
|
|
19
|
+
title: "Use a more specific goal next time",
|
|
20
|
+
guidance: "Base conclusions on observed evidence and rerun with a specific goal when expectation precision matters.",
|
|
21
|
+
},
|
|
22
|
+
"no-tests-observed": {
|
|
8
23
|
category: "bootstrap-allure",
|
|
9
24
|
title: "Restore Allure result generation",
|
|
10
25
|
guidance: "Make sure the test command emits Allure results before rerunning the enrichment loop.",
|
|
@@ -24,22 +39,27 @@ export const ENRICHMENT_ACTIONS_BY_CHECK_NAME = {
|
|
|
24
39
|
title: "Call out partial runtime modeling",
|
|
25
40
|
guidance: "Compare run statistics with the logical test files and document any skipped or non-passed results that were not rendered.",
|
|
26
41
|
},
|
|
27
|
-
"
|
|
42
|
+
"expected-test-missing": {
|
|
28
43
|
category: "narrow-test-scope",
|
|
29
44
|
title: "Bring the intended test back into scope",
|
|
30
45
|
guidance: "Regenerate expectations and rerun only the planned tests or selectors.",
|
|
31
46
|
},
|
|
32
|
-
"
|
|
47
|
+
"expected-count-mismatch": {
|
|
48
|
+
category: "narrow-test-scope",
|
|
49
|
+
title: "Restore the expected visible test count",
|
|
50
|
+
guidance: "Check the command, selectors, and agent modeling before accepting the run.",
|
|
51
|
+
},
|
|
52
|
+
"expected-prefix-missing": {
|
|
33
53
|
category: "narrow-test-scope",
|
|
34
54
|
title: "Restore the intended name-prefix scope",
|
|
35
55
|
guidance: "Check the selector and rerun only the feature slice that should have matched it.",
|
|
36
56
|
},
|
|
37
|
-
"
|
|
57
|
+
"expected-environment-missing": {
|
|
38
58
|
category: "narrow-test-scope",
|
|
39
59
|
title: "Rerun the intended environment",
|
|
40
60
|
guidance: "Constrain the rerun to the expected environment before accepting the result.",
|
|
41
61
|
},
|
|
42
|
-
"
|
|
62
|
+
"expected-label-missing": {
|
|
43
63
|
category: "repair-test-metadata",
|
|
44
64
|
title: "Add the minimal missing scope label",
|
|
45
65
|
guidance: "Only add the labels required by the expectations selector; do not inflate metadata.",
|
|
@@ -49,6 +69,11 @@ export const ENRICHMENT_ACTIONS_BY_CHECK_NAME = {
|
|
|
49
69
|
title: "Remove unrelated environments from the rerun",
|
|
50
70
|
guidance: "Tighten the rerun selector so unrelated environments do not appear in agent output.",
|
|
51
71
|
},
|
|
72
|
+
"forbidden-label-observed": {
|
|
73
|
+
category: "narrow-test-scope",
|
|
74
|
+
title: "Stop forbidden labeled tests from running",
|
|
75
|
+
guidance: "Reject the run, narrow the rerun scope, and keep the forbidden label expectation.",
|
|
76
|
+
},
|
|
52
77
|
"forbidden-selector-match": {
|
|
53
78
|
category: "narrow-test-scope",
|
|
54
79
|
title: "Stop forbidden tests from running",
|
|
@@ -74,6 +99,26 @@ export const ENRICHMENT_ACTIONS_BY_CHECK_NAME = {
|
|
|
74
99
|
title: "Add meaningful setup, action, and assertion steps",
|
|
75
100
|
guidance: "Wrap only real actions, state transitions, and checks in Allure steps before rerunning.",
|
|
76
101
|
},
|
|
102
|
+
"expected-step-containing-missing": {
|
|
103
|
+
category: "add-meaningful-steps",
|
|
104
|
+
title: "Add or correct the expected step text",
|
|
105
|
+
guidance: "Expose the expected runtime check as a test-scoped Allure step, or correct the expectation wording.",
|
|
106
|
+
},
|
|
107
|
+
"insufficient-expected-steps": {
|
|
108
|
+
category: "add-meaningful-steps",
|
|
109
|
+
title: "Add the expected meaningful steps",
|
|
110
|
+
guidance: "Expose real setup, action, state transition, and assertion steps without adding filler.",
|
|
111
|
+
},
|
|
112
|
+
"insufficient-expected-attachments": {
|
|
113
|
+
category: "add-test-attachments",
|
|
114
|
+
title: "Add the expected runtime attachments",
|
|
115
|
+
guidance: "Attach focused runtime evidence such as payloads, logs, screenshots, diffs, or traces.",
|
|
116
|
+
},
|
|
117
|
+
"missing-expected-attachment": {
|
|
118
|
+
category: "add-test-attachments",
|
|
119
|
+
title: "Add the required attachment",
|
|
120
|
+
guidance: "Attach the requested runtime artifact near the relevant action or assertion.",
|
|
121
|
+
},
|
|
77
122
|
"failed-without-attachments": {
|
|
78
123
|
category: "add-test-attachments",
|
|
79
124
|
title: "Attach focused runtime evidence near the failure",
|
|
@@ -110,18 +155,130 @@ export const ENRICHMENT_ACTIONS_BY_CHECK_NAME = {
|
|
|
110
155
|
guidance: "Add a few real verification steps or attachments so the passing test shows what it proved.",
|
|
111
156
|
},
|
|
112
157
|
};
|
|
113
|
-
export const
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
158
|
+
export const AGENT_WORKFLOWS_MARKDOWN = `Use the smallest workflow that matches the task. Each workflow has the same shape: when to use it, which agent-mode commands help, and what must be true before you call the task done.
|
|
159
|
+
|
|
160
|
+
### Validate A Change
|
|
161
|
+
|
|
162
|
+
Use when code or tests changed and you need a user-facing safety conclusion. For small mechanical changes, use this same workflow with narrower expectations rather than a separate shortcut.
|
|
163
|
+
|
|
164
|
+
Commands:
|
|
165
|
+
|
|
166
|
+
- \`allure agent --goal <text> --expect-* -- <command>\`
|
|
167
|
+
|
|
168
|
+
Done when:
|
|
169
|
+
|
|
170
|
+
- the expected scope ran and no forbidden scope appeared
|
|
171
|
+
- \`index.md\`, \`manifest/run.json\`, \`manifest/tests.jsonl\`, and \`manifest/findings.jsonl\` were reviewed
|
|
172
|
+
- the \`index.md\` path was reported
|
|
173
|
+
- the changed package build and required static checks passed when this repository guide requires them
|
|
174
|
+
|
|
175
|
+
### Add Or Update Tests
|
|
176
|
+
|
|
177
|
+
Use when creating or changing tests for a feature, fix, or behavior gap.
|
|
178
|
+
|
|
179
|
+
Commands:
|
|
180
|
+
|
|
181
|
+
- \`allure agent --goal <text> --expect-tests <count> --expect-test "<fullName>" --expect-label name=value --expect-step-containing <text> -- <command>\`
|
|
182
|
+
|
|
183
|
+
Done when:
|
|
184
|
+
|
|
185
|
+
- the tests prove the intended behavior rather than only touching the code path
|
|
186
|
+
- scope expectations match the intended feature, issue, or package slice
|
|
187
|
+
- each expected test has enough steps or attachments for a reviewer to understand what happened
|
|
188
|
+
- weak evidence, scope drift, and unexpected-test findings are fixed or explicitly accepted as out of scope
|
|
189
|
+
|
|
190
|
+
### Review Existing Coverage
|
|
191
|
+
|
|
192
|
+
Use when auditing a package, command matrix, feature area, or business behavior without necessarily changing tests first.
|
|
193
|
+
|
|
194
|
+
Commands:
|
|
195
|
+
|
|
196
|
+
- one scoped \`allure agent --goal <text> --expect-* -- <command>\` run per review group
|
|
197
|
+
|
|
198
|
+
Done when:
|
|
199
|
+
|
|
200
|
+
- the audit is split into reviewable groups, or it is explicitly documented as a broad package-health run
|
|
201
|
+
- each group has expectations that describe the intended scope
|
|
202
|
+
- runtime artifacts are reviewed before source-only coverage conclusions
|
|
203
|
+
- uncovered behavior is recorded as follow-up test work instead of being hidden in a broad pass/fail summary
|
|
204
|
+
|
|
205
|
+
### Triage Failures
|
|
206
|
+
|
|
207
|
+
Use when tests failed, broke, or runner output does not match agent artifacts.
|
|
208
|
+
|
|
209
|
+
Commands:
|
|
210
|
+
|
|
211
|
+
- \`allure agent latest\`
|
|
212
|
+
- \`allure agent --rerun-latest --rerun-preset failed -- <command>\`
|
|
213
|
+
- \`allure agent --rerun-from <output-dir> --rerun-preset failed -- <command>\`
|
|
214
|
+
|
|
215
|
+
Done when:
|
|
216
|
+
|
|
217
|
+
- failing, broken, or unmodeled runner-visible failures are represented in agent artifacts, or partial modeling is called out explicitly
|
|
218
|
+
- \`artifacts/global/stderr.txt\` and global errors were checked when failures are missing from \`manifest/tests.jsonl\`
|
|
219
|
+
- reruns use prior agent output instead of hand-built runner test names whenever the runner can consume the generated test plan
|
|
220
|
+
|
|
221
|
+
### Rerun A Prior Scope
|
|
222
|
+
|
|
223
|
+
Use when prior agent output already identifies failed, unsuccessful, or review-targeted tests and the next run should stay focused.
|
|
224
|
+
|
|
225
|
+
Commands:
|
|
226
|
+
|
|
227
|
+
- \`allure agent select --latest [--preset review|failed|unsuccessful|all]\`
|
|
228
|
+
- \`allure agent select --from <output-dir> [--environment <id>] [--label name=value]\`
|
|
229
|
+
- \`allure agent --rerun-latest -- <command>\`
|
|
230
|
+
- \`allure agent --rerun-from <output-dir> -- <command>\`
|
|
231
|
+
|
|
232
|
+
Done when:
|
|
233
|
+
|
|
234
|
+
- the rerun scope comes from Allure testplan support
|
|
235
|
+
- \`--rerun-preset\`, \`--rerun-environment\`, or \`--rerun-label\` filters explain any narrowed selection
|
|
236
|
+
- manual test names are used only as a fallback when testplan support is unavailable
|
|
237
|
+
- the rerun output is reviewed before making a new conclusion
|
|
238
|
+
|
|
239
|
+
### Improve Evidence Quality
|
|
240
|
+
|
|
241
|
+
Use when tests pass or fail but the runtime story is too weak to review.
|
|
242
|
+
|
|
243
|
+
Commands:
|
|
244
|
+
|
|
245
|
+
- \`allure agent --expect-step-containing <text> --expect-steps <count> --expect-attachments <count> -- <command>\`
|
|
246
|
+
- \`allure agent --expect-attachment <name|name=value|content-type=value> -- <command>\`
|
|
247
|
+
|
|
248
|
+
Done when:
|
|
249
|
+
|
|
250
|
+
- steps describe real setup, actions, state transitions, or assertions
|
|
251
|
+
- attachments contain runtime evidence such as payloads, responses, screenshots, DOM snapshots, diffs, logs, or traces
|
|
252
|
+
- placeholder steps, generic \`"passed"\` attachments, and other dummy evidence are removed
|
|
253
|
+
- the same intended scope was rerun and no high-confidence evidence findings remain
|
|
254
|
+
|
|
255
|
+
### Recover Or Diagnose Agent Mode
|
|
256
|
+
|
|
257
|
+
Use when agent output is missing, the latest run cannot be found, local CLI support is unclear, or state behaves differently in CI or a sandbox.
|
|
258
|
+
|
|
259
|
+
Commands:
|
|
260
|
+
|
|
261
|
+
- \`allure --version\`
|
|
262
|
+
- \`allure agent capabilities --json\`
|
|
263
|
+
- \`allure agent --help\`
|
|
264
|
+
- \`allure agent latest\`
|
|
265
|
+
- \`allure agent state-dir\`
|
|
266
|
+
- \`ALLURE_AGENT_STATE_DIR=<dir>\`
|
|
267
|
+
|
|
268
|
+
Done when:
|
|
269
|
+
|
|
270
|
+
- supported local commands and flags are known from capabilities or help output
|
|
271
|
+
- the output directory, \`index.md\` path, or state directory is identified, or the reason it is unavailable is documented
|
|
272
|
+
- console-only conclusions stay provisional until agent-mode artifacts are available`;
|
|
273
|
+
export const AGENT_COMMAND_TASK_MAP = [
|
|
274
|
+
"`allure --version`, `allure agent capabilities --json`, and `allure agent --help`: setup and capability-detection loop. Use when the local CLI surface is unknown, generated guidance may be stale, or you need to choose supported flags without guessing.",
|
|
275
|
+
"`allure agent --goal ... -- <command>`: test review, feature delivery, smoke-check, and coverage loops. Use when a test command needs runtime evidence, scope expectations, and user-facing conclusions based on agent artifacts rather than console output alone.",
|
|
276
|
+
"`allure agent latest`: output recovery loop. Use when a previous run omitted `--output`, you need the newest output directory and `index.md` path, or a follow-up task needs prior output before selecting or rerunning tests.",
|
|
277
|
+
"`allure agent state-dir`: tooling diagnosis loop. Use when `latest` cannot find a run, CI or sandbox state looks wrong, or you need to explain where project-scoped latest pointers are stored.",
|
|
278
|
+
"`allure agent query --latest summary|tests|findings|test` / `allure agent query --from <output-dir> ...`: output inspection loop. Use when you need a focused JSON summary, filtered tests, filtered findings, or one test from prior agent output without manually loading raw manifests first.",
|
|
279
|
+
"`allure agent select --latest` / `allure agent select --from <output-dir>`: rerun-planning loop. Use when you need to inspect, filter, or write the Allure test plan from prior results before executing another run. Without `--output`, stdout is raw testplan JSON; with `--output`, stdout summarizes the file path, source output, preset, and selected count.",
|
|
280
|
+
"`allure agent --rerun-latest` / `allure agent --rerun-from <output-dir>`: focused retry loop. Use when prior output already identifies failed, unsuccessful, or review-targeted tests and you should rerun that slice through Allure testplan support instead of rebuilding runner-specific test names.",
|
|
281
|
+
"`ALLURE_AGENT_STATE_DIR=<dir>`: CI and sandbox state-control loop. Use when multiple jobs need a deterministic state location, the default temp state is not shared, or the default state directory is not writable.",
|
|
125
282
|
];
|
|
126
283
|
export const AGENT_VERIFICATION_RULES = [
|
|
127
284
|
"If a command executes tests and its result will be used for smoke checking, reasoning, review, coverage analysis, debugging, or any user-facing conclusion, run it through `allure agent`. It preserves the original console logs and adds agent-mode artifacts without inheriting the normal report or export plugins from the project config.",
|
|
@@ -130,16 +287,6 @@ export const AGENT_VERIFICATION_RULES = [
|
|
|
130
287
|
"After changing a package in this repository, run that package build command before finalizing (for example, `yarn workspace <package-name> build`).",
|
|
131
288
|
"After each agent-mode test run, print the `index.md` path from that run's output directory so users can open the run overview quickly.",
|
|
132
289
|
];
|
|
133
|
-
export const AGENT_SMALL_TEST_CHANGE_WORKFLOW = [
|
|
134
|
-
"Create a fresh temp `ALLURE_AGENT_OUTPUT` and `ALLURE_AGENT_EXPECTATIONS` for the touched scope before closing the task.",
|
|
135
|
-
"Run the touched scope with `allure agent`, even if the goal is only a smoke check after a mechanical change such as typing cleanup, mock refactors, or helper extraction.",
|
|
136
|
-
"Review `manifest/run.json`, `manifest/test-events.jsonl`, `index.md`, `manifest/tests.jsonl`, and `manifest/findings.jsonl` before making any final claim.",
|
|
137
|
-
];
|
|
138
|
-
export const AGENT_COVERAGE_REVIEW_WORKFLOW = [
|
|
139
|
-
"Split package or business-logic audits into scoped groups and give each group its own temp output directory and expectations file.",
|
|
140
|
-
"Review agent-mode artifacts first for each group, then inspect source code only after the runtime evidence shows what actually ran.",
|
|
141
|
-
"Treat grouped coverage review as incomplete until each scoped run has matching expectations or an explicit note that the audit is intentionally broad.",
|
|
142
|
-
];
|
|
143
290
|
export const AGENT_TEST_ENRICHMENT_BEST_PRACTICES = [
|
|
144
291
|
"Steps must wrap real actions, state transitions, or assertions. Prefer a small setup/action/assertion narrative over event-by-event step spam.",
|
|
145
292
|
"Attachments must capture real runtime evidence from that execution: payloads, responses, screenshots, DOM snapshots, diffs, logs, or traces.",
|
|
@@ -174,14 +321,17 @@ export const AGENT_INSTRUCTIONS_TEMPLATE = `## Allure Agent Mode Instructions
|
|
|
174
321
|
- Use \`allure agent\` for smoke checks too, even when the change is small or mechanical.
|
|
175
322
|
- Only skip agent mode when it is impossible or when you are debugging agent mode itself.
|
|
176
323
|
- After each agent-mode test run, print the \`index.md\` path from that run's output directory so users can open the run overview quickly.
|
|
177
|
-
- Use \`
|
|
178
|
-
- Use \`allure agent
|
|
324
|
+
- Use \`allure agent latest\` to print the newest output directory and \`index.md\` path when \`--output\` was omitted.
|
|
325
|
+
- Use \`allure agent capabilities --json\` when you need structured supported-command, expectation, output, rerun, and unsupported-feature data without scraping help text.
|
|
179
326
|
- Use \`allure agent state-dir\` to inspect where the current project stores its latest-agent state.
|
|
180
|
-
- Use \`allure agent
|
|
327
|
+
- Use \`allure agent latest\`, \`state-dir\`, \`query\`, \`select\`, and \`--rerun-*\` according to their loop/task/problem mapping instead of treating them as interchangeable helper commands.
|
|
328
|
+
- Use \`allure agent query --latest summary|tests|findings|test\` or \`allure agent query --from <output-dir> ...\` to inspect prior output as focused JSON before manually opening raw manifests.
|
|
329
|
+
- Use \`allure agent select --latest\` or \`allure agent select --from <output-dir>\` to inspect the review-targeted test plan before rerunning; add \`--output <file>\` when you want the CLI to write the plan and print a short selection summary.
|
|
181
330
|
- Use \`allure agent --rerun-latest -- <command>\` or \`allure agent --rerun-from <output-dir> -- <command>\` to rerun only the selected tests.
|
|
331
|
+
- When rerunning previous failures, use \`allure agent --rerun-latest --rerun-preset failed -- <command>\` or \`allure agent --rerun-from <output-dir> --rerun-preset failed -- <command>\` instead of manually rebuilding runner-specific test names.
|
|
182
332
|
- Use \`--rerun-preset review|failed|unsuccessful|all\`, repeated \`--rerun-environment <id>\`, and repeated \`--rerun-label name=value\` when you need a narrower rerun selection from the previous output.
|
|
183
333
|
- Use \`ALLURE_AGENT_STATE_DIR\` when you need to override where the current project stores latest-agent state for \`latest\`, \`state-dir\`, or \`--rerun-latest\`.
|
|
184
|
-
-
|
|
334
|
+
- Prefer inline \`allure agent\` expectation flags such as \`--goal\`, \`--expect-tests\`, \`--expect-test\`, \`--expect-label\`, and \`--expect-step-containing\`; use \`--expectations <file>\` only when flags become awkward.
|
|
185
335
|
- Run tests with \`allure agent\` and review \`manifest/run.json\`, \`manifest/test-events.jsonl\`, \`index.md\`, \`manifest/tests.jsonl\`, and \`manifest/findings.jsonl\`.
|
|
186
336
|
- Enrich only the intended tests. Add real steps for real setup, actions, and assertions.
|
|
187
337
|
- Attach only real runtime evidence such as payloads, responses, screenshots, DOM snapshots, diffs, logs, or traces.
|
|
@@ -189,26 +339,18 @@ export const AGENT_INSTRUCTIONS_TEMPLATE = `## Allure Agent Mode Instructions
|
|
|
189
339
|
- Instrument stable helpers when several call sites need the same evidence. For example, teach \`runCommand\` to emit a step instead of wrapping every caller.
|
|
190
340
|
- Reject the rerun if scope drifts, evidence stays weak, or high-confidence noop-style findings remain.`;
|
|
191
341
|
const renderBullets = (items) => items.map((item) => `- ${item}`).join("\n");
|
|
192
|
-
const renderNumbered = (items) => items.map((item, index) => `${index + 1}. ${item}`).join("\n");
|
|
193
342
|
const renderRemediationGuide = () => Object.entries(ENRICHMENT_ACTIONS_BY_CHECK_NAME)
|
|
194
343
|
.map(([checkName, action]) => `- \`${checkName}\`: ${action.title}. ${action.guidance}`)
|
|
195
344
|
.join("\n");
|
|
196
|
-
export const renderAgentsGuide = (
|
|
345
|
+
export const renderAgentsGuide = () => `# AGENTS Guide
|
|
197
346
|
|
|
198
347
|
## Reading Order
|
|
199
348
|
|
|
200
|
-
|
|
201
|
-
? `1. Read [project guidance](${projectGuidePath}) first for repo-specific testing conventions and loop expectations.
|
|
202
|
-
2. Read \`manifest/run.json\` for the current phase, counts, and modeling summary.
|
|
203
|
-
3. Tail \`manifest/test-events.jsonl\` for the newest structured updates while the run is active.
|
|
204
|
-
4. Open \`index.md\` for run-level status, scope summary, and the highest-priority findings.
|
|
205
|
-
5. Open the relevant file under \`tests/<environment>/<historyId-or-trId>.md\` for evidence review.
|
|
206
|
-
6. Follow links into \`.assets/\` for test-scoped artifacts and into \`artifacts/global/\` for process logs such as stdout and stderr.`
|
|
207
|
-
: `1. Read \`manifest/run.json\` for the current phase, counts, and modeling summary.
|
|
349
|
+
1. Read \`manifest/run.json\` for the current phase, counts, and modeling summary.
|
|
208
350
|
2. Tail \`manifest/test-events.jsonl\` for the newest structured updates while the run is active.
|
|
209
351
|
3. Open \`index.md\` for run-level status, scope summary, and the highest-priority findings.
|
|
210
352
|
4. Open the relevant file under \`tests/<environment>/<historyId-or-trId>.md\` for evidence review.
|
|
211
|
-
5. Follow links into \`.assets/\` for test-scoped artifacts and into \`artifacts/global/\` for process logs such as stdout and stderr
|
|
353
|
+
5. Follow links into \`.assets/\` for test-scoped artifacts and into \`artifacts/global/\` for process logs such as stdout and stderr.
|
|
212
354
|
|
|
213
355
|
## Directory Contract
|
|
214
356
|
|
|
@@ -217,28 +359,23 @@ ${projectGuidePath
|
|
|
217
359
|
- \`manifest/test-events.jsonl\` is the append-only live event stream for machine consumers during the run.
|
|
218
360
|
- \`manifest/tests.jsonl\` contains one logical test summary per line.
|
|
219
361
|
- \`manifest/findings.jsonl\` contains one advisory finding per line.
|
|
220
|
-
- \`manifest/expected.json\`
|
|
221
|
-
- \`project/docs/allure-agent-mode.md\` is copied from the project when available so each run keeps the guide used for that execution.
|
|
362
|
+
- \`manifest/expected.json\` contains normalized expectations from inline flags or \`--expectations <file>\` when provided.
|
|
222
363
|
- \`tests/<environment>/<slug>.md\` contains one logical test per file.
|
|
223
364
|
- Retries from the same run are nested inside the same logical test file.
|
|
224
365
|
- \`tests/<environment>/<slug>.assets/\` contains copied attachments for that logical test.
|
|
225
366
|
- \`artifacts/global/\` contains copied global artifacts for the whole run.
|
|
226
367
|
|
|
227
|
-
##
|
|
228
|
-
|
|
229
|
-
${renderNumbered(AGENT_ENRICHMENT_WORKFLOW)}
|
|
230
|
-
|
|
231
|
-
## Verification Standard
|
|
368
|
+
## Command Task Map
|
|
232
369
|
|
|
233
|
-
${renderBullets(
|
|
370
|
+
${renderBullets(AGENT_COMMAND_TASK_MAP)}
|
|
234
371
|
|
|
235
|
-
##
|
|
372
|
+
## Agent Workflows
|
|
236
373
|
|
|
237
|
-
${
|
|
374
|
+
${AGENT_WORKFLOWS_MARKDOWN}
|
|
238
375
|
|
|
239
|
-
##
|
|
376
|
+
## Verification Standard
|
|
240
377
|
|
|
241
|
-
${
|
|
378
|
+
${renderBullets(AGENT_VERIFICATION_RULES)}
|
|
242
379
|
|
|
243
380
|
## Test Enrichment Best Practices
|
|
244
381
|
|
package/dist/harness.d.ts
CHANGED
|
@@ -5,18 +5,32 @@ export type AgentFindingCategory = "bootstrap" | "scope" | "metadata" | "evidenc
|
|
|
5
5
|
export type AgentScopeMatch = "match" | "unexpected" | "forbidden" | "unknown";
|
|
6
6
|
export type AgentAcceptanceStatus = "accept" | "iterate" | "reject";
|
|
7
7
|
export type AgentAcceptanceImpact = "advisory" | "iterate" | "reject";
|
|
8
|
+
export type AgentExpectationResultStatus = "matched" | "failed" | "partial" | "degraded" | "unsupported" | "unavailable" | "not_requested";
|
|
9
|
+
export type AgentExpectationResultImpact = "accept" | "reject" | "iterate" | "advisory";
|
|
8
10
|
export type AgentEnrichmentActionCategory = EnrichmentActionCategory;
|
|
9
11
|
export type AgentExpectationSelector = {
|
|
10
12
|
environments?: string[];
|
|
11
13
|
full_names?: string[];
|
|
12
14
|
full_name_prefixes?: string[];
|
|
13
15
|
label_values?: Record<string, string | string[]>;
|
|
16
|
+
test_count?: number;
|
|
17
|
+
};
|
|
18
|
+
export type AgentEvidenceExpectations = {
|
|
19
|
+
required?: boolean;
|
|
20
|
+
min_steps?: number;
|
|
21
|
+
min_attachments?: number;
|
|
22
|
+
step_name_contains?: string[];
|
|
23
|
+
attachments?: Array<{
|
|
24
|
+
name?: string;
|
|
25
|
+
content_type?: string;
|
|
26
|
+
}>;
|
|
14
27
|
};
|
|
15
28
|
export type AgentExpectations = {
|
|
16
29
|
goal?: string;
|
|
17
30
|
task_id?: string;
|
|
18
31
|
expected?: AgentExpectationSelector;
|
|
19
32
|
forbidden?: AgentExpectationSelector;
|
|
33
|
+
evidence?: AgentEvidenceExpectations;
|
|
20
34
|
notes?: string[];
|
|
21
35
|
};
|
|
22
36
|
export type AgentHarnessScopeInput = {
|
|
@@ -97,7 +111,6 @@ export type AgentRunManifest = {
|
|
|
97
111
|
findings_manifest: string;
|
|
98
112
|
test_events_manifest?: string;
|
|
99
113
|
expected_manifest: string | null;
|
|
100
|
-
project_guide: string | null;
|
|
101
114
|
process_logs: {
|
|
102
115
|
stdout: string | null;
|
|
103
116
|
stderr: string | null;
|
|
@@ -148,6 +161,28 @@ export type AgentRunManifest = {
|
|
|
148
161
|
};
|
|
149
162
|
};
|
|
150
163
|
expectations_present: boolean;
|
|
164
|
+
expectations: AgentExpectations | null;
|
|
165
|
+
expectation_result: {
|
|
166
|
+
schema_version: "allure-agent-expectation-result/v1";
|
|
167
|
+
status: AgentExpectationResultStatus;
|
|
168
|
+
impact: AgentExpectationResultImpact;
|
|
169
|
+
source: {
|
|
170
|
+
kind: "inline" | "file" | "none";
|
|
171
|
+
path: string | null;
|
|
172
|
+
};
|
|
173
|
+
recognized_control_count: number;
|
|
174
|
+
unsupported_controls: string[];
|
|
175
|
+
degraded_controls: string[];
|
|
176
|
+
summary: {
|
|
177
|
+
expected_tests: number;
|
|
178
|
+
observed_tests: number;
|
|
179
|
+
missing_expected: number;
|
|
180
|
+
forbidden_observed: number;
|
|
181
|
+
unexpected_observed: number;
|
|
182
|
+
evidence_mismatches: number;
|
|
183
|
+
};
|
|
184
|
+
finding_ids: string[];
|
|
185
|
+
};
|
|
151
186
|
check_summary: {
|
|
152
187
|
total: number;
|
|
153
188
|
countsBySeverity: Record<AgentFindingSeverity, number>;
|
|
@@ -183,17 +218,46 @@ export type AgentTestManifestLine = {
|
|
|
183
218
|
assets_dir: string;
|
|
184
219
|
};
|
|
185
220
|
export type AgentFindingManifestLine = {
|
|
221
|
+
schema_version?: "allure-agent-finding/v2";
|
|
222
|
+
check_id?: string;
|
|
223
|
+
instance_id?: string;
|
|
186
224
|
finding_id: string;
|
|
187
|
-
subject: string
|
|
225
|
+
subject: string | {
|
|
226
|
+
type: "run" | "test" | "environment" | "attachment" | "global";
|
|
227
|
+
id?: string;
|
|
228
|
+
path?: string;
|
|
229
|
+
full_name?: string;
|
|
230
|
+
environment?: string;
|
|
231
|
+
};
|
|
232
|
+
subject_ref?: string;
|
|
233
|
+
subject_type?: "run" | "test";
|
|
188
234
|
severity: AgentFindingSeverity;
|
|
235
|
+
impact?: AgentAcceptanceImpact;
|
|
189
236
|
category: AgentFindingCategory;
|
|
190
237
|
check_name: string;
|
|
238
|
+
title?: string;
|
|
191
239
|
message: string;
|
|
192
240
|
explanation: string;
|
|
193
241
|
evidence_paths: string[];
|
|
194
242
|
remediation_hint: string;
|
|
195
243
|
expected_reference?: string;
|
|
196
244
|
confidence?: number;
|
|
245
|
+
expected?: Record<string, unknown>;
|
|
246
|
+
observed?: Record<string, unknown>;
|
|
247
|
+
evidence?: {
|
|
248
|
+
paths?: string[];
|
|
249
|
+
};
|
|
250
|
+
action?: string;
|
|
251
|
+
legacy?: {
|
|
252
|
+
finding_id: string;
|
|
253
|
+
subject: string;
|
|
254
|
+
subject_type?: "run" | "test";
|
|
255
|
+
check_name: string;
|
|
256
|
+
explanation?: string;
|
|
257
|
+
evidence_paths?: string[];
|
|
258
|
+
remediation_hint: string;
|
|
259
|
+
expected_reference?: string;
|
|
260
|
+
};
|
|
197
261
|
};
|
|
198
262
|
export type AgentOutputBundle = {
|
|
199
263
|
outputDir: string;
|
|
@@ -254,8 +318,8 @@ export type AgentReviewOptions = {
|
|
|
254
318
|
};
|
|
255
319
|
export declare const DEFAULT_ANTI_DUMMY_CONFIDENCE = 0.75;
|
|
256
320
|
export declare const AGENT_ENRICHMENT_ACTIONS: Record<string, AgentEnrichmentAction>;
|
|
257
|
-
export declare const SCOPE_REJECTING_CHECKS: readonly ["
|
|
258
|
-
export declare const ITERATION_REQUIRED_CHECKS: readonly ["invalid
|
|
321
|
+
export declare const SCOPE_REJECTING_CHECKS: readonly ["expected-test-missing", "expected-count-mismatch", "expected-prefix-missing", "expected-label-missing", "expected-environment-missing", "no-tests-observed", "unexpected-environment", "forbidden-label-observed", "unexpected-test"];
|
|
322
|
+
export declare const ITERATION_REQUIRED_CHECKS: readonly ["expectations-invalid", "expectations-empty", "expectations-unsupported-control", "runner-failures-outside-logical-results", "metadata-mismatch", "history-id-collision", "expected-step-containing-missing", "insufficient-expected-steps", "insufficient-expected-attachments", "missing-expected-attachment", "failed-without-useful-steps", "failed-without-attachments", "nontrivial-run-with-empty-trace", "retries-without-new-evidence", "passed-without-observable-evidence"];
|
|
259
323
|
export declare const ANTI_DUMMY_CHECKS: readonly ["noop-dominated-steps"];
|
|
260
324
|
export declare const buildAgentExpectations: (input: AgentHarnessRequest) => AgentExpectations;
|
|
261
325
|
export declare const mapFindingToEnrichmentAction: (finding: AgentFindingManifestLine | string) => AgentEnrichmentAction;
|