Completed TODOs β Archive β
Items pruned from TODOS.md. Kept for historical reference.
1. Product & Domain Specifications β
State Machines & Lifecycles:
- Booking state machine in L3
level-3-domain-2-booking-state-machine.md, ServiceLeg state machine in L3level-3-domain-3-serviceleg-state-machine.md, Ticket lifecycle inevent-contracts-commerce.md.
- Booking state machine in L3
Trigger-Based Messaging Logic:
- Full 22-entry trigger_event registry in
notification-pipeline-protocol.mdΒ§7, fallback chain in Β§6.
- Full 22-entry trigger_event registry in
Communications Architecture β Remaining Sections:
- (1)
channel-provisioning-protocol.md, (2)notification-pipeline-protocol.md, (3)inbox-protocol.md, (4) observability incommunications.mdΒ§Observability.
- (1)
2. Technical & Architecture Details β
Concrete Database Schema (ERD):
- Separated into
schema-backoffice.md,schema-commerce.md,schema-operations.md,schema-communications.mdand linked indatabase.md.
- Separated into
Dispatch Board Blocking Schema Gaps:
- Schemas for
vehicle_inspections,crew_absences,crew_qualificationsdefined in Backoffice;leg_assignmentsupdated for sub-contracting in Operations. ADR-007 and ADR-008 approved.
- Schemas for
Offline Sync & Conflict Resolution Concept:
offline-sync-protocol.mdcreated with full conflict resolution matrix.
Event-Driven Architecture (EDA) & Queues Review:
workflow-orchestration.mdfully specifies Hasura ET β BullMQ β NestJS patterns. Event catalog documents 53 events with triggers and consumers.
L3-5.2.2 Secrets Management Architect Loop:
- Architect loop executed and hardened into ADR-029,
secrets-rotation-runbook.md, and the.github/workflows/secrets-sync.ymlstub. Drilldown + per-loop notes archived undersupporting/reviews/archive/.
- Architect loop executed and hardened into ADR-029,
Domain 5 / L3 Architect-Loop Roll-up:
- Cascaded into
infrastructure.mdΒ§5/Β§6 + Β§6.2,observability.md,gdpr-strategy.mdΒ§1/Β§4, ADR-022 β ADR-029, seven protocol runbooks, skeleton implementation stubs, and deferred migration DDL. Source drilldown + per-loop artifacts archived undersupporting/reviews/archive/.
- Cascaded into
Disaster Recovery & Backups:
- Backup retention, restore procedures, automated verification pipeline, producer liveness, and SLA-tiered DR drill cadence documented in
infrastructure.mdΒ§6.
- Backup retention, restore procedures, automated verification pipeline, producer liveness, and SLA-tiered DR drill cadence documented in
Docker System Prune Cron:
docker-prunerglobal service indocker-compose.infra.ymlβ runs every Sunday at ~03:00 UTC on all nodes.
3. Documentation Housekeeping β
- Identify & Remove Redundant or Obsolete Documentation:
- Removed 8 old iteration docs and consolidated duplicate architectural text.
4. AI Agent & Tooling Setup β
Project AI Agent Setup β Skills, Instructions & Folder Hygiene:
- Consolidated all AI config into
.agents/β skills, workflows, prompts, and docs. Deleted.antigravity/,.jules/,.pi/,CONTEXT.md.CLAUDE.mdreduced to a 3-line pointer.HANDBOOK.mdserves as the single centralized entry point.
- Consolidated all AI config into
Evaluate Storybook as Replacement for Histoire:
- Removed
studio/storybookβ keep Histoire for now; reassess when Vite 8 compatibility becomes a blocker.
- Removed
5. Docs, Product & Architecture Refactoring β
- Use AI to question EVERYTHING (Comprehensive Review & Refactoring):
- Full 4-level iterative review executed across 6 domains. 49 review artifacts produced, 21 ADRs committed, 14 protocols finalized. All domains at "Ready to Code" status.
6. Deferred Design Decisions (TourDeparture Refactoring) β
Tour Content Model (Backoffice & Commerce):
- Content lives as a
contentJSONB column ontour_templates, validated byTourContentSchemain@busflow/types. Per-departure notes usedeparture_notesTEXT ontour_departures. Commerce projection deferred to the Publish flow milestone.
- Content lives as a
Make sure current system is ready to be localizable & adaptable for other markets (Added: LegalForm entity and default_locale/currency on Operator)
6b. Boarding Points Drilldown β Design Decisions β
Boarding Surcharge β Commerce Flow:
- Ancillary-based flow confirmed. Commerce auto-creates a
commerce.ancillariesrow withtype = 'BOARDING_SURCHARGE'duringsubmitCheckout.
- Ancillary-based flow confirmed. Commerce auto-creates a
Door Pickup Surcharge: Replaces or Stacks?
- Standalone β each pickup mode carries its own independent surcharge.
door_pickup_addresson Commerce Passengers:- Added
door_pickup_address JSONBandis_door_pickup BOOLEANtocommerce.passengers.
- Added
checkout_sessions.selected_optionsExtension:- Extended the TypeScript interface with
is_door_pickup: booleananddoor_pickup_address?.
- Extended the TypeScript interface with
max_door_pickupsEnforcement in Commerce:max_door_pickupslives on the template. Commerce counts existing door pickup bookings at checkout time.
Boarding Point Archive Behavior:
- Same pattern as ancillary catalog archiving. Archived items stay on existing assignments.
Boarding Point Onboarding Seeds:
- No seeds. Boarding points are location-specific. Concierge Onboarding wizard prompts for the first library item.
7. TODOS Pruning Audit (2026-05-11) β
Items removed during a validity audit. Completed items resolved by ADRs or infrastructure implementation.
Preview Environment Isolation & Resource Limits:
- Fully implemented:
docker-compose.preview.ymlwith resource limits on all services, Swarm placement constraints (node.labels.tier != observability), concurrency cap (MAX_PREVIEWS=5) inpreview.ymlworkflow, and ephemeral per-preview database strategy.
- Fully implemented:
Β§ 25 UStG Per-Line Tax Split:
- Resolved by ADR-012. Tax deferred to Phase 3 FinancialLedger at departure-level aggregate. SB-2 closed.
Multi-currency Bookings & FX Rate Infrastructure:
- Resolved by ADR-035. Phased rollout specified (Phase 2a/2b/3). SB-1 closed.
JSONB Audit Diffing:
- Duplicate of SB-5 in the Strategic Blind Spots tracker. SB tracker owns this item.
Driver Compliance Subdomain Extraction (DutyActivity):
- Exhaustively specified in eu-561-compliance-research.md Β§6, schema-operations.md, domain-model.md, and BSFZ funding docs. Not at risk of being missed.
Agency Payouts / Commission Ledgers:
- Implementation detail (settlement infrastructure). Removed from documentation TODOs; will surface naturally during Phase 2 commerce implementation.
NotebookLM Integration & Docs Reduction:
- Descoped (2026-05-11). The dual-brain concept never materialized β no MCP connector exists and Google ships no public API. Strategic intelligence lives in
docs/under PARA, accessible to all agents. Thecontext-engine/docs-hubRAG stack covers the queryable-knowledge use case within the monorepo toolchain.
- Descoped (2026-05-11). The dual-brain concept never materialized β no MCP connector exists and Google ships no public API. Strategic intelligence lives in
Partial Recalculation (Dirty-Flag Engine):
- Relocated to idea file. Assessed as non-issue at current scale (β€72 variants).
IP Tracker β Automatic Company Profiling:
- Relocated to idea file. Marketing growth idea.
Bus Tourism Company Discovery & Booking Engine Crawler:
- Relocated to idea file. Sales intelligence tooling.
Evaluate "busflow-ceo" Repo Extraction:
- Relocated to idea file. Deferred strategic decision with an explicit trigger.