Repository navigation
Developer Guide
Follow Paladio's strict dynamic-data, zero-legacy, and 10-locale internationalization rules, extend backend capabilities cleanly through Clean Architecture ports or FastMCP tools, verify changes with scoped test commands, and synchronize documentation to the GitHub Wiki.
Contributions across backend/, cpp_core/, and frontend/ must adhere to the repository rules enforced by code review and pre-commit tooling:
-
Dynamic data everywhere: Never introduce mock fallbacks, hardcoded POI fixtures, or static business tables into production paths (
backend/app/,frontend/src/,cpp_core/src/). Fail fast when external APIs or database catalogs are missing; isolate test fixtures strictly insidebackend/tests/,frontend/tests/, andcpp_core/tests/. -
Zero-legacy architecture: Do not add
/api/v1route aliases, schema synonym fields, or backward-compatibility wrappers. Refactor callers across frontend, backend, MCP tools, and tests directly into the unified modern contract. -
Mandatory 10-locale i18n: Wrap every new or modified user-facing string in
useTranslation()(t(...)) and add matching translations across all 10 files infrontend/public/locales/(ar.json,de.json,en.json,es.json,fr.json,it.json,ja.json,ko.json,pt.json,zh-CN.json). -
DCO 1.1 sign-off and branch protection: Sign every commit (
git commit -s). The pre-commit hook runsruff,ruff-format,eslint,clang-format, andscripts/guard_demo_branch.sh(which blocks accidental direct commits ontodemo).
Run pinpoint tests matching the files you modified rather than slow whole-repo verbose runs, and validate all 10 translation files whenever editing UI text.
# 1. C++20 unit & stress tests
cmake -S cpp_core -B cpp_core/build -DPALADIO_BUILD_TESTS=ON
cmake --build cpp_core/build -j4 && ctest --test-dir cpp_core/build --output-on-failure
# 2. Scoped backend pytest run
pytest backend/tests/test_bridge.py -k test_bridge_64_pois -q
# 3. Frontend lint, component tests, and scoped Playwright E2E
cd frontend && npm run lint && npm run test:ct && npx playwright test tests/e2e/engine.spec.ts
# 4. 10-locale translation parity & untranslated string check
python3 scripts/i18n/validate_locales.py
python3 scripts/i18n/find_untranslated.pyEach subsystem isolates extension points so new capabilities inherit authentication, revision snapshots, and strict validation automatically.
- Implement the async tool function inside the matching module under
backend/app/mcp/tools/, validating trip access viaget_user_contextandassert_trip_access, and returningcreate_proposal(...)if the operation requires Tier C confirmation. - Export the function in
backend/app/mcp/tools/__init__.py. - Register it in
backend/app/mcp/server.pywithmcp.tool(name=…, description=…, annotations=make_annotations(read_only=…, idempotent=…, destructive=…)). - Add the tool name either to
CORE_TOOLSor a domain bucket inDOMAIN_TOOLSETSinsidebackend/app/agent/toolsets.pysoTripAgentRunnerdiscovers it dynamically.
- Subclass
BaseFareAdapter(backend/app/adapters/fares/base_fare_adapter.py) followingodpt.pyortfl.py. - Return normalized fare quotes with provenance URLs and
evidence_hashdigests forFareResolver(backend/app/services/fare_resolver.py) to persist intransit_fare_quotes.
- Add fields to
POIorOptimizationConfigincpp_core/include/paladio/engine.hppwith clean default values. - Enforce the constraint inside
cpp_core/src/engine.cppwithout adding heap allocations toSearchState. - Expose matching read/write properties and constructor arguments in
cpp_core/src/bindings.cpp, updatecpp_core/src/paladio_core.pyiandbackend/paladio_core.pyi, and add GoogleTest coverage incpp_core/tests/cpp/engine_test.cpp.
mkdocs.yml is the single source of truth for both the GitHub Pages portal (.github/workflows/docs.yml) and the GitHub Wiki (scripts/sync_wiki.py).
- Validate the MkDocs site with
--strictbefore committing documentation changes (building into/tmpavoids cluttering the workspace):
.venv/bin/mkdocs build --strict -d /tmp/paladio_mkdocs_verify && rm -rf /tmp/paladio_mkdocs_verify- Regenerate and push the synchronized GitHub Wiki (converting admonitions, tabs, relative links, and screenshot URLs while pruning retired wiki pages):
git clone git@github.com:Leandro-Juan/paladio.wiki.git /tmp/paladio_wiki_sync
.venv/bin/python scripts/sync_wiki.py --docs-dir docs --wiki-dir /tmp/paladio_wiki_sync --push
rm -rf /tmp/paladio_wiki_sync- Control Center & Taste Star
- Creating Trips (/engine)
- Trip Workspace & Speed Dial
- Public Transit & Valhalla
- Bookings Wallet & Passes
- Route Monitoring & Deals
- Costs & Group Splitting
- Trip Archive, Photos & Sharing
- AI Travel Assistant
- Configuration & Env Vars
- City POIs, Maps & GTFS
- LLM Providers & MCP Clients
- Photo Sync, Relays & Secrets
- Reverse Proxy & Security
- Backups, Updates & Troubleshooting
- System Overview
- Deterministic Trip Engine
- C++20 Combinatorial Core
- Semantic RAG & Taste Learning
- Deal Engine & Multi-Modal Transit
- Agent & MCP Safety Model
- Frontend, PWA & Demo Mode