mtech-ai-local-runner 0.1.92 → 0.1.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 0.1.93: strict investigation JSON completion guidance
|
|
2
|
+
|
|
3
|
+
Claude uses native-stream progress guidance and receives scoped tool/correction
|
|
4
|
+
context before the final JSON completion contract. A draft for owner review
|
|
5
|
+
still returns the structured report to the Runner without answering the original
|
|
6
|
+
request. Markdown remains rejected; no repair call or automatic retry is added.
|
|
7
|
+
Source verification does not prove live model compliance. Existing attempts,
|
|
8
|
+
contracts, Loop limits and security policies are unchanged. Installation needs
|
|
9
|
+
freshly reviewed package/runtime hashes; Gateway deployment alone does not
|
|
10
|
+
replace an installed Runner.
|
|
11
|
+
|
|
1
12
|
## Unreleased: Gateway-managed verification budget (P3E)
|
|
2
13
|
|
|
3
14
|
D6 owner revision `fbc30fbe-cac9-45d1-9eff-bccec6ee6a54` selects a separate
|
|
@@ -27,5 +27,18 @@ export function compilePrompt(taskPackage, options) {
|
|
|
27
27
|
const { toolInventory = "local-tools-v1", ...brief } = options;
|
|
28
28
|
localToolNames(toolInventory);
|
|
29
29
|
const correction = renderBundleCorrectionBrief(taskPackage);
|
|
30
|
-
|
|
30
|
+
// Claude progress is observed from its native stream, not model-authored lifecycle JSON.
|
|
31
|
+
// Keep the final report contract last, including after untrusted correction findings.
|
|
32
|
+
return compileBrief(taskPackage, { ...brief, progressReporting: "native_messages" }, [
|
|
33
|
+
repositoryScope(taskPackage),
|
|
34
|
+
LOCAL_TOOL_GUIDANCE,
|
|
35
|
+
`${claudePathRules(toolInventory)}${correction}`,
|
|
36
|
+
"## Investigation result and transport boundary\n" +
|
|
37
|
+
"Put concise findings in report and source citations in evidence, not a standalone Markdown report. " +
|
|
38
|
+
"A draft for owner review still requires this final JSON transport report; returning it to the Runner " +
|
|
39
|
+
"does not submit an answer to the original request or authorize external publication. " +
|
|
40
|
+
"Distinguish source inspection from tests actually executed; a successful read is not a passed test. " +
|
|
41
|
+
"Before finalizing, check the required keys, report/evidence size limits and accurate pending_work. " +
|
|
42
|
+
"If unfinished, return one blocked report; never invent evidence or claim completion to satisfy the format.",
|
|
43
|
+
]);
|
|
31
44
|
}
|
|
@@ -120,7 +120,8 @@ function continuationContext(taskPackage) {
|
|
|
120
120
|
+ "Do not replay a completed side effect. Never answer a human-only question or approve on another actor's behalf. "
|
|
121
121
|
+ "Required review, completion and publication gates remain separate; report only observed work and evidence, not delivery or operational success inferred from a local result.";
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
/** Adapter-owned context stays ahead of the final wire-format contract. */
|
|
124
|
+
export function compilePrompt(taskPackage, options, adapterSections = []) {
|
|
124
125
|
const contract = record(taskPackage.contract);
|
|
125
126
|
if (!contract) {
|
|
126
127
|
throw new Error("task package is missing a contract");
|
|
@@ -167,6 +168,7 @@ export function compilePrompt(taskPackage, options) {
|
|
|
167
168
|
options.progressReporting === "native_messages"
|
|
168
169
|
? `## Native progress and terminal reporting\n${NATIVE_PROGRESS_NOTICE}`
|
|
169
170
|
: `## Event and checkpoint obligations\n${EVENT_SCHEMA_NOTICE}`,
|
|
171
|
+
...adapterSections,
|
|
170
172
|
`## Final completion report\n${COMPLETION_REPORT_NOTICE}`,
|
|
171
173
|
];
|
|
172
174
|
return sections.join("\n\n");
|