@gtrabanco/agentic-workflow-schema 4.8.0 → 4.9.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 CHANGED
@@ -920,3 +920,5 @@ export { sha256Hex, sha256HexSync } from "./sha256.js";
920
920
  export type { ContinuationEvidence, ContinuationPlatformFamily, ContinuationPrecondition, ContinuationRefusalCode, EmitContinuationInput, EmitContinuationResult, EnvelopeContinuation, } from "./continuation.js";
921
921
  export type { ContinuationCanonicalVector } from "./continuation-vectors.js";
922
922
  export { EVIDENCE_COLUMNS, PROGRESS_ENTRY_PATTERN, ROADMAP_COLUMNS, CHANGELOG_SECTION_PATTERN, BUDGETS_OPERATIONS, MANIFEST_OPERATIONS, UNIT_DOC_OPERATIONS, ROADMAP_OPERATIONS, CHANGELOG_OPERATIONS, } from "./file-schemas.js";
923
+ export { FUTURE_STATUS_KINDS, FINDINGS_TABLE_SEVERITIES, LOG_KIND_TOKENS, SWEEP_CLAIM_KINDS, SWEEP_MISMATCH_REASONS, } from "./vocabularies.js";
924
+ export type { FutureStatus, FindingsTableSeverity, LogKindToken, SweepClaimKind, SweepMismatchReason, } from "./vocabularies.js";
package/dist/index.js CHANGED
@@ -2917,3 +2917,5 @@ export { sha256Hex, sha256HexSync } from "./sha256.js";
2917
2917
  // ── File-schema vocabularies (agwo edit) ──────────────────────────────────
2918
2918
  // UNIT_DOC_REQUIRED_SECTIONS is already exported from pre-execution.ts (P8).
2919
2919
  export { EVIDENCE_COLUMNS, PROGRESS_ENTRY_PATTERN, ROADMAP_COLUMNS, CHANGELOG_SECTION_PATTERN, BUDGETS_OPERATIONS, MANIFEST_OPERATIONS, UNIT_DOC_OPERATIONS, ROADMAP_OPERATIONS, CHANGELOG_OPERATIONS, } from "./file-schemas.js";
