agentxchain 2.155.56 → 2.155.57
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
|
@@ -498,7 +498,7 @@ function renderPrompt(role, roleId, turn, state, config, root) {
|
|
|
498
498
|
lines.push('- `files_changed`: **REQUIRED** array of **strings** (file paths only). Do NOT use `files_modified` — the field name is `files_changed`. Do NOT use objects like `{path, change_type}` — just the path string (e.g. `["src/cli.js", "tests/smoke.mjs"]`).');
|
|
499
499
|
lines.push('- `proposed_next_role`: **REQUIRED**. Must be in allowed_next_roles for the current phase, or `"human"`.');
|
|
500
500
|
lines.push('- `decisions[].id`: pattern `DEC-NNN` where NNN is digits only (e.g. `DEC-001`, `DEC-002`). Do NOT use `D1`, `D2`, or freeform IDs.');
|
|
501
|
-
lines.push('- `decisions[].statement`: non-empty string describing the decision. Do NOT use `decision`, `description`, or `
|
|
501
|
+
lines.push('- `decisions[].statement`: non-empty string describing the decision. Do NOT use `decision`, `description`, `summary`, or `title` as the field name — the field is `statement`.');
|
|
502
502
|
lines.push('- `decisions[].rationale`: REQUIRED non-empty string explaining why the decision was made. Do NOT omit this field.');
|
|
503
503
|
lines.push('- `decisions[].category`: one of `implementation`, `architecture`, `scope`, `process`, `quality`, `release`');
|
|
504
504
|
lines.push('- `objections[].id`: pattern `OBJ-NNN` where NNN is digits only (e.g. `OBJ-001`, `OBJ-002`). Do NOT append extra suffixes like `-M31` or use non-numeric characters after `OBJ-`.');
|
|
@@ -1285,10 +1285,12 @@ export function normalizeTurnResult(tr, config, context = {}) {
|
|
|
1285
1285
|
if (!stmt) {
|
|
1286
1286
|
const alt = typeof patched.decision === 'string' ? patched.decision.trim()
|
|
1287
1287
|
: typeof patched.description === 'string' ? patched.description.trim()
|
|
1288
|
-
: typeof patched.summary === 'string' ? patched.summary.trim()
|
|
1288
|
+
: typeof patched.summary === 'string' ? patched.summary.trim()
|
|
1289
|
+
: typeof patched.title === 'string' ? patched.title.trim() : '';
|
|
1289
1290
|
if (alt) {
|
|
1290
1291
|
const srcField = typeof patched.decision === 'string' && patched.decision.trim() ? 'decision'
|
|
1291
|
-
: typeof patched.description === 'string' && patched.description.trim() ? 'description'
|
|
1292
|
+
: typeof patched.description === 'string' && patched.description.trim() ? 'description'
|
|
1293
|
+
: typeof patched.summary === 'string' && patched.summary.trim() ? 'summary' : 'title';
|
|
1292
1294
|
corrections.push(`decisions[${index}].statement: copied from ${srcField}`);
|
|
1293
1295
|
normalizationEvents.push({
|
|
1294
1296
|
field: `decisions[${index}].statement`,
|