Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
Expand All @@ -20,7 +20,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
Expand Down
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ AllCops:
NewCops: enable
TargetRubyVersion: 3.1
Exclude:
- '.bundle/**/*'
- 'spec/**/*'
- 'vendor/**/*'

Style/Documentation:
Enabled: false
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ source 'https://rubygems.org'

gemspec

gem 'telos-agent-toolkit', path: '../telos-agent-toolkit'
gem 'telos-agent-toolkit', github: 'TelosLabs/telos-agent-toolkit', ref: '8e8b9b5bda7d6c0bc47b382b5f168d39a5faa77a'

group :development, :test do
gem 'rspec', '~> 3.0'
gem 'rubocop-harness', github: 'TelosLabs/rubocop-harness'
gem 'rubocop-rspec', require: false
gem 'webmock', '~> 3.0'
end
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ filter:
- Interrupt

decision:
confidence_threshold: 0.7
confidence_threshold: 0.8

triage:
max_triage_per_hour: 10
Expand Down
14 changes: 10 additions & 4 deletions lib/generators/baymax/install/templates/baymax_triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:

concurrency:
group: baymax-triage
cancel-in-progress: false # Queue, don't drop alerts
# GitHub Actions queues at most 1 pending run; additional dispatches
# during an active run will replace the pending one (not unbounded queue).
cancel-in-progress: false

permissions:
contents: read
Expand All @@ -14,11 +16,12 @@ permissions:
jobs:
triage:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-depth: 50

- name: Setup Ruby
uses: ruby/setup-ruby@v1
Expand All @@ -30,10 +33,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
APPSIGNAL_API_KEY: ${{ secrets.APPSIGNAL_API_KEY }}
ROLLBAR_API_TOKEN: ${{ secrets.ROLLBAR_API_TOKEN }}
AGENT_ASSIGN_TOKEN: ${{ secrets.AGENT_ASSIGN_TOKEN }}
run: |
bundle exec baymax triage \
--config config/baymax_settings.yml \
--prompt .github/prompts/baymax_triage.md

- name: Notify on failure
if: failure()
run: |
echo "::error::Baymax triage failed. Production alerts may be going unprocessed."
4 changes: 3 additions & 1 deletion lib/generators/baymax/install/templates/baymax_verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
verify:
if: contains(github.event.pull_request.labels.*.name, 'baymax-fix')
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -28,7 +29,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
bundle exec baymax verify \
--pr ${{ github.event.pull_request.number }} \
--pr "$PR_NUMBER" \
--config config/baymax_settings.yml
2 changes: 1 addition & 1 deletion spec/generators/baymax/install_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

it "sets a confidence threshold" do
config = YAML.safe_load(content)
expect(config.dig("decision", "confidence_threshold")).to eq(0.7)
expect(config.dig("decision", "confidence_threshold")).to eq(0.8)
end
end

Expand Down