Skip to content

feat(ci): platform admissibility gate — apply live Kyverno policy sets to the rendered scaffold#72

Merged
devantler merged 1 commit into
mainfrom
claude/admissibility-gate-71
Jul 17, 2026
Merged

feat(ci): platform admissibility gate — apply live Kyverno policy sets to the rendered scaffold#72
devantler merged 1 commit into
mainfrom
claude/admissibility-gate-71

Conversation

@devantler

Copy link
Copy Markdown
Contributor

🤖 Generated by the Daily AI Engineer

Why

The scaffold's promise is "admissible on day one", but nothing enforced it — drift against the platform's admission policies only surfaced when a fresh tenant bounced. With the shared policy repo now live, the policy landscape is also about to move, which is exactly when a mechanical gate earns its keep.

What

A new CI job renders the scaffold and applies the platform's live Kyverno admission policy set (plus the shared kyverno-policies set) to it: Enforce violations fail the PR, Audit policies warn, and a fail-open guard rejects a vacuous green. Verified locally in both directions against the real policy sets.

Fixes #71. Part of #6.

…s to the rendered scaffold

Fixes #71. Part of #6 (theme 4).

Applies the platform's rendered cluster-policies base and the shared
kyverno-policies set to the rendered deploy/ scaffold with a pinned,
checksummed kyverno CLI. Enforce violations fail (--warn-exit-code
activates exit-1-on-failure; verified v1.18.2 behavior both directions
locally), Audit-mode policies warn, generate + mutate-existing rules are
filtered (cluster-state actions; need a live client), plain mutate rules
are kept so validation mirrors the cluster's mutate-then-validate order.
A fail-open guard requires at least one passing rule on the platform set.
Policy checkouts are deliberately unpinned — drift is the signal.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Daily AI Engineer

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 1795254882

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@devantler
devantler marked this pull request as ready for review July 17, 2026 01:47
@devantler
devantler requested a review from a team as a code owner July 17, 2026 01:47
@devantler
devantler merged commit 99f5912 into main Jul 17, 2026
12 checks passed
@devantler
devantler deleted the claude/admissibility-gate-71 branch July 17, 2026 02:20
@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Daily AI Engineer

Readiness record (self-promotion per the merged constitution): the gate's mechanics were verified locally in both directions against the real policy sets (an Enforce violation exits 1; the clean scaffold exits 0 with audit warnings tolerated; --warn-exit-code is what arms failure-exit — a naïve gate is fail-open), and the effect is observed end-to-end: the new Platform Admissibility job executed in this PR's own CI and passed against the live platform + shared policy sets. Full pentad: required checks green, 0 threads, no conflict, codex clean pass @17952548 == head. Promoting and merging.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ci): admissibility gate — apply the platform's live Kyverno policy set to the rendered scaffold

1 participant