Description
Return scopePath length and whether broaderPath is an exact prefix, then extra levels only when it applies, otherwise zero.
Consent, disclosure, duties and exceptions can be represented as records and flags. A consistency check describes those representations; it cannot independently establish valid consent, a justified exception or satisfaction of a real obligation.
Return scopePath length and whether broaderPath is an exact prefix, then extra levels only when it applies, otherwise zero.
When to use this tool
Use Duty Rule Specificity Depth when you need a literal ethical-policy record or eligibility diagnostic.
How to use the tool and how it works
- Enter scopePath, broaderPath. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read depth, prefixApplies, additionalLevels. Inspect prefixApplies before interpreting the associated values.
Return scopePath length and whether broaderPath is an exact prefix, then extra levels only when it applies, otherwise zero.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| scopePath | Scope Path | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| broaderPath | Broader Path | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| depth | Depth on the common length basis and sign convention above. | Required. Safe integer. |
| prefixApplies | Prefix Applies | Required. Boolean. |
| additionalLevels | Additional Levels | Required. Safe integer. |
{
"input": {
"scopePath": [
"A",
"B",
"C"
],
"broaderPath": [
"A"
]
},
"output": {
"depth": 3,
"prefixApplies": true,
"additionalLevels": 2
}
} Limitations and assumptions
- An empty broader path is a prefix of every path. This token hierarchy is a supplied model, not a rule of legal or moral priority.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Review source evidence, applicable rules and affected people's choices through the appropriate process. Authenticate permissions and evaluate substantive reasons separately from token membership and boolean flags.
References
Similar or alternative tools
- Justification Exception Scope Overlap
Deduplicate requested tokens.
- Normative Rule Exception Count
Count applicable rules without exception and applicable rules with exception.