@stravica-ai/rcf-schemas 0.10.0 → 0.11.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/fixtures/invalid/user-story/us-027-ac-proof-bad-value.json +21 -0
- package/fixtures/valid/user-story/us-016-ac-proof-full.json +22 -0
- package/fixtures/valid/user-story/us-017-ac-proof-journey.json +22 -0
- package/fixtures/valid/user-story/us-018-ac-proof-external.json +23 -0
- package/package.json +1 -1
- package/schemas/user-story.schema.json +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"usId": "US-204",
|
|
3
|
+
"prdId": "PRD-100",
|
|
4
|
+
"reqId": "REQ-204",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"status": "draft",
|
|
7
|
+
"title": "Proof outside the enum is rejected",
|
|
8
|
+
"asA": "author",
|
|
9
|
+
"iWant": "proof to be one of full, journey or external",
|
|
10
|
+
"soThat": "the level is unambiguous for a consumer that gates on it",
|
|
11
|
+
"acceptanceCriteria": [
|
|
12
|
+
{
|
|
13
|
+
"id": "AC-204-1",
|
|
14
|
+
"description": "Proof is neither full, journey nor external.",
|
|
15
|
+
"testable": true,
|
|
16
|
+
"proof": "light"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"createdAt": "2026-01-01T00:00:00Z",
|
|
20
|
+
"updatedAt": "2026-11-05T00:00:00Z"
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"usId": "US-305",
|
|
3
|
+
"prdId": "PRD-100",
|
|
4
|
+
"reqId": "REQ-305",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"status": "approved",
|
|
7
|
+
"title": "A money criterion is proved at the full level",
|
|
8
|
+
"asA": "test-author writing criteria at DEFINE",
|
|
9
|
+
"iWant": "a criterion on a charge to declare that its proof is the full mutation proof",
|
|
10
|
+
"soThat": "the audit runs the mutants over the Code Node that takes the money",
|
|
11
|
+
"acceptanceCriteria": [
|
|
12
|
+
{
|
|
13
|
+
"id": "AC-305-1",
|
|
14
|
+
"description": "A checkout charges the card exactly once for the order total.",
|
|
15
|
+
"testable": true,
|
|
16
|
+
"verification": "testOnly",
|
|
17
|
+
"proof": "full"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"createdAt": "2026-01-01T00:00:00Z",
|
|
21
|
+
"updatedAt": "2026-11-05T00:00:00Z"
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"usId": "US-306",
|
|
3
|
+
"prdId": "PRD-100",
|
|
4
|
+
"reqId": "REQ-306",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"status": "approved",
|
|
7
|
+
"title": "A core journey criterion is proved at the journey level",
|
|
8
|
+
"asA": "test-author writing criteria at DEFINE",
|
|
9
|
+
"iWant": "a criterion on a core journey to declare that its proof is an end-to-end test of the journey",
|
|
10
|
+
"soThat": "the audit checks its e2e-level bound tests and runs no mutants",
|
|
11
|
+
"acceptanceCriteria": [
|
|
12
|
+
{
|
|
13
|
+
"id": "AC-306-1",
|
|
14
|
+
"description": "A new user signs up, confirms the email and lands on the dashboard.",
|
|
15
|
+
"testable": true,
|
|
16
|
+
"verification": "external",
|
|
17
|
+
"proof": "journey"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"createdAt": "2026-01-01T00:00:00Z",
|
|
21
|
+
"updatedAt": "2026-11-05T00:00:00Z"
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"usId": "US-307",
|
|
3
|
+
"prdId": "PRD-100",
|
|
4
|
+
"reqId": "REQ-307",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"status": "approved",
|
|
7
|
+
"title": "A deployed criterion is proved by the release Verify",
|
|
8
|
+
"asA": "test-author writing criteria at DEFINE",
|
|
9
|
+
"iWant": "a criterion that only a deployed site can show to declare that the release Verify proves it",
|
|
10
|
+
"soThat": "the audit reports it notApplicable and the release Verify carries the proof",
|
|
11
|
+
"acceptanceCriteria": [
|
|
12
|
+
{
|
|
13
|
+
"id": "AC-307-1",
|
|
14
|
+
"description": "The production site serves the pricing page over HTTPS.",
|
|
15
|
+
"testable": true,
|
|
16
|
+
"scope": "deployed",
|
|
17
|
+
"verification": "external",
|
|
18
|
+
"proof": "external"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"createdAt": "2026-01-01T00:00:00Z",
|
|
22
|
+
"updatedAt": "2026-11-05T00:00:00Z"
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stravica-ai/rcf-schemas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "JSON Schemas for the Requirements Confidence Framework (RCF). Language-neutral. The contract every RCF tool keys to.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
"verification": {
|
|
92
92
|
"enum": ["external", "testOnly"],
|
|
93
93
|
"description": "How the acceptance criterion is verified. external: an operator can observe the behaviour by running the packed artefact, installed cold, against a fixture project. testOnly: the behaviour lives only in the repository's own tree, CI configuration or chain state. Optional at schema level. Absence carries no default at schema level: whether a consumer requires the flag, and what each value means for a criterion's end state, are the consumer's rules. Written by rcf-lite, which sets it at DEFINE (rcf-lite ADR-4152)."
|
|
94
|
+
},
|
|
95
|
+
"proof": {
|
|
96
|
+
"enum": ["full", "journey", "external"],
|
|
97
|
+
"description": "The proof level of the acceptance criterion, set at DEFINE. full: the structural check and the mutation proof over the criterion's Code Node symbols. journey: the structural check over its e2e-level bound tests only, no mutants, no Code Node. external: no structural check, no mutants, no Code Node; proved by the release Verify. Optional at schema level. Absence carries no default at schema level: absent meaning full is the consumer's rule. Written by rcf-lite (rcf-lite FBS-243)."
|
|
94
98
|
}
|
|
95
99
|
},
|
|
96
100
|
"dependentRequired": {
|