@gtrabanco/agentic-workflow-schema 4.6.0 → 4.7.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/README.md +1 -0
- package/dist/pre-execution.d.ts +17 -11
- package/dist/pre-execution.js +17 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -467,6 +467,7 @@ const spec = [
|
|
|
467
467
|
"## Why", "", "The customer needs it.", "",
|
|
468
468
|
"## User outcome", "", "Users can do X.", "",
|
|
469
469
|
"## Acceptance criteria", "", "- [x] S1 done.", "",
|
|
470
|
+
"## Impact", "", "`selectSpecProduct` and the snapshot builder read it.", "",
|
|
470
471
|
"## Non-goals", "", "- Not S2.", "",
|
|
471
472
|
"## Future cost", "", "None known.", "",
|
|
472
473
|
"## Applicable tests", "", "- Unit tests.", "",
|
package/dist/pre-execution.d.ts
CHANGED
|
@@ -89,11 +89,16 @@ export declare function isImpossibleReceiptTimeline({ finishedAt, sourceCommitDa
|
|
|
89
89
|
sourceCommitDate: unknown;
|
|
90
90
|
skewMs?: unknown;
|
|
91
91
|
}): boolean | null;
|
|
92
|
-
/** The unit document's closed
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
/** The unit document's closed required-section list (#305: 14 sections). The
|
|
93
|
+
two-half SPEC was retired by feature 61: plan-feature, plan-fix, review-spec,
|
|
94
|
+
review-plan, and design-feature are absorbed into the lane, which uses a single
|
|
95
|
+
unit document with these sections; the selector reads them in order. `Impact`
|
|
96
|
+
is required since #305 — it shipped as a tolerated extra while every published
|
|
97
|
+
surface (both templates, `template/AGENTS.md`, `MIGRATION.md`, `LANE_FLOW.md`,
|
|
98
|
+
`init-workspace`) already promised 14 sections including it, so the machine was
|
|
99
|
+
looser than the product. Its *content* is checked by
|
|
100
|
+
`scripts/promise-coherence.mjs`, not here: this list enforces shape only. */
|
|
101
|
+
export declare const UNIT_DOC_REQUIRED_SECTIONS: readonly ["Objective", "Why", "User outcome", "Acceptance criteria", "Impact", "Non-goals", "Future cost", "Applicable tests", "Known pre-existing issues", "Tasks", "Evidence", "Progress log", "Next", "References"];
|
|
97
102
|
/** One artifact bound into a snapshot, by the exact bytes the reviewer read. */
|
|
98
103
|
export interface PreExecutionArtifactRow {
|
|
99
104
|
readonly kind: PreExecutionArtifactKind;
|
|
@@ -200,12 +205,13 @@ export type SpecProductSelection = {
|
|
|
200
205
|
* Cut the Product projection out of a SPEC document.
|
|
201
206
|
*
|
|
202
207
|
* The selection is byte-exact and total: the level-1 title and the required
|
|
203
|
-
* level-2 sections (
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
* Product authority, so a Plan-phase write can
|
|
208
|
-
* silently erase a recorded review (the
|
|
208
|
+
* level-2 sections (`UNIT_DOC_REQUIRED_SECTIONS`, in that order), ending at the
|
|
209
|
+
* first boundary heading after `References`, with trailing blank lines removed
|
|
210
|
+
* and exactly one final newline. Everything the selector does NOT take — the
|
|
211
|
+
* tolerated extras (`## Future`, `## Issue`, `## Branch`, `## Regression scope`),
|
|
212
|
+
* later appendices — stays outside Product authority, so a Plan-phase write can
|
|
213
|
+
* never rotate a Product digest and silently erase a recorded review (the
|
|
214
|
+
* property AC2 and S6 test).
|
|
209
215
|
*
|
|
210
216
|
* Determinism rules that make the digest trustworthy:
|
|
211
217
|
* - line endings normalize to LF first, so a CRLF checkout and an LF editor
|
package/dist/pre-execution.js
CHANGED
|
@@ -109,15 +109,21 @@ function parseStamp(value) {
|
|
|
109
109
|
const ms = Date.parse(value.trim());
|
|
110
110
|
return Number.isNaN(ms) ? null : ms;
|
|
111
111
|
}
|
|
112
|
-
/** The unit document's closed
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
/** The unit document's closed required-section list (#305: 14 sections). The
|
|
113
|
+
two-half SPEC was retired by feature 61: plan-feature, plan-fix, review-spec,
|
|
114
|
+
review-plan, and design-feature are absorbed into the lane, which uses a single
|
|
115
|
+
unit document with these sections; the selector reads them in order. `Impact`
|
|
116
|
+
is required since #305 — it shipped as a tolerated extra while every published
|
|
117
|
+
surface (both templates, `template/AGENTS.md`, `MIGRATION.md`, `LANE_FLOW.md`,
|
|
118
|
+
`init-workspace`) already promised 14 sections including it, so the machine was
|
|
119
|
+
looser than the product. Its *content* is checked by
|
|
120
|
+
`scripts/promise-coherence.mjs`, not here: this list enforces shape only. */
|
|
116
121
|
export const UNIT_DOC_REQUIRED_SECTIONS = Object.freeze([
|
|
117
122
|
"Objective",
|
|
118
123
|
"Why",
|
|
119
124
|
"User outcome",
|
|
120
125
|
"Acceptance criteria",
|
|
126
|
+
"Impact",
|
|
121
127
|
"Non-goals",
|
|
122
128
|
"Future cost",
|
|
123
129
|
"Applicable tests",
|
|
@@ -239,12 +245,13 @@ function selectionError(code, heading) {
|
|
|
239
245
|
* Cut the Product projection out of a SPEC document.
|
|
240
246
|
*
|
|
241
247
|
* The selection is byte-exact and total: the level-1 title and the required
|
|
242
|
-
* level-2 sections (
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
* Product authority, so a Plan-phase write can
|
|
247
|
-
* silently erase a recorded review (the
|
|
248
|
+
* level-2 sections (`UNIT_DOC_REQUIRED_SECTIONS`, in that order), ending at the
|
|
249
|
+
* first boundary heading after `References`, with trailing blank lines removed
|
|
250
|
+
* and exactly one final newline. Everything the selector does NOT take — the
|
|
251
|
+
* tolerated extras (`## Future`, `## Issue`, `## Branch`, `## Regression scope`),
|
|
252
|
+
* later appendices — stays outside Product authority, so a Plan-phase write can
|
|
253
|
+
* never rotate a Product digest and silently erase a recorded review (the
|
|
254
|
+
* property AC2 and S6 test).
|
|
248
255
|
*
|
|
249
256
|
* Determinism rules that make the digest trustworthy:
|
|
250
257
|
* - line endings normalize to LF first, so a CRLF checkout and an LF editor
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtrabanco/agentic-workflow-schema",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.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",
|