argus/docs/procedures/subagent-completion.md
Zeus 90361fbe16 feat: initial Argus implementation
- CLI with notification, activity, and escalation commands
- SQLite database with schema
- Datasette + static HTML dashboard
- Systemd service for background operation
- Install/uninstall scripts
- SKILL.md and procedures for sub-agent usage
2026-02-22 10:25:46 +00:00

2.5 KiB

Argus Sub-Agent Procedures

Standard procedures for AI agents performing community management tasks.

Notification Triage

Input

  • Pending notifications from argus notif list --pending

Process

  1. Classify each notification:

    • review-request: Someone requested your review
    • mention: You were mentioned
    • assign: Issue/PR was assigned to you
    • comment: New comment on subscribed thread
    • ci-failure: CI/CD failure notification
  2. Prioritize:

    • P1 (immediate): Security issues, prod failures
    • P2 (same day): Review requests, direct mentions
    • P3 (when possible): General comments, updates
  3. Act:

    • For each notification, either:
      • Take action (review, respond, fix)
      • Escalate (create escalation)
      • Dismiss (with reason)

Output

# After processing each notification
argus notif act <id> <action> "<brief detail>"

# Or dismiss
argus notif dismiss <id> "<reason>"

# Log activity
argus activity log <action> "<detail>" [--issue <id>]

Pull Request Review

Input

  • PR notification or explicit request

Process

  1. Read PR: Check title, description, changes
  2. Assess scope: Is this a minor fix or major change?
  3. Review code: Look for issues, suggest improvements
  4. Leave feedback: Comment on GitHub
  5. Log action: Record what you did

Output

argus notif act <id> reviewed "Approved with comments"
argus activity log pr-review "Reviewed PR #123: Added caching layer"

Escalation Handling

When to Escalate

  • Notification pending > 48 hours
  • Security-related issues
  • Unclear requirements needing human decision
  • Permission/access issues

Process

# Create escalation
argus escalate create \
  --category "stale-notification" \
  --title "PR #123 needs maintainer input" \
  --priority high

# After human acknowledges
argus escalate ack <id>

# After resolution
argus escalate resolve <id> \
  --by "k9ert" \
  --resolution "Merged after fixes"

Daily Routine

Suggested daily workflow for automated community management:

# Morning
argus notif pull
argus status
argus notif list --pending --limit 20

# Process notifications (triage, respond, escalate)
# ... actions ...

# End of day
argus notif audit --stale-hours 48
argus activity list --limit 10

Reporting

For summaries:

-- Via datasette or direct SQL
SELECT action, COUNT(*) 
FROM activity_log 
WHERE timestamp > date('now', '-7 days')
GROUP BY action;

Dashboard at http://localhost:8101 provides visual overview.