-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat: agent work orders - user-selectable 6-command workflow architecture #807
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9a60d6a
sauce aow
Wirasm 1c00209
feat: Implement phases 3-5 of compositional workflow architecture
Wirasm fd81505
refactor: simplify workflow to user-selectable 6-command architecture
Wirasm 6fe9c11
test: update agent work order tests for new workflow architecture
Wirasm edf3a51
fix: resolve agent work orders api routing and defensive coding
Wirasm 8f3e8bc
fix: add trailing slashes to agent work orders endpoints
Wirasm f07cefd
feat: add agent work orders microservice with hybrid deployment
Wirasm f14157a
chore: remove e2e test results file
Wirasm b1a5c06
feat: add github authentication for agent work orders pr creation
Wirasm c2a568e
chore: remove example workflow directory
Wirasm 799d5a9
Revert "chore: remove example workflow directory"
Wirasm d80a12f
refactor: port allocation from dual ports to flexible port ranges
Wirasm 8728c67
fix: linting issues in agent work orders tests
Wirasm 97f7d8e
chore: move sse-starlette to agent-work-orders dependency group
Wirasm acf1fcc
feat: add real-time logs and stats for agent work orders
Wirasm 6a8e784
feat: make agent work orders an optional feature
Wirasm 7139352
feat: add repository configuration system with defensive validation
Wirasm bd66130
feat: add supabase persistence for agent work orders
Wirasm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # Create Git Commit | ||
|
|
||
| Create an atomic git commit with a properly formatted commit message following best practices for the uncommited changes or these specific files if specified. | ||
|
|
||
| Specific files (skip if not specified): | ||
|
|
||
| - File 1: $1 | ||
| - File 2: $2 | ||
| - File 3: $3 | ||
| - File 4: $4 | ||
| - File 5: $5 | ||
|
|
||
| ## Instructions | ||
|
|
||
| **Commit Message Format:** | ||
|
|
||
| - Use conventional commits: `<type>: <description>` | ||
| - Types: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore` | ||
| - Present tense (e.g., "add", "fix", "update", not "added", "fixed", "updated") | ||
| - 50 characters or less for the subject line | ||
| - Lowercase subject line | ||
| - No period at the end | ||
| - Be specific and descriptive | ||
|
|
||
| **Examples:** | ||
|
|
||
| - `feat: add web search tool with structured logging` | ||
| - `fix: resolve type errors in middleware` | ||
| - `test: add unit tests for config module` | ||
| - `docs: update CLAUDE.md with testing guidelines` | ||
| - `refactor: simplify logging configuration` | ||
| - `chore: update dependencies` | ||
|
|
||
| **Atomic Commits:** | ||
|
|
||
| - One logical change per commit | ||
| - If you've made multiple unrelated changes, consider splitting into separate commits | ||
| - Commit should be self-contained and not break the build | ||
|
|
||
| **IMPORTANT** | ||
|
|
||
| - NEVER mention claude code, anthropic, co authored by or anything similar in the commit messages | ||
|
|
||
| ## Run | ||
|
|
||
| 1. Review changes: `git diff HEAD` | ||
| 2. Check status: `git status` | ||
| 3. Stage changes: `git add -A` | ||
| 4. Create commit: `git commit -m "<type>: <description>"` | ||
|
|
||
| ## Report | ||
|
|
||
| - Output the commit message used | ||
| - Confirm commit was successful with commit hash | ||
| - List files that were committed | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Execute PRP Plan | ||
|
|
||
| Implement a feature plan from the PRPs directory by following its Step by Step Tasks section. | ||
|
|
||
| ## Variables | ||
|
|
||
| Plan file: $ARGUMENTS | ||
|
|
||
| ## Instructions | ||
|
|
||
| - Read the entire plan file carefully | ||
| - Execute **every step** in the "Step by Step Tasks" section in order, top to bottom | ||
| - Follow the "Testing Strategy" to create proper unit and integration tests | ||
| - Complete all "Validation Commands" at the end | ||
| - Ensure all linters pass and all tests pass before finishing | ||
| - Follow CLAUDE.md guidelines for type safety, logging, and docstrings | ||
|
|
||
| ## When done | ||
|
|
||
| - Move the PRP file to the completed directory in PRPs/features/completed | ||
|
|
||
| ## Report | ||
|
|
||
| - Summarize completed work in a concise bullet point list | ||
| - Show files and lines changed: `git diff --stat` | ||
| - Confirm all validation commands passed | ||
| - Note any deviations from the plan (if any) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,176 @@ | ||
| # NOQA Analysis and Resolution | ||
|
|
||
| Find all noqa/type:ignore comments in the codebase, investigate why they exist, and provide recommendations for resolution or justification. | ||
|
|
||
| ## Instructions | ||
|
|
||
| **Step 1: Find all NOQA comments** | ||
|
|
||
| - Use Grep tool to find all noqa comments: pattern `noqa|type:\s*ignore` | ||
| - Use output_mode "content" with line numbers (-n flag) | ||
| - Search across all Python files (type: "py") | ||
| - Document total count of noqa comments found | ||
|
|
||
| **Step 2: For EACH noqa comment (repeat this process):** | ||
|
|
||
| - Read the file containing the noqa comment with sufficient context (at least 10 lines before and after) | ||
| - Identify the specific linting rule or type error being suppressed | ||
| - Understand the code's purpose and why the suppression was added | ||
| - Investigate if the suppression is still necessary or can be resolved | ||
|
|
||
| **Step 3: Investigation checklist for each noqa:** | ||
|
|
||
| - What specific error/warning is being suppressed? (e.g., `type: ignore[arg-type]`, `noqa: F401`) | ||
| - Why was the suppression necessary? (legacy code, false positive, legitimate limitation, technical debt) | ||
| - Can the underlying issue be fixed? (refactor code, update types, improve imports) | ||
| - What would it take to remove the suppression? (effort estimate, breaking changes, architectural changes) | ||
| - Is the suppression justified long-term? (external library limitation, Python limitation, intentional design) | ||
|
|
||
| **Step 4: Research solutions:** | ||
|
|
||
| - Check if newer versions of tools (mypy, ruff) handle the case better | ||
| - Look for alternative code patterns that avoid the suppression | ||
| - Consider if type stubs or Protocol definitions could help | ||
| - Evaluate if refactoring would be worthwhile | ||
|
|
||
| ## Report Format | ||
|
|
||
| Create a markdown report file (create the reports directory if not created yet): `PRPs/reports/noqa-analysis-{YYYY-MM-DD}.md` | ||
|
|
||
| Use this structure for the report: | ||
|
|
||
| ````markdown | ||
| # NOQA Analysis Report | ||
|
|
||
| **Generated:** {date} | ||
| **Total NOQA comments found:** {count} | ||
|
|
||
| --- | ||
|
|
||
| ## Summary | ||
|
|
||
| - Total suppressions: {count} | ||
| - Can be removed: {count} | ||
| - Should remain: {count} | ||
| - Requires investigation: {count} | ||
|
|
||
| --- | ||
|
|
||
| ## Detailed Analysis | ||
|
|
||
| ### 1. {File path}:{line number} | ||
|
|
||
| **Location:** `{file_path}:{line_number}` | ||
|
|
||
| **Suppression:** `{noqa comment or type: ignore}` | ||
|
|
||
| **Code context:** | ||
|
|
||
| ```python | ||
| {relevant code snippet} | ||
| ``` | ||
| ```` | ||
|
|
||
| **Why it exists:** | ||
| {explanation of why the suppression was added} | ||
|
|
||
| **Options to resolve:** | ||
|
|
||
| 1. {Option 1: description} | ||
| - Effort: {Low/Medium/High} | ||
| - Breaking: {Yes/No} | ||
| - Impact: {description} | ||
|
|
||
| 2. {Option 2: description} | ||
| - Effort: {Low/Medium/High} | ||
| - Breaking: {Yes/No} | ||
| - Impact: {description} | ||
|
|
||
| **Tradeoffs:** | ||
|
|
||
| - {Tradeoff 1} | ||
| - {Tradeoff 2} | ||
|
|
||
| **Recommendation:** {Remove | Keep | Refactor} | ||
| {Justification for recommendation} | ||
|
|
||
| --- | ||
|
|
||
| {Repeat for each noqa comment} | ||
|
|
||
| ```` | ||
|
|
||
| ## Example Analysis Entry | ||
|
|
||
| ```markdown | ||
| ### 1. src/shared/config.py:45 | ||
|
|
||
| **Location:** `src/shared/config.py:45` | ||
|
|
||
| **Suppression:** `# type: ignore[assignment]` | ||
|
|
||
| **Code context:** | ||
| ```python | ||
| @property | ||
| def openai_api_key(self) -> str: | ||
| key = os.getenv("OPENAI_API_KEY") | ||
| if not key: | ||
| raise ValueError("OPENAI_API_KEY not set") | ||
| return key # type: ignore[assignment] | ||
| ```` | ||
|
|
||
| **Why it exists:** | ||
| MyPy cannot infer that the ValueError prevents None from being returned, so it thinks the return type could be `str | None`. | ||
|
|
||
| **Options to resolve:** | ||
|
|
||
| 1. Use assert to help mypy narrow the type | ||
| - Effort: Low | ||
| - Breaking: No | ||
| - Impact: Cleaner code, removes suppression | ||
|
|
||
| 2. Add explicit cast with typing.cast() | ||
| - Effort: Low | ||
| - Breaking: No | ||
| - Impact: More verbose but type-safe | ||
|
|
||
| 3. Refactor to use separate validation method | ||
| - Effort: Medium | ||
| - Breaking: No | ||
| - Impact: Better separation of concerns | ||
|
|
||
| **Tradeoffs:** | ||
|
|
||
| - Option 1 (assert) is cleanest but asserts can be disabled with -O flag | ||
| - Option 2 (cast) is most explicit but adds import and verbosity | ||
| - Option 3 is most robust but requires more refactoring | ||
|
|
||
| **Recommendation:** Remove (use Option 1) | ||
| Replace the type:ignore with an assert statement after the if check. This helps mypy understand the control flow while maintaining runtime safety. The assert will never fail in practice since the ValueError is raised first. | ||
|
|
||
| **Implementation:** | ||
|
|
||
| ```python | ||
| @property | ||
| def openai_api_key(self) -> str: | ||
| key = os.getenv("OPENAI_API_KEY") | ||
| if not key: | ||
| raise ValueError("OPENAI_API_KEY not set") | ||
| assert key is not None # Help mypy understand control flow | ||
| return key | ||
| ``` | ||
|
|
||
| ``` | ||
|
|
||
| ## Report | ||
|
|
||
| After completing the analysis: | ||
|
|
||
| - Output the path to the generated report file | ||
| - Summarize findings: | ||
| - Total suppressions found | ||
| - How many can be removed immediately (low effort) | ||
| - How many should remain (justified) | ||
| - How many need deeper investigation or refactoring | ||
| - Highlight any quick wins (suppressions that can be removed with minimal effort) | ||
| ``` |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Correct the spelling in the opening sentence.
“uncommited” → “uncommitted” to keep the instructions polished.
📝 Committable suggestion
🧰 Tools
🪛 LanguageTool
[grammar] ~3-~3: Ensure spelling is correct
Context: ...essage following best practices for the uncommited changes or these specific files if spec...
(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)
🤖 Prompt for AI Agents