Repository navigation
Description
Summary
roadmap-service runs the periodic closure job in the homelab cluster. When all deliverables in the active milestone are delivered and closed, plan_close schedules a release cut and invokes cut_release. However, the automated release process fails because cut_release attempts to push directly to release/vX.Y.Z (git push --force-with-lease -u origin release/vX.Y.Z), which is blocked by GitHub ruleset 23059172 requiring all changes to release/* to be made via pull request (GH013).
Details & Root Causes
- Direct Push Blocked by Ruleset 23059172:
GitHub branch ruleset 23059172 enforces pull request requirements onrefs/heads/release*/**/*. Direct pushes from automated background jobs fail withremote: error: GH013: Repository rule violations found for refs/heads/release/vX.Y.Z. Changes must be made through a pull request. - Missing Changelog Collation in Cut Sequence:
_apply_cut_modificationsbumps versions acrosspyproject.toml,__init__.py,k8s/devops/kustomization.yaml, anduv.lock, but does not collatechangelog.d/fragments intoCHANGELOG.md. - Repository Invariant Alignment:
AGENTS.mdenforces that all changes intended formainorrelease/*branches must be committed via pull requests. Automated release choreography should adhere to this or support proper release bot credentials/bypass.
Acceptance Criteria
-
roadmap-serviceandcut_releaseautomate release preparation (version bump, changelog fragment collation, service image tag pinning, docs sync) without violating branch protection rules. - If branch protection requires PRs on
release/*, automated release preparation creates a dedicated preparation PR or uses an authorized bypass actor. - The release pull request from
release/vX.Y.Zintomainis reliably created byroadmap-serviceonce the release branch is ready.
Update 2026-10-08: owner decision, reduced scope
Decision (owner, 2026-10-08): ruleset bypass, not a preparation PR.
- The machine account gets push access to
release/*through the release ruleset's bypass list. - The automatic cut keeps pushing the version bump and
docs/ROADMAP.mdtorelease/vX.Y.Z, as designed. refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103's decision stands: no release-process PR after the cut, and fragments are collected when the release merges or publishes, never in a cut commit. - The chore/prepare-vX.Y.Z design proposed in the comments is not built.
Person step, done once by the owner:
- In Settings → Rules → Rulesets, open the ruleset that covers
release*(ruleset 23059172) and add a bypass entry for the repository role the machine account holds (Write), mode Always. - A user can't be listed by name on a personal repository's ruleset. So every Write collaborator can bypass; today the machine account is the only one.
Reduced acceptance criteria (code side):
- Every way the cut can fail raises a typed
DevOpsCLIErrorthat names its cause, so the Service's failure record says why instead of a baretyper.Exit(1): the push, the fetch,_verify_clean_tree, the missing-refrev-parsein_fetch_remote_release_tip, and PR creation. - A push refused by a ruleset (GH013) gets its own message: it names the ruleset refusal and the bypass step above.
- Docs are in sync with the decision: HELP.roadmap.close and the README and docs pages generated from it, the close and cut messages,
RELEASE_CYCLE.mdork8s/README.mdwhere the Service's release cut is described (the bypass requirement), andchangelog.d/1124.md's note that deferred the push target to this item. - Tests are offline: a real-git test where a local pre-receive hook prints a GH013-style refusal shows the typed error and message. Each call phase stays under 1 s,
uv run devops cipasses, andchangelog.d/1280.mdrecords the change. - Pending a person, after the bypass is set and the Service runs an image with this fix: the next automatic cut pushes
release/vX.Y.Z, and Loki shows noGH013.
Out of scope: making Static Analysis and Tests & Coverage required checks on the rulesets is #842's owner step, not this item's.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 7, 2026
Intake placed this item kept in v0.2.29: a person placed it in v0.2.29, and that placement stands.
It blocks the entire automated release-cutting path, but a manual workaround (creating the PR by hand) exists, so it is not a P1 outage.Automated release cutting is a core workflow; without it every release requires manual intervention.Requires reworking cut_release to open a preparation PR (or use an authorized bypass actor) and updating roadmap-service choreography, plus changelog collation.dan-petty commentedon Oct 7, 2026
Solution Design: Standard Branch Flow & PR Gate Alignment
To resolve the automated release cutting failure without violating GitHub ruleset 23059172 (which blocks direct pushes to release/*), the following changes are planned:
Exempt Release Preparation PRs in PR Readiness ():
CONST_RELEASE_PROCESS_BRANCH_REinsrc/devops_cli/config/constants.pyto match both cycle-open and preparation branches:devops pr check-readinessto recognizechore/prepare-vX.Y.Ztargetingrelease/vX.Y.Zas an authorized process PR, exempting it from single-issue grounding (Closes #N) and permitting updates toCHANGELOG.mdandROADMAP.md.Refactor
cut_release/roadmap-serviceRelease Choreography:release/vX.Y.Zand attemptinggit push --force-with-lease origin release/vX.Y.Z,cut_releasewill:chore/prepare-vX.Y.Zfromorigin/release/vX.Y.Z.changelog.d/*.mdintoCHANGELOG.mdand delete fragments.pyproject.toml,uv.lock, andk8s/devops/kustomization.yaml.devops docs generate --sync-readme).chore/prepare-vX.Y.Ztoorigin.release/vX.Y.Zwith titlechore(release): prepare vX.Y.Z.release/vX.Y.Z, the clean release PR fromrelease/vX.Y.Zintomain(feat(release): vX.Y.Z) is created.Documentation Updates:
RELEASE_CYCLE.mdanddocs/ROUTINE_TASKS.mdto document this explicit lifecycle.dan-petty commentedon Oct 8, 2026
Moved to the backlog: it was New, not Ready, when v0.2.29 started. (devops roadmap reprioritize)
dan-petty commentedon Oct 8, 2026
Evidence from Loki for the 48 h to 2026-10-08 01:18 UTC: 23
Roadmap job close failedrecords end intyper.exceptions.Exit: 1. cut_release prints the push error and raises typer.Exit(1) (commands/release.py:1197-1198), so the error that matters appears only as an unstructured console line ('Failed to push ... to origin'), with no level, repository or job. Proposed addition to this item: when cut_release runs in the close job, it raises a DevOpsCLIError that carries the push error, so the Service's failure record names it (#1365 carries each job's error into that record).dan-petty commentedon Oct 8, 2026
Placed in v0.2.29 by the owner on 2026-10-08. The owner's instruction was to pull every issue that keeps the roadmap service from working into the current milestone and complete them. This is a person's placement and should stay in the release (#1349). Implementation started the same day, so the board Status is In Progress.
dan-petty commentedon Oct 8, 2026
Assigned to the Gemini agent on 2026-10-08 for v0.2.29. Build the reduced scope in the "Update 2026-10-08: owner decision" section at the end of the body; the drafted designs in earlier comments are superseded by it. One PR into
release/v0.2.29that closes only #1280, with its task file andchangelog.d/1280.md, anduv run devops cipassing.fix(roadmap): diagnose ruleset refusals and raise typed release cut e…
dan-petty-bot commentedon Oct 8, 2026
What changed
#1410, merged into
release/v0.2.29as 05e9388.15 file(s) changed.
How it was verified
Check runs at 72586ea:
Acceptance Criteria of
docs/agent/tasks/task-1280-roadmap-release-cut-ruleset-bypass.md:cut_releaseraises a typedDevOpsCLIErrorsubclass naming its cause: dirty working tree (ReleaseWorkingTreeDirtyError), remote fetch failure (ReleaseRemoteFetchError), missing tracking ref (ReleaseBranchMissingError), ruleset push refusal (ReleasePushRefusedError), general push failure (ReleasePushError), and PR creation failure (ReleasePRCreationError).GH013) raisesReleasePushRefusedErrorand diagnoses the refusal, naming the Write role bypass requirement on ruleset 23059172 in Settings → Rules → Rulesets.HELP.roadmap.closeand generated reference docs,RELEASE_CYCLE.md,k8s/README.md, andchangelog.d/1124.mdupdated with the ruleset bypass architecture.GH013ruleset refusal verify the typed error, message diagnostics, and timeout boundaries (< 1 s per call phase).uv run devops cipass with 100% success.release*and add a bypass entry for the repository role the machine account holds (Write), mode Always. Verify that the next automated cut pushesrelease/vX.Y.Zwithout ruleset refusal.feat(release): v0.2.29 (#1455)