Documentation Restructuring and Business Plan Compilation

Summary

The Sokrates project underwent a significant reorganization of its documentation directory to eliminate redundancy and improve content granularity. This process involved migrating the monolithic business plan sections into topical subdirectories and implementing an automated build task via just to compile the final document.

Details

During a maintenance session focused on the docs/ directory, an audit revealed nine sets of duplicate files where content was split between a legacy business-plan/ folder and newer topical directories. The decision was made to treat the topical files as canonical to allow for more granular version control and better organization of the project’s foundational, strategic, and architectural assets.

Redundancy Removal

The following files were identified as exact duplicates and subsequently removed from the repository using git rm to ensure Git correctly tracked the moves as renames (preserving 100% match history):

Legacy LocationCanonical Topical Location
docs/business-plan/Section-1.mddocs/foundation/market-analysis.md
docs/business-plan/Section-2.mddocs/foundation/customer-intelligence.md
docs/business-plan/Section-3.mddocs/foundation/competitive-landscape.md
docs/business-plan/Section-4.mddocs/architecture/product-service.md
docs/business-plan/Section-5.mddocs/business/business-model.md
docs/business-plan/Section-6.mddocs/strategy/go-to-market.md
docs/business-plan/Sections_7-10.mddocs/business/operations-financials-risk.md

Additionally, two top-level architecture files were consolidated into the architecture/ subdirectory:

  • docs/hyle-architecture.md was removed in favor of docs/architecture/hyle-eidos.md.
  • docs/sokrates-system-architecture.md was removed in favor of docs/architecture/system-architecture.md.

Automated Compilation

To maintain the ability to generate a single, cohesive business plan document for stakeholders, a new task was added to the project’s Justfile. The command just docs-compile-bp automates the concatenation of the granular files into a single output file located at dist/business-plan.md.

The compilation process follows a specific sequence to ensure the narrative flow of the business plan:

  1. Market Analysis: foundation/market-analysis.md
  2. Customer Intelligence: foundation/customer-intelligence.md
  3. Competitive Landscape: foundation/competitive-landscape.md
  4. Product/Service: architecture/product-service.md
  5. Business Model: business/business-model.md
  6. Go-to-Market: strategy/go-to-market.md
  7. Operations, Financials, & Risk: business/operations-financials-risk.md

The task also prepends a standard frontmatter header to the compiled markdown file. This transition ensures that while the source material is modular and easy to edit, the final deliverable remains consistent and professional.