fix(examples): fail closed on factory PR metadata - #544
Merged
Merged
Conversation
Session-Id: 01a0c4a6-dd65-7ce1-a90e-de1b0b4e86c3
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The production recommended Software Garden flow opened AgentWorkforce/cloud#3919 with the placeholder title
Software factory changeand no closing issue reference. The exact source ticket is AgentWorkforce/cloud#3913: its title and defect match the change, it carried thegarden-readytrigger label, and it preceded the factory branch and commit.The generator fix in AgentWorkforce/agentrelay.com#109 does not protect the canonical Flows artifact used by the live recommended catalog.
Change
#<number>identifier and exactly oneFixes #<number>linegit pushorgh pr createThe existing Cloud PR #3919 has separately been repaired to the exact #3913 title and one
Fixes #3913line. This PR prevents recurrence in the source artifact; it does not release or roll out a new catalog pin.Verification
Note
Low Risk
Changes are confined to the example flow and new tests; behavior is stricter metadata validation with no auth or production rollout in this PR.
Overview
The canonical software-factory example now derives every pull request title from the ticket (whitespace normalized, 240 Unicode code points max) instead of ad hoc or placeholder titles, and draft PRs no longer use a
[blocked]title prefix—blocked state stays in the body sections.For GitHub-sourced tickets it requires
identifierin#<number>form, appends a singleFixes #<number>line when missing, and runs redundant shell validation on the final title/body beforegit pushorgh pr create. Invalid or placeholder metadata ends the run asneeds_humanwithout opening a PR; the sameopenPullRequestpath is used for success, adversarial block, post-review block, and merge-gate block.The README documents this contract, the flow version bumps to 2.0.22, and
canonical-software-factory.test.tsexercises the real catalog flow (title, closing line, ordering, and fail-closed cases).Reviewed by Cursor Bugbot for commit a874651. Bugbot is set up for automated code reviews on this repo. Configure here.