From 2973c53f0fc36af14d2e7bb201c7e9ca2b892af4 Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Tue, 21 Nov 2023 09:29:44 -0500 Subject: [PATCH] fix: add dynamic-context condition to 4.1.4 (#217) Signed-off-by: Todd Baert --- specification.json | 18 +++++++++++++----- specification/sections/04-hooks.md | 8 +++++++- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/specification.json b/specification.json index e2fa0fd2..3d55422d 100644 --- a/specification.json +++ b/specification.json @@ -559,11 +559,19 @@ "children": [] }, { - "id": "Requirement 4.1.4", - "machine_id": "requirement_4_1_4", - "content": "The evaluation context MUST be mutable only within the `before` hook.", - "RFC 2119 keyword": "MUST", - "children": [] + "id": "Condition 4.1.4", + "machine_id": "condition_4_1_4", + "content": "The implementation uses the dynamic-context paradigm.", + "RFC 2119 keyword": null, + "children": [ + { + "id": "Conditional Requirement 4.1.4.1", + "machine_id": "conditional_requirement_4_1_4_1", + "content": "The evaluation context MUST be mutable only within the `before` hook.", + "RFC 2119 keyword": "MUST", + "children": [] + } + ] }, { "id": "Requirement 4.2.1", diff --git a/specification/sections/04-hooks.md b/specification/sections/04-hooks.md index 2f7ebe78..8e8cc93e 100644 --- a/specification/sections/04-hooks.md +++ b/specification/sections/04-hooks.md @@ -41,7 +41,13 @@ Hook context exists to provide hooks with information about the invocation. > The `flag key`, `flag type`, and `default value` properties **MUST** be immutable. If the language does not support immutability, the hook **MUST NOT** modify these properties. -#### Requirement 4.1.4 +#### Condition 4.1.4 + +> The implementation uses the dynamic-context paradigm. + +see: [dynamic-context paradigm](../glossary.md#dynamic-context-paradigm) + +##### Conditional Requirement 4.1.4.1 > The evaluation context **MUST** be mutable only within the `before` hook.