Skip to content

docs: read the policy section as one thing again - #58

Merged
blakebauman merged 1 commit into
mainfrom
docs/policy-depth-pass
Aug 13, 2026
Merged

blakebauman merged 1 commit into
mainfrom
docs/policy-depth-pass

Conversation

@blakebauman

Copy link
Copy Markdown
Member

Phase 4 of docs/design-policy-depth.md — the docs pass, which completes it. Follows #55, #56, #57.

Three features landed in sequence, each appending its own block to the README's policy section, and the result had gone chronological rather than logical: "first matching rule allows" sat below the deny rules that changed it, and a reader met maxItems before learning how a decision is reached at all.

Restructured under headings, decision procedure first — any matching deny refuses whatever the order, otherwise the first matching allow grants, otherwise defaultDecision — then one section per matcher with its caveat kept next to it: deny-wins, argument constraints and the visible-but-conditional asymmetry, toolKind and the hygiene-not-a-boundary warning, maxItems, the reverse direction, and principal matching. The config example now carries all of them, so the shapes are visible in one place instead of scattered across five snippets.

defaults.md gets the four new entries. Including the one that is deliberately not the safest available option: serverInitiatedDecision defaults to allow because that traffic flowed before the check existed, and that reasoning belongs in the frozen-defaults record rather than only in a design doc.

operations.md documents what these releases added to the audit trail — the direction field, the warned outcome, the new method strings (upstream/definitionChanged), and what an absent ruleId on a denial tells you: that nothing granted the call, as distinct from a rule refusing it.

Roadmap item 8 marked shipped, with the two things implementation decided that the design had left open.

Docs only. make check passes — including golangci-lint, which I can now run locally after installing the version CI pins, so the class of failure that bounced #57 gets caught before the push.

🤖 Generated with Claude Code

Three features landed in sequence, each appending its own block, and the
result was chronological rather than logical: "first matching rule allows"
sat below the deny rules that changed it, and a reader met maxItems before
learning how a decision is reached at all.

Restructured under headings, decision procedure first — any matching deny
refuses whatever the order, otherwise the first matching allow grants,
otherwise defaultDecision — with each matcher and its caveat in its own
section, and the config example carrying all of them so the shapes are
visible in one place.

Also: the four v1.12 defaults get their entries in defaults.md, including the
one that is deliberately not the safest option available.
serverInitiatedDecision defaults to allow because the traffic flowed before
the check existed, and that reasoning belongs in the frozen-defaults record
rather than only in a design doc. And operations.md documents the audit fields
these releases added — the direction field, the warned outcome, the new method
strings, and what an absent ruleId on a denial actually tells you.

Roadmap item 8 is marked shipped, with the two things implementation decided
that the design record had left open.

Phase 4 of docs/design-policy-depth.md, which completes it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@blakebauman
blakebauman merged commit 66e6a87 into main Aug 13, 2026
7 checks passed
@blakebauman
blakebauman deleted the docs/policy-depth-pass branch August 13, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant