Skip to content

spec: register the reason codes the specification names in section 17.2 - #242

Merged
DanPazlev merged 2 commits into
GenAI-Security-Project:release/0.2from
astrogilda-forks:spec/reason-code-registry
Nov 30, 2026
Merged

DanPazlev merged 2 commits into
GenAI-Security-Project:release/0.2from
astrogilda-forks:spec/reason-code-registry

Conversation

@astrogilda

@astrogilda astrogilda commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

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 --strict passes, 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.

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
Lrd0036 previously approved these changes Oct 9, 2026

@Lrd0036 Lrd0036 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@astrogilda astrogilda changed the title spec: register mandated reason codes in section 17.2 spec: register the reason codes the specification names in section 17.2 Oct 13, 2026
@astrogilda

Copy link
Copy Markdown
Collaborator Author

@Lrd0036, thanks for catching that. Section 8.6 says a Guardian MAY deny with chain_mismatch, so "mandated" was wrong for that row.

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
Lrd0036 previously approved these changes Oct 22, 2026

@Lrd0036 Lrd0036 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@astrogilda

Copy link
Copy Markdown
Collaborator Author

@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 drk-ram left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@rocklambros

Copy link
Copy Markdown
Collaborator

I moved this PR's base to release/0.2, the new branch for 0.2 work. Changes to the spec, the schemas, or the conformance requirements now go there, and PR #675 records that rule as D-052. The branch starts at today's integration, so your diff is the same and you don't need to do anything right now. From now on, sync with release/0.2.

Moving the base dismissed Lance's approval. @Lrd0036, could you re-approve when you get a chance?

@rocklambros rocklambros left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@rocklambros

Copy link
Copy Markdown
Collaborator

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:

  1. I open a new issue for this part only (register the section 17.2 reason codes). It changes specification text, so it goes on the v0.2.0 milestone. I accept it and assign it to you, and I'll post the new number here.
  2. Change the issue section to Closes #<new number>, and keep Part of #33 on its own line below it.
  3. Close this pull request and reopen it, so it counts as opened after the assignment.

My approval from today stays when you close and reopen. Editing the description doesn't dismiss it either.

@rocklambros

Copy link
Copy Markdown
Collaborator

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:

  1. Accept the invitation. It is at https://github.com/GenAI-Security-Project/agent-control-standard/invitations and in your GitHub notifications. It expires after 7 days.
  2. I assign Register the reason codes that section 17.2 names #685 to you and post here when it's done.
  3. In the issue section of this pull request, write Closes #685 on the first line and keep Part of #33 on its own line below it.
  4. Close this pull request and reopen it, so it counts as opened after the assignment.
  5. Then I review it.
    My approval from earlier today stays when you close and reopen.

@DanPazlev

Copy link
Copy Markdown
Collaborator

"register the reason codes the specification names in section 17." It has no issue reference, so it fails intake.

@DanPazlev
DanPazlev merged commit bc7e078 into GenAI-Security-Project:release/0.2 Nov 30, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in ACS Project Tracker Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants