C4 Workflow Diagram - Level 1: System Context Workflows
CODITECT Context Intelligence Platform
Diagram Level: 1 (System Context) Focus: High-level user workflows across systems Audience: All stakeholders Purpose: Understand end-to-end user journeys
Workflow 1: Developer Saves and Searches Conversations
Key Steps:
- Developer has AI conversation
- Developer saves conversation to platform
- Developer commits code to GitHub
- Platform receives webhook and auto-correlates
- Developer searches and finds linked conversation + commit
Duration: Varies (conversation: 5-30 min, save: 2 sec, commit: 1 min, search: 5 sec)
Workflow 2: Engineering Manager Reviews Team Productivity
Key Steps:
- Manager logs into platform
- Views team analytics dashboard
- Filters by date range
- Explores topics and patterns
- Exports report for leadership
Duration: 15-30 minutes (weekly review)
Workflow 3: CTO Runs Compliance Audit
Key Steps:
- CTO logs in via enterprise SSO
- Navigates to compliance reports
- Generates data export (GDPR request)
- Reviews retention policies
- Downloads encrypted audit package
Duration: 10-15 minutes (quarterly audit)
Workflow 4: OAuth Authentication Flow
Key Steps:
- User initiates OAuth login
- Platform redirects to provider
- User grants permissions
- Provider returns authorization code
- Platform exchanges code for token
- Platform creates/updates user in database
- Platform issues JWT token
- User redirected to dashboard
Duration: 5-10 seconds
Workflow 5: GitHub Webhook Processing
Key Steps:
- Developer pushes code to GitHub
- GitHub sends webhook to platform
- Platform verifies signature and queues job
- Background worker processes webhook
- Worker correlates conversations and commits
- Real-time notification sent to user
Duration: <1 second (webhook ack), 1-2 seconds (background processing)
Workflow 6: Tier-Based Feature Gating
Key Features by Tier:
| Feature | Starter | Pro | Enterprise |
|---|---|---|---|
| Keyword Search | ✅ | ✅ | ✅ |
| Semantic Search | ❌ | ✅ | ✅ |
| Team Analytics | ❌ | ✅ | ✅ |
| SSO (SAML) | ❌ | ❌ | ✅ |
| Compliance Reports | ❌ | ❌ | ✅ |
| API Access | ❌ | ✅ | ✅ |
Workflow 7: Conversation-Commit Correlation
Scoring Formula:
final_score = (0.6 * temporal_score) + (0.3 * semantic_score) + (0.1 * explicit_score)
temporal_score = 1 - (time_diff_hours / 6) # 0-6 hours → 1.0-0.0
semantic_score = cosine_similarity(commit_message, conversation_text) # 0.0-1.0
explicit_score = 1.0 if manually linked, else 0.0
Workflow 8: Data Export (GDPR Compliance)
Export Contents (JSON format):
- All conversations (title, messages, timestamps)
- All commits linked to conversations
- User profile data
- Usage statistics
- Audit log (logins, actions)
Security:
- Encrypted with user's public key (or temporary password)
- Signed download URL (expires in 7 days)
- Deleted from S3 after download or 7 days
Next Level: Container Workflows
The System Context workflows show end-to-end user journeys across external systems. The next level (Container Workflows) will show workflows within the platform across containers (API, databases, workers).
See: c4-l2-workflow-container.md
Diagram Maintained By: Product & Engineering Teams Last Updated: 2025-11-26 Review Cycle: Quarterly Related Documents: