You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: a worked example of one policy on every surface it compiles to #132
chock's claim is that you author a policy once and it becomes a git hook, a CI gate and a native
pre-tool hook. The README says this and the surfaces figure draws it — but there is no single
page that takes one real policy and shows the actual compiled artifact at each surface, side
by side.
That page is what makes the claim concrete for a reader deciding whether to adopt.
What to do: pick one policy that reaches several surfaces (block-no-verify and scan-secrets are both good candidates), compile it, and show what lands where — the actual
generated hook, the actual CI step, the actual ambient rule text. Real generated output, pasted,
not paraphrased.
Keep it honest: show what each surface cannot do too. The pre-tool hook is best-effort and
fails open if it crashes; the ambient rule only advises. A reader who finishes the page believing
all three are equivalent has been misled by it.
If the page ends up containing generated output, consider whether it should be checked the way
the other generated artifacts here are — a pasted artifact that drifts from what the compiler
now emits is worse than no example.
Activity