Skip to content

docs: a worked example of one policy on every surface it compiles to #132

Open

Description

@jothimani-rajendran

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.

Sized to an afternoon. Files: docs/.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions