@lazyingart/agintiflow 0.20.61 → 0.20.63

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.61",
3
+ "version": "0.20.63",
4
4
  "type": "module",
5
5
  "description": "Low-cost, project-aware Web and CLI agents with DeepSeek/Venice/OpenAI routing, visible tool calls, durable sessions, scouts, AAPS, SCS, and guarded local execution.",
6
6
  "license": "Apache-2.0",
@@ -17,6 +17,7 @@ import {
17
17
  } from "../src/interactive-cli.js";
18
18
  import { parseArgs } from "../src/cli.js";
19
19
  import { dockerPolicyTimeoutMs, dockerUserCommand } from "../src/docker-sandbox.js";
20
+ import { formatBehaviorContractForPrompt } from "../src/behavior-contract.js";
20
21
 
21
22
  const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
22
23
  const tempRoot = await fs.mkdtemp(path.join(os.tmpdir(), "agintiflow-cli-chat-"));
@@ -145,6 +146,13 @@ try {
145
146
  ) {
146
147
  throw new Error("elapsed duration formatter returned an unexpected value");
147
148
  }
149
+ const behaviorContract = formatBehaviorContractForPrompt();
150
+ if (
151
+ !behaviorContract.includes("name the actual environment used") ||
152
+ !behaviorContract.includes("Do not claim compatibility across untested runtimes")
153
+ ) {
154
+ throw new Error("behavior contract must guard against host/Docker and runtime-version overclaims");
155
+ }
148
156
  const wrappedDockerCommand = dockerUserCommand("node --test 2>&1 | tail -30", {
149
157
  category: "general-shell",
150
158
  needsNetwork: false,
@@ -72,6 +72,9 @@ assert(selectedIds("write README API docs and a tutorial").includes("docs-knowle
72
72
  assert(selectedIds("fix failing tests and add regression coverage").includes("qa-testing"), "QA prompt did not select qa-testing");
73
73
  const qaSkill = skills.find((skill) => skill.id === "qa-testing");
74
74
  assert(qaSkill?.body.includes("Do not invent staged bugs"), "QA skill does not guard against fake staged failures");
75
+ const pythonSkill = skills.find((skill) => skill.id === "python");
76
+ assert(pythonSkill?.body.includes("PEP 701 relaxed f-strings"), "Python skill must mention 3.12 f-string compatibility traps");
77
+ assert(pythonSkill?.body.includes("only proves the active interpreter"), "Python skill must guard syntax-check overclaims");
75
78
  assert(selectedIds("write SQL migrations for sqlite schema").includes("database"), "database prompt did not select database");
76
79
  assert(selectedIds("debug Docker deployment logs and port config").includes("devops-deployment"), "devops prompt did not select devops-deployment");
77
80
  assert(selectedIds("review auth security and secrets handling").includes("security-review"), "security prompt did not select security-review");
@@ -21,4 +21,8 @@ tools:
21
21
 
22
22
  Inspect `pyproject.toml`, requirements, package layout, and tests. Prefer stdlib tests when dependency installs are unnecessary; otherwise use project-local venv/conda/uv or Docker.
23
23
 
24
+ When reporting syntax, lint, test, or runtime results, always include the actual interpreter path/version and whether commands ran on the host or in Docker/venv. `py_compile` only proves the active interpreter accepted the files.
25
+
26
+ For compatibility claims, avoid grep-only feature scans. Treat these as version-sensitive unless the target interpreter is tested: f-strings require Python 3.6+, `:=` requires 3.8+, builtin generic hints such as `list[int]` require 3.9+ unless postponed annotations are used, `match/case` and `X | Y` type unions require 3.10+, `except*`/`ExceptionGroup` require 3.11+, and PEP 701 relaxed f-strings (backslashes, comments, or previously invalid quoting/nesting inside f-string expressions) require 3.12+. If host compatibility matters and only Docker was tested, state that limitation instead of saying the code is safe on the host.
27
+
24
28
  For plots and artifacts, save files with clear names and send useful outputs to canvas.
@@ -70,6 +70,7 @@ export function formatBehaviorContractForPrompt({ mode = "runtime" } = {}) {
70
70
  "Define or infer concrete success criteria for non-trivial work, then run focused checks or state why checks are unavailable.",
71
71
  "Respect the permission contract: if a tool is blocked, stop and present the safe rerun/approval path instead of retrying variants.",
72
72
  "Keep artifacts durable and discoverable with descriptive non-conflicting names; never overwrite unless the user clearly asked.",
73
+ "When reporting shell, language, runtime, build, or test results, name the actual environment used (host vs Docker, relevant interpreter/tool path/version when it matters). Do not claim compatibility across untested runtimes, hosts, containers, or language versions; state the caveat or run an explicit check.",
73
74
  ].join(" ");
74
75
  }
75
76
 
@@ -117,6 +118,7 @@ function baseSections() {
117
118
  "- Every changed line should trace to the task or to cleanup caused by the task.",
118
119
  "- Match existing project style even if another style is personally preferable.",
119
120
  "- If you notice unrelated issues, report them separately rather than editing them.",
121
+ "- When reporting shell, language, runtime, build, or test results, name the actual environment used (host vs Docker, relevant interpreter/tool path/version when it matters). Do not claim compatibility across untested runtimes, hosts, containers, or language versions; state the caveat or run an explicit check.",
120
122
  "",
121
123
  "## Verification Contract",
122
124
  "",
@@ -287,4 +289,3 @@ export function buildAgintiInstructions(template = "disciplined") {
287
289
  const body = normalized === "minimal" ? minimalSections() : `${baseSections()}${templateAppendix(normalized)}`;
288
290
  return `${body}\n`;
289
291
  }
290
-
@@ -143,7 +143,7 @@ export const TASK_PROFILES = {
143
143
  id: "python",
144
144
  label: "Python",
145
145
  prompt:
146
- "Bias toward Python best practices without ignoring non-Python project context. Inspect pyproject/requirements, create scripts/packages/tests as files, prefer project-local venv/conda/uv or Docker for setup, and run focused smoke checks when shell is enabled.",
146
+ "Bias toward Python best practices without ignoring non-Python project context. Inspect pyproject/requirements, create scripts/packages/tests as files, prefer project-local venv/conda/uv or Docker for setup, and run focused smoke checks when shell is enabled. For syntax, lint, test, or runtime claims, capture the actual interpreter path/version and sandbox/host environment; never claim support for untested Python versions or host interpreters just because a Docker/venv check passed. Remember Python syntax compatibility traps: f-strings require 3.6+, walrus 3.8+, builtin generics 3.9+, match/case and union type syntax 3.10+, except*/ExceptionGroup 3.11+, and relaxed PEP 701 f-string expressions with backslashes/comment/complex quoting require 3.12+.",
147
147
  tools: ["files", "shell", "sandbox"],
148
148
  },
149
149
  shell: {