@mcoda/mswarm 0.1.135-codali.42 → 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/dist/vendor/codali/eval/fixtures/ContractReviewProvider.d.ts +5 -0
- package/dist/vendor/codali/eval/fixtures/ContractReviewProvider.d.ts.map +1 -1
- package/dist/vendor/codali/eval/fixtures/ContractReviewProvider.js +63 -0
- package/dist/vendor/codali/eval/fixtures/MixedMediaRecoveryJourney.js +2 -2
- package/dist/vendor/codali/eval/fixtures/TerminalRecoveryJourney.js +2 -2
- package/dist/vendor/codali/permissions/PermissionGate.js +1 -1
- package/dist/vendor/codali/providers/ClaudeCliProvider.d.ts.map +1 -1
- package/dist/vendor/codali/providers/ClaudeCliProvider.js +1 -0
- package/dist/vendor/codali/providers/CodexCliProvider.d.ts.map +1 -1
- package/dist/vendor/codali/providers/CodexCliProvider.js +1 -0
- package/dist/vendor/codali/providers/ModelServiceError.d.ts +14 -0
- package/dist/vendor/codali/providers/ModelServiceError.d.ts.map +1 -1
- package/dist/vendor/codali/providers/ModelServiceError.js +15 -2
- package/dist/vendor/codali/providers/OllamaRemoteProvider.d.ts.map +1 -1
- package/dist/vendor/codali/providers/OllamaRemoteProvider.js +1 -0
- package/dist/vendor/codali/providers/OpenAiCompatibleProvider.d.ts.map +1 -1
- package/dist/vendor/codali/providers/OpenAiCompatibleProvider.js +4 -0
- package/dist/vendor/codali/providers/ProviderTypes.d.ts +4 -0
- package/dist/vendor/codali/providers/ProviderTypes.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/AnswerEdits.d.ts +39 -0
- package/dist/vendor/codali/runtime/AnswerEdits.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/AnswerEdits.js +134 -0
- package/dist/vendor/codali/runtime/AnswerVerification.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/AnswerVerification.js +4 -2
- package/dist/vendor/codali/runtime/AuditGuards.d.ts +41 -0
- package/dist/vendor/codali/runtime/AuditGuards.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/AuditGuards.js +81 -0
- package/dist/vendor/codali/runtime/CompletionReport.d.ts +4 -2
- package/dist/vendor/codali/runtime/CompletionReport.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/CompletionReport.js +8 -3
- package/dist/vendor/codali/runtime/DeliveryDocs.d.ts +21 -0
- package/dist/vendor/codali/runtime/DeliveryDocs.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/DeliveryDocs.js +148 -0
- package/dist/vendor/codali/runtime/FigureCheck.d.ts +61 -2
- package/dist/vendor/codali/runtime/FigureCheck.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/FigureCheck.js +210 -14
- package/dist/vendor/codali/runtime/GatewayRequest.d.ts +13 -0
- package/dist/vendor/codali/runtime/GatewayRequest.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/GatewayRequest.js +54 -1
- package/dist/vendor/codali/runtime/InspectionConvergence.d.ts +4 -0
- package/dist/vendor/codali/runtime/InspectionConvergence.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/InspectionConvergence.js +24 -1
- package/dist/vendor/codali/runtime/NumericProvenance.d.ts +102 -0
- package/dist/vendor/codali/runtime/NumericProvenance.d.ts.map +1 -0
- package/dist/vendor/codali/runtime/NumericProvenance.js +411 -0
- package/dist/vendor/codali/runtime/OutageWait.d.ts +13 -0
- package/dist/vendor/codali/runtime/OutageWait.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/OutageWait.js +13 -0
- package/dist/vendor/codali/runtime/ResearchEvidence.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/ResearchEvidence.js +79 -3
- package/dist/vendor/codali/runtime/ReviewCoordinator.d.ts +22 -0
- package/dist/vendor/codali/runtime/ReviewCoordinator.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/ReviewCoordinator.js +201 -24
- package/dist/vendor/codali/runtime/SessionController.d.ts +31 -22
- package/dist/vendor/codali/runtime/SessionController.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/SessionController.js +592 -176
- package/dist/vendor/codali/runtime/StructuralEvidence.d.ts +10 -0
- package/dist/vendor/codali/runtime/StructuralEvidence.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/StructuralEvidence.js +10 -0
- package/dist/vendor/codali/runtime/TaskReview.d.ts +10 -0
- package/dist/vendor/codali/runtime/TaskReview.d.ts.map +1 -1
- package/dist/vendor/codali/runtime/TaskReview.js +14 -1
- package/dist/vendor/codali/tools/ToolRegistry.d.ts.map +1 -1
- package/dist/vendor/codali/tools/ToolRegistry.js +11 -2
- package/dist/vendor/codali/tools/browser/BrowserWorker.js +142 -2
- package/dist/vendor/codali/tools/calculation/CalculatorTool.d.ts +1 -1
- package/dist/vendor/codali/tools/calculation/CalculatorTool.d.ts.map +1 -1
- package/dist/vendor/codali/tools/calculation/CalculatorTool.js +209 -41
- package/dist/vendor/codali/tools/deterministic/DeterministicTools.js +1 -1
- package/dist/vendor/codali/tools/deterministic/node-worker.cjs +10 -10
- package/dist/vendor/codali/tools/shell/AsyncProcess.d.ts +2 -0
- package/dist/vendor/codali/tools/shell/AsyncProcess.d.ts.map +1 -1
- package/dist/vendor/codali/tools/shell/AsyncProcess.js +32 -5
- package/dist/vendor/codali/tools/shell/IsolatedExecutor.d.ts +29 -1
- package/dist/vendor/codali/tools/shell/IsolatedExecutor.d.ts.map +1 -1
- package/dist/vendor/codali/tools/shell/IsolatedExecutor.js +169 -7
- package/dist/vendor/codali/tools/shell/ShellTool.js +1 -1
- package/dist/vendor/codali/tools/verification/CodeRunTool.d.ts +19 -0
- package/dist/vendor/codali/tools/verification/CodeRunTool.d.ts.map +1 -0
- package/dist/vendor/codali/tools/verification/CodeRunTool.js +104 -0
- package/dist/vendor/codali/tools/verification/JavaScriptVerificationTool.d.ts.map +1 -1
- package/dist/vendor/codali/tools/verification/JavaScriptVerificationTool.js +21 -10
- package/dist/vendor/codali/tools/verification/VitestTool.d.ts +27 -0
- package/dist/vendor/codali/tools/verification/VitestTool.d.ts.map +1 -1
- package/dist/vendor/codali/tools/verification/VitestTool.js +160 -16
- package/dist/vendor/config/deterministic/node-worker.mjs +15 -2
- package/dist/vendor/config/skills/code-implementation/SKILL.md +1 -1
- package/dist/vendor/config/skills/planning/SKILL.md +1 -1
- package/dist/vendor/config/skills/ui-ux-design/SKILL.md +1 -1
- package/dist/vendor/config/skills/webapp-testing/SKILL.md +2 -11
- package/dist/vendor/config/skills/webapp-testing/journey-driver.mjs +104 -3
- package/package.json +3 -3
|
@@ -4,6 +4,7 @@ import { reviewPromptContext } from "./TaskReviewContext.js";
|
|
|
4
4
|
import { runTaskReview } from "./TaskReview.js";
|
|
5
5
|
import { REVIEW_PAGE_CHARS } from "./ReviewSource.js";
|
|
6
6
|
import { validationOutputExcerpt } from "./ValidationOutput.js";
|
|
7
|
+
import { isDeliveryDocument } from "./DeliveryDocs.js";
|
|
7
8
|
export function reviewWorkspaceHash(hashes) {
|
|
8
9
|
return createHash("sha256").update(JSON.stringify(Object.fromEntries(Object.entries(hashes)
|
|
9
10
|
.sort(([a], [b]) => a.localeCompare(b))))).digest("hex");
|
|
@@ -15,7 +16,30 @@ const reviewInstructions = [
|
|
|
15
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." },
|
|
16
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." },
|
|
17
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." },
|
|
18
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
|
+
};
|
|
19
43
|
/** Review one scope without loading every sibling's source into the prompt.
|
|
20
44
|
* Assessments are created only by the controller after separate successful
|
|
21
45
|
* reviews; the caller must fence the complete snapshot before accepting them. */
|
|
@@ -32,7 +56,13 @@ export async function reviewTaskScope(options) {
|
|
|
32
56
|
return { passed: false, findings: contract.findings };
|
|
33
57
|
const quotes = {};
|
|
34
58
|
const quoteIds = new Map();
|
|
35
|
-
|
|
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) => {
|
|
36
66
|
const key = JSON.stringify([sourceId, contractQuote]);
|
|
37
67
|
let quoteId = quoteIds.get(key);
|
|
38
68
|
if (quoteId === undefined) {
|
|
@@ -40,8 +70,9 @@ export async function reviewTaskScope(options) {
|
|
|
40
70
|
quoteIds.set(key, quoteId);
|
|
41
71
|
quotes[quoteId] = { sourceId, contractQuote };
|
|
42
72
|
}
|
|
43
|
-
return { quoteId, expectedBehavior };
|
|
73
|
+
return { id: `C${index + 1}`, quoteId, expectedBehavior };
|
|
44
74
|
});
|
|
75
|
+
let checks = allChecks;
|
|
45
76
|
const assessedPaths = new Set(assessments.flatMap(value => value.sourcePaths));
|
|
46
77
|
// A later report/integration review can inspect an already assessed module
|
|
47
78
|
// without attributing its edits or requirements to the current task.
|
|
@@ -70,34 +101,179 @@ export async function reviewTaskScope(options) {
|
|
|
70
101
|
// Bound generated aids independently of authoritative requirements. Every
|
|
71
102
|
// batch retains the full contract and requires its own successful verdict;
|
|
72
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.
|
|
73
106
|
const checklistLimit = options.maxInputChars - Math.min(16000, Math.floor(options.maxInputChars / 4));
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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 = [];
|
|
79
118
|
let batch = [];
|
|
80
|
-
for (const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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);
|
|
85
127
|
batch = [];
|
|
86
128
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
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);
|
|
91
132
|
}
|
|
92
|
-
batch.push(check);
|
|
93
133
|
}
|
|
94
134
|
if (batch.length)
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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);
|
|
99
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
|
+
};
|
|
100
275
|
for (const [index, batch] of batches.entries()) {
|
|
276
|
+
options.onPortion?.();
|
|
101
277
|
options.signal?.throwIfAborted();
|
|
102
278
|
input.contractChecklist = checklist(batch);
|
|
103
279
|
input.checklistBatch = batches.length > 1 ? { index, count: batches.length, totalChecks: checks.length } : undefined;
|
|
@@ -116,6 +292,7 @@ export async function reviewTaskScope(options) {
|
|
|
116
292
|
continue;
|
|
117
293
|
input.source[file] = evidence.content;
|
|
118
294
|
remaining -= addedChars;
|
|
295
|
+
show(file, evidence.content);
|
|
119
296
|
if (evidence.truncated)
|
|
120
297
|
input.sourceNextOffsets[file] = evidence.content.length;
|
|
121
298
|
else {
|
|
@@ -125,11 +302,11 @@ export async function reviewTaskScope(options) {
|
|
|
125
302
|
}
|
|
126
303
|
input.sourceTruncatedPaths = [...truncated];
|
|
127
304
|
const result = await runTaskReview({ provider: options.provider, allowedPaths: reviewPaths,
|
|
128
|
-
initialSourceOffsets: input.sourceNextOffsets, readSourcePage
|
|
305
|
+
initialSourceOffsets: input.sourceNextOffsets, readSourcePage,
|
|
129
306
|
maxInputChars: options.maxInputChars, maxOutputTokens: options.maxOutputTokens,
|
|
130
|
-
messages: messages(), signal: options.signal });
|
|
307
|
+
messages: messages(), signal: options.signal, approve: approve(batch) });
|
|
131
308
|
if (!result.passed)
|
|
132
309
|
return result;
|
|
133
310
|
}
|
|
134
|
-
return { passed: true, findings: [] };
|
|
311
|
+
return unreviewed.length ? { passed: true, findings: [], unreviewed } : { passed: true, findings: [] };
|
|
135
312
|
}
|
|
@@ -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";
|
|
@@ -97,26 +98,17 @@ export declare const DISK_FULL_WAITS_MS: number[];
|
|
|
97
98
|
export declare const appendWithSpaceWait: <T>(write: () => Promise<T>, signal?: AbortSignal, waits?: number[]) => Promise<T>;
|
|
98
99
|
export declare const answerReserveMs: (timeoutMs: number, longestModelMs: number) => number;
|
|
99
100
|
/** First-attempt bound for the finalizing call, or undefined when two attempts
|
|
100
|
-
* 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. */
|
|
101
105
|
export declare const finalAttemptMs: (windowMs: number, longestModelMs: number) => number | undefined;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
export declare const
|
|
107
|
-
|
|
108
|
-
* calculation tools. The review itself has no tools: it re-derives the answer
|
|
109
|
-
* in its head. Across cycles 4-6 it fixed 6 short answers, each time by
|
|
110
|
-
* changing one value; every time it rewrote most of an answer it replaced
|
|
111
|
-
* correct values with wrong ones (cycle 6 case 08: five values from receipts
|
|
112
|
-
* became two wrong numbers and three nulls; the .42 regression pack, case 19:
|
|
113
|
-
* a linear programme solved with a constraint solver, all five values right,
|
|
114
|
-
* all five replaced). The first version of this guard applied only when every
|
|
115
|
-
* drafted number appeared literally in a tool result, which a solver's
|
|
116
|
-
* fractions ("65/4") and dual values do not. A review that adds nulls, or
|
|
117
|
-
* changes two or more values and more than half of them, is rejected whenever
|
|
118
|
-
* the turn used calculation tools at all. */
|
|
119
|
-
export declare const overturnsCalculatedDraft: (draft: string, revised: string, results: string[]) => boolean;
|
|
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";
|
|
120
112
|
/** Why a rewritten answer must not replace its draft, if it must not. Every
|
|
121
113
|
* audit is an edit of a usable draft, so a bad edit keeps the draft. */
|
|
122
114
|
export declare const rewriteDefect: (draft: string, response: {
|
|
@@ -132,7 +124,9 @@ export declare const rewriteDefect: (draft: string, response: {
|
|
|
132
124
|
}, bounds?: {
|
|
133
125
|
minRatio?: number;
|
|
134
126
|
maxRatio?: number;
|
|
135
|
-
|
|
127
|
+
prose?: boolean;
|
|
128
|
+
countLink?: (url: string) => boolean;
|
|
129
|
+
}) => RewriteDefect | undefined;
|
|
136
130
|
export declare const linkKey: (value: string) => string;
|
|
137
131
|
export declare const linksIn: (text: string) => string[];
|
|
138
132
|
/** A link that appears in nothing this investigation retrieved was written from
|
|
@@ -141,7 +135,7 @@ export declare const markUnretrievedLinks: (answer: string, retrieved: ReadonlyS
|
|
|
141
135
|
answer: string;
|
|
142
136
|
unretrieved: string[];
|
|
143
137
|
};
|
|
144
|
-
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.";
|
|
145
139
|
export declare class SessionController {
|
|
146
140
|
private readonly options;
|
|
147
141
|
private projectHandoff;
|
|
@@ -195,6 +189,12 @@ export declare class SessionController {
|
|
|
195
189
|
/** Whole-file specialist drafts awaiting write_file, and paths a specialist was asked about. */
|
|
196
190
|
private drafts;
|
|
197
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;
|
|
198
198
|
private currentReceipt?;
|
|
199
199
|
private persistence;
|
|
200
200
|
private persistenceError?;
|
|
@@ -289,6 +289,13 @@ export declare class SessionController {
|
|
|
289
289
|
reconcile(invocationId: string, outcome: "success" | "failed", note: string): Promise<void>;
|
|
290
290
|
diff(): Promise<string>;
|
|
291
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;
|
|
292
299
|
private assertEditEvidence;
|
|
293
300
|
/**
|
|
294
301
|
* Replaces a draftId with the stored draft. Content sent with a draftId is the
|
|
@@ -304,6 +311,8 @@ export declare class SessionController {
|
|
|
304
311
|
private validationContext;
|
|
305
312
|
/** Time one model request may stay unanswered; a method so a host or a test can scale it. */
|
|
306
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;
|
|
307
316
|
private provider;
|
|
308
317
|
private beforeTool;
|
|
309
318
|
private afterTool;
|
|
@@ -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;AAS5iB,OAAO,EAAE,2BAA2B,EAAE,aAAa,EAAE,YAAY,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"SessionController.d.ts","sourceRoot":"","s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