Add the pub.dev release workflow (tag v<version>, OIDC) and its guards #52
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #52"
general
weight: 0.35
krassx
What
A release pipeline that publishes both packages to pub.dev from one pushed tag. Pipeline and guards only: nothing was published, tagged, or configured on pub.dev or GitHub.
v<version>(the 9.x form). Both packages release lock-step from that one tag; pub.dev's tag pattern isv{{version}}for each.id-token: write, works only for an existing package, and pub.dev rejects publishing from a run not triggered by a tag push.gate(read-only, no token, no environment): tag commit reachable fromorigin/main; tag == both pubspec versions == both CHANGELOG top entries (scripts/check_release.sh);ci-okis green on the commit; on Flutter 3.50.0: format, both Pigeon checks, option registry check, analyze + test (root and feedback),flutter pub publish --dry-run,check_pub_archive.shon the core archive,publish_feedback.shdry run.publish-core(needsgate, tag push only,environment: pub.dev,id-token: write):dart-lang/setup-dart(it mints the pub.dev credentialPUB_TOKENfrom the OIDC token; checked in its source,subosito/flutter-actiondoes not), thenflutter pub publish --force; skipped if that version is already live (safe re-run).publish-feedback(needsgate+publish-core, same environment): waits up to 20 min for the core to be live on pub.dev, thensetup-dartagain (the credential is short-lived), thenscripts/publish_feedback.sh --publish --yes(keeps its refusals: dirty tree, copy of tracked files, archive check). New--yes= pub's--force, only valid with--publish.workflow_dispatch,dryRundefault true): runs the whole gate (which includes the dry runs of both packages and prints what pub.dev has); the publish jobs are tag-push only (if:), so the environment's tag rule never sees a branch.dryRun: falseis refused in the first step because pub.dev would refuse it anyway.github.sha(not the tag's current target); concurrency groupreleasefor tag pushes (never cancelled; GitHub keeps one pending run, so a third push replaces the pending one), a separate group per rehearsal; every job hastimeout-minutes;persist-credentials: false; actions pinned the way the other workflows pin them.Guards (same change, reason: publishing is now legitimate, so the rule became where it may sit)
nothing publishes: pub publish is always a dry runis replaced byonly the release workflow publishes, only under the environment, only after the gate: a real publish must be inrelease.yml, in a job withenvironment: pub.dev,id-token: writeandneeds: [gate…], in a step that runs only on a tag push;id-token: writeappears nowhere else. A mutation test shows each break failing (publish inci.yml, token inci.ymlor in the gate, no environment, no token, noneedsgate, a publish step reachable from a manual run or by||,always()/continue-on-errorpast a failed gate, a dry run chained to a real publish, no setup-dart before the publish); status reads keep their exit code. New tests also pin the trigger, dry-run default, concurrency, that the gate repeatsci.yml's format/codegen commands, and that everything runs on the floor.test/release_scripts_test.dartrunscheck_release.sh(mismatch in any one of the four copies is refused) andpub_dev_status.sh(against a local server; a 5xx or unreachable server is an error, never "missing"). The other guards are unchanged (least-privilege now permits only theid-token: writelines of the publishing jobs inrelease.yml).Docs:
.github/CI.md("Releases"),PLAN.mdrelease checklist (step 0 setup, step 7 now "tag and let the workflow publish", manual fallback kept),.claude/CLAUDE.md,doc/design-rules.md.Verified locally
actionlintandshellcheckclean;flutter analyze, fullflutter test(1415),dart formaton Flutter 3.50.0; on a clean tree: both Pigeon checks, option registry check,flutter pub publish --dry-run(0 warnings), core archive check,publish_feedback.shdry run (0 warnings);check_release.shagainst the current tree with a matching and a wrong tag;pub_dev_status.shagainst the real pub.dev (live, missing version, missing package).Not verifiable without a real publish
The OIDC exchange and pub.dev's acceptance (tag-pattern, environment claim);
flutter pub publish --forcefrom the workspace root and--forcefrom the copy inpublish_feedback.sh; the gate on ubuntu (the same analyze/test asci.yml, which runs them on macOS);gh api .../check-runswithchecks: read;fetch-depth: 0exposingorigin/mainfor a tag run. Aworkflow_dispatchrehearsal needsrelease.ymlonmain.Maintainer checklist before the first release
pub.dev (package admin):
bugsee_flutter_feedbackby hand (new packages cannot use automated publishing): clean checkout of the release commit, Flutter 3.50.0, core already live,scripts/publish_feedback.sh --publish.bugsee_flutter(publisher bugsee.com) > Admin > Automated publishing: enable GitHub Actions, repositorybugsee/bugsee-flutter, tag patternv{{version}}; tick "Require GitHub Actions environment" =pub.dev.bugsee_flutter_feedback.GitHub (repo admin):
pub.dev, add required reviewers, limit deployment tags tov.v(only maintainers create; no update or delete).main(the workflow must be on the default branch), then runreleasevia Actions > Run workflow withdryRuntrue to rehearse.ci-okgreen on themaincommit, pushv<version>(versions in both pubspecs and CHANGELOGs must already match), approve thepub.devenvironment, check both packages on pub.dev.Note: #50 (10.0.0-beta.1) and #51 touch PLAN.md/CI.md/ci.yml; I will rebase as they land.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WeiJxNbNUdWru1zs68bYV8