@lazyingart/agintiflow 0.20.309 → 0.20.310

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazyingart/agintiflow",
3
- "version": "0.20.309",
3
+ "version": "0.20.310",
4
4
  "type": "module",
5
5
  "description": "AgInTiFlow is a project-aware agent workspace for hybrid wet-dry R&D, hardware-aware intelligence, software automation, and industrial workflows.",
6
6
  "license": "Apache-2.0",
@@ -5,6 +5,7 @@ import os from "node:os";
5
5
  import path from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
7
  import {
8
+ completionRequirementCoverageInstruction,
8
9
  continuationExecutionContractDirective,
9
10
  removeSupersededCompletionRepairInstructions,
10
11
  runAgent,
@@ -17,6 +18,13 @@ const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."
17
18
  const tempRoot = await fs.mkdtemp(path.join(os.tmpdir(), "agintiflow-truthful-completion-"));
18
19
  process.env.AGINTIFLOW_HOME = path.join(tempRoot, "home");
19
20
 
21
+ const completionCoverageInstruction = completionRequirementCoverageInstruction();
22
+ assert.match(completionCoverageInstruction, /requirement by requirement/i);
23
+ assert.match(completionCoverageInstruction, /Every distinct subject/i);
24
+ assert.match(completionCoverageInstruction, /authoritative structured routine/i);
25
+ assert.match(completionCoverageInstruction, /every relevant section/i);
26
+ assert.match(completionCoverageInstruction, /instead of summarizing only failures or only successes/i);
27
+
20
28
  assert.equal(
21
29
  finishResultClaimsIncompleteWork(
22
30
  "The report is complete and the verification that was previously paused now passes. No work remains."
@@ -2969,6 +2969,10 @@ function usesFocusedRuntimePrompt(config = {}) {
2969
2969
  return config.executionTier === "focused" && !config.scsActive;
2970
2970
  }
2971
2971
 
2972
+ export function completionRequirementCoverageInstruction() {
2973
+ return "Before finishing, check the current user request requirement by requirement. Every distinct subject, requested action, and deliverable must be completed, answered, deliberately grouped under one verified shared state, or named with a concrete blocker. When an authoritative structured routine returns named sections relevant to the request, report every relevant section instead of summarizing only failures or only successes.";
2974
+ }
2975
+
2972
2976
  function focusedCapabilityContext(config = {}) {
2973
2977
  return [
2974
2978
  config.allowFileTools
@@ -3012,6 +3016,7 @@ function buildFocusedRuntimeMessages({
3012
3016
  "You are AgInTiFlow, a persistent tool-capable agent.",
3013
3017
  "Answer ordinary conversation directly. For executable work, act through the smallest relevant routine or tool, verify in proportion to risk, then stop.",
3014
3018
  "Treat queued user input as a safe-boundary interruption: preserve every material requirement, merge related consecutive messages, revise the durable goal, and never repeat a completed external side effect.",
3019
+ completionRequirementCoverageInstruction(),
3015
3020
  "Established project routines are capabilities to invoke, not workflows to reimplement. Discover more context only when the current task needs it.",
3016
3021
  formatBehaviorContractForPrompt({ mode: "focused" }),
3017
3022
  languageInstruction(config.language || "en"),
@@ -3230,6 +3235,7 @@ async function createInitialState(config, sessionId) {
3230
3235
  : "For website/app/code/LaTeX/Python/C/shell tasks, create or edit real workspace files, run available build/compile/test commands, and surface artifacts through the canvas when useful.",
3231
3236
  "For LaTeX/PDF tasks, check existing latexmk/pdflatex first and compile with the available host or Docker TeX toolchain before installing packages or rebuilding the sandbox.",
3232
3237
  "For research or web-search tasks, use browser tools or safe shell network tools when the current policy allows; cite or save useful sources in workspace notes when the task needs traceability.",
3238
+ completionRequirementCoverageInstruction(),
3233
3239
  browserStateReconciliationGuidance(),
3234
3240
  isRetainedWorkspaceProfile(config)
3235
3241
  ? "Choose descriptive non-conflicting workspace paths for durable outputs."