2920
+ // ── Published closed vocabularies (unit 84, issue #315) ─────────────
2921
+ export { FUTURE_STATUS_KINDS, FINDINGS_TABLE_SEVERITIES, LOG_KIND_TOKENS, SWEEP_CLAIM_KINDS, SWEEP_MISMATCH_REASONS, } from "./vocabularies.js";
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Published closed vocabularies — the canonical machine-readable declarations
3
+ * (unit 84, issue #315 S1, decision D2).
4
+ *
5
+ * The repo publishes these sets in prose (the unit-doc templates, the ledger
6
+ * references, the sensor); the prose is a citation, never a second definition.
7
+ * A parity suite (`scripts/vocabulary-parity.test.mjs`) pins every second copy
8
+ * to the consts below — the F22/`LOG_KINDS` pattern, moved to the canonical
9
+ * home. Adding or removing a token is a schema-const + grammar-block +
10
+ * parity-pin change in one PR, never a prose-only edit.
11
+ */
12
+ /** The `## Future` row status vocabulary (`future-status`), published by both
13
+ * unit-doc templates and the `UnitDoc` skeleton: `open`, `planned`, or
14
+ * `discarded <YYYY-MM-DD>` (the date is grammar, not vocabulary). */
15
+ export declare const FUTURE_STATUS_KINDS: readonly string[];
16
+ export type FutureStatus = (typeof FUTURE_STATUS_KINDS)[number];
17
+ /** The findings-table severity vocabulary (`finding-severity`), published by
18
+ * the `findings-table@1` block: `high | med | low`. Distinct from the review
19
+ * payload's five-level `FINDING_SEVERITIES` scale (index.ts) — the table is
20
+ * the ledger scale; the sensor's `SEVERITY_VOCABULARY` may accept legacy
21
+ * aliases on read, but the canonical table scale is this set. */
22
+ export declare const FINDINGS_TABLE_SEVERITIES: readonly string[];
23
+ export type FindingsTableSeverity = (typeof FINDINGS_TABLE_SEVERITIES)[number];
24
+ /** The `## Log` line-kind vocabulary (`log-kind`), published by the
25
+ * `log-kind@1` block. The reader const is `scripts/unit-doc-phases.mjs`
26
+ * `LOG_KINDS`; the parity suite pins the two together. */
27
+ export declare const LOG_KIND_TOKENS: readonly string[];
28
+ export type LogKindToken = (typeof LOG_KIND_TOKENS)[number];
29
+ /** The sweep claim kind the promise-coherence gate publishes (unit 84 S2): the
30
+ * `swept: /<pattern>/<flags> → expected <n> in <glob>` declaration a fold
31
+ * appends to its `## Log` entry (grammar owner: `sweep-declaration@1` in
32
+ * `skills/execute-phase/references/FOLDING.md`). */
33
+ export declare const SWEEP_CLAIM_KINDS: readonly string[];
34
+ export type SweepClaimKind = (typeof SWEEP_CLAIM_KINDS)[number];
35
+ /** The sweep claim's fail-closed reason code. */
36
+ export declare const SWEEP_MISMATCH_REASONS: readonly string[];
37
+ export type SweepMismatchReason = (typeof SWEEP_MISMATCH_REASONS)[number];
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Published closed vocabularies — the canonical machine-readable declarations
3
+ * (unit 84, issue #315 S1, decision D2).
4
+ *
5
+ * The repo publishes these sets in prose (the unit-doc templates, the ledger
6
+ * references, the sensor); the prose is a citation, never a second definition.
7
+ * A parity suite (`scripts/vocabulary-parity.test.mjs`) pins every second copy
8
+ * to the consts below — the F22/`LOG_KINDS` pattern, moved to the canonical
9
+ * home. Adding or removing a token is a schema-const + grammar-block +
10
+ * parity-pin change in one PR, never a prose-only edit.
11
+ */
12
+ /** The `## Future` row status vocabulary (`future-status`), published by both
13
+ * unit-doc templates and the `UnitDoc` skeleton: `open`, `planned`, or
14
+ * `discarded <YYYY-MM-DD>` (the date is grammar, not vocabulary). */
15
+ export const FUTURE_STATUS_KINDS = Object.freeze(["open", "planned", "discarded"]);
16
+ /** The findings-table severity vocabulary (`finding-severity`), published by
17
+ * the `findings-table@1` block: `high | med | low`. Distinct from the review
18
+ * payload's five-level `FINDING_SEVERITIES` scale (index.ts) — the table is
19
+ * the ledger scale; the sensor's `SEVERITY_VOCABULARY` may accept legacy
20
+ * aliases on read, but the canonical table scale is this set. */
21
+ export const FINDINGS_TABLE_SEVERITIES = Object.freeze(["high", "med", "low"]);
22
+ // The findings-table class vocabulary (`finding-class`) is already published
23
+ // canonically: `PRE_EXECUTION_FINDING_CLASSES` in `pre-execution.ts` is exactly
24
+ // the `product | plan | source | environment | runtime` set the
25
+ // `findings-table@1` block cites — no second const is created here.
26
+ /** The `## Log` line-kind vocabulary (`log-kind`), published by the
27
+ * `log-kind@1` block. The reader const is `scripts/unit-doc-phases.mjs`
28
+ * `LOG_KINDS`; the parity suite pins the two together. */
29
+ export const LOG_KIND_TOKENS = Object.freeze(["L", "E", "G", "F", "D", "P", "R", "V"]);
30
+ /** The sweep claim kind the promise-coherence gate publishes (unit 84 S2): the
31
+ * `swept: /<pattern>/<flags> → expected <n> in <glob>` declaration a fold
32
+ * appends to its `## Log` entry (grammar owner: `sweep-declaration@1` in
33
+ * `skills/execute-phase/references/FOLDING.md`). */
34
+ export const SWEEP_CLAIM_KINDS = Object.freeze(["sweep"]);
35
+ /** The sweep claim's fail-closed reason code. */
36
+ export const SWEEP_MISMATCH_REASONS = Object.freeze(["sweep-mismatch"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtrabanco/agentic-workflow-schema",
3
- "version": "4.8.0",
3
+ "version": "4.9.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",