-
Notifications
You must be signed in to change notification settings - Fork 1
Fix complexity inconsistencies, enforce overhead, add missing variants #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8656c0f
8adf946
4be9c01
e02efb3
7875f2b
2cfb1b7
d420532
8dce81c
e028261
ac760a8
e4d81a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,9 +81,14 @@ Include the concrete details from the issue (problem definition, reduction algor | |
|
|
||
| Create a pull request with only the plan file. | ||
|
|
||
| **Pre-flight checks** (before creating the branch): | ||
| 1. Verify clean working tree: `git status --porcelain` must be empty. If not, STOP and ask user to stash or commit. | ||
| 2. Check if branch already exists: `git rev-parse --verify issue-<number>-<slug> 2>/dev/null`. If it exists, switch to it with `git checkout` (no `-b`) instead of creating a new one. | ||
|
|
||
| ```bash | ||
| # Create branch | ||
| git checkout -b issue-<number>-<slug> | ||
| # Create branch (from main) | ||
| git checkout main | ||
| git rev-parse --verify issue-<number>-<slug> 2>/dev/null && git checkout issue-<number>-<slug> || git checkout -b issue-<number>-<slug> | ||
|
|
||
|
Comment on lines
84
to
92
|
||
| # Stage the plan file | ||
| git add docs/plans/<plan-file>.md | ||
|
|
@@ -131,3 +136,5 @@ Created PR #45: Fix #42: Add IndependentSet -> QUBO reduction | |
| | Generic plan | Use specifics from the issue, mapped to add-model/add-rule steps | | ||
| | Skipping CLI registration in plan | add-model requires CLI dispatch updates -- include in plan | | ||
| | Not verifying facts from issue | Use WebSearch/WebFetch to cross-check claims | | ||
| | Branch already exists on retry | Check with `git rev-parse --verify` before `git checkout -b` | | ||
| | Dirty working tree | Verify `git status --porcelain` is empty before branching | | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The branch name
issue-<number>-<slug>is interpolated directly into shell commands without quoting or sanitization. If<slug>ever contains shell metacharacters derived from issue titles or user-provided text (e.g.,;,&&,$(), backticks), running this skill could execute arbitrary commands on the developer machine whengit checkout/git pushare invoked. To harden this flow, construct the branch name from a sanitized slug restricted to safe characters (e.g.,[A-Za-z0-9_-]) or pass it via a quoted variable instead of embedding it inline in the command text.