Commit cf59433
authored
feat: add polkadot upgrade workflow tools and prompts (#33)
* feat: add polkadot upgrade workflow tools and prompts
- Add list_polkadot_releases tool to discover available SDK releases
- Add find_runtime_pallets tool to analyze project runtime configurations
- Add polkadot_upgrade prompt for systematic release impact analysis
- Enhance fetch_and_analyze_release with PR labels and structured output
- Add GitHub API authentication support via GITHUB_TOKEN env var
- Use zeroize crate for secure token handling
- Add comprehensive test coverage for runtime discovery
* fix: make substrate node integration test skip when binary unavailable
- Add is_available() method to check for substrate-node binary
- Skip test gracefully with informative message when binary not found
- Prevents test failure in CI/environments without substrate-node installed
* fix: make substrate node test fail with clear error when binary missing
- Change from skipping to panicking when substrate-node not found
- Provide clear error message about requirement to install substrate-node
- Ensures CI/developers are aware of the dependency requirement
* refactor: simplify fetch_and_analyze_release naming
- Remove '_enhanced' suffix from fetch_and_analyze_release_enhanced
- Update all references to use simplified name
- No functional changes, just naming consistency
* fmt
Signed-off-by: Michael Assaf <[email protected]>
* feat: enhance polkadot upgrade prompt with parallel sub-agent architecture
- Add comprehensive workflow documentation with agent coordination
- Implement three-agent system: Main Orchestrator, Compilation, and Analysis agents
- Add evidence-based impact categorization (MUST/OPTIONAL/INHERITED/DON'T KNOW)
- Include detailed tracking tables and structured reporting
- Add mermaid diagrams for workflow visualization
- Enhance prompt template with specific sub-agent instructions
- Normalize release input to handle different git tag formats
- Add comprehensive README documenting the upgrade analysis process
* feat: enhance polkadot upgrade prompt with parallel sub-agent architecture
- Add ULTRATHINK directive for improved analysis
- Implement batch processing for PR analysis (10 parallel agents per batch)
- Create dedicated analysis directory structure for individual PR reports
- Update tracking table to include total PR count and link to analysis files
- Add force parameter to fetch_and_analyze_release for cache control
- Implement cache loading functionality to avoid redundant downloads
- Improve compilation sub-agent requirements and constraints
- Clarify single PR analysis requirement for each sub-agent
- Add structured report writing to designated analysis files
* optimize prompt, use dyn for mock github api client, add caching for
fetch and analyze release
Signed-off-by: Michael Assaf <[email protected]>
* remove compilation sub agent from workflow
* pay close attention to template code in pr changes
* send logs to stderr
---------
Signed-off-by: Michael Assaf <[email protected]>1 parent de51df6 commit cf59433
File tree
13 files changed
+2055
-579
lines changed- src/service
- prompts
- polkadot_upgrade
- tests
- helpers
- tools
13 files changed
+2055
-579
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
55 | 92 | | |
56 | 93 | | |
57 | 94 | | |
58 | 95 | | |
| 96 | + | |
59 | 97 | | |
| 98 | + | |
60 | 99 | | |
61 | 100 | | |
| 101 | + | |
62 | 102 | | |
63 | 103 | | |
64 | 104 | | |
| |||
67 | 107 | | |
68 | 108 | | |
69 | 109 | | |
70 | | - | |
71 | 110 | | |
| 111 | + | |
72 | 112 | | |
73 | 113 | | |
74 | 114 | | |
| |||
77 | 117 | | |
78 | 118 | | |
79 | 119 | | |
80 | | - | |
| 120 | + | |
| 121 | + | |
81 | 122 | | |
| 123 | + | |
82 | 124 | | |
83 | 125 | | |
84 | 126 | | |
85 | 127 | | |
86 | 128 | | |
87 | | - | |
| 129 | + | |
| 130 | + | |
88 | 131 | | |
| 132 | + | |
89 | 133 | | |
90 | 134 | | |
91 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
92 | 144 | | |
93 | 145 | | |
94 | 146 | | |
95 | | - | |
| 147 | + | |
| 148 | + | |
96 | 149 | | |
| 150 | + | |
97 | 151 | | |
98 | 152 | | |
99 | 153 | | |
100 | 154 | | |
101 | 155 | | |
102 | | - | |
| 156 | + | |
| 157 | + | |
103 | 158 | | |
| 159 | + | |
104 | 160 | | |
105 | 161 | | |
106 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
61 | 80 | | |
62 | 81 | | |
63 | 82 | | |
| |||
172 | 191 | | |
173 | 192 | | |
174 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
175 | 206 | | |
176 | 207 | | |
177 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
0 commit comments