5.4 KiB
RedFlag Documentation - Single Source of Truth (SSoT)
Overview
This is the definitive documentation system for the RedFlag project. It is organized as a topical library (not a chronological journal) to provide clear, maintainable documentation for developers and users.
Documentation Structure
The RedFlag documentation is organized into four main sections, each with a specific purpose:
docs/
├── redflag.md # This file - Main entry point and navigation
├── 1_ETHOS/ # The "Constitution" - Non-negotiable principles
├── 2_ARCHITECTURE/ # The "Library" - Current system state (SSoT)
├── 3_BACKLOG/ # The "Task List" - Actionable work items
└── 4_LOG/ # The "Journal" - Chronological history
1. ETHOS/ - The Constitution
Purpose: Contains the non-negotiable principles and development philosophy that guide all RedFlag development work.
Key Files:
ETHOS.md- Core development principles and quality standards
Usage: Read this to understand:
- Why RedFlag is built the way it is
- The non-negotiable security and quality principles
- Development workflow and documentation standards
- The "contract" that all development must follow
2. ARCHITECTURE/ - The Library (SSoT)
Purpose: The Single Source of Truth for the current state of the RedFlag system. These files contain the authoritative technical specifications.
Key Files:
Overview.md- Complete system architecture and componentsSecurity.md- Security architecture and implementation status ⚠️ DRAFT - Needs verificationagent/- Agent-specific architectureserver/- Server-specific architecture
Usage: Read this to understand:
- How the current system works
- Technical specifications and APIs
- Security architecture and threat model
- Component interactions and data flows
⚠️ Important: Some architecture files are marked as DRAFT and need code verification before being considered authoritative.
3. BACKLOG/ - The Task List
Purpose: Actionable list of future work, bugs, and technical debt. This is organized by priority, not chronology.
Usage: Read this to understand:
- What needs to be done
- Current bugs and issues
- Technical debt that needs addressing
- Future development priorities
4. LOG/ - The Journal
Purpose: The immutable chronological history of "what happened" during development. This preserves the complete development history and decision-making process.
Organization:
_originals_archive/- All original documentation files (backup and processing queue)October_2025/- Development sessions from October 2025November_2025/- Development sessions from November 2025YYYY-MM-DD-Topic.md- Individual session logs
Usage: Read this to understand:
- The complete development history
- Why certain decisions were made
- What problems were encountered and solved
- The evolution of the system over time
How to Use This Documentation System
For New Developers
- Start with ETHOS - Read
1_ETHOS/ETHOS.mdto understand the project philosophy - Read Overview - Study
2_ARCHITECTURE/Overview.mdto understand the current system - Check Backlog - Review
3_BACKLOG/to see what work is needed - Reference LOG - Use
4_LOG/only when you need to understand historical context
For Current Development
- ETHOS First - Always work within the principles defined in
1_ETHOS/ - Update SSoT - Keep
2_ARCHITECTURE/files current as the system evolves - Track Work - Add new items to
3_BACKLOG/as you identify them - Document Sessions - Create new logs in
4_LOG/for development sessions
For Maintenance
- Regular SSoT Updates - Keep architecture files current with actual implementation
- Backlog Management - Regularly review and prioritize
3_BACKLOG/items - Log Organization - File new development logs in appropriate date folders
- Verification Sessions - Schedule focused time to verify DRAFT files against code
The Maintenance Loop
When new documentation is created or the system changes, follow this process:
AUDIT
- Scan for new, un-filed documentation files
- Identify what type of content they represent
CLARIFY
- Log: Notes on what was just done → File in
4_LOG/with date - Spec: New design or system change → Update appropriate
2_ARCHITECTURE/file - Task: Something to be done → Extract and add to
3_BACKLOG/
FILE
- Move content to appropriate section
- Ensure consistency with existing documentation
- Update this entry point if needed
Getting Started
New to RedFlag? Start here:
- ETHOS.md - Understand our principles
- Overview.md - Learn the system
- BACKLOG/ - See what needs doing
Need historical context? Dive into 4_LOG/ to understand how we got here.
Current developer? Keep this SSoT system accurate and up-to-date. The system only works if we maintain it.
This documentation system was implemented on 2025-11-12 to transform RedFlag's documentation from chronological notes into a maintainable Single Source of Truth.