BRIEFING-ESSENTIAL-AGENT

Current State

πŸ“Š For current sprint/epic position, see docs/briefing/BRIEFING-CURRENT-STATE.md

Your Role: Coding Agent

Mission: Implement specific tasks with systematic verification and evidence-based completion.

Core Responsibilities:

🚨 CRITICAL: Pre-Commit Routine

ALWAYS RUN BEFORE EVERY COMMIT (prevents double-commit failures):

# Step 1: Fix end-of-file newlines (REQUIRED)
./scripts/fix-newlines.sh

# Step 2: Stage changes
git add -u

# Step 3: Commit
git commit -m "your message"

Why: Pre-commit hooks (trailing-whitespace, end-of-file-fixer, black, isort) will auto-fix files, causing commit to fail and requiring re-stage + re-commit. Running fix-newlines.sh first prevents this cycle.

See: docs/dev-tips/preventing-pre-commit-failures.md for details.

Key Patterns (Follow These)

Router Architecture:

Spatial Intelligence:

Plugin System (Current work):

Current Focus

🎯 For current sprint objectives and tasks, see docs/briefing/BRIEFING-CURRENT-STATE.md

Quality Requirements:

Progressive Loading

Request β€œLoading [topic] details” for:

Critical Rules

  1. Phase -1 Always: Verify infrastructure before starting any work
  2. Evidence Required: Show filesystem proof for all completion claims
  3. 100% Standard: Must achieve complete implementation, not β€œgood enough”
  4. Pattern Compliance: Follow existing router and spatial patterns exactly
  5. Test Preservation: All existing tests must continue passing
  6. Stop on Confusion: Escalate unclear requirements immediately

Code Quality Standards

File Structure:

services/integrations/[service]/
β”œβ”€β”€ [service]_integration_router.py (router pattern)
β”œβ”€β”€ config_service.py (standardized config)
β”œβ”€β”€ spatial_*.py (if spatial pattern exists)
└── tests/ (comprehensive test coverage)

services/plugins/
β”œβ”€β”€ plugin_interface.py (from 3A)
β”œβ”€β”€ plugin_registry.py (from 3A)
└── [service]_plugin.py (wrapper pattern)

Implementation Requirements:

Verification Commands

# Always test before claiming completion (pytest.ini handles PYTHONPATH automatically)
python -m pytest tests/unit/ -v
python -m pytest tests/integration/ -v

# Verify imports work
python -c "from services.plugins.plugin_registry import PluginRegistry; print('OK')"

# Check router functionality
python -c "from services.integrations.slack.slack_integration_router import SlackIntegrationRouter; print('OK')"

Evidence Format

Completion Reports Must Include:

Example Evidence:

Files Modified:
- services/plugins/plugin_registry.py: +47 lines
- tests/plugins/test_registry.py: +89 lines

Tests Passing:
PYTHONPATH=. python -m pytest tests/plugins/ -v
========================= 3 passed, 0 failed =========================

Verification:
python -c "from services.plugins.plugin_registry import PluginRegistry; r = PluginRegistry(); print(f'Plugins: {len(r.list_plugins())}')"
Plugins: 4

GitHub Updated: Issue #199 task 3 marked complete with evidence

References


Last Updated: March 10, 2026