@namzu/sdk 62.6.1 → 62.8.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/CHANGELOG.md +42 -0
- package/dist/agents/QueryAgent.d.ts.map +1 -1
- package/dist/agents/QueryAgent.js +5 -0
- package/dist/agents/QueryAgent.js.map +1 -1
- package/dist/agents/examples/SupervisorAgent.d.ts.map +1 -1
- package/dist/agents/examples/SupervisorAgent.js +1 -0
- package/dist/agents/examples/SupervisorAgent.js.map +1 -1
- package/dist/agents/explore.d.ts.map +1 -1
- package/dist/agents/explore.js +2 -1
- package/dist/agents/explore.js.map +1 -1
- package/dist/compaction/index.d.ts +1 -1
- package/dist/compaction/index.d.ts.map +1 -1
- package/dist/compaction/index.js +1 -1
- package/dist/compaction/index.js.map +1 -1
- package/dist/compaction/model-summary.js +2 -2
- package/dist/compaction/model-summary.js.map +1 -1
- package/dist/compaction/summary.d.ts +16 -1
- package/dist/compaction/summary.d.ts.map +1 -1
- package/dist/compaction/summary.js +25 -2
- package/dist/compaction/summary.js.map +1 -1
- package/dist/config/runtime.d.ts +8 -0
- package/dist/config/runtime.d.ts.map +1 -1
- package/dist/config/runtime.js +15 -0
- package/dist/config/runtime.js.map +1 -1
- package/dist/execution/workflow/runtime.d.ts.map +1 -1
- package/dist/execution/workflow/runtime.js +3 -0
- package/dist/execution/workflow/runtime.js.map +1 -1
- package/dist/execution/workflow/types.d.ts +8 -0
- package/dist/execution/workflow/types.d.ts.map +1 -1
- package/dist/manager/agent/child-session.d.ts +12 -0
- package/dist/manager/agent/child-session.d.ts.map +1 -1
- package/dist/manager/agent/child-session.js +29 -0
- package/dist/manager/agent/child-session.js.map +1 -1
- package/dist/manager/agent/lifecycle.d.ts.map +1 -1
- package/dist/manager/agent/lifecycle.js +8 -0
- package/dist/manager/agent/lifecycle.js.map +1 -1
- package/dist/manager/session/turn-recorder.d.ts +13 -2
- package/dist/manager/session/turn-recorder.d.ts.map +1 -1
- package/dist/manager/session/turn-recorder.js +107 -29
- package/dist/manager/session/turn-recorder.js.map +1 -1
- package/dist/prompt/coding-agent-doctrine.d.ts +3 -3
- package/dist/prompt/coding-agent-doctrine.d.ts.map +1 -1
- package/dist/prompt/coding-agent-doctrine.js +5 -3
- package/dist/prompt/coding-agent-doctrine.js.map +1 -1
- package/dist/provider/fallback.d.ts.map +1 -1
- package/dist/provider/fallback.js +5 -1
- package/dist/provider/fallback.js.map +1 -1
- package/dist/provider/retry.d.ts +25 -0
- package/dist/provider/retry.d.ts.map +1 -1
- package/dist/provider/retry.js +28 -0
- package/dist/provider/retry.js.map +1 -1
- package/dist/public-runtime.d.ts +3 -3
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +3 -3
- package/dist/public-runtime.js.map +1 -1
- package/dist/public-tools.d.ts +4 -2
- package/dist/public-tools.d.ts.map +1 -1
- package/dist/public-tools.js +5 -2
- package/dist/public-tools.js.map +1 -1
- package/dist/runtime/query/auto-review/classifier.d.ts +7 -1
- package/dist/runtime/query/auto-review/classifier.d.ts.map +1 -1
- package/dist/runtime/query/auto-review/classifier.js +8 -4
- package/dist/runtime/query/auto-review/classifier.js.map +1 -1
- package/dist/runtime/query/auto-review/prompt.d.ts.map +1 -1
- package/dist/runtime/query/auto-review/prompt.js +2 -0
- package/dist/runtime/query/auto-review/prompt.js.map +1 -1
- package/dist/runtime/query/auto-review/script-evidence.d.ts +93 -0
- package/dist/runtime/query/auto-review/script-evidence.d.ts.map +1 -0
- package/dist/runtime/query/auto-review/script-evidence.js +566 -0
- package/dist/runtime/query/auto-review/script-evidence.js.map +1 -0
- package/dist/runtime/query/checkpoint.d.ts +13 -0
- package/dist/runtime/query/checkpoint.d.ts.map +1 -1
- package/dist/runtime/query/checkpoint.js +37 -0
- package/dist/runtime/query/checkpoint.js.map +1 -1
- package/dist/runtime/query/context.d.ts.map +1 -1
- package/dist/runtime/query/context.js +28 -2
- package/dist/runtime/query/context.js.map +1 -1
- package/dist/runtime/query/executor.d.ts +38 -1
- package/dist/runtime/query/executor.d.ts.map +1 -1
- package/dist/runtime/query/executor.js +154 -13
- package/dist/runtime/query/executor.js.map +1 -1
- package/dist/runtime/query/finalize-turn.d.ts +7 -1
- package/dist/runtime/query/finalize-turn.d.ts.map +1 -1
- package/dist/runtime/query/finalize-turn.js +2 -0
- package/dist/runtime/query/finalize-turn.js.map +1 -1
- package/dist/runtime/query/index.d.ts +8 -0
- package/dist/runtime/query/index.d.ts.map +1 -1
- package/dist/runtime/query/index.js +7 -0
- package/dist/runtime/query/index.js.map +1 -1
- package/dist/runtime/query/iteration/index.d.ts +32 -1
- package/dist/runtime/query/iteration/index.d.ts.map +1 -1
- package/dist/runtime/query/iteration/index.js +158 -10
- package/dist/runtime/query/iteration/index.js.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction.d.ts +12 -0
- package/dist/runtime/query/iteration/phases/compaction.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction.js +48 -1
- package/dist/runtime/query/iteration/phases/compaction.js.map +1 -1
- package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/context.js +5 -0
- package/dist/runtime/query/iteration/phases/context.js.map +1 -1
- package/dist/runtime/query/iteration/stream-turn.js +3 -3
- package/dist/runtime/query/iteration/stream-turn.js.map +1 -1
- package/dist/runtime/query/prelude-lease.d.ts.map +1 -1
- package/dist/runtime/query/prelude-lease.js +22 -0
- package/dist/runtime/query/prelude-lease.js.map +1 -1
- package/dist/runtime/query/prepare-turn.d.ts.map +1 -1
- package/dist/runtime/query/prepare-turn.js +30 -12
- package/dist/runtime/query/prepare-turn.js.map +1 -1
- package/dist/runtime/query/review-policy.d.ts.map +1 -1
- package/dist/runtime/query/review-policy.js +29 -0
- package/dist/runtime/query/review-policy.js.map +1 -1
- package/dist/runtime/query/session-storage.d.ts.map +1 -1
- package/dist/runtime/query/session-storage.js +44 -3
- package/dist/runtime/query/session-storage.js.map +1 -1
- package/dist/runtime/query/tooling.d.ts +2 -0
- package/dist/runtime/query/tooling.d.ts.map +1 -1
- package/dist/runtime/query/tooling.js +1 -0
- package/dist/runtime/query/tooling.js.map +1 -1
- package/dist/runtime/query/turn/completion-audit.d.ts +27 -1
- package/dist/runtime/query/turn/completion-audit.d.ts.map +1 -1
- package/dist/runtime/query/turn/completion-audit.js +71 -6
- package/dist/runtime/query/turn/completion-audit.js.map +1 -1
- package/dist/runtime/query/turn/outcome-ledger.d.ts +113 -0
- package/dist/runtime/query/turn/outcome-ledger.d.ts.map +1 -0
- package/dist/runtime/query/turn/outcome-ledger.js +578 -0
- package/dist/runtime/query/turn/outcome-ledger.js.map +1 -0
- package/dist/sandbox/file-walk.d.ts +7 -1
- package/dist/sandbox/file-walk.d.ts.map +1 -1
- package/dist/sandbox/file-walk.js +30 -4
- package/dist/sandbox/file-walk.js.map +1 -1
- package/dist/sandbox/glob-segment.d.ts +8 -1
- package/dist/sandbox/glob-segment.d.ts.map +1 -1
- package/dist/sandbox/glob-segment.js +28 -9
- package/dist/sandbox/glob-segment.js.map +1 -1
- package/dist/store/checkpoint/contract.d.ts +12 -0
- package/dist/store/checkpoint/contract.d.ts.map +1 -1
- package/dist/store/checkpoint/contract.js.map +1 -1
- package/dist/store/checkpoint/disk.d.ts.map +1 -1
- package/dist/store/checkpoint/disk.js +34 -2
- package/dist/store/checkpoint/disk.js.map +1 -1
- package/dist/store/checkpoint/prune.d.ts.map +1 -1
- package/dist/store/checkpoint/prune.js +6 -0
- package/dist/store/checkpoint/prune.js.map +1 -1
- package/dist/store/evidence/disk.js +40 -3
- package/dist/store/evidence/disk.js.map +1 -1
- package/dist/store/session-log/incremental.d.ts +23 -0
- package/dist/store/session-log/incremental.d.ts.map +1 -0
- package/dist/store/session-log/incremental.js +117 -0
- package/dist/store/session-log/incremental.js.map +1 -0
- package/dist/store/session-log/index.d.ts +1 -0
- package/dist/store/session-log/index.d.ts.map +1 -1
- package/dist/store/session-log/index.js +1 -0
- package/dist/store/session-log/index.js.map +1 -1
- package/dist/store/session-log/turn-outcome.d.ts +37 -0
- package/dist/store/session-log/turn-outcome.d.ts.map +1 -0
- package/dist/store/session-log/turn-outcome.js +77 -0
- package/dist/store/session-log/turn-outcome.js.map +1 -0
- package/dist/tools/admit-facts.d.ts.map +1 -1
- package/dist/tools/admit-facts.js +1 -0
- package/dist/tools/admit-facts.js.map +1 -1
- package/dist/tools/builtins/bash.d.ts.map +1 -1
- package/dist/tools/builtins/bash.js +11 -2
- package/dist/tools/builtins/bash.js.map +1 -1
- package/dist/tools/builtins/bounded-file-read.d.ts +19 -1
- package/dist/tools/builtins/bounded-file-read.d.ts.map +1 -1
- package/dist/tools/builtins/bounded-file-read.js +56 -3
- package/dist/tools/builtins/bounded-file-read.js.map +1 -1
- package/dist/tools/builtins/edit-apply.d.ts.map +1 -1
- package/dist/tools/builtins/edit-apply.js +24 -3
- package/dist/tools/builtins/edit-apply.js.map +1 -1
- package/dist/tools/builtins/edit.d.ts +31 -17
- package/dist/tools/builtins/edit.d.ts.map +1 -1
- package/dist/tools/builtins/edit.js +92 -27
- package/dist/tools/builtins/edit.js.map +1 -1
- package/dist/tools/builtins/glob.js +1 -1
- package/dist/tools/builtins/glob.js.map +1 -1
- package/dist/tools/builtins/grep.d.ts +8 -0
- package/dist/tools/builtins/grep.d.ts.map +1 -1
- package/dist/tools/builtins/grep.js +148 -21
- package/dist/tools/builtins/grep.js.map +1 -1
- package/dist/tools/builtins/notebook-guard.d.ts +19 -0
- package/dist/tools/builtins/notebook-guard.d.ts.map +1 -0
- package/dist/tools/builtins/notebook-guard.js +75 -0
- package/dist/tools/builtins/notebook-guard.js.map +1 -0
- package/dist/tools/builtins/read-render.d.ts.map +1 -1
- package/dist/tools/builtins/read-render.js +8 -2
- package/dist/tools/builtins/read-render.js.map +1 -1
- package/dist/tools/builtins/search-support.d.ts +8 -0
- package/dist/tools/builtins/search-support.d.ts.map +1 -1
- package/dist/tools/builtins/search-support.js +66 -0
- package/dist/tools/builtins/search-support.js.map +1 -1
- package/dist/tools/builtins/write-file.d.ts.map +1 -1
- package/dist/tools/builtins/write-file.js +14 -1
- package/dist/tools/builtins/write-file.js.map +1 -1
- package/dist/tools/coordinator/agent.d.ts.map +1 -1
- package/dist/tools/coordinator/agent.js +25 -6
- package/dist/tools/coordinator/agent.js.map +1 -1
- package/dist/tools/coordinator/index.d.ts.map +1 -1
- package/dist/tools/coordinator/index.js +6 -1
- package/dist/tools/coordinator/index.js.map +1 -1
- package/dist/tools/coordinator/outcome-record.d.ts +22 -0
- package/dist/tools/coordinator/outcome-record.d.ts.map +1 -0
- package/dist/tools/coordinator/outcome-record.js +91 -0
- package/dist/tools/coordinator/outcome-record.js.map +1 -0
- package/dist/tools/defineTool.d.ts +2 -0
- package/dist/tools/defineTool.d.ts.map +1 -1
- package/dist/tools/defineTool.js +1 -0
- package/dist/tools/defineTool.js.map +1 -1
- package/dist/tools/file-read-tracker.d.ts +23 -2
- package/dist/tools/file-read-tracker.d.ts.map +1 -1
- package/dist/tools/file-read-tracker.js +37 -2
- package/dist/tools/file-read-tracker.js.map +1 -1
- package/dist/tools/untrusted-envelope.d.ts +6 -0
- package/dist/tools/untrusted-envelope.d.ts.map +1 -1
- package/dist/tools/untrusted-envelope.js +22 -1
- package/dist/tools/untrusted-envelope.js.map +1 -1
- package/dist/toolsets/manager.d.ts.map +1 -1
- package/dist/toolsets/manager.js +3 -4
- package/dist/toolsets/manager.js.map +1 -1
- package/dist/toolsets/validation-issues.d.ts +27 -0
- package/dist/toolsets/validation-issues.d.ts.map +1 -0
- package/dist/toolsets/validation-issues.js +83 -0
- package/dist/toolsets/validation-issues.js.map +1 -0
- package/dist/turn/memory-recall.d.ts +13 -0
- package/dist/turn/memory-recall.d.ts.map +1 -1
- package/dist/turn/memory-recall.js +18 -0
- package/dist/turn/memory-recall.js.map +1 -1
- package/dist/types/agent/base.d.ts +19 -0
- package/dist/types/agent/base.d.ts.map +1 -1
- package/dist/types/agent/query.d.ts +2 -0
- package/dist/types/agent/query.d.ts.map +1 -1
- package/dist/types/common/index.d.ts +17 -0
- package/dist/types/common/index.d.ts.map +1 -1
- package/dist/types/common/index.js +8 -1
- package/dist/types/common/index.js.map +1 -1
- package/dist/types/hitl/index.d.ts +22 -0
- package/dist/types/hitl/index.d.ts.map +1 -1
- package/dist/types/hitl/index.js.map +1 -1
- package/dist/types/session/config.d.ts +20 -0
- package/dist/types/session/config.d.ts.map +1 -1
- package/dist/types/session/events.d.ts +3 -3
- package/dist/types/session/events.d.ts.map +1 -1
- package/dist/types/session/index.d.ts +1 -0
- package/dist/types/session/index.d.ts.map +1 -1
- package/dist/types/session/index.js +1 -0
- package/dist/types/session/index.js.map +1 -1
- package/dist/types/session/outcome.d.ts +95 -0
- package/dist/types/session/outcome.d.ts.map +1 -0
- package/dist/types/session/outcome.js +45 -0
- package/dist/types/session/outcome.js.map +1 -0
- package/dist/types/session/prepare-step.d.ts +2 -0
- package/dist/types/session/prepare-step.d.ts.map +1 -1
- package/dist/types/session/records.d.ts +167 -2
- package/dist/types/session/records.d.ts.map +1 -1
- package/dist/types/session/records.js +42 -0
- package/dist/types/session/records.js.map +1 -1
- package/dist/types/session/turn.d.ts +18 -0
- package/dist/types/session/turn.d.ts.map +1 -1
- package/dist/types/session/turn.js.map +1 -1
- package/dist/types/tool/index.d.ts +30 -0
- package/dist/types/tool/index.d.ts.map +1 -1
- package/dist/types/tool/index.js.map +1 -1
- package/dist/types/tool/presentation.d.ts +6 -0
- package/dist/types/tool/presentation.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/agents/QueryAgent.ts +5 -0
- package/src/agents/examples/SupervisorAgent.ts +1 -0
- package/src/agents/explore.ts +2 -1
- package/src/compaction/index.ts +1 -0
- package/src/compaction/model-summary.ts +2 -2
- package/src/compaction/summary.ts +30 -2
- package/src/config/runtime.ts +15 -0
- package/src/execution/workflow/runtime.ts +4 -0
- package/src/execution/workflow/types.ts +9 -0
- package/src/manager/agent/child-session.ts +36 -0
- package/src/manager/agent/lifecycle.ts +9 -0
- package/src/manager/session/turn-recorder.ts +115 -30
- package/src/pricing/rates.source.json +1 -1
- package/src/prompt/coding-agent-doctrine.ts +5 -3
- package/src/provider/fallback.ts +6 -1
- package/src/provider/retry.ts +51 -0
- package/src/public-runtime.ts +10 -1
- package/src/public-tools.ts +6 -1
- package/src/runtime/query/auto-review/classifier.ts +21 -5
- package/src/runtime/query/auto-review/prompt.ts +2 -0
- package/src/runtime/query/auto-review/script-evidence.ts +618 -0
- package/src/runtime/query/checkpoint.ts +53 -1
- package/src/runtime/query/context.ts +33 -6
- package/src/runtime/query/executor.ts +183 -21
- package/src/runtime/query/finalize-turn.ts +8 -1
- package/src/runtime/query/index.ts +19 -0
- package/src/runtime/query/iteration/index.ts +167 -14
- package/src/runtime/query/iteration/phases/compaction.ts +53 -3
- package/src/runtime/query/iteration/phases/context.ts +6 -0
- package/src/runtime/query/iteration/stream-turn.ts +3 -3
- package/src/runtime/query/prelude-lease.ts +19 -0
- package/src/runtime/query/prepare-turn.ts +29 -12
- package/src/runtime/query/review-policy.ts +33 -0
- package/src/runtime/query/session-storage.ts +42 -3
- package/src/runtime/query/tooling.ts +3 -0
- package/src/runtime/query/turn/completion-audit.ts +76 -5
- package/src/runtime/query/turn/outcome-ledger.ts +633 -0
- package/src/sandbox/file-walk.ts +41 -4
- package/src/sandbox/glob-segment.ts +48 -24
- package/src/store/checkpoint/contract.ts +15 -0
- package/src/store/checkpoint/disk.ts +34 -2
- package/src/store/checkpoint/prune.ts +13 -0
- package/src/store/evidence/disk.ts +57 -2
- package/src/store/session-log/incremental.ts +147 -0
- package/src/store/session-log/index.ts +7 -0
- package/src/store/session-log/turn-outcome.ts +84 -0
- package/src/tools/admit-facts.ts +1 -0
- package/src/tools/builtins/bash.ts +12 -2
- package/src/tools/builtins/bounded-file-read.ts +59 -2
- package/src/tools/builtins/edit-apply.ts +26 -4
- package/src/tools/builtins/edit.ts +106 -41
- package/src/tools/builtins/glob.ts +1 -1
- package/src/tools/builtins/grep.ts +173 -27
- package/src/tools/builtins/notebook-guard.ts +76 -0
- package/src/tools/builtins/read-render.ts +12 -2
- package/src/tools/builtins/search-support.ts +62 -0
- package/src/tools/builtins/write-file.ts +12 -1
- package/src/tools/coordinator/agent.ts +31 -7
- package/src/tools/coordinator/index.ts +6 -1
- package/src/tools/coordinator/outcome-record.ts +93 -0
- package/src/tools/defineTool.ts +3 -0
- package/src/tools/file-read-tracker.ts +51 -2
- package/src/tools/untrusted-envelope.ts +23 -1
- package/src/toolsets/manager.ts +6 -10
- package/src/toolsets/validation-issues.ts +97 -0
- package/src/turn/memory-recall.ts +28 -0
- package/src/types/agent/base.ts +20 -0
- package/src/types/agent/query.ts +2 -0
- package/src/types/common/index.ts +25 -1
- package/src/types/hitl/index.ts +27 -0
- package/src/types/session/config.ts +20 -0
- package/src/types/session/events.ts +3 -3
- package/src/types/session/index.ts +1 -0
- package/src/types/session/outcome.ts +139 -0
- package/src/types/session/prepare-step.ts +2 -0
- package/src/types/session/records.ts +67 -1
- package/src/types/session/turn.ts +19 -0
- package/src/types/tool/index.ts +30 -0
- package/src/types/tool/presentation.ts +6 -0
|
@@ -5,11 +5,29 @@
|
|
|
5
5
|
*
|
|
6
6
|
* It blocks at most once per turn. After the one reminder the turn may end
|
|
7
7
|
* however it likes, so the audit can never trap a run.
|
|
8
|
+
*
|
|
9
|
+
* The one reminder has four wordings. The original says nothing was run; when
|
|
10
|
+
* the turn's outcome record says more, the reminder says exactly that: a check
|
|
11
|
+
* ran with its exit status hidden, a check passed and files then changed, or a
|
|
12
|
+
* check failed. Which wording is used never changes how often the audit fires.
|
|
8
13
|
*/
|
|
14
|
+
import type { TurnOutcome } from '../../../types/session/outcome.js';
|
|
15
|
+
/** Tools that write to the project regardless of their input. */
|
|
16
|
+
export declare const WRITING_TOOLS: ReadonlySet<string>;
|
|
9
17
|
/** Whether a shell command is one that checks work. */
|
|
10
18
|
export declare function isVerificationCommand(command: string): boolean;
|
|
11
19
|
/** Said to the model once, when it tries to end a turn that changed files and checked nothing. */
|
|
12
20
|
export declare const COMPLETION_AUDIT_MESSAGE = "Files were changed in this turn and nothing was run afterwards to check them. Before you finish: rerun the reproduction of the defect, if there was one; run the project's tests and its lint or format check; confirm the diff holds only what was asked; name any throwaway file you made. Then give your answer, stating what you ran and what you did not run. If a check cannot be run here, say which and why.";
|
|
21
|
+
/** The longest command a reminder repeats back, in characters. */
|
|
22
|
+
export declare const COMPLETION_AUDIT_MAX_COMMAND_CHARS = 120;
|
|
23
|
+
/** The command as a reminder may show it: one line, printable, backticks dropped, at most 120 characters. */
|
|
24
|
+
export declare function auditCommandText(command: string): string;
|
|
25
|
+
/** The reminder for a check that ran with its exit status hidden (a pipe, `;`, `||`, a trailing `&`). */
|
|
26
|
+
export declare function maskedCheckMessage(command: string): string;
|
|
27
|
+
/** The reminder for a check that passed before files changed again. */
|
|
28
|
+
export declare function staleCheckMessage(command: string | undefined): string;
|
|
29
|
+
/** The reminder for a check whose latest run failed. */
|
|
30
|
+
export declare function failingCheckMessage(command: string | undefined): string;
|
|
13
31
|
/** A finished tool call as the audit sees it. */
|
|
14
32
|
export interface AuditedCall {
|
|
15
33
|
readonly toolName: string;
|
|
@@ -23,9 +41,17 @@ export declare class CompletionAudit {
|
|
|
23
41
|
private blocked;
|
|
24
42
|
/** Feed the calls of one finished step, in order. */
|
|
25
43
|
observe(calls: readonly AuditedCall[]): void;
|
|
44
|
+
/**
|
|
45
|
+
* The reminder to give, or `undefined` when the turn may end. At most one per
|
|
46
|
+
* turn across every wording: asking records the block. Nothing is said for a
|
|
47
|
+
* turn that changed no file through a write tool. `outcome` is read only
|
|
48
|
+
* when the audit has something to say.
|
|
49
|
+
*/
|
|
50
|
+
takeReminder(outcome?: () => TurnOutcome | undefined): string | undefined;
|
|
26
51
|
/**
|
|
27
52
|
* Whether the turn must be held back from ending. True at most once: asking
|
|
28
|
-
* records the block.
|
|
53
|
+
* records the block. This is `takeReminder()` without an outcome record, kept
|
|
54
|
+
* for callers that only need the yes or no.
|
|
29
55
|
*/
|
|
30
56
|
takeBlock(): boolean;
|
|
31
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion-audit.d.ts","sourceRoot":"","sources":["../../../../src/runtime/query/turn/completion-audit.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"completion-audit.d.ts","sourceRoot":"","sources":["../../../../src/runtime/query/turn/completion-audit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAEpE,iEAAiE;AACjE,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,MAAM,CAK5C,CAAA;AAWF,uDAAuD;AACvD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED,kGAAkG;AAClG,eAAO,MAAM,wBAAwB,yZACkX,CAAA;AAEvZ,kEAAkE;AAClE,eAAO,MAAM,kCAAkC,MAAM,CAAA;AAErD,6GAA6G;AAC7G,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CASxD;AAKD,yGAAyG;AACzG,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,uEAAuE;AACvE,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAGrE;AAED,wDAAwD;AACxD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAGvE;AAED,iDAAiD;AACjD,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,gDAAgD;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,qBAAa,eAAe;IAC3B,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,OAAO,CAAQ;IAEvB,qDAAqD;IACrD,OAAO,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,GAAG,IAAI;IAiB5C;;;;;OAKG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS;IAmBzE;;;;OAIG;IACH,SAAS,IAAI,OAAO;CAGpB"}
|
|
@@ -5,9 +5,19 @@
|
|
|
5
5
|
*
|
|
6
6
|
* It blocks at most once per turn. After the one reminder the turn may end
|
|
7
7
|
* however it likes, so the audit can never trap a run.
|
|
8
|
+
*
|
|
9
|
+
* The one reminder has four wordings. The original says nothing was run; when
|
|
10
|
+
* the turn's outcome record says more, the reminder says exactly that: a check
|
|
11
|
+
* ran with its exit status hidden, a check passed and files then changed, or a
|
|
12
|
+
* check failed. Which wording is used never changes how often the audit fires.
|
|
8
13
|
*/
|
|
9
14
|
/** Tools that write to the project regardless of their input. */
|
|
10
|
-
const WRITING_TOOLS = new Set([
|
|
15
|
+
export const WRITING_TOOLS = new Set([
|
|
16
|
+
'edit',
|
|
17
|
+
'write',
|
|
18
|
+
'apply_patch',
|
|
19
|
+
'notebook_edit',
|
|
20
|
+
]);
|
|
11
21
|
/**
|
|
12
22
|
* A command that checks work: a project runner invoked with a test, lint,
|
|
13
23
|
* typecheck, format-check or build target, or a checker invoked directly.
|
|
@@ -20,6 +30,35 @@ export function isVerificationCommand(command) {
|
|
|
20
30
|
}
|
|
21
31
|
/** Said to the model once, when it tries to end a turn that changed files and checked nothing. */
|
|
22
32
|
export const COMPLETION_AUDIT_MESSAGE = "Files were changed in this turn and nothing was run afterwards to check them. Before you finish: rerun the reproduction of the defect, if there was one; run the project's tests and its lint or format check; confirm the diff holds only what was asked; name any throwaway file you made. Then give your answer, stating what you ran and what you did not run. If a check cannot be run here, say which and why.";
|
|
33
|
+
/** The longest command a reminder repeats back, in characters. */
|
|
34
|
+
export const COMPLETION_AUDIT_MAX_COMMAND_CHARS = 120;
|
|
35
|
+
/** The command as a reminder may show it: one line, printable, backticks dropped, at most 120 characters. */
|
|
36
|
+
export function auditCommandText(command) {
|
|
37
|
+
let plain = '';
|
|
38
|
+
for (const ch of command) {
|
|
39
|
+
const code = ch.charCodeAt(0);
|
|
40
|
+
plain += code < 0x20 || code === 0x7f || ch === '`' ? ' ' : ch;
|
|
41
|
+
}
|
|
42
|
+
const flat = plain.replace(/\s+/g, ' ').trim();
|
|
43
|
+
if (flat.length <= COMPLETION_AUDIT_MAX_COMMAND_CHARS)
|
|
44
|
+
return flat;
|
|
45
|
+
return `${flat.slice(0, COMPLETION_AUDIT_MAX_COMMAND_CHARS - 3)}...`;
|
|
46
|
+
}
|
|
47
|
+
const AUDIT_TAIL = 'Then give your answer, stating what you ran and what you did not run. If a check cannot be run here, say which and why.';
|
|
48
|
+
/** The reminder for a check that ran with its exit status hidden (a pipe, `;`, `||`, a trailing `&`). */
|
|
49
|
+
export function maskedCheckMessage(command) {
|
|
50
|
+
return `Files were changed in this turn, and a check run, \`${auditCommandText(command)}\`, had its exit status hidden, so it cannot be told whether it passed. Run it again on its own, without the pipe or anything else attached to it; its output is already trimmed to the head and tail. ${AUDIT_TAIL}`;
|
|
51
|
+
}
|
|
52
|
+
/** The reminder for a check that passed before files changed again. */
|
|
53
|
+
export function staleCheckMessage(command) {
|
|
54
|
+
const named = command === undefined ? 'A check' : `\`${auditCommandText(command)}\``;
|
|
55
|
+
return `${named} passed in this turn, but files were changed after it, so it says nothing about the files as they are now. Run the checks again. ${AUDIT_TAIL}`;
|
|
56
|
+
}
|
|
57
|
+
/** The reminder for a check whose latest run failed. */
|
|
58
|
+
export function failingCheckMessage(command) {
|
|
59
|
+
const named = command === undefined ? 'A check' : `\`${auditCommandText(command)}\``;
|
|
60
|
+
return `${named} failed in this turn and has not passed since. Fix what it reports, or say why it cannot pass, and run it again. ${AUDIT_TAIL}`;
|
|
61
|
+
}
|
|
23
62
|
export class CompletionAudit {
|
|
24
63
|
edited = false;
|
|
25
64
|
checkedSinceEdit = false;
|
|
@@ -42,15 +81,41 @@ export class CompletionAudit {
|
|
|
42
81
|
}
|
|
43
82
|
}
|
|
44
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* The reminder to give, or `undefined` when the turn may end. At most one per
|
|
86
|
+
* turn across every wording: asking records the block. Nothing is said for a
|
|
87
|
+
* turn that changed no file through a write tool. `outcome` is read only
|
|
88
|
+
* when the audit has something to say.
|
|
89
|
+
*/
|
|
90
|
+
takeReminder(outcome) {
|
|
91
|
+
if (this.blocked || !this.edited)
|
|
92
|
+
return undefined;
|
|
93
|
+
const record = outcome?.();
|
|
94
|
+
let message;
|
|
95
|
+
const failed = record?.checks.find((check) => check.result === 'failed');
|
|
96
|
+
const masked = record?.checks.find((check) => check.result === 'masked');
|
|
97
|
+
if (record?.verdict === 'failing' && failed)
|
|
98
|
+
message = failingCheckMessage(failed.command);
|
|
99
|
+
else if (record?.verdict === 'stale') {
|
|
100
|
+
message = staleCheckMessage([...record.checks].reverse().find((c) => c.result === 'passed')?.command);
|
|
101
|
+
}
|
|
102
|
+
else if (record?.verdict === 'inconclusive' && masked) {
|
|
103
|
+
message = maskedCheckMessage(masked.command);
|
|
104
|
+
}
|
|
105
|
+
else if (!this.checkedSinceEdit)
|
|
106
|
+
message = COMPLETION_AUDIT_MESSAGE;
|
|
107
|
+
if (message === undefined)
|
|
108
|
+
return undefined;
|
|
109
|
+
this.blocked = true;
|
|
110
|
+
return message;
|
|
111
|
+
}
|
|
45
112
|
/**
|
|
46
113
|
* Whether the turn must be held back from ending. True at most once: asking
|
|
47
|
-
* records the block.
|
|
114
|
+
* records the block. This is `takeReminder()` without an outcome record, kept
|
|
115
|
+
* for callers that only need the yes or no.
|
|
48
116
|
*/
|
|
49
117
|
takeBlock() {
|
|
50
|
-
|
|
51
|
-
return false;
|
|
52
|
-
this.blocked = true;
|
|
53
|
-
return true;
|
|
118
|
+
return this.takeReminder() !== undefined;
|
|
54
119
|
}
|
|
55
120
|
}
|
|
56
121
|
//# sourceMappingURL=completion-audit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion-audit.js","sourceRoot":"","sources":["../../../../src/runtime/query/turn/completion-audit.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"completion-audit.js","sourceRoot":"","sources":["../../../../src/runtime/query/turn/completion-audit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,iEAAiE;AACjE,MAAM,CAAC,MAAM,aAAa,GAAwB,IAAI,GAAG,CAAC;IACzD,MAAM;IACN,OAAO;IACP,aAAa;IACb,eAAe;CACf,CAAC,CAAA;AAEF;;;GAGG;AACH,MAAM,MAAM,GACX,4MAA4M,CAAA;AAC7M,MAAM,MAAM,GACX,0JAA0J,CAAA;AAE3J,uDAAuD;AACvD,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACpD,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AACpD,CAAC;AAED,kGAAkG;AAClG,MAAM,CAAC,MAAM,wBAAwB,GACpC,sZAAsZ,CAAA;AAEvZ,kEAAkE;AAClE,MAAM,CAAC,MAAM,kCAAkC,GAAG,GAAG,CAAA;AAErD,6GAA6G;AAC7G,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC/C,IAAI,KAAK,GAAG,EAAE,CAAA;IACd,KAAK,MAAM,EAAE,IAAI,OAAO,EAAE,CAAC;QAC1B,MAAM,IAAI,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;QAC7B,KAAK,IAAI,IAAI,GAAG,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;IAC/D,CAAC;IACD,MAAM,IAAI,GAAG,KAAK,CAA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AAQ,CAAC,EAAE,OAAO,CACxE,CAAA;QACF,CAAC;aAAM,IAAI,MAAM,EAAE,OAAO,KAAK,cAAc,IAAI,MAAM,EAAE,CAAC;YACzD,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QAC7C,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB;YAAE,OAAO,GAAG,wBAAwB,CAAA;QACrE,IAAI,OAAO,KAAK,SAAS;YAAE,OAAO,SAAS,CAAA;QAC3C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;QACnB,OAAO,OAAO,CAAA;IACf,CAAC;IAED;;;;OAIG;IACH,SAAS;QACR,OAAO,IAAI,CAAC,YAAY,EAAE,KAAK,SAAS,CAAA;IACzC,CAAC;CACD"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The turn's outcome record: what changed in the workspace, what was run to
|
|
3
|
+
* check it, and whether the last word of each check was said about the
|
|
4
|
+
* workspace as the turn left it.
|
|
5
|
+
*
|
|
6
|
+
* It is derived from the turn's own tool calls and, when the host supplies a
|
|
7
|
+
* change detector, from the workspace itself. Never from what the model says.
|
|
8
|
+
* Nothing here blocks or prolongs a turn; the completion audit keeps its own
|
|
9
|
+
* rule. Every uncertainty is reported as uncertainty: a check whose exit status
|
|
10
|
+
* something else may have decided is `masked`, not `passed`; a detector that
|
|
11
|
+
* cannot answer is `null`, never a match.
|
|
12
|
+
*/
|
|
13
|
+
import { type TurnOutcome, type TurnOutcomeCheckResult, type TurnOutcomeConfig } from '../../../types/session/outcome.js';
|
|
14
|
+
import type { ToolFacts } from '../../../types/tool/index.js';
|
|
15
|
+
/** A finished tool call as the ledger sees it. */
|
|
16
|
+
export interface OutcomeCall {
|
|
17
|
+
readonly toolName: string;
|
|
18
|
+
/** The call's parsed input, when it had one. */
|
|
19
|
+
readonly input?: unknown;
|
|
20
|
+
readonly isError?: boolean;
|
|
21
|
+
/** A hook stopped it before it ran. */
|
|
22
|
+
readonly skipped?: boolean;
|
|
23
|
+
/** The tool declared this call read-only (or it only keeps the task list). */
|
|
24
|
+
readonly readOnly?: boolean;
|
|
25
|
+
/** What the call did, as typed fields. Absent when a hook replaced the output. */
|
|
26
|
+
readonly facts?: ToolFacts;
|
|
27
|
+
}
|
|
28
|
+
/** A call about to run: enough to tell whether it could change the workspace. */
|
|
29
|
+
export interface PendingOutcomeCall {
|
|
30
|
+
readonly toolName: string;
|
|
31
|
+
readonly input?: unknown;
|
|
32
|
+
readonly readOnly?: boolean;
|
|
33
|
+
}
|
|
34
|
+
declare const SNAPSHOT_VERSION = 1;
|
|
35
|
+
/** The part of the ledger a checkpoint keeps, so a resumed turn does not forget what came before it. */
|
|
36
|
+
export interface OutcomeLedgerSnapshot {
|
|
37
|
+
readonly v: typeof SNAPSHOT_VERSION;
|
|
38
|
+
readonly started: boolean;
|
|
39
|
+
readonly startFingerprint: string | null;
|
|
40
|
+
readonly paths: readonly string[];
|
|
41
|
+
readonly writes: number;
|
|
42
|
+
/** Absent in a snapshot written before it existed. */
|
|
43
|
+
readonly unseen?: boolean;
|
|
44
|
+
/** Absent in a snapshot written before it existed. */
|
|
45
|
+
readonly pathless?: number;
|
|
46
|
+
readonly checks: readonly {
|
|
47
|
+
readonly key: string;
|
|
48
|
+
readonly command: string;
|
|
49
|
+
readonly step: number;
|
|
50
|
+
readonly result: TurnOutcomeCheckResult;
|
|
51
|
+
readonly exitCode?: number;
|
|
52
|
+
readonly afterWrite: boolean;
|
|
53
|
+
readonly afterUnknown: boolean;
|
|
54
|
+
readonly fingerprint: string | null;
|
|
55
|
+
}[];
|
|
56
|
+
}
|
|
57
|
+
export declare class OutcomeLedger {
|
|
58
|
+
private readonly config;
|
|
59
|
+
private started;
|
|
60
|
+
private startFingerprint;
|
|
61
|
+
private readonly paths;
|
|
62
|
+
private extraPaths;
|
|
63
|
+
/** Successful writes whose path could not be read; each is a change that cannot be named. */
|
|
64
|
+
private pathless;
|
|
65
|
+
/** A call ran that could change the workspace and is not a write tool: only the detector could say whether it did. */
|
|
66
|
+
private couldHaveChangedUnseen;
|
|
67
|
+
private writes;
|
|
68
|
+
private readonly checks;
|
|
69
|
+
private unrecorded;
|
|
70
|
+
private settled;
|
|
71
|
+
constructor(config?: TurnOutcomeConfig);
|
|
72
|
+
/** False once the record is known to be missing what came before a resume. */
|
|
73
|
+
get recorded(): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* The turn resumed from a checkpoint that carries no ledger. What happened
|
|
76
|
+
* before it is unknown, and a record that began as `unchanged` would be a
|
|
77
|
+
* lie, so the turn reports no outcome at all.
|
|
78
|
+
*/
|
|
79
|
+
markUnrecorded(): void;
|
|
80
|
+
/** Take back what a checkpoint kept. A snapshot that does not parse leaves the turn unrecorded. */
|
|
81
|
+
restore(snapshot: unknown): void;
|
|
82
|
+
/** What a checkpoint should keep. */
|
|
83
|
+
snapshot(): OutcomeLedgerSnapshot;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the call could change the workspace. Anything not provably
|
|
86
|
+
* read-only counts: a tool that does not say, a shell line that is not on
|
|
87
|
+
* the read-only list.
|
|
88
|
+
*/
|
|
89
|
+
private couldChange;
|
|
90
|
+
private detect;
|
|
91
|
+
/**
|
|
92
|
+
* Called with a step's calls before any of them runs. The first call of the
|
|
93
|
+
* turn that could change the workspace takes the starting fingerprint; a turn
|
|
94
|
+
* of provably read-only calls never asks the detector anything.
|
|
95
|
+
*/
|
|
96
|
+
before(calls: readonly PendingOutcomeCall[]): Promise<void>;
|
|
97
|
+
/** Feed the calls of one finished step, in order. */
|
|
98
|
+
observe(step: number, calls: readonly OutcomeCall[]): Promise<void>;
|
|
99
|
+
private afterEveryCheck;
|
|
100
|
+
private recordWrite;
|
|
101
|
+
private recordCheck;
|
|
102
|
+
private judge;
|
|
103
|
+
/** The outcome, once, when the turn ends. `undefined` when the record is not whole. */
|
|
104
|
+
finish(): Promise<TurnOutcome | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* The record as it stands, on the calls basis, without asking the detector
|
|
107
|
+
* and without settling: the turn goes on and `finish` still answers once.
|
|
108
|
+
*/
|
|
109
|
+
peek(): TurnOutcome | undefined;
|
|
110
|
+
private compute;
|
|
111
|
+
}
|
|
112
|
+
export {};
|
|
113
|
+
//# sourceMappingURL=outcome-ledger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outcome-ledger.d.ts","sourceRoot":"","sources":["../../../../src/runtime/query/turn/outcome-ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAMN,KAAK,WAAW,EAEhB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EAEtB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAG7D,kDAAkD;AAClD,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,gDAAgD;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,uCAAuC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,kFAAkF;IAClF,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAC1B;AAED,iFAAiF;AACjF,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAC3B;AA8DD,QAAA,MAAM,gBAAgB,IAAI,CAAA;AAgB1B,wGAAwG;AACxG,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,CAAC,EAAE,OAAO,gBAAg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