Liberalismo.info - Phase Plans with TDD
This document converts the roadmap into executable Red -> Green -> Refactor plans.
Global TDD rules
- Every PR starts with failing test(s).
- New tests must fail for the intended reason.
- Implement the smallest change to go green.
- Refactor only after green.
- Minimum merge gate:
./test/smoke.sh.
Phase 0 - Repository organization
Objective
Keep the base coherent, buildable, and free of template leftovers.
Red
test/smoke.shfor build + core pages.test/repo_hygiene.shfor template artifact detection.
Green
- Align dependencies with local runtime.
- Replace template homepage with project landing page.
- Remove/archive template demo content.
Refactor
- Standardize test scripts under
test/. - Keep README setup/test instructions current.
Phase 1 - MVP (The Law)
Objective
Publish one full work with reliable metadata and navigation.
Red
test/work_the_law.shvalidates minimum metadata + substantial text body.test/library_index.shvalidates library listing and links.
Green
- Complete
library/the-law.mdmetadata + text. - Keep
/library/index aligned.
Refactor
- Reuse front matter checks across content tests.
Phase 2 - Initial scale
Objective
Expand the catalog with consistency.
Red
test/library_schema.shchecks minimum schema across works.test/authors_pages.shensures every referenced author has a page.test/taxonomy.shchecks taxonomy definitions.
Green
- Add additional works with complete metadata.
- Add author pages and taxonomy data.
Refactor
- Use structured data where it reduces duplication.
Phase 3 - Curation and FAQ
Objective
Add a useful editorial layer without losing archive discipline.
Red
test/faq_coverage.shfor required FAQ sections.test/reading_paths.shfor path sections and minimum items.test/link_integrity.shfor internal cross-link integrity.
Green
- Publish FAQ answers.
- Publish reading path pages with references.
Refactor
- Improve clarity and consistency of editorial language.
Phase 4 - Search and discoverability
Objective
Improve findability through searchable structured data.
Red
test/search_index.shvalidates search endpoints and schema.test/search_quality.shvalidates key query coverage.
Green
- Publish
/search/UI and/search.jsonindex.
Refactor
- Iterate search relevance and ranking strategy.
Suggested execution order
- Phase 0 baseline stability.
- Phase 1 flagship quality.
- Phase 2 catalog growth in small batches.
- Phase 3 curation quality.
- Phase 4 search quality iteration.
Portuguese (pt-BR)
Plano operacional em TDD para executar roadmap por fases com gates de teste.