Repository navigation
spec: register the reason codes the specification names in section 17.2 - #242
Conversation
Section 17.1 fixes a code for every mandated error, and three mandated denials name their reason code only in prose. List them in 17.2 so a conformance vector can assert a DENY's code, and keep every other reason code free vocabulary. Signed-off-by: Sankalp Gilda <23521054+astrogilda@users.noreply.github.com>
Lrd0036
left a comment
There was a problem hiding this comment.
Small clarification: §8.6 makes the chain-mismatch denial optional, so ‘mandated’ is a little stronger than the underlying rule. Not a blocker.
Section 8.6 lets a Guardian deny with chain_mismatch (MAY); it does not require the denial. Register the codes the specification names for a DENY rather than only mandated ones, add a column saying whether each denial is required or optional, and state that registering a code does not make an optional denial required. Signed-off-by: Sankalp Gilda <23521054+astrogilda@users.noreply.github.com>
|
@Lrd0036, thanks for catching that. Section 8.6 says a Guardian MAY deny with a1aa0e1 adds a column to the 17.2 table that says whether each denial is required or optional, and it marks the 8.6 denial optional. The new section also states that registering a code does not make an optional denial required. The title and description now say the table registers the codes the specification names. |
Lrd0036
left a comment
There was a problem hiding this comment.
Thanks @astrogilda, a1aa0e1 resolves it. The Denial column matches each section: §6.5 and §9.2 require their substitutions, and §8.6 only permits the chain_mismatch denial. The table covers every reason code the specification names. Merged into current integration, the suite and the strict docs build pass. Approving.
@bar-capsule @afogel, this adds a MUST to §17.2, so I'll leave the review and merge to you guys
|
@Lrd0036 thanks for checking it against current integration and approving. @rocklambros @bar-capsule @afogel, since this adds a MUST to 17.2, could one of you review and merge? |
drk-ram
left a comment
There was a problem hiding this comment.
Security standards peer review of commit a1aa0e1317d6d75d00b29a088e65f9c9dcb2eadc.
No security vulnerabilities found in the reviewed changes. I checked the registered spellings and denial requirements against sections 6.5, 9.2, and 8.6. The registry preserves the optional chain-mismatch denial, the conditional approver-unavailable fallback, and the open reason-code vocabulary; it does not turn an optional integrity response into a mandatory denial.
0 tests executed: this commit changes specification prose only. Review and normative cross-checks were performed on the exact commit above. Approved for this change's security and standards scope.
|
I moved this PR's base to Moving the base dismissed Lance's approval. @Lrd0036, could you re-approve when you get a chance? |
rocklambros
left a comment
There was a problem hiding this comment.
Restoring the approval that moving this PR to release/0.2 dismissed. The commit is the one Lance approved, a1aa0e1. I merged it into the current release/0.2 and ran the suite (1261 passed, 1 skipped) and mkdocs build --strict, and both pass. I didn't re-review the reason code text itself, so this approval stands on Lance's review of it.
|
Hi Sankalp, this registers the reason codes that section 17.2 names, as part of the conformance work in #33. It is accepted work, and the only gap is assignment. #33 is the umbrella issue for the whole suite, and nobody is assigned to it. D-041 needs the pull request's issue to be assigned to its author. Here is how we fix it:
My approval from today stays when you close and reopen. Editing the description doesn't dismiss it either. |
|
Hi Sankalp, I opened #685 for the part of #33 that this PR delivers. #685 is accepted, on the v0.2.0 milestone, and linked under #33. CONTRIBUTING.md (D-041) only reviews a pull request whose issue is assigned to its author. GitHub only lets us assign people who have access to the repository, so I sent you a read-access invitation today. Here is how we fix it:
|
|
"register the reason codes the specification names in section 17." It has no issue reference, so it fails intake. |
bc7e078
into
GenAI-Security-Project:release/0.2
What changed
The ACS specification names the reason code for three denials only in prose: modify_unsupported (6.5), approver_unavailable (9.2) and chain_mismatch (8.6). This adds section 17.2, a table that registers those three codes and says whether each denial is required or optional. Section 6.5 requires its denial, 9.2 requires it when no recovery path exists, and 8.6 only permits it. A conformance test can then assert the code on a DENY, and an SDK can branch on it. Codes for refusals whose code the specification does not name stay free vocabulary in reason_codes.
Which issue does this implement
Part of #33, the ACS-Core negative-vector work.
Base branch
The integration branch, because the change is normative text under docs/spec.
Impact on implementers
A Guardian that already follows sections 6.5, 8.6 and 9.2 of the specification only has to spell each code as registered. Registering chain_mismatch does not make the 8.6 denial required.
Testing
uv run mkdocs build --strictpasses, and the commits are signed off.Edited 2026-10-12: the 8.6 denial is described as optional, as section 8.6 states, and the table says which denials are required.