@gtrabanco/agentic-workflow-schema 3.5.0 → 4.0.1
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.es.md +1 -0
- package/README.md +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -59
- package/dist/pre-execution-contract.d.ts +7 -0
- package/dist/pre-execution-contract.js +7 -0
- package/dist/pre-execution.d.ts +2 -2
- package/dist/pre-execution.js +2 -2
- package/package.json +1 -1
- package/skill-outcome.schema.json +1 -1
package/README.es.md
CHANGED
|
@@ -298,6 +298,7 @@ conductor pueda mostrar las garantías que el schema no puede expresar.
|
|
|
298
298
|
| --- | --- |
|
|
299
299
|
| `PRE_EXECUTION_STAGES` | `spec` · `plan` — Las dos etapas de revisión. Define el conjunto de artefactos requerido y la matriz de veredictos. |
|
|
300
300
|
| `PRE_EXECUTION_UNIT_KINDS` | `feature` · `fix` — Una unidad `fix` no tiene mitad de Producto, así que no tiene snapshot de etapa SPEC. |
|
|
301
|
+
| `PRE_EXECUTION_POLICY_VERSION` | `v1` — La versión de política de revisión a la que se ata un receipt. Un cambio de política rota el eje `stale-policy`, así que un receipt revisado bajo otra versión ya no bendice un veredicto. La única autoridad que el CLI de snapshot lee en lugar de un literal hardcodeado. |
|
|
301
302
|
| `PRE_EXECUTION_ARTIFACT_KINDS` | `spec` · `acceptance` · `plan` · `tasks` · `testing` · `decisions` · `architecture-notes` · `planning-evidence` · `obligations` — Los roles que un documento atado puede desempeñar. |
|
|
302
303
|
| `PRE_EXECUTION_SELECTORS` | `whole-file` · `spec-product-v1` — Cómo se eligieron los bytes atados dentro del archivo. |
|
|
303
304
|
| `PRE_EXECUTION_CONTEXT_KINDS` | `roadmap-row` · `governing-issue` · `normalized-repository-state` · `architectural-invariants` · `dependency-unit` · `project-guide` — Autoridades en las que el revisor pudo apoyarse. |
|
package/README.md
CHANGED
|
@@ -287,6 +287,7 @@ display the guarantees the schema cannot state.
|
|
|
287
287
|
| --- | --- |
|
|
288
288
|
| `PRE_EXECUTION_STAGES` | `spec` · `plan` — The two review stages. Drives the required artifact set and the verdict matrix. |
|
|
289
289
|
| `PRE_EXECUTION_UNIT_KINDS` | `feature` · `fix` — `fix` has no Product half, so it has no SPEC-stage snapshot. |
|
|
290
|
+
| `PRE_EXECUTION_POLICY_VERSION` | `v1` — The review-policy version a receipt is bound to. A policy bump rotates the `stale-policy` axis, so a receipt reviewed under a different version no longer blesses a verdict. The one authority the snapshot CLI reads instead of a hardcoded literal. |
|
|
290
291
|
| `PRE_EXECUTION_ARTIFACT_KINDS` | `spec` · `acceptance` · `plan` · `tasks` · `testing` · `decisions` · `architecture-notes` · `planning-evidence` · `obligations` — Roles a bound document may play. |
|
|
291
292
|
| `PRE_EXECUTION_SELECTORS` | `whole-file` · `spec-product-v1` — How bound bytes were chosen out of a file. |
|
|
292
293
|
| `PRE_EXECUTION_CONTEXT_KINDS` | `roadmap-row` · `governing-issue` · `normalized-repository-state` · `architectural-invariants` · `dependency-unit` · `project-guide` — Authorities a reviewer was allowed to rely on. |
|
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"];
|
|
@@ -887,5 +887,5 @@ export declare const VERIFICATION_CANONICAL_VECTORS: ReadonlyArray<Readonly<Cano
|
|
|
887
887
|
* package-internal, exactly as the verification family's does, and the generated
|
|
888
888
|
* Draft-07 files are projections of it, not a second authority.
|
|
889
889
|
*/
|
|
890
|
-
export { buildPreExecutionArtifactSnapshot, canonicalizePreExecutionArtifactSnapshot, canonicalizePreExecutionReviewReceipt, comparePreExecutionReceiptToSnapshot, digestPreExecutionArtifactSnapshot, digestPreExecutionReviewReceipt, selectSpecProduct, validatePreExecutionArtifactSnapshotV1, validatePreExecutionReceiptAgainstSnapshot, validatePreExecutionReviewReceiptV1, PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_CANONICAL_VECTORS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_DIAGNOSTIC_CODES, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_FRESHNESS_CODES, PRE_EXECUTION_LIMITS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_RUNTIME_RULES, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_SNAPSHOT_SELECTOR, PRE_EXECUTION_STAGES, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_VERDICTS, SPEC_PRODUCT_REQUIRED_HEADINGS, } from "./pre-execution.js";
|
|
890
|
+
export { buildPreExecutionArtifactSnapshot, canonicalizePreExecutionArtifactSnapshot, canonicalizePreExecutionReviewReceipt, comparePreExecutionReceiptToSnapshot, digestPreExecutionArtifactSnapshot, digestPreExecutionReviewReceipt, selectSpecProduct, validatePreExecutionArtifactSnapshotV1, validatePreExecutionReceiptAgainstSnapshot, validatePreExecutionReviewReceiptV1, PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_CANONICAL_VECTORS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_DIAGNOSTIC_CODES, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_FRESHNESS_CODES, PRE_EXECUTION_LIMITS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_POLICY_VERSION, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_RUNTIME_RULES, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_SNAPSHOT_SELECTOR, PRE_EXECUTION_STAGES, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_VERDICTS, SPEC_PRODUCT_REQUIRED_HEADINGS, } from "./pre-execution.js";
|
|
891
891
|
export type { PreExecutionArtifactInput, PreExecutionArtifactKind, PreExecutionArtifactRow, PreExecutionArtifactSnapshotV1, PreExecutionAuthorExclusion, PreExecutionCanonicalVector, PreExecutionContextBinding, PreExecutionContextInput, PreExecutionContextKind, PreExecutionContextPresence, PreExecutionDiagnostic, PreExecutionDiagnosticCode, PreExecutionFinding, PreExecutionFindingClass, PreExecutionFindingResolution, PreExecutionFindingSeverity, PreExecutionFindingVerification, PreExecutionFreshnessCode, PreExecutionFreshnessResult, PreExecutionModelDiversity, PreExecutionParentReceipt, PreExecutionParentRole, PreExecutionReceiptValidationResult, PreExecutionReviewReceiptV1, PreExecutionReviewerRole, PreExecutionSelector, PreExecutionSnapshotBuildInput, PreExecutionSnapshotValidationResult, PreExecutionStage, PreExecutionUnitKind, PreExecutionVerdict, SpecProductSelection, SpecProductSelectorError, } from "./pre-execution.js";
|
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);
|
|
@@ -2925,4 +2867,4 @@ export const VERIFICATION_CANONICAL_VECTORS = Object.freeze([
|
|
|
2925
2867
|
* package-internal, exactly as the verification family's does, and the generated
|
|
2926
2868
|
* Draft-07 files are projections of it, not a second authority.
|
|
2927
2869
|
*/
|
|
2928
|
-
export { buildPreExecutionArtifactSnapshot, canonicalizePreExecutionArtifactSnapshot, canonicalizePreExecutionReviewReceipt, comparePreExecutionReceiptToSnapshot, digestPreExecutionArtifactSnapshot, digestPreExecutionReviewReceipt, selectSpecProduct, validatePreExecutionArtifactSnapshotV1, validatePreExecutionReceiptAgainstSnapshot, validatePreExecutionReviewReceiptV1, PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_CANONICAL_VECTORS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_DIAGNOSTIC_CODES, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_FRESHNESS_CODES, PRE_EXECUTION_LIMITS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_RUNTIME_RULES, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_SNAPSHOT_SELECTOR, PRE_EXECUTION_STAGES, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_VERDICTS, SPEC_PRODUCT_REQUIRED_HEADINGS, } from "./pre-execution.js";
|
|
2870
|
+
export { buildPreExecutionArtifactSnapshot, canonicalizePreExecutionArtifactSnapshot, canonicalizePreExecutionReviewReceipt, comparePreExecutionReceiptToSnapshot, digestPreExecutionArtifactSnapshot, digestPreExecutionReviewReceipt, selectSpecProduct, validatePreExecutionArtifactSnapshotV1, validatePreExecutionReceiptAgainstSnapshot, validatePreExecutionReviewReceiptV1, PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_CANONICAL_VECTORS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_DIAGNOSTIC_CODES, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_FRESHNESS_CODES, PRE_EXECUTION_LIMITS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_POLICY_VERSION, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_RUNTIME_RULES, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_SNAPSHOT_SELECTOR, PRE_EXECUTION_STAGES, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_VERDICTS, SPEC_PRODUCT_REQUIRED_HEADINGS, } from "./pre-execution.js";
|
|
@@ -30,6 +30,13 @@ export declare const PRE_EXECUTION_SELECTORS: readonly ["whole-file", "spec-prod
|
|
|
30
30
|
export declare const PRE_EXECUTION_STAGES: readonly ["spec", "plan"];
|
|
31
31
|
/** The unit family the snapshot belongs to. */
|
|
32
32
|
export declare const PRE_EXECUTION_UNIT_KINDS: readonly ["feature", "fix"];
|
|
33
|
+
/**
|
|
34
|
+
* The review-policy version a receipt is bound to. A policy bump rotates the
|
|
35
|
+
* `stale-policy` axis: a receipt produced under a different version no longer
|
|
36
|
+
* blesses a verdict. This is the ONE authority the pre-execution snapshot CLI
|
|
37
|
+
* reads instead of a hardcoded literal (known-issue 24 / review finding F49).
|
|
38
|
+
*/
|
|
39
|
+
export declare const PRE_EXECUTION_POLICY_VERSION: "v1";
|
|
33
40
|
/**
|
|
34
41
|
* The artifact roles a pre-execution snapshot may bind. Deliberately excludes
|
|
35
42
|
* execution progress (`progress.md`), raw exploration history, and findings
|
|
@@ -32,6 +32,13 @@ export const PRE_EXECUTION_SELECTORS = Object.freeze(["whole-file", "spec-produc
|
|
|
32
32
|
export const PRE_EXECUTION_STAGES = Object.freeze(["spec", "plan"]);
|
|
33
33
|
/** The unit family the snapshot belongs to. */
|
|
34
34
|
export const PRE_EXECUTION_UNIT_KINDS = Object.freeze(["feature", "fix"]);
|
|
35
|
+
/**
|
|
36
|
+
* The review-policy version a receipt is bound to. A policy bump rotates the
|
|
37
|
+
* `stale-policy` axis: a receipt produced under a different version no longer
|
|
38
|
+
* blesses a verdict. This is the ONE authority the pre-execution snapshot CLI
|
|
39
|
+
* reads instead of a hardcoded literal (known-issue 24 / review finding F49).
|
|
40
|
+
*/
|
|
41
|
+
export const PRE_EXECUTION_POLICY_VERSION = "v1";
|
|
35
42
|
/**
|
|
36
43
|
* The artifact roles a pre-execution snapshot may bind. Deliberately excludes
|
|
37
44
|
* execution progress (`progress.md`), raw exploration history, and findings
|
package/dist/pre-execution.d.ts
CHANGED
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
* Feature 28, phase P1. Diagnostics follow the package's D16 rule: a frozen code
|
|
24
24
|
* plus an RFC 6901 pointer, never the submitted value.
|
|
25
25
|
*/
|
|
26
|
-
import { PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_LIMITS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_STAGES, PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_VERDICTS } from "./pre-execution-contract.js";
|
|
26
|
+
import { PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_LIMITS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_POLICY_VERSION, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_STAGES, PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_VERDICTS } from "./pre-execution-contract.js";
|
|
27
27
|
import { PRE_EXECUTION_CANONICAL_VECTORS, type PreExecutionCanonicalVector } from "./pre-execution-vectors.js";
|
|
28
|
-
export { PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_STAGES, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_VERDICTS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_LIMITS, PRE_EXECUTION_CANONICAL_VECTORS, };
|
|
28
|
+
export { PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_STAGES, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_VERDICTS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_LIMITS, PRE_EXECUTION_POLICY_VERSION, PRE_EXECUTION_CANONICAL_VECTORS, };
|
|
29
29
|
export type { PreExecutionCanonicalVector };
|
|
30
30
|
export { PRE_EXECUTION_RUNTIME_RULES } from "./pre-execution-contract.js";
|
|
31
31
|
/** The one selector a SPEC-stage snapshot may bind: the Product projection (D2). */
|
package/dist/pre-execution.js
CHANGED
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
* plus an RFC 6901 pointer, never the submitted value.
|
|
25
25
|
*/
|
|
26
26
|
import { VERIFICATION_DIAGNOSTIC_CODES, applyCrossRule, assertCrossRuleVocabulary, captureVerificationInput, createVerificationDiagnosticSink, validateStructure, } from "./verification-contract.js";
|
|
27
|
-
import { PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_CONTRACT, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_LIMITS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_STAGES, PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_VERDICTS, } from "./pre-execution-contract.js";
|
|
27
|
+
import { PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_CONTRACT, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_LIMITS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_POLICY_VERSION, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_STAGES, PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_VERDICTS, } from "./pre-execution-contract.js";
|
|
28
28
|
import { PRE_EXECUTION_CANONICAL_VECTORS, } from "./pre-execution-vectors.js";
|
|
29
29
|
import { canonicalizeContractInput, canonicalJSONValue, utf8Bytes, utf8ByteCompare, } from "./canonical-json.js";
|
|
30
30
|
import { sha256HexSync } from "./sha256.js";
|
|
31
31
|
// ---------------------------------------------------------------------------
|
|
32
32
|
// Published identities, vocabularies, and types
|
|
33
33
|
// ---------------------------------------------------------------------------
|
|
34
|
-
export { PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_STAGES, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_VERDICTS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_LIMITS, PRE_EXECUTION_CANONICAL_VECTORS, };
|
|
34
|
+
export { PRE_EXECUTION_SNAPSHOT_CONTRACT_ID, PRE_EXECUTION_RECEIPT_CONTRACT_ID, PRE_EXECUTION_STAGES, PRE_EXECUTION_UNIT_KINDS, PRE_EXECUTION_SELECTORS, PRE_EXECUTION_ARTIFACT_KINDS, PRE_EXECUTION_CONTEXT_KINDS, PRE_EXECUTION_CONTEXT_PRESENCE, PRE_EXECUTION_VERDICTS, PRE_EXECUTION_FINDING_SEVERITIES, PRE_EXECUTION_FINDING_CLASSES, PRE_EXECUTION_FINDING_VERIFICATION, PRE_EXECUTION_FINDING_RESOLUTIONS, PRE_EXECUTION_REVIEW_ROLES, PRE_EXECUTION_PARENT_ROLES, PRE_EXECUTION_AUTHOR_EXCLUSIONS, PRE_EXECUTION_MODEL_DIVERSITY, PRE_EXECUTION_LIMITS, PRE_EXECUTION_POLICY_VERSION, PRE_EXECUTION_CANONICAL_VECTORS, };
|
|
35
35
|
export { PRE_EXECUTION_RUNTIME_RULES } from "./pre-execution-contract.js";
|
|
36
36
|
/** The one selector a SPEC-stage snapshot may bind: the Product projection (D2). */
|
|
37
37
|
export const PRE_EXECUTION_SNAPSHOT_SELECTOR = "spec-product-v1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtrabanco/agentic-workflow-schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
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",
|