Skip to content

Release needed: published 2.1.0 still overwrites a hardened governance workflow (docs on main say it won't) #397

Open

Description

@stackbilt-admin

Problem

The published @stackbilt/[email protected] (npm latest) still contains behavior the docs on main say is gone. docs/ci-integration.md on main says re-running setup/bootstrap "never silently overwrites a workflow you changed", but that fix (#374, via 6583976) landed after the v2.1.0 tag. So did the #380 npx charter fix (e55afd7) and the #379 hook fix (2bccbf2). git log v2.1.0..main shows 12 unreleased commits.

Reproduction (Windows, Node 24, CLI 2.1.0, throwaway repo)

  1. charter bootstrap --ci github --preset fullstack --mode lean --yes --skip-install
  2. Harden the workflow: contents: read, drop pull-requests: write, remove the badge steps.
  3. charter setup --preset fullstack --ci github --yes leaves it untouched ("CI policy gate: already present").
  4. charter bootstrap --ci github --preset fullstack --mode lean --yes --skip-install prints Updated .github\workflows\charter-governance.yml.

Actual

Step 4 restores contents: write and the steps that commit and push the badge, with no warning. That widens the token's permissions.

Expected

A release containing 6583976, e55afd7 and 2bccbf2. A user who installs from npm and follows the docs on main currently gets the opposite of the documented guarantee.

Scope

Measured on 2.1.0 only. I did not build main, so the fix itself is confirmed by commit ancestry and not by running it.

Activity

  1. added
    bug
    priority:p1
    on Oct 31, 2026
  2. stackbilt-admin commented on Nov 28, 2026

    @stackbilt-admin
    MemberAuthor

    Coordination note: epic #437 (preflight answer, #438–#451) lands in the 3.x source, so this release is what puts that work in front of agents running npm latest. #448 is scoped to advertise only behaviour the installed CLI has. #451's pilot runs on a release or a stated, locally built commit. #450 adds a CLI version-mismatch warning that makes this gap visible.

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

    bugpriority:p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions