← Back to Pull requests

feat(manifest): add the plugins and policy repos #108

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

Why

Lists the 23 kept plugins, their 41 policy repos and the 3 templates in repos.yaml, each with its rollout batch, so the S2 onboarding and the S3 settings runs can target them. active_batches stays []: with the gate from #107 (the PR below in this stack), no scheduled tool acts on any of them until a batch is switched on.

What

  • 67 explicit entries: kind go-plugin or policies, depends_on: [agent], release: true and batch 1-3 (batches of 10 plugins, each with all its policy repos). The templates (plugin-template, plugin-template-policies, policy-template) are in batch 1 with release: false.

  • Every name was checked against the org listing: each exists and is not archived. 12 use master as the default branch (marked in comments). The manifest has no branch field; every tool reads the default branch from GitHub.

  • include_patterns: ["plugin-"] and exclude: exactly the 20 repos archived in W2-S0-T03. The org has no other unarchived plugin- repo that isn't kept. Three more plugin- repos were archived earlier (plugin-aws-ecr-policies, plugin-os-ubuntu, plugin-os-ubuntu-policies); the check skips archived repos, so they aren't in exclude.

  • Coverage check (internal/manifest CheckCoverage, go run ./cmd/manifest --org compliance-framework):

  • - every listed repo must exist and not be archived;
    - every unarchived org repo matching a pattern must be listed or excluded.

    It only reads public repo metadata. CI's "Validate manifests" step runs it on repos.yaml with the workflow's token.

  • docs/manifest.md gets the coverage check section.
  • With every batch listed and none active, go run ./cmd/manifest prints the same four stages as main.

    Selection proof on the real repos.yaml

  • TestReposYAMLBatches (internal/manifest): with no batch active, ActiveRepos() is the 7 core repos. For each batch it checks:

  • - kinds and depends_on;
    - templates in batch 1 with release: false;
    - 10/10/3 released plugins per batch;
    - with that batch active, Stages() puts its released repos in stage 3 with agent-action, and helm-charts alone in stage 4.
  • Per tool, with every plugin and policy repo listed and no batch active, the default selection is still today's: TestSelectReposByBatchReposYAML in internal/renovate, cmd/ccf-bump, cmd/attention-digest, cmd/vuln-summary, cmd/repo-settings, and TestTrainReposByBatchReposYAML in cmd/train.

  • Coverage: TestCheckCoverage (fixture) and TestRunOrgCoverage (fake paginated API).
  • Verified locally

    go test -race ./..., go vet ./..., gofmt -l . (empty), actionlint v1.7.12, go run ./cmd/manifest on both manifests, and go run ./cmd/manifest --org compliance-framework, which reports that repos.yaml covers the org's 124 public repos.

    Open questions for reviewers

  • The plan (W3-S1-T01 item 1) lists the templates under exclude. This PR lists them with release: false and batch: 1, as the task spec asks. A repo can't be both.

  • Plan item 4 (explicit plugin-to-policy mappings): every kept policy repo already sits under its plugin, and plugin-probe checks plugins and bundles independently, so no mapping field was added. The only mismatched pair (plugin-azure-vms / plugin-azure-vm-policies) is archived.

  • CI's token sees public org repos only, so a listed repo must stay public, and a private plugin- repo isn't required until it is made public.
  • Task: W3-S1-T01 (local-dev/docs/release-automation/workstream-3-plugins-in-train.md)

    🤖 Generated with Claude Code

    Diff: 449 lines (+336 / -113) across 5 files Reviewer: gusfcarvalho Review duration: 21m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 449 lines diff across 5 files
    0.45
    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.366
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #108"
    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: 45.4% (MEDIUM) · Higher = larger blast radius
    45.4%
    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: 17.9% · Safe to merge
    17.9%