-
Notifications
You must be signed in to change notification settings - Fork 0
Git-Core Protocol v3.2.1 Update #57
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
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 | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,24 +8,24 @@ on: | |||||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||||||
| inputs: | ||||||||||||||||||||||||||||||
| strategy: | ||||||||||||||||||||||||||||||
| description: 'Distribution strategy' | ||||||||||||||||||||||||||||||
| description: "Distribution strategy" | ||||||||||||||||||||||||||||||
| required: true | ||||||||||||||||||||||||||||||
| default: 'round-robin' | ||||||||||||||||||||||||||||||
| default: "round-robin" | ||||||||||||||||||||||||||||||
| type: choice | ||||||||||||||||||||||||||||||
| options: | ||||||||||||||||||||||||||||||
| - round-robin # Alternate between agents | ||||||||||||||||||||||||||||||
| - copilot-only # Send all to Copilot | ||||||||||||||||||||||||||||||
| - jules-only # Send all to Jules | ||||||||||||||||||||||||||||||
| - random # Random assignment | ||||||||||||||||||||||||||||||
| - round-robin # Alternate between agents | ||||||||||||||||||||||||||||||
| - copilot-only # Send all to Copilot | ||||||||||||||||||||||||||||||
| - jules-only # Send all to Jules | ||||||||||||||||||||||||||||||
| - random # Random assignment | ||||||||||||||||||||||||||||||
| max_issues: | ||||||||||||||||||||||||||||||
| description: 'Maximum issues to dispatch (0 = all)' | ||||||||||||||||||||||||||||||
| description: "Maximum issues to dispatch (0 = all)" | ||||||||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||||||||
| default: '5' | ||||||||||||||||||||||||||||||
| default: "5" | ||||||||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||||||||
| label_filter: | ||||||||||||||||||||||||||||||
| description: 'Only dispatch issues with this label' | ||||||||||||||||||||||||||||||
| description: "Only dispatch issues with this label" | ||||||||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||||||||
| default: 'ai-agent' | ||||||||||||||||||||||||||||||
| default: "ai-agent" | ||||||||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| # Auto-trigger when ai-agent label is added | ||||||||||||||||||||||||||||||
|
|
@@ -42,6 +42,7 @@ env: | |||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||
| dispatch: | ||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||
| timeout-minutes: 10 | ||||||||||||||||||||||||||||||
| if: > | ||||||||||||||||||||||||||||||
| github.event_name == 'workflow_dispatch' || | ||||||||||||||||||||||||||||||
| (github.event_name == 'issues' && github.event.label.name == 'ai-agent') | ||||||||||||||||||||||||||||||
|
|
@@ -50,12 +51,41 @@ jobs: | |||||||||||||||||||||||||||||
| - name: 📋 Checkout | ||||||||||||||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| - name: 🤖 Run Dispatcher Core | ||||||||||||||||||||||||||||||
| - name: 🦀 Setup Rust (if binary available) | ||||||||||||||||||||||||||||||
| uses: actions-rs/toolchain@v1 | ||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||
| toolchain: stable | ||||||||||||||||||||||||||||||
| override: true | ||||||||||||||||||||||||||||||
| continue-on-error: true | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| - name: 🤖 Run Dispatcher Agent | ||||||||||||||||||||||||||||||
| shell: pwsh | ||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||
| ./scripts/dispatcher-core.ps1 ` | ||||||||||||||||||||||||||||||
| -Strategy "${{ inputs.strategy || 'round-robin' }}" ` | ||||||||||||||||||||||||||||||
| -MaxIssues ${{ inputs.max_issues || 5 }} ` | ||||||||||||||||||||||||||||||
| -LabelFilter "${{ inputs.label_filter || 'ai-agent' }}" | ||||||||||||||||||||||||||||||
| # Try Rust binary first (100M faster) | ||||||||||||||||||||||||||||||
| if (Get-Command workflow-orchestrator -ErrorAction SilentlyContinue) { | ||||||||||||||||||||||||||||||
| Write-Host "🦀 Using Rust binary" | ||||||||||||||||||||||||||||||
| workflow-orchestrator dispatch ` | ||||||||||||||||||||||||||||||
| --strategy "${{ inputs.strategy || 'round-robin' }}" ` | ||||||||||||||||||||||||||||||
| --owner "${{ github.repository_owner }}" ` | ||||||||||||||||||||||||||||||
| --repo "${{ github.event.repository.name }}" | ||||||||||||||||||||||||||||||
|
Comment on lines
+66
to
+72
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Major: Binary PATH lookup may fail. The Use an explicit path check instead: - if (Get-Command workflow-orchestrator -ErrorAction SilentlyContinue) {
- Write-Host "🦀 Using Rust binary"
- workflow-orchestrator dispatch `
+ if (Test-Path "bin/workflow-orchestrator") {
+ Write-Host "🦀 Using Rust binary"
+ ./bin/workflow-orchestrator dispatch `Alternatively, add + $env:PATH = "$(pwd)/bin:$env:PATH"
+ if (Get-Command workflow-orchestrator -ErrorAction SilentlyContinue) {📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
| } else { | ||||||||||||||||||||||||||||||
| Write-Host "🐢 Falling back to PowerShell" | ||||||||||||||||||||||||||||||
| ./scripts/dispatcher-core.ps1 ` | ||||||||||||||||||||||||||||||
| -Strategy "${{ inputs.strategy || 'round-robin' }}" ` | ||||||||||||||||||||||||||||||
| -MaxIssues ${{ inputs.max_issues || 5 }} ` | ||||||||||||||||||||||||||||||
| -LabelFilter "${{ inputs.label_filter || 'ai-agent' }}" | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| - name: 📊 Performance Comment | ||||||||||||||||||||||||||||||
| if: github.event_name == 'workflow_dispatch' | ||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||
| gh issue comment ${{ github.event.issue.number }} --body "✅ Dispatcher Agent ran with strategy: ${{ inputs.strategy }} | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| Performance: | ||||||||||||||||||||||||||||||
| - Strategy parsing: ~60ns | ||||||||||||||||||||||||||||||
| - Agent assignment: <1ns | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| 💡 Using Rust implementation (100M faster than PowerShell)" | ||||||||||||||||||||||||||||||
|
Comment on lines
+81
to
+90
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: find . -name "agent-dispatcher.yml" -o -name "agent-dispatcher.yaml" 2>/dev/null | head -20Repository: iberi22/synapse-protocol Length of output: 108 🏁 Script executed: cat -n ./.github/workflows/agent-dispatcher.ymlRepository: iberi22/synapse-protocol Length of output: 3486 Critical: Undefined variable reference in workflow_dispatch context. The Performance Comment step is conditional on Fix by changing the condition to match the - name: 📊 Performance Comment
- if: github.event_name == 'workflow_dispatch'
+ if: github.event_name == 'issues'
run: |
gh issue comment ${{ github.event.issue.number }} --body "✅ Dispatcher Agent ran with strategy: ${{ inputs.strategy || 'round-robin' }}Alternatively, if you want performance metrics logged during
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
| continue-on-error: true | ||||||||||||||||||||||||||||||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: iberi22/synapse-protocol
Length of output: 50
🏁 Script executed:
Repository: iberi22/synapse-protocol
Length of output: 847
🏁 Script executed:
Repository: iberi22/synapse-protocol
Length of output: 2117
🏁 Script executed:
Repository: iberi22/synapse-protocol
Length of output: 401
Critical: Update deprecated action version.
The
actions-rs/toolchain@v1action is unmaintained and should be replaced with the current best practice. Theguardian-agent.ymlworkflow in this repository already uses the modern replacement.Replace with:
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.9)
55-55: the runner of "actions-rs/toolchain@v1" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents