← Back to Pull requests

chore: release-please and shared release workflows #14

Closed
unknown closed this pull request without merging on Oct 13, 2026 16:55 UTC
View on GitHub
unknown unknown commented on Oct 13, 2026 16:04 UTC
Author

Why

This repo joins the release train (W3 batch 1, with plugin-github-settings). Releases now come from release-please PRs and the shared release-policies.yml, instead of a tag push running a local workflow. Release candidates come from the cut-prerelease workflow. The default branch is main.

What

  • release-please-config.json: copied from mock-plugin-policies-1. Its top-level keys equal release-please/defaults.json at workflows v1.5.2 (no drift). packages: {".": {"release-type": "simple"}}.

  • .release-please-manifest.json is seeded at 0.4.1. That is releases/latest (v0.4.1, a final release). Its commit a038386 is an ancestor of main, so no bootstrap-sha is needed. There is no version.txt; release-please adds it in the first release PR.

  • New callers, copied from mock-plugin-policies-1 with every pin at 6e7fc9c04b59c7d1117938da397f8a6f8df036ab # v1.5.2:

  • - release-please.yml runs on push to main;
    - release.yml runs on release: published and calls release-policies.yml with opa-version: "1.14.1" and directory: policies;
    - preview.yml uses kind: policies with on-main: false, so only the preview label builds;
    - cut-prerelease.yml runs on workflow_dispatch.
  • ci.yml: the three pins move from v1.5.1 to v1.5.2. It already had release-checks. Nothing else changes.
  • Deleted files

  • .github/workflows/release.yml (the old one) ran on any tag push and called build-and-upload.yml. It is replaced by the new release.yml above.

  • .github/workflows/build-and-upload.yml ran opa build -b policies with OPA latest. It attached bundle.tar.gz to the GitHub release and ran gooci upload-single twice, once to :<tag> and once to :latest.
  • Artifact comparison (old workflow vs shared v1.5.2)

  • Bundle: still built from policies/ only. With OPA 1.14.1, opa build -b policies -o … (old) and opa build --bundle policies --output … (shared) give byte-identical tarballs (sha256 3020d649…). Both contain /data.json, /.manifest and the 25 /policies/*.rego files (the _test.rego files included, as before).

  • OPA version: the old workflow used latest at release time. The shared one pins 1.14.1, the agent's OPA.

  • OCI repo and upload: unchanged. The repo is ghcr.io/compliance-framework/plugin-github-settings-policies, and the upload is still gooci upload-single of bundle.tar.gz, with gooci v0.0.7.

  • OCI tags:

  • - A final vX.Y.Z release gets :vX.Y.Z and :latest, as before. The bundle is now uploaded once and crane tag points :latest at the same manifest, so both tags share one digest. The old workflow uploaded twice and made two manifests.
    - Old: latest was skipped when github.event.release.prerelease was set. On a tag-push event that field is empty, so every tag, rc included, moved latest. New: whether latest moves is decided from the tag name, so vX.Y.Z-rcN leaves latest untouched. (This repo has never had an rc tag; all six tags are vX.Y.Z.)
    - Tags must now be vX.Y.Z[-rcN]. The old workflow accepted any tag name.
  • Previews (new): :pr-<n>, published only when a PR has the preview label. Previews never touch :latest.

  • GitHub release assets: the old workflow attached bundle.tar.gz to the GitHub release (v0.4.1 carries it). The shared workflow attaches nothing. This needs a human decision (same as the batch-1 pilot): does anything consume the release asset? The agent pulls from OCI.
  • Verified locally

  • go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.12 is clean.

  • With OPA 1.14.1, opa build policies works, opa check policies is clean and opa test policies passes (52/52).

  • The config has no drift from the shared defaults (jq -S 'del(.packages)' of both files compared).

  • Every commit's author and committer is ccf-lisa[bot].
  • The README covers testing and make build, not releasing, so it is unchanged. The PR stays open until the batch's repo settings are applied, because the release environment holds the ccf-release-bot secrets.

    Task: W3-S2-T02 (local-dev/docs/release-automation/workstream-3-plugins-in-train.md)

    🤖 Generated with Claude Code

    Diff: 528 lines (+396 / -132) across 6 files Reviewer: gusfcarvalho Review duration: 50m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 528 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.375
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #14"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.8% (MEDIUM) · Higher = larger blast radius
    47.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.9% · Safe to merge
    18.9%