@mcoda/codali 0.1.135-codali.41 → 0.1.135-codali.47
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 +140 -0
- package/README.md +8 -0
- package/config/deterministic/node-worker.mjs +15 -2
- package/config/skills/code-implementation/SKILL.md +1 -1
- package/config/skills/planning/SKILL.md +1 -1
- package/config/skills/testing-and-verification/SKILL.md +5 -5
- package/config/skills/ui-ux-design/SKILL.md +1 -1
- package/config/skills/webapp-testing/SKILL.md +4 -0
- package/config/skills/webapp-testing/journey-driver.mjs +186 -0
- package/dist/cli/TerminalCommand.js +2 -2
- package/dist/cli/tui/TerminalPresentation.js +1 -1
- package/dist/config/OrchestrationConfig.d.ts +1 -0
- package/dist/config/OrchestrationConfig.d.ts.map +1 -1
- package/dist/config/OrchestrationConfig.js +3 -1
- package/dist/docdex/DocdexClient.d.ts +11 -0
- package/dist/docdex/DocdexClient.d.ts.map +1 -1
- package/dist/docdex/DocdexClient.js +55 -1
- package/dist/eval/fixtures/ContractReviewProvider.d.ts +5 -0
- package/dist/eval/fixtures/ContractReviewProvider.d.ts.map +1 -1
- package/dist/eval/fixtures/ContractReviewProvider.js +63 -0
- package/dist/eval/fixtures/MixedMediaRecoveryJourney.js +2 -2
- package/dist/eval/fixtures/TerminalRecoveryJourney.js +2 -2
- package/dist/permissions/PermissionGate.d.ts +7 -0
- package/dist/permissions/PermissionGate.d.ts.map +1 -1
- package/dist/permissions/PermissionGate.js +27 -1
- package/dist/providers/ClaudeCliProvider.d.ts.map +1 -1
- package/dist/providers/ClaudeCliProvider.js +1 -0
- package/dist/providers/CodexCliProvider.d.ts.map +1 -1
- package/dist/providers/CodexCliProvider.js +1 -0
- package/dist/providers/ConfiguredProvider.d.ts +2 -0
- package/dist/providers/ConfiguredProvider.d.ts.map +1 -1
- package/dist/providers/ConfiguredProvider.js +29 -0
- package/dist/providers/ModelServiceError.d.ts +16 -2
- package/dist/providers/ModelServiceError.d.ts.map +1 -1
- package/dist/providers/ModelServiceError.js +18 -1
- package/dist/providers/OllamaRemoteProvider.d.ts.map +1 -1
- package/dist/providers/OllamaRemoteProvider.js +1 -0
- package/dist/providers/OpenAiCompatibleProvider.d.ts.map +1 -1
- package/dist/providers/OpenAiCompatibleProvider.js +4 -0
- package/dist/providers/ProviderTypes.d.ts +4 -0
- package/dist/providers/ProviderTypes.d.ts.map +1 -1
- package/dist/runtime/AnswerEdits.d.ts +39 -0
- package/dist/runtime/AnswerEdits.d.ts.map +1 -0
- package/dist/runtime/AnswerEdits.js +134 -0
- package/dist/runtime/AnswerVerification.d.ts.map +1 -1
- package/dist/runtime/AnswerVerification.js +4 -2
- package/dist/runtime/AuditGuards.d.ts +41 -0
- package/dist/runtime/AuditGuards.d.ts.map +1 -0
- package/dist/runtime/AuditGuards.js +81 -0
- package/dist/runtime/CompletionReport.d.ts +4 -2
- package/dist/runtime/CompletionReport.d.ts.map +1 -1
- package/dist/runtime/CompletionReport.js +8 -3
- package/dist/runtime/ContextCompression.d.ts +5 -0
- package/dist/runtime/ContextCompression.d.ts.map +1 -1
- package/dist/runtime/ContextCompression.js +16 -4
- package/dist/runtime/DeliveryDocs.d.ts +21 -0
- package/dist/runtime/DeliveryDocs.d.ts.map +1 -0
- package/dist/runtime/DeliveryDocs.js +148 -0
- package/dist/runtime/FigureCheck.d.ts +61 -2
- package/dist/runtime/FigureCheck.d.ts.map +1 -1
- package/dist/runtime/FigureCheck.js +210 -14
- package/dist/runtime/GatewayRequest.d.ts +13 -0
- package/dist/runtime/GatewayRequest.d.ts.map +1 -1
- package/dist/runtime/GatewayRequest.js +54 -1
- package/dist/runtime/InspectionConvergence.d.ts +4 -0
- package/dist/runtime/InspectionConvergence.d.ts.map +1 -1
- package/dist/runtime/InspectionConvergence.js +24 -1
- package/dist/runtime/InteractionContract.d.ts +15 -0
- package/dist/runtime/InteractionContract.d.ts.map +1 -1
- package/dist/runtime/InteractionContract.js +33 -0
- package/dist/runtime/InteractionRouter.d.ts +3 -3
- package/dist/runtime/InteractionRouter.d.ts.map +1 -1
- package/dist/runtime/InteractionRouter.js +1 -1
- package/dist/runtime/NumericProvenance.d.ts +102 -0
- package/dist/runtime/NumericProvenance.d.ts.map +1 -0
- package/dist/runtime/NumericProvenance.js +411 -0
- package/dist/runtime/OutageWait.d.ts +46 -5
- package/dist/runtime/OutageWait.d.ts.map +1 -1
- package/dist/runtime/OutageWait.js +81 -8
- package/dist/runtime/ResearchEvidence.d.ts +14 -0
- package/dist/runtime/ResearchEvidence.d.ts.map +1 -1
- package/dist/runtime/ResearchEvidence.js +139 -3
- package/dist/runtime/ReviewCoordinator.d.ts +22 -0
- package/dist/runtime/ReviewCoordinator.d.ts.map +1 -1
- package/dist/runtime/ReviewCoordinator.js +203 -25
- package/dist/runtime/ReviewSource.d.ts +5 -0
- package/dist/runtime/ReviewSource.d.ts.map +1 -1
- package/dist/runtime/ReviewSource.js +6 -1
- package/dist/runtime/SessionController.d.ts +85 -10
- package/dist/runtime/SessionController.d.ts.map +1 -1
- package/dist/runtime/SessionController.js +996 -176
- package/dist/runtime/StructuralEvidence.d.ts +10 -0
- package/dist/runtime/StructuralEvidence.d.ts.map +1 -1
- package/dist/runtime/StructuralEvidence.js +10 -0
- package/dist/runtime/TaskReview.d.ts +10 -0
- package/dist/runtime/TaskReview.d.ts.map +1 -1
- package/dist/runtime/TaskReview.js +31 -3
- package/dist/runtime/VerificationCommand.d.ts +8 -0
- package/dist/runtime/VerificationCommand.d.ts.map +1 -1
- package/dist/runtime/VerificationCommand.js +114 -0
- package/dist/runtime/WorkingStyle.d.ts +20 -0
- package/dist/runtime/WorkingStyle.d.ts.map +1 -0
- package/dist/runtime/WorkingStyle.js +71 -0
- package/dist/tools/ToolRegistry.d.ts.map +1 -1
- package/dist/tools/ToolRegistry.js +30 -4
- package/dist/tools/ToolTypes.d.ts +3 -0
- package/dist/tools/ToolTypes.d.ts.map +1 -1
- package/dist/tools/browser/BrowserTool.d.ts +23 -1
- package/dist/tools/browser/BrowserTool.d.ts.map +1 -1
- package/dist/tools/browser/BrowserTool.js +83 -4
- package/dist/tools/browser/BrowserWorker.js +142 -2
- package/dist/tools/browser/HttpFallback.d.ts +39 -0
- package/dist/tools/browser/HttpFallback.d.ts.map +1 -0
- package/dist/tools/browser/HttpFallback.js +240 -0
- package/dist/tools/calculation/CalculatorTool.d.ts +16 -1
- package/dist/tools/calculation/CalculatorTool.d.ts.map +1 -1
- package/dist/tools/calculation/CalculatorTool.js +321 -26
- package/dist/tools/deterministic/DeterministicTools.js +1 -1
- package/dist/tools/deterministic/node-worker.cjs +10 -10
- package/dist/tools/shell/AsyncProcess.d.ts +2 -0
- package/dist/tools/shell/AsyncProcess.d.ts.map +1 -1
- package/dist/tools/shell/AsyncProcess.js +38 -5
- package/dist/tools/shell/IsolatedExecutor.d.ts +29 -1
- package/dist/tools/shell/IsolatedExecutor.d.ts.map +1 -1
- package/dist/tools/shell/IsolatedExecutor.js +179 -9
- package/dist/tools/shell/ShellTool.d.ts +2 -0
- package/dist/tools/shell/ShellTool.d.ts.map +1 -1
- package/dist/tools/shell/ShellTool.js +33 -3
- package/dist/tools/verification/CodeRunTool.d.ts +19 -0
- package/dist/tools/verification/CodeRunTool.d.ts.map +1 -0
- package/dist/tools/verification/CodeRunTool.js +104 -0
- package/dist/tools/verification/JavaScriptVerificationTool.d.ts.map +1 -1
- package/dist/tools/verification/JavaScriptVerificationTool.js +21 -10
- package/dist/tools/verification/VitestTool.d.ts +27 -0
- package/dist/tools/verification/VitestTool.d.ts.map +1 -1
- package/dist/tools/verification/VitestTool.js +232 -18
- package/package.json +3 -3
|
@@ -2,7 +2,9 @@ import { createHash } from "node:crypto";
|
|
|
2
2
|
import { prepareReviewContract, reviewContractSources } from "./ReviewContract.js";
|
|
3
3
|
import { reviewPromptContext } from "./TaskReviewContext.js";
|
|
4
4
|
import { runTaskReview } from "./TaskReview.js";
|
|
5
|
+
import { REVIEW_PAGE_CHARS } from "./ReviewSource.js";
|
|
5
6
|
import { validationOutputExcerpt } from "./ValidationOutput.js";
|
|
7
|
+
import { isDeliveryDocument } from "./DeliveryDocs.js";
|
|
6
8
|
export function reviewWorkspaceHash(hashes) {
|
|
7
9
|
return createHash("sha256").update(JSON.stringify(Object.fromEntries(Object.entries(hashes)
|
|
8
10
|
.sort(([a], [b]) => a.localeCompare(b))))).digest("hex");
|
|
@@ -14,7 +16,30 @@ const reviewInstructions = [
|
|
|
14
16
|
{ role: "system", content: "taskAssessments are controller-recorded successful reviews of the identified task criteria at this exact workspaceSnapshotHash during this verification. Their sourcePaths were reviewed in those task scopes and remain available for sourceRequests. Use these assessments for already-reviewed criteria in later scoped reviews as well as integration; inspect the source needed for this task's own behavior and cross-task interactions. For integration, check the complete original goal, global constraints, architecture, cross-task interactions and remaining deliverables using these fresh assessments plus the current evidence. Do not demand an already assessed module's entire source merely to repeat its scoped review; request the specific files needed to investigate an integration defect. An assessment never certifies a different criterion, snapshot or missing deliverable. Empty findings still require sufficient evidence for every obligation." },
|
|
15
17
|
{ role: "system", content: "contractChecklist.checks preserves every prepared check. Each check's quoteId refers to the exact sourceId and contractQuote in contractChecklist.quotes. Identical quotations from the same source are stored once; every expectedBehavior remains separate. Follow those references when comparing a check to its authoritative text." },
|
|
16
18
|
{ role: "system", content: "When checklistBatch is present, this is one bounded portion of the prepared checklist, with the complete original contract and current evidence retained. Scrutinize every check in this portion and its interactions with the original contract. Other prepared checks are reviewed separately against this same snapshot; the controller requires every portion to pass. Your verdict covers this portion, never acceptance of an unreviewed portion. Do not reject solely because other checklist portions are absent; reject any actual defect or insufficient evidence for the checks you are reviewing. The complete original requirements remain authoritative in every portion." },
|
|
19
|
+
{ role: "system", content: 'An approval must prove every check in contractChecklist.checks. Add "evidence" to a passing verdict: {"passed":true,"findings":[],"evidence":{"<check id>":[{"receipt":"<receipt id>","observed":"text copied exactly from that receipt output"} or {"path":"<sourceRoles path>","quote":"text copied exactly from that file"}]}}. The controller confirms each quotation against the receipt output or the current file and rejects the approval when a check has none that matches. A quotation must be about the check (share its words). For a check that a named file stays unchanged, cite {"unchanged":"<that path>"}; the controller confirms the work did not change it. A non-goal is met by absence and needs no citation; reject the approval if the work does it. For behaviour a user or client sees (a page, an API response, a refusal, a state after reload), cite receipt output that shows it; a passing test proves only what its output or its assertions show. A source quote proves what that code does: quote the lines that implement the check, not a comment, a plan or the requirement text. When requirements say an action is unavailable or blocked and explained, only a visible disabled control or notice that states the reason meets it; a missing control is a defect. A check you cannot prove from the evidence is a blocking finding, not an approval.' },
|
|
20
|
+
{ role: "system", content: "Checks whose sourceId starts with delivered: are statements from a document delivered with the work (a README or delivery notes). Pass such a check only when source or receipt evidence shows the statement is true of the current build; a different number, duration or limit, a feature that is absent, or a check that never ran is a blocking finding that names the document and the statement. The document cannot prove its own statements." },
|
|
17
21
|
];
|
|
22
|
+
/** Checks of one requirement area are reviewed together, and one call reviews
|
|
23
|
+
* at most this many. A single call over 52 checks passed a build that omitted
|
|
24
|
+
* two of them; smaller portions keep each clause in view. */
|
|
25
|
+
export const REVIEW_CHECKS_PER_CALL = 8;
|
|
26
|
+
export const MAX_REVIEW_BATCHES = 64;
|
|
27
|
+
const MIN_QUOTE_CHARS = 8;
|
|
28
|
+
const normalText = (text) => text.replace(/\s+/g, " ").trim();
|
|
29
|
+
const STOP_WORDS = new Set(("the and for with that this from must should shall will when each are not any all its into than then them they their "
|
|
30
|
+
+ "has have had was were been being can may also only does did done use used uses using via per such other more most some same "
|
|
31
|
+
+ "const let var function return export import async await true false null undefined new class def self this end").split(" "));
|
|
32
|
+
/** Content words of a text: identifiers are split at camelCase and
|
|
33
|
+
* snake_case, words are stemmed to five letters, numbers of three or more
|
|
34
|
+
* digits (a status code, a port, a limit) are kept, common words dropped. */
|
|
35
|
+
export const contentWords = (text) => new Set(text.replace(/([a-z])([A-Z0-9])|([0-9])([A-Za-z])/g, "$1$3 $2$4").toLowerCase()
|
|
36
|
+
.split(/[^a-z0-9]+/).filter(word => /^\d{3,}$/.test(word) || /^[a-z]{3,}$/.test(word) && !STOP_WORDS.has(word))
|
|
37
|
+
.map(word => /^\d/.test(word) ? word : (word.length > 4 ? word.replace(/(?:ing|ed|es|s)$/, "") : word).slice(0, 5)));
|
|
38
|
+
/** Whether a cited quotation is about the check at all: it shares a content word with it. */
|
|
39
|
+
export const sharesContent = (quote, reference) => {
|
|
40
|
+
const words = contentWords(reference);
|
|
41
|
+
return [...contentWords(quote)].some(word => words.has(word));
|
|
42
|
+
};
|
|
18
43
|
/** Review one scope without loading every sibling's source into the prompt.
|
|
19
44
|
* Assessments are created only by the controller after separate successful
|
|
20
45
|
* reviews; the caller must fence the complete snapshot before accepting them. */
|
|
@@ -31,7 +56,13 @@ export async function reviewTaskScope(options) {
|
|
|
31
56
|
return { passed: false, findings: contract.findings };
|
|
32
57
|
const quotes = {};
|
|
33
58
|
const quoteIds = new Map();
|
|
34
|
-
|
|
59
|
+
// Statements with numbers or settings come first when they must be sampled.
|
|
60
|
+
const delivered = (options.scope.reviewScope === "whole_goal" ? options.deliveredClaims ?? [] : [])
|
|
61
|
+
.map((claim, order) => ({ claim, order, weight: /\d/.test(claim.text) ? 0 : 1 }))
|
|
62
|
+
.sort((a, b) => a.weight - b.weight || a.order - b.order)
|
|
63
|
+
.map(({ claim }) => ({ sourceId: `delivered:${claim.path}`,
|
|
64
|
+
contractQuote: claim.text, expectedBehavior: "This statement in the delivered document is true of the current build." }));
|
|
65
|
+
const allChecks = [...contract.checks, ...delivered].map(({ sourceId, contractQuote, expectedBehavior }, index) => {
|
|
35
66
|
const key = JSON.stringify([sourceId, contractQuote]);
|
|
36
67
|
let quoteId = quoteIds.get(key);
|
|
37
68
|
if (quoteId === undefined) {
|
|
@@ -39,8 +70,9 @@ export async function reviewTaskScope(options) {
|
|
|
39
70
|
quoteIds.set(key, quoteId);
|
|
40
71
|
quotes[quoteId] = { sourceId, contractQuote };
|
|
41
72
|
}
|
|
42
|
-
return { quoteId, expectedBehavior };
|
|
73
|
+
return { id: `C${index + 1}`, quoteId, expectedBehavior };
|
|
43
74
|
});
|
|
75
|
+
let checks = allChecks;
|
|
44
76
|
const assessedPaths = new Set(assessments.flatMap(value => value.sourcePaths));
|
|
45
77
|
// A later report/integration review can inspect an already assessed module
|
|
46
78
|
// without attributing its edits or requirements to the current task.
|
|
@@ -69,34 +101,179 @@ export async function reviewTaskScope(options) {
|
|
|
69
101
|
// Bound generated aids independently of authoritative requirements. Every
|
|
70
102
|
// batch retains the full contract and requires its own successful verdict;
|
|
71
103
|
// a large checklist cannot crowd out all source or silently lose checks.
|
|
104
|
+
// Batches follow requirement areas (the checks' source) and hold at most
|
|
105
|
+
// REVIEW_CHECKS_PER_CALL checks.
|
|
72
106
|
const checklistLimit = options.maxInputChars - Math.min(16000, Math.floor(options.maxInputChars / 4));
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
107
|
+
const portionLimit = Math.max(1, Math.min(MAX_REVIEW_BATCHES, Math.floor(options.maxPortions ?? MAX_REVIEW_BATCHES)));
|
|
108
|
+
input.checklistBatch = allChecks.length > REVIEW_CHECKS_PER_CALL ? { index: MAX_REVIEW_BATCHES - 1, count: MAX_REVIEW_BATCHES, totalChecks: allChecks.length } : undefined;
|
|
109
|
+
const fits = (selected) => { input.contractChecklist = checklist(selected); return JSON.stringify(messages()).length <= checklistLimit; };
|
|
110
|
+
const plan = (selected, perCall) => {
|
|
111
|
+
const areas = new Map();
|
|
112
|
+
for (const check of selected) {
|
|
113
|
+
const area = quotes[check.quoteId].sourceId;
|
|
114
|
+
areas.set(area, [...areas.get(area) ?? [], check]);
|
|
115
|
+
}
|
|
116
|
+
const chunks = [...areas.values()].flatMap(area => Array.from({ length: Math.ceil(area.length / perCall) }, (_, i) => area.slice(i * perCall, (i + 1) * perCall)));
|
|
117
|
+
const planned = [];
|
|
78
118
|
let batch = [];
|
|
79
|
-
for (const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
119
|
+
for (const chunk of chunks) {
|
|
120
|
+
if (batch.length && (batch.length + chunk.length > perCall || !fits([...batch, ...chunk]))) {
|
|
121
|
+
planned.push(batch);
|
|
122
|
+
batch = [];
|
|
123
|
+
}
|
|
124
|
+
for (const check of chunk) {
|
|
125
|
+
if (batch.length && !fits([...batch, check])) {
|
|
126
|
+
planned.push(batch);
|
|
84
127
|
batch = [];
|
|
85
128
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
findings: ["Required review authority and one checklist item exceed the configured evidence budget. Split the task or select a larger compatible reviewer; acceptance is not established."] };
|
|
129
|
+
if (!batch.length && !fits([check]))
|
|
130
|
+
return "oversized";
|
|
131
|
+
batch.push(check);
|
|
90
132
|
}
|
|
91
|
-
batch.push(check);
|
|
92
133
|
}
|
|
93
134
|
if (batch.length)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
135
|
+
planned.push(batch);
|
|
136
|
+
return planned;
|
|
137
|
+
};
|
|
138
|
+
// Portions never grow past REVIEW_CHECKS_PER_CALL: one call over dozens of
|
|
139
|
+
// checks is the failure this review replaced. Over the portion budget, the
|
|
140
|
+
// highest-priority checks are reviewed and the rest are reported unreviewed
|
|
141
|
+
// (not rejected): requirements first, then inputs, constraints, delivered
|
|
142
|
+
// statements (those with numbers first) and non-goals.
|
|
143
|
+
const priority = (check) => {
|
|
144
|
+
const source = quotes[check.quoteId].sourceId;
|
|
145
|
+
return /^(?:requirement|goal)\b/.test(source) ? 0 : source.startsWith("input:") ? 1 : source.startsWith("constraint:") ? 2 : source.startsWith("delivered:") ? 3 : 4;
|
|
146
|
+
};
|
|
147
|
+
const ordered = allChecks.map((check, order) => ({ check, order })).sort((a, b) => priority(a.check) - priority(b.check) || a.order - b.order).map(({ check }) => check);
|
|
148
|
+
let batches = plan(checks, REVIEW_CHECKS_PER_CALL);
|
|
149
|
+
if (batches !== "oversized" && batches.length > portionLimit) {
|
|
150
|
+
let low = 0;
|
|
151
|
+
let high = ordered.length;
|
|
152
|
+
while (low < high) {
|
|
153
|
+
const middle = Math.ceil((low + high) / 2);
|
|
154
|
+
const candidate = plan(ordered.slice(0, middle), REVIEW_CHECKS_PER_CALL);
|
|
155
|
+
if (candidate !== "oversized" && candidate.length <= portionLimit)
|
|
156
|
+
low = middle;
|
|
157
|
+
else
|
|
158
|
+
high = middle - 1;
|
|
159
|
+
}
|
|
160
|
+
checks = ordered.slice(0, low);
|
|
161
|
+
batches = plan(checks, REVIEW_CHECKS_PER_CALL);
|
|
98
162
|
}
|
|
163
|
+
if (batches === "oversized")
|
|
164
|
+
return { passed: false,
|
|
165
|
+
findings: ["Required review authority and one checklist item exceed the configured evidence budget. Split the task or select a larger compatible reviewer; acceptance is not established."] };
|
|
166
|
+
const reviewedIds = new Set(checks.map(check => check.id));
|
|
167
|
+
const unreviewed = allChecks.filter(check => !reviewedIds.has(check.id))
|
|
168
|
+
.map(check => ({ id: check.id, sourceId: quotes[check.quoteId].sourceId, expectedBehavior: check.expectedBehavior }));
|
|
169
|
+
// Every cited quotation must exist in the receipt output or current file.
|
|
170
|
+
// A file too large to read whole is checked against the pages shown.
|
|
171
|
+
const shown = new Map();
|
|
172
|
+
const show = (file, content) => shown.set(file, [...shown.get(file) ?? [], normalText(content)]);
|
|
173
|
+
const readSourcePage = async (file, offset) => {
|
|
174
|
+
const page = await options.readSourcePage(file, offset);
|
|
175
|
+
if (!page.unavailable)
|
|
176
|
+
show(file, page.content);
|
|
177
|
+
return page;
|
|
178
|
+
};
|
|
179
|
+
const fileTexts = new Map();
|
|
180
|
+
const fileText = (file) => {
|
|
181
|
+
if (!fileTexts.has(file))
|
|
182
|
+
fileTexts.set(file, options.readSource(file, 128 * 1024)
|
|
183
|
+
.then(source => /^\[(?:missing|binary|large)/.test(source.content) ? undefined : source.truncated ? [] : [normalText(source.content)], () => undefined));
|
|
184
|
+
return fileTexts.get(file).then(texts => texts && [...texts, ...shown.get(file) ?? []]);
|
|
185
|
+
};
|
|
186
|
+
const inputPaths = new Set(authoritativeInputs.map(value => value.id.replace(/^input:/, "")));
|
|
187
|
+
const receiptsById = new Map(options.receipts.map(receipt => [receipt.id, receipt]));
|
|
188
|
+
const answerOnly = !options.scope.changedPaths.length;
|
|
189
|
+
const citationProblem = async (entry, check) => {
|
|
190
|
+
if (!entry || typeof entry !== "object" || Array.isArray(entry))
|
|
191
|
+
return "an evidence entry is not an object";
|
|
192
|
+
const { sourceId, contractQuote } = quotes[check.quoteId];
|
|
193
|
+
const statement = sourceId.startsWith("delivered:");
|
|
194
|
+
const cited = entry;
|
|
195
|
+
const quoted = (value) => typeof value === "string" && normalText(value).length >= MIN_QUOTE_CHARS ? normalText(value) : undefined;
|
|
196
|
+
// A quotation must be about the check, not any eight characters of any file.
|
|
197
|
+
const unrelated = (quote) => sharesContent(quote, `${contractQuote} ${check.expectedBehavior}`) ? undefined
|
|
198
|
+
: `"${quote.slice(0, 80)}" shares no words with this check; quote the lines that show it`;
|
|
199
|
+
if (typeof cited.receipt === "string") {
|
|
200
|
+
const receipt = receiptsById.get(cited.receipt);
|
|
201
|
+
if (!receipt)
|
|
202
|
+
return `receipt ${cited.receipt} is not one of the supplied receipts`;
|
|
203
|
+
const observed = quoted(cited.observed);
|
|
204
|
+
if (!observed)
|
|
205
|
+
return `quote at least ${MIN_QUOTE_CHARS} characters of receipt ${cited.receipt} output in observed`;
|
|
206
|
+
const output = normalText(receipt.output ?? "");
|
|
207
|
+
if (!output.includes(observed))
|
|
208
|
+
return `receipt ${cited.receipt} output does not contain "${observed.slice(0, 80)}"`;
|
|
209
|
+
// A command that reads a delivery document (cat README.md) is not evidence
|
|
210
|
+
// for the document's statements; app output that shows the same text is.
|
|
211
|
+
const readsDocument = (JSON.stringify(receipt.args ?? "").match(/[\w./-]+\.(?:md|markdown|mdx|rst)\b/gi) ?? []).some(file => isDeliveryDocument(file.replace(/^\.\//, "")));
|
|
212
|
+
if (statement && readsDocument && output.includes(normalText(contractQuote)))
|
|
213
|
+
return `receipt ${cited.receipt} prints the document's statement; it does not show the build doing it`;
|
|
214
|
+
return unrelated(observed);
|
|
215
|
+
}
|
|
216
|
+
if (typeof cited.path === "string") {
|
|
217
|
+
if (!reviewPaths.includes(cited.path))
|
|
218
|
+
return `${cited.path} is not a review source`;
|
|
219
|
+
if (inputPaths.has(cited.path))
|
|
220
|
+
return `${cited.path} states the requirements; it is not evidence of the build`;
|
|
221
|
+
if (statement && isDeliveryDocument(cited.path))
|
|
222
|
+
return `${cited.path} is a delivered document; a document cannot prove a document's statement`;
|
|
223
|
+
const texts = await fileText(cited.path);
|
|
224
|
+
if (texts === undefined)
|
|
225
|
+
return `${cited.path} is not available for a quotation check; cite a receipt`;
|
|
226
|
+
// A file shorter than the minimum quotation can be quoted whole.
|
|
227
|
+
const whole = typeof cited.quote === "string" && normalText(cited.quote) !== "" && texts.some(text => text === normalText(cited.quote));
|
|
228
|
+
const quote = whole ? normalText(cited.quote) : quoted(cited.quote);
|
|
229
|
+
if (!quote)
|
|
230
|
+
return `quote at least ${MIN_QUOTE_CHARS} characters of ${cited.path}`;
|
|
231
|
+
if (!texts.some(text => text.includes(quote)))
|
|
232
|
+
return `"${quote.slice(0, 80)}" does not appear in ${cited.path}`;
|
|
233
|
+
return whole ? undefined : unrelated(quote);
|
|
234
|
+
}
|
|
235
|
+
// "Preserve USER_NOTES.md": the controller knows whether the work changed it.
|
|
236
|
+
if (typeof cited.unchanged === "string") {
|
|
237
|
+
const file = cited.unchanged;
|
|
238
|
+
const named = [file, file.split("/").pop()].some(name => name.length >= 3 && `${contractQuote} ${check.expectedBehavior}`.includes(name));
|
|
239
|
+
if (!named)
|
|
240
|
+
return `${file} is not a file this check names`;
|
|
241
|
+
return options.scope.changedPaths.includes(file) || options.scope.otherTaskChangedPaths.includes(file) ? `${file} was changed by this work` : undefined;
|
|
242
|
+
}
|
|
243
|
+
if (answerOnly && typeof cited.summary === "string") {
|
|
244
|
+
const quote = quoted(cited.summary);
|
|
245
|
+
// The proposed answer is the deliverable itself; its words need not echo the request.
|
|
246
|
+
return quote && normalText(options.summary).includes(quote) ? undefined : "the quoted text does not appear in the proposed answer";
|
|
247
|
+
}
|
|
248
|
+
return 'cite {"receipt","observed"}, {"path","quote"} or {"unchanged"}';
|
|
249
|
+
};
|
|
250
|
+
const approve = (selected) => async (verdict) => {
|
|
251
|
+
const evidence = verdict.evidence && typeof verdict.evidence === "object" && !Array.isArray(verdict.evidence) ? verdict.evidence : {};
|
|
252
|
+
const problems = [];
|
|
253
|
+
for (const check of selected) {
|
|
254
|
+
// A non-goal ("add no payroll features") is met by absence: nothing to quote.
|
|
255
|
+
if (quotes[check.quoteId].sourceId.startsWith("nonGoal:"))
|
|
256
|
+
continue;
|
|
257
|
+
const value = evidence[check.id];
|
|
258
|
+
const entries = Array.isArray(value) ? value : value === undefined ? [] : [value];
|
|
259
|
+
const reasons = [];
|
|
260
|
+
for (const entry of entries) {
|
|
261
|
+
const reason = await citationProblem(entry, check);
|
|
262
|
+
if (!reason) {
|
|
263
|
+
reasons.length = 0;
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
reasons.push(reason);
|
|
267
|
+
}
|
|
268
|
+
if (!entries.length)
|
|
269
|
+
reasons.push("no evidence cited");
|
|
270
|
+
if (reasons.length)
|
|
271
|
+
problems.push(`Unproven ${check.id} (${quotes[check.quoteId].sourceId}: ${check.expectedBehavior.slice(0, 200)}): ${reasons.join("; ")}. Show it with a test or journey step whose output demonstrates it, or fix the implementation, then verify again.`);
|
|
272
|
+
}
|
|
273
|
+
return problems;
|
|
274
|
+
};
|
|
99
275
|
for (const [index, batch] of batches.entries()) {
|
|
276
|
+
options.onPortion?.();
|
|
100
277
|
options.signal?.throwIfAborted();
|
|
101
278
|
input.contractChecklist = checklist(batch);
|
|
102
279
|
input.checklistBatch = batches.length > 1 ? { index, count: batches.length, totalChecks: checks.length } : undefined;
|
|
@@ -109,12 +286,13 @@ export async function reviewTaskScope(options) {
|
|
|
109
286
|
for (const file of initialPaths) {
|
|
110
287
|
if (remaining <= 0)
|
|
111
288
|
break;
|
|
112
|
-
const evidence = await options.readSource(file, Math.min(
|
|
289
|
+
const evidence = await options.readSource(file, Math.min(REVIEW_PAGE_CHARS, Math.floor(remaining / 2)));
|
|
113
290
|
const addedChars = JSON.stringify({ [file]: evidence.content }).length + 32;
|
|
114
291
|
if (addedChars > remaining)
|
|
115
292
|
continue;
|
|
116
293
|
input.source[file] = evidence.content;
|
|
117
294
|
remaining -= addedChars;
|
|
295
|
+
show(file, evidence.content);
|
|
118
296
|
if (evidence.truncated)
|
|
119
297
|
input.sourceNextOffsets[file] = evidence.content.length;
|
|
120
298
|
else {
|
|
@@ -124,11 +302,11 @@ export async function reviewTaskScope(options) {
|
|
|
124
302
|
}
|
|
125
303
|
input.sourceTruncatedPaths = [...truncated];
|
|
126
304
|
const result = await runTaskReview({ provider: options.provider, allowedPaths: reviewPaths,
|
|
127
|
-
initialSourceOffsets: input.sourceNextOffsets, readSourcePage
|
|
305
|
+
initialSourceOffsets: input.sourceNextOffsets, readSourcePage,
|
|
128
306
|
maxInputChars: options.maxInputChars, maxOutputTokens: options.maxOutputTokens,
|
|
129
|
-
messages: messages(), signal: options.signal });
|
|
307
|
+
messages: messages(), signal: options.signal, approve: approve(batch) });
|
|
130
308
|
if (!result.passed)
|
|
131
309
|
return result;
|
|
132
310
|
}
|
|
133
|
-
return { passed: true, findings: [] };
|
|
311
|
+
return unreviewed.length ? { passed: true, findings: [], unreviewed } : { passed: true, findings: [] };
|
|
134
312
|
}
|
|
@@ -4,6 +4,11 @@ export declare const readReviewSource: (root: string, relative: string, expected
|
|
|
4
4
|
content: string;
|
|
5
5
|
truncated: boolean;
|
|
6
6
|
}>;
|
|
7
|
+
/** Characters of one source page. At 8,000 a reviewer needed six or seven
|
|
8
|
+
* requests (a model call each) to read one 50k-character file, and ran into
|
|
9
|
+
* its four-round limit before it could decide; the review prompt is still
|
|
10
|
+
* fitted to the model's context after pages are added. */
|
|
11
|
+
export declare const REVIEW_PAGE_CHARS = 24000;
|
|
7
12
|
/** Page offsets refer to redacted text, so repeated reads cannot reconstruct a secret. */
|
|
8
13
|
export declare function readReviewSourcePage(root: string, relative: string, expectedHash: string, offset: number): Promise<ReviewSourcePage>;
|
|
9
14
|
//# sourceMappingURL=ReviewSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewSource.d.ts","sourceRoot":"","sources":["../../src/runtime/ReviewSource.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,kFAAkF;AAClF,eAAO,MAAM,gBAAgB,GAAU,MAAM,MAAM,EAAE,UAAU,MAAM,EAAE,cAAc,MAAM,EAAE,UAAU,MAAM,KAAG,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAyB9J,CAAC;AAEF,0FAA0F;AAC1F,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAQ1I"}
|
|
1
|
+
{"version":3,"file":"ReviewSource.d.ts","sourceRoot":"","sources":["../../src/runtime/ReviewSource.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,kFAAkF;AAClF,eAAO,MAAM,gBAAgB,GAAU,MAAM,MAAM,EAAE,UAAU,MAAM,EAAE,cAAc,MAAM,EAAE,UAAU,MAAM,KAAG,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAyB9J,CAAC;AAEF;;;0DAG0D;AAC1D,eAAO,MAAM,iBAAiB,QAAS,CAAC;AAExC,0FAA0F;AAC1F,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAQ1I"}
|
|
@@ -39,6 +39,11 @@ export const readReviewSource = async (root, relative, expectedHash, maxChars) =
|
|
|
39
39
|
await handle.close();
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
+
/** Characters of one source page. At 8,000 a reviewer needed six or seven
|
|
43
|
+
* requests (a model call each) to read one 50k-character file, and ran into
|
|
44
|
+
* its four-round limit before it could decide; the review prompt is still
|
|
45
|
+
* fitted to the model's context after pages are added. */
|
|
46
|
+
export const REVIEW_PAGE_CHARS = 24000;
|
|
42
47
|
/** Page offsets refer to redacted text, so repeated reads cannot reconstruct a secret. */
|
|
43
48
|
export async function readReviewSourcePage(root, relative, expectedHash, offset) {
|
|
44
49
|
if (!Number.isSafeInteger(offset) || offset < 0)
|
|
@@ -48,7 +53,7 @@ export async function readReviewSourcePage(root, relative, expectedHash, offset)
|
|
|
48
53
|
return { path: relative, offset, content: source.content, truncated: true, unavailable: true };
|
|
49
54
|
if (offset > source.content.length)
|
|
50
55
|
throw new Error(`Review source offset exceeds the file length: ${relative}`);
|
|
51
|
-
const content = source.content.slice(offset, offset +
|
|
56
|
+
const content = source.content.slice(offset, offset + REVIEW_PAGE_CHARS);
|
|
52
57
|
const truncated = offset + content.length < source.content.length;
|
|
53
58
|
return { path: relative, offset, content, truncated, ...(truncated ? { nextOffset: offset + content.length } : {}) };
|
|
54
59
|
}
|
|
@@ -15,7 +15,8 @@ export declare const OPTIONAL_PASS_DELIVERY_MARGIN_MS = 20000;
|
|
|
15
15
|
export declare const todayNotice: (now?: Date) => string;
|
|
16
16
|
export { PREFLIGHT_RECOVERY_WAITS_MS, outageWaitsMs, outageWaitMs, MODEL_OUTAGE_WAIT_MS };
|
|
17
17
|
import { ToolRegistry } from "../tools/ToolRegistry.js";
|
|
18
|
-
import { type
|
|
18
|
+
import { type ProvenanceReport } from "./NumericProvenance.js";
|
|
19
|
+
import { type ToolDefinition, type ToolExecutionResult } from "../tools/ToolTypes.js";
|
|
19
20
|
import { MediaJobStore } from "../connectors/media/MediaJobStore.js";
|
|
20
21
|
import { type RunContext } from "../runcontext/RunContextResolver.js";
|
|
21
22
|
import type { ProjectTaskAuthority } from "@mcoda/shared";
|
|
@@ -34,6 +35,11 @@ export interface SessionControllerOptions {
|
|
|
34
35
|
/** Wall-clock time (epoch ms) at which the host stops this controller. Work
|
|
35
36
|
* winds down before it and ends with a status report instead of an error. */
|
|
36
37
|
deadlineAt?: number;
|
|
38
|
+
/** Share of a research turn's time after which its mid-run draft is written (default RESEARCH_DRAFT_SHARE). */
|
|
39
|
+
researchDraftShare?: number;
|
|
40
|
+
/** Fixed time one model request may stay unanswered before it is abandoned
|
|
41
|
+
* and retried; by default it follows modelStallAllowanceMs. */
|
|
42
|
+
modelStallMs?: number;
|
|
37
43
|
workspaceRoot: string;
|
|
38
44
|
resolved: ResolvedOrchestrationConfig;
|
|
39
45
|
effort?: EffortLevel;
|
|
@@ -50,6 +56,8 @@ export interface SessionControllerOptions {
|
|
|
50
56
|
allowMedia?: boolean;
|
|
51
57
|
allowNetwork?: boolean;
|
|
52
58
|
userInstructionsPath?: string | false;
|
|
59
|
+
/** Follow the user's working style from Docdex personal preferences. Default: config docdex.workingStyle, else on; CODALI_WORKING_STYLE=0 turns it off. Benchmarks pass false. */
|
|
60
|
+
workingStyle?: boolean;
|
|
53
61
|
/** Authenticated host context; repository settings can only narrow tools. */
|
|
54
62
|
runContext?: RunContext;
|
|
55
63
|
projectTaskAuthority?: ProjectTaskAuthority;
|
|
@@ -76,15 +84,31 @@ export declare const searchEngineQuery: (url: unknown) => string | undefined;
|
|
|
76
84
|
/** Time an interactive turn keeps back to write its answer and audit it. Sized
|
|
77
85
|
* from the slowest model call seen: a fixed quarter of the timeout left 45-minute
|
|
78
86
|
* research turns idle for their last 8 minutes while drafting took about 3. */
|
|
87
|
+
/** Share of a research turn's time after which it writes its mid-run draft. */
|
|
88
|
+
export declare const RESEARCH_DRAFT_SHARE = 0.55;
|
|
89
|
+
/** Research goes on after a draft with open points only when at least this much time is left beyond the answer reserve. */
|
|
90
|
+
export declare const RESEARCH_CONTINUE_MIN_MS: number;
|
|
91
|
+
/** Time kept before the limit to hand over the evidence when the final answer did not arrive. */
|
|
92
|
+
export declare const FINAL_DELIVERY_MARGIN_MS = 15000;
|
|
93
|
+
/** Waits before retrying a transcript write the disk had no space for (about 15 minutes in all). */
|
|
94
|
+
export declare const DISK_FULL_WAITS_MS: number[];
|
|
95
|
+
/** A full disk is an outage too: something else filled it and space often comes
|
|
96
|
+
* back (a log rotates, a cache is cleared). The write is retried after waits
|
|
97
|
+
* instead of ending the session on the first ENOSPC; any other error is final. */
|
|
98
|
+
export declare const appendWithSpaceWait: <T>(write: () => Promise<T>, signal?: AbortSignal, waits?: number[]) => Promise<T>;
|
|
79
99
|
export declare const answerReserveMs: (timeoutMs: number, longestModelMs: number) => number;
|
|
80
100
|
/** First-attempt bound for the finalizing call, or undefined when two attempts
|
|
81
|
-
* of at least 1.5x the slowest call (and 90 s) do not fit in the window.
|
|
101
|
+
* of at least 1.5x the slowest call (and 90 s) do not fit in the window. The
|
|
102
|
+
* retry always gets as long as the first attempt: a shorter first attempt
|
|
103
|
+
* would cut a live final answer that is slower than 1.5x the slowest call
|
|
104
|
+
* and leave the retry too little time to write it either. */
|
|
82
105
|
export declare const finalAttemptMs: (windowMs: number, longestModelMs: number) => number | undefined;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
export declare const
|
|
106
|
+
export declare const executedResultText: (tool: string, result: ToolExecutionResult) => string | undefined;
|
|
107
|
+
/** What the model is asked when delivered values lack executed support. */
|
|
108
|
+
export declare const provenanceGuidance: (report: ProvenanceReport) => string;
|
|
109
|
+
/** The request's explicit length limit, as written ("at most 300 words"), if it sets one. */
|
|
110
|
+
export declare const explicitLengthLimit: (request: string) => string | undefined;
|
|
111
|
+
export type RewriteDefect = "tool_call" | "empty" | "envelope_echo" | "shrank" | "grew" | "cut_off" | "lost_sections" | "lost_links";
|
|
88
112
|
/** Why a rewritten answer must not replace its draft, if it must not. Every
|
|
89
113
|
* audit is an edit of a usable draft, so a bad edit keeps the draft. */
|
|
90
114
|
export declare const rewriteDefect: (draft: string, response: {
|
|
@@ -100,7 +124,9 @@ export declare const rewriteDefect: (draft: string, response: {
|
|
|
100
124
|
}, bounds?: {
|
|
101
125
|
minRatio?: number;
|
|
102
126
|
maxRatio?: number;
|
|
103
|
-
|
|
127
|
+
prose?: boolean;
|
|
128
|
+
countLink?: (url: string) => boolean;
|
|
129
|
+
}) => RewriteDefect | undefined;
|
|
104
130
|
export declare const linkKey: (value: string) => string;
|
|
105
131
|
export declare const linksIn: (text: string) => string[];
|
|
106
132
|
/** A link that appears in nothing this investigation retrieved was written from
|
|
@@ -109,14 +135,18 @@ export declare const markUnretrievedLinks: (answer: string, retrieved: ReadonlyS
|
|
|
109
135
|
answer: string;
|
|
110
136
|
unretrieved: string[];
|
|
111
137
|
};
|
|
112
|
-
export declare const UI_JOURNEY_RULE = "A browser journey verifies what the user's action achieved, not only what the page shows:
|
|
138
|
+
export declare const UI_JOURNEY_RULE = "A browser journey verifies what the user's action achieved, not only what the page shows. Run each scenario as a step of the webapp-testing journey driver, which records every network response and console error: an unexpected 4xx/5xx response, failed request or uncaught error fails that step. After each mutation (including logout) confirm the server state by reloading the page. For every role, at least one step reloads a signed-in page and then performs a further mutation through the UI; an API read can add detail but never replaces that reload. Give every action the requirements grant a role a visible control and exercise it as that role. When the requirements say an action is unavailable, blocked or disabled and explained, show a visible disabled control or notice that states the reason, and assert that reason text in the journey; an absent control does not meet that requirement. Give every form control a label tied to it (label for, a wrapping label, aria-label or aria-labelledby). Check that each table row has one cell per header and that loading, empty and error states appear. Delivery notes may state only behaviour, settings and checks that the current source or a passing receipt shows: take each number, limit and duration from the code and recheck them after the last code change; name anything inspected but not executed.";
|
|
113
139
|
export declare class SessionController {
|
|
114
140
|
private readonly options;
|
|
115
141
|
private projectHandoff;
|
|
116
142
|
readonly store: SessionStore;
|
|
117
143
|
readonly gate: PermissionGate;
|
|
118
144
|
readonly registry: ToolRegistry;
|
|
119
|
-
|
|
145
|
+
/** Sandbox availability. Probed again at the start of a run or turn while it
|
|
146
|
+
* is unavailable: a sandbox that was missing or overloaded when the session
|
|
147
|
+
* opened must not disable the shell for the rest of it. */
|
|
148
|
+
isolation: import("../tools/shell/IsolatedExecutor.js").ExecutorStatus;
|
|
149
|
+
private refreshIsolation;
|
|
120
150
|
readonly workspaceRoot: string;
|
|
121
151
|
sessionId?: string;
|
|
122
152
|
state?: WorkState;
|
|
@@ -159,6 +189,12 @@ export declare class SessionController {
|
|
|
159
189
|
/** Whole-file specialist drafts awaiting write_file, and paths a specialist was asked about. */
|
|
160
190
|
private drafts;
|
|
161
191
|
private touched;
|
|
192
|
+
/** Content hashes of files this session's own commands wrote inside declared write paths. */
|
|
193
|
+
private sessionWritten;
|
|
194
|
+
/** Files Git tracks, refreshed before each workspace write; undefined outside Git. */
|
|
195
|
+
private trackedFiles?;
|
|
196
|
+
/** Files changed during a call that failed on a workspace conflict, until the session reads or writes them again. */
|
|
197
|
+
private unreconciled;
|
|
162
198
|
private currentReceipt?;
|
|
163
199
|
private persistence;
|
|
164
200
|
private persistenceError?;
|
|
@@ -176,11 +212,23 @@ export declare class SessionController {
|
|
|
176
212
|
skills: SkillCatalog;
|
|
177
213
|
private inspectionDocdexStart?;
|
|
178
214
|
private inspectionAnswerReserve;
|
|
215
|
+
/** The turn's own time limit, not a user's cancellation, aborted it: deliver what it gathered. */
|
|
216
|
+
private timeLimitFallback;
|
|
217
|
+
/** An answer turn that did not finish (a crash, a host restart, an outage it
|
|
218
|
+
* could not outlast), found on resume: its request and what it had gathered. */
|
|
219
|
+
private unfinished;
|
|
220
|
+
/** What the running answer turn has gathered so far, if it is a research turn. */
|
|
221
|
+
private turnProgress;
|
|
222
|
+
/** Gathered research handed to the next answer turn when it continues an unfinished one. */
|
|
223
|
+
private continuation;
|
|
224
|
+
/** What an answer turn can still deliver if its time limit aborts it mid-step. */
|
|
225
|
+
private turnFallback;
|
|
179
226
|
private finalAttempts;
|
|
180
227
|
private docdex?;
|
|
181
228
|
private docdexNames;
|
|
182
229
|
private docdexReady;
|
|
183
230
|
private memoryContext;
|
|
231
|
+
private workingStyleLoad?;
|
|
184
232
|
private preparingEdit;
|
|
185
233
|
private lastRequestEstimate;
|
|
186
234
|
private feedbackRound;
|
|
@@ -241,6 +289,13 @@ export declare class SessionController {
|
|
|
241
289
|
reconcile(invocationId: string, outcome: "success" | "failed", note: string): Promise<void>;
|
|
242
290
|
diff(): Promise<string>;
|
|
243
291
|
private hashes;
|
|
292
|
+
/**
|
|
293
|
+
* Build output by location, but never a file Git tracks: committed files
|
|
294
|
+
* under build/, out/ or a nested dist/ are authored source (build scripts, Go
|
|
295
|
+
* packages named dist). Outside Git, only the location rule applies.
|
|
296
|
+
*/
|
|
297
|
+
private generatedOutput;
|
|
298
|
+
private refreshTrackedFiles;
|
|
244
299
|
private assertEditEvidence;
|
|
245
300
|
/**
|
|
246
301
|
* Replaces a draftId with the stored draft. Content sent with a draftId is the
|
|
@@ -254,6 +309,10 @@ export declare class SessionController {
|
|
|
254
309
|
private shellWritePaths;
|
|
255
310
|
private validationReserve;
|
|
256
311
|
private validationContext;
|
|
312
|
+
/** Time one model request may stay unanswered; a method so a host or a test can scale it. */
|
|
313
|
+
protected stallAllowanceMs(inputTokens: number, maxOutputTokens: number, longestModelMs: number, stalledAttempts: number): number;
|
|
314
|
+
/** Silence allowed between chunks of a streaming request; a method so a host or a test can scale it. */
|
|
315
|
+
protected streamGapAllowanceMs(fullAllowanceMs: number, longestModelMs: number): number;
|
|
257
316
|
private provider;
|
|
258
317
|
private beforeTool;
|
|
259
318
|
private afterTool;
|
|
@@ -268,8 +327,24 @@ export declare class SessionController {
|
|
|
268
327
|
private verify;
|
|
269
328
|
private auditModelRequest;
|
|
270
329
|
private applyVerificationGuide;
|
|
330
|
+
/** Loaded once per session and mode; an unavailable Docdex or tool adds nothing. */
|
|
331
|
+
private workingStyle;
|
|
271
332
|
private loadInstructions;
|
|
272
333
|
/** Route natural-language turns before creating work, indexing, or loading tool schemas. */
|
|
334
|
+
/** Whether the resumed session ends with an answer turn that never delivered. */
|
|
335
|
+
get unfinishedInteraction(): {
|
|
336
|
+
prompt: string;
|
|
337
|
+
evidence: number;
|
|
338
|
+
draft: boolean;
|
|
339
|
+
} | undefined;
|
|
340
|
+
/** Continue the unfinished answer turn of a resumed session from what it had
|
|
341
|
+
* gathered (evidence and, when one was saved, its draft) instead of starting
|
|
342
|
+
* the research again. */
|
|
343
|
+
continueInteraction(): Promise<{
|
|
344
|
+
content: string;
|
|
345
|
+
completed: boolean;
|
|
346
|
+
mode: InteractionDecision["mode"];
|
|
347
|
+
}>;
|
|
273
348
|
interact(prompt: string): Promise<{
|
|
274
349
|
content: string;
|
|
275
350
|
completed: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionController.d.ts","sourceRoot":"","sources":["../../src/runtime/SessionController.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1D,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAqC,MAAM,+BAA+B,CAAC;AAClH,OAAO,EAAwD,KAAK,WAAW,EAAqB,KAAK,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/K,OAAO,EAAE,cAAc,EAA8D,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAM7K,OAAO,EAA4e,KAAK,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3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