Skip to content

ci: enforce monetisation wheel boundary on the release gate - #236

Merged
harishquantamix merged 1 commit into
masterfrom
cr-mon-wheel-gate-release-enforce-public
Jul 26, 2026
Merged

harishquantamix merged 1 commit into
masterfrom
cr-mon-wheel-gate-release-enforce-public

Conversation

@quantamixsol

Copy link
Copy Markdown
Owner

Public cherry-pick of the private-merged enforcement (#311). This is the repo whose CI publishes to PyPI, so the guard only gates the real release once it lands here.

What

scripts/ci/trade_secret_wheel_gate.py gains --check-monetisation: on the real release build (push to master + every v* tag) it asserts the Community wheel:

  • SHIPS the client-side enforcers: limits.py, meter.py, manager.py, ed25519_license.py, trusted_keys.json, guardian/tier.py
  • STRIPS server-side/signer: cloud/*, server/*, leads/*, studio/*, keygen.py
  • exit 1 on any violation → fails the release build.

Opt-in flag (off by default) → the TS gate's synthetic-wheel unit tests are unaffected. The workflow passes --check-monetisation. +4 gate tests.

Verified

27 gate tests pass. (Gate scans the wheel RECORD, independent of source values.)

Scope

Touches ONLY the gate script + workflow + tests — no version/release files (separate from any version-bump work).

🤖 Generated with Claude Code

Public cherry-pick of private-merged enforcement. This is the repo whose CI
publishes to PyPI, so the guard only gates the real release once it lands here.

scripts/ci/trade_secret_wheel_gate.py gains --check-monetisation: on the real
release build (push to master + every v* tag) it asserts the Community wheel
SHIPS the client-side monetisation enforcers (limits.py, meter.py, manager.py,
ed25519_license.py, trusted_keys.json, guardian/tier.py) and STRIPS the
server-side/signer code (cloud/*, server/*, leads/*, studio/*, keygen.py) —
exit 1 on violation. Opt-in flag → the TS gate's synthetic-wheel unit tests are
unaffected. The workflow passes --check-monetisation. +4 gate tests.

Touches ONLY the gate script + workflow + tests — no version/release files.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🛡️ GraQle PR Guardian

💥 Blast Radius: 3 modules affected

Module Files Changed Risk Level Impact Radius
.github 1 🟠 T3 1
scripts 1 🟠 T3 1
tests 1 🟠 T3 1

Total blast radius: 3


🏛️ Governance Verdict

🚫 FAIL

  • T3: 3 file(s) require explicit approval.

🔍 SHACL Violations

No SHACL violations detected.


🔐 Approval Requirements

This PR requires approval from: T3

  • A registered Tech Lead or Governance Admin must approve.

Approval requirement NOT yet satisfied.


Metric Value
Blast Radius 3
Files Analyzed 3
Blocked 3
SHACL Violations 0
Verdict FAIL

🔬 Powered by GraQle PR Guardian v0.1.0 · Scan completed 2026-07-26T17:33:27.839924+00:00

@harishquantamix
harishquantamix merged commit dd57aee into master Jul 26, 2026
19 checks passed
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.

2 participants