@gtrabanco/agentic-workflow-schema 3.5.0 → 4.0.0
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/index.d.ts +1 -1
- package/dist/index.js +0 -58
- package/package.json +1 -1
- package/skill-outcome.schema.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ export type StrictEnvelopeParseResult = {
|
|
|
172
172
|
};
|
|
173
173
|
/** Extract, parse, and validate the strict driver-facing v2 envelope. */
|
|
174
174
|
export declare function parseEnvelopeV2Strict(text: string): StrictEnvelopeParseResult;
|
|
175
|
-
export type WorkflowIntent = "init-workspace" | "status" | "discover-repository-state" | "resolve-repository-state" | "design-feature" | "review-spec" | "plan-feature" | "review-plan" | "plan-fix" | "triage-issue" | "execute-phase" | "review-change" | "
|
|
175
|
+
export type WorkflowIntent = "init-workspace" | "status" | "discover-repository-state" | "resolve-repository-state" | "design-feature" | "review-spec" | "plan-feature" | "review-plan" | "plan-fix" | "triage-issue" | "execute-phase" | "review-change" | "audit-pr" | "merge" | "ask-human" | "stop" | "none";
|
|
176
176
|
export declare const WORKFLOW_INTENTS: readonly WorkflowIntent[];
|
|
177
177
|
/** Sense reason codes: transition cannot proceed without more sensor input. */
|
|
178
178
|
export declare const WORKFLOW_DECISION_SENSE_CODES: readonly ["sense-initial", "sense-stale-revision", "sense-missing-evidence", "sense-unknown-state", "sense-unlisted-transition"];
|
package/dist/index.js
CHANGED
|
@@ -458,7 +458,6 @@ export const WORKFLOW_INTENTS = [
|
|
|
458
458
|
"triage-issue",
|
|
459
459
|
"execute-phase",
|
|
460
460
|
"review-change",
|
|
461
|
-
"loop-review-fold",
|
|
462
461
|
"audit-pr",
|
|
463
462
|
"merge",
|
|
464
463
|
"ask-human",
|
|
@@ -538,7 +537,6 @@ export const WORKFLOW_TRANSITION_TABLE = Object.freeze([
|
|
|
538
537
|
"triage-issue",
|
|
539
538
|
"execute-phase",
|
|
540
539
|
"review-change",
|
|
541
|
-
"loop-review-fold",
|
|
542
540
|
"audit-pr",
|
|
543
541
|
"ask-human",
|
|
544
542
|
"stop",
|
|
@@ -558,7 +556,6 @@ export const WORKFLOW_TRANSITION_TABLE = Object.freeze([
|
|
|
558
556
|
"triage-issue",
|
|
559
557
|
"execute-phase",
|
|
560
558
|
"review-change",
|
|
561
|
-
"loop-review-fold",
|
|
562
559
|
"audit-pr",
|
|
563
560
|
"ask-human",
|
|
564
561
|
"stop",
|
|
@@ -583,7 +580,6 @@ export const WORKFLOW_TRANSITION_TABLE = Object.freeze([
|
|
|
583
580
|
"triage-issue",
|
|
584
581
|
"execute-phase",
|
|
585
582
|
"review-change",
|
|
586
|
-
"loop-review-fold",
|
|
587
583
|
"audit-pr",
|
|
588
584
|
"ask-human",
|
|
589
585
|
"stop",
|
|
@@ -617,7 +613,6 @@ export const WORKFLOW_TRANSITION_TABLE = Object.freeze([
|
|
|
617
613
|
"triage-issue",
|
|
618
614
|
"execute-phase",
|
|
619
615
|
"review-change",
|
|
620
|
-
"loop-review-fold",
|
|
621
616
|
"audit-pr",
|
|
622
617
|
"ask-human",
|
|
623
618
|
"stop",
|
|
@@ -657,7 +652,6 @@ export const WORKFLOW_TRANSITION_TABLE = Object.freeze([
|
|
|
657
652
|
allowed: [
|
|
658
653
|
"execute-phase",
|
|
659
654
|
"review-change",
|
|
660
|
-
"loop-review-fold",
|
|
661
655
|
"audit-pr",
|
|
662
656
|
"ask-human",
|
|
663
657
|
"stop",
|
|
@@ -674,7 +668,6 @@ export const WORKFLOW_TRANSITION_TABLE = Object.freeze([
|
|
|
674
668
|
"plan-fix",
|
|
675
669
|
"triage-issue",
|
|
676
670
|
"review-change",
|
|
677
|
-
"loop-review-fold",
|
|
678
671
|
"audit-pr",
|
|
679
672
|
"ask-human",
|
|
680
673
|
"stop",
|
|
@@ -691,24 +684,6 @@ export const WORKFLOW_TRANSITION_TABLE = Object.freeze([
|
|
|
691
684
|
"triage-issue",
|
|
692
685
|
"execute-phase",
|
|
693
686
|
"review-change",
|
|
694
|
-
"loop-review-fold",
|
|
695
|
-
"audit-pr",
|
|
696
|
-
"ask-human",
|
|
697
|
-
"stop",
|
|
698
|
-
],
|
|
699
|
-
condition: "0..n allowed, each must be a plan/execute/review skill or ask-human/stop;"
|
|
700
|
-
+ " non-allowed target → stop-forbidden-transition",
|
|
701
|
-
},
|
|
702
|
-
// loop-review-fold → planning and execution
|
|
703
|
-
{
|
|
704
|
-
key: "loop-review-fold",
|
|
705
|
-
allowed: [
|
|
706
|
-
"plan-feature",
|
|
707
|
-
"plan-fix",
|
|
708
|
-
"triage-issue",
|
|
709
|
-
"execute-phase",
|
|
710
|
-
"review-change",
|
|
711
|
-
"loop-review-fold",
|
|
712
687
|
"audit-pr",
|
|
713
688
|
"ask-human",
|
|
714
689
|
"stop",
|
|
@@ -1114,18 +1089,6 @@ export const WORKFLOW_SKILL_PROFILES = deepFreeze([
|
|
|
1114
1089
|
requiredEvidence: ["current-candidate", "verification"],
|
|
1115
1090
|
},
|
|
1116
1091
|
},
|
|
1117
|
-
{
|
|
1118
|
-
skill: "loop-review-fold",
|
|
1119
|
-
output: "skill-outcome-v1",
|
|
1120
|
-
nativeFallback: "fixed-verdict",
|
|
1121
|
-
capabilities: {
|
|
1122
|
-
role: "reviewer",
|
|
1123
|
-
reasoning: "critical",
|
|
1124
|
-
effects: ["repository-read", "repository-write", "git-write", "forge-read", "forge-write"],
|
|
1125
|
-
contextSources: ["repository", "semantic-context", "episodic-memory", "execution-state"],
|
|
1126
|
-
requiredEvidence: ["current-candidate", "independent-review"],
|
|
1127
|
-
},
|
|
1128
|
-
},
|
|
1129
1092
|
{
|
|
1130
1093
|
skill: "audit-pr",
|
|
1131
1094
|
output: "skill-outcome-v1",
|
|
@@ -1277,7 +1240,6 @@ function nextIntent(command) {
|
|
|
1277
1240
|
case "plan-fix":
|
|
1278
1241
|
case "triage-issue":
|
|
1279
1242
|
case "review-change":
|
|
1280
|
-
case "loop-review-fold":
|
|
1281
1243
|
case "audit-pr":
|
|
1282
1244
|
return match[1];
|
|
1283
1245
|
case "merge":
|
|
@@ -1399,26 +1361,6 @@ function parseNativeTurn(skill, text) {
|
|
|
1399
1361
|
if (nextIndex < 0)
|
|
1400
1362
|
return null;
|
|
1401
1363
|
const command = /^→\s*Next:\s*(\/[-a-z]+(?:\s+[^\n—]+)?)\s+—/i.exec(lines[nextIndex].trim())?.[1]?.trim();
|
|
1402
|
-
if (skill === "loop-review-fold") {
|
|
1403
|
-
const nextIsFinal = lines.slice(nextIndex + 1).every((line) => /^·/.test(line.trim()));
|
|
1404
|
-
if (!nextIsFinal || command === undefined || nextIntent(command) === "none")
|
|
1405
|
-
return null;
|
|
1406
|
-
const verdict = /^REVIEW-FOLD LOOP\s+[—-]\s+(PASS|TRIAGE-REQUIRED|BLOCKED)\s*$/i.exec(lines[0])?.[1]?.toUpperCase();
|
|
1407
|
-
if (verdict === undefined)
|
|
1408
|
-
return null;
|
|
1409
|
-
if (!lines.some((line) => /^Unit:\s*.+\s+·\s+PR:\s*\S+\s+·\s+HEAD:\s*\S+\s*$/i.test(line.trim())))
|
|
1410
|
-
return null;
|
|
1411
|
-
if (!lines.some((line) => /^First action:\s*(PASS|review-change|fold-findings)\s*$/i.test(line.trim())))
|
|
1412
|
-
return null;
|
|
1413
|
-
if (!lines.some((line) => /^Review:\s*(PASS|FAIL|not-run)\s+·\s+Fold:\s*(changed|unchanged|not-run)\s*$/i.test(line.trim())))
|
|
1414
|
-
return null;
|
|
1415
|
-
if (!lines.some((line) => /^Unresolved:\s*(none|F\d+(?:\s*\+\s*F\d+)*)\s*$/i.test(line.trim())))
|
|
1416
|
-
return null;
|
|
1417
|
-
if (!lines.some((line) => /^Evidence:\s*\S+/i.test(line.trim())))
|
|
1418
|
-
return null;
|
|
1419
|
-
const status = verdict === "PASS" ? "completed" : verdict === "BLOCKED" ? "blocked" : "continue";
|
|
1420
|
-
return nativeOutcome(skill, status, `loop-review-fold returned ${verdict}.`, command, []);
|
|
1421
|
-
}
|
|
1422
1364
|
if (skill === "audit-pr") {
|
|
1423
1365
|
const auditBody = lines.slice(0, nextIndex).join("\n");
|
|
1424
1366
|
const nextLines = lines.slice(nextIndex + 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtrabanco/agentic-workflow-schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Versioned machine contracts, JSON Schemas, parsers, and deterministic document snapshots for agentic-workflow orchestration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentic-workflow",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"definitions": {
|
|
22
22
|
"intent": {
|
|
23
|
-
"enum": ["init-workspace", "status", "discover-repository-state", "resolve-repository-state", "design-feature", "plan-feature", "plan-fix", "triage-issue", "execute-phase", "review-change", "
|
|
23
|
+
"enum": ["init-workspace", "status", "discover-repository-state", "resolve-repository-state", "design-feature", "plan-feature", "plan-fix", "triage-issue", "execute-phase", "review-change", "audit-pr", "merge", "ask-human", "stop", "none"]
|
|
24
24
|
},
|
|
25
25
|
"next": {
|
|
26
26
|
"type": "object",
|