Repository navigation
docs backend evidence maps MAP 25
AlexandreZanata edited this page Oct 26, 2026
·
1 revision
Status: LOCAL_DONE (see "Not delivered") Validation: PASS for the delivered scope; the cloud backup/restore cases are NOT delivered Integration: INTEGRATION_PENDING
Parent: beed14ab (MAP-24). Contract: MAP_25_CONTRACT, written first. No payment, MAP-26+ (except where stated), PAY, ESP, VPS/deploy. Synthetic coordinates and ids only; nothing uploaded.
-
Domain (
domain/map/saved): exact micro-degreeGeoPoint(refuses, never clamps),SavedPlace(station favorites keep the station UUID, compatible with the cloud-syncfavorites{station_id}shape),SavedTrip(ROUTE_PLAN stores only the plan and avoid options; RECORDED/IMPORTED tracks), bounds (5,000 places, 500 trips, 10,000 points, 102 plan points),SavedOwner(guest or account + origin). -
Safe exchange: in-repo strict XML subset reader (no dependency admitted): DOCTYPE/ENTITY/PI/non-UTF-8/user entities/depth>64/>200k elements/>5 MiB refused; GPX 1.1 and KML 2.2 read and written with original ids, source ids, avoid options and a license/privacy notice; KMZ read in memory only (≤64 entries, ≤20 MiB expanded, no nested archives, no absolute/
../backslash/drive names, root.kmlonly). Import is all-or-nothing, idempotent by content hash, never overwrites an existing id. -
Storage: Room v28 (migration 27→28, append-only, composite owner/origin keys so two owners can hold the same record id), tombstones keep ids only, import receipts, recording rows. Excluded from cloud backup/device transfer by the existing
databaseexclusion rules. -
Application/UI: owner resolved per call with an account-switch fence; station favorite toggle in the map sheet; "Save route plan" in the route sheet; Saved screen (list, per-item export, export all, import through the system chooser, deletion with an explicit second confirmation for previously deleted ids, privacy warning); explicit recorder
TripRecordingService(foreground, location type, notification Stop action, not sticky, quality-gated points ≥10 m apart, refuses to start while guidance runs). Strings in the eight locales.
- Pure/JVM: 26 new domain tests (coordinates hand-calculated, XXE/billion-laughs/PI/encoding/structure/limits, foreign GPX/KML, round trips, KMZ traversal/nesting/bomb/entries), 7 use-case tests (owner fence, malicious file never reaches storage, export only the owner's data, recorder gating), 5 ViewModel tests. Mutation checks: disabling DOCTYPE refusal, traversal check, zip-bomb limit or point limit each fails 2–4 tests; removing the owner filter from two DAO queries fails 3 Room tests.
- Real Room on the owned emulator (API 35, 16 KB):
RoomSavedStoreInstrumentedTest9/9 (idempotent favorite, restart, A/B/guest isolation, concurrent saves → one row, 5,000-place quota refusal without eviction and atomic import, 10,000-point trip round trip + cascade delete without touching another owner, import idempotency, tombstone/resurrection with and without confirmation, recording lifecycle and limit, clear owner);V27ToV28DatabaseMigrationTest1/1;SavedExchangeDeviceTest2/2 (hostile files through the real use case leave zero rows; valid GPX/KML/KMZ import once and export back only that owner's data). - Real UI on device:
SavedPlacesDeviceTest3/3 (sheet favorite toggles and persists, another account does not see it; malicious file refused; valid import; identical file recognised; deleted id needs confirmation; account switch shows and exports only that owner's items) and the previously brokenMapScreenInstrumentedTest5/5 (see below). - Real recorder service:
TripRecordingServiceDeviceTestrun 3 times, OK each time: no permission → refusal and no row; fixes before the explicit start record nothing; with a mock GPS provider only the good, ≥10 m spaced fixes are kept (poor-accuracy and 1.1 m fixes ignored); Stop saves a RECORDED_TRACK with the exact points; after stop further fixes are ignored and the service is gone; discard leaves no rows. - Static:
:domain:test :application:test :data:testDebugUnitTest :app:testDebugUnitTest :app:lintDebug :data:lintDebugBUILD SUCCESSFUL (domain 708, application 471, data 613 with 4 existing skips, app 548 tests, no failures); diff-check and secret scan clean.
-
TripRecordingServicecancelled its coroutine scope inonDestroybefore the asynchronous save/discard finished, so an explicit discard (and sometimes save) could be lost. Teardown now waits for the storage work. Found by the discard device test. -
MapScreenInstrumentedTest(MAP-19/20 UI proofs) had been failing since MAP-23 added a Hiltguidancedefault that a plain Compose host cannot supply. Tests now pass an explicit session-lessGuidanceViewModel(MapTestSupport.kt); production code is unchanged. 5/5 pass again.
-
No cloud backup, signed private backup, cross-device restore or stale-restore proof. The backend
favoritesdataset exists, but the Android cloud-sync client for it is not wired; creating that client or a trips dataset is outside this phase's targets. Cross-account restore is denied only in the sense that no restore path exists and imports always land in the current owner. - The system file chooser (SAF) is not driven by automation; the bytes it reads/writes are produced and consumed by the proven use cases. The map sheet favorite is proven through
MapScreenwith an injected marker, not by tapping a real map pin. - Recording while guidance runs is refused at recorder start; starting guidance while recording is not blocked (two location subscriptions would coexist) — to be decided with the product owner.
- No ARMv7/physical-phone run for this phase; emulator only.
- Home
- Roadmap
- docs-README
- docs-android-build
- docs-android-design-system
- docs-android-forum
- docs-android-games
- docs-android-map-engine
- docs-android-navigation
- docs-android-ocr-image
- docs-android-ocr-live-framing
- docs-android-premium-area
- docs-android-premium-integration
- docs-android-release
- docs-android-ui-containers
- docs-architecture-android-stack
- docs-architecture-android
- docs-architecture-backend
- docs-architecture-data-sources
- docs-architecture-overview
- docs-architecture-sources-ev-research
- docs-architecture-sources-national-limits
- docs-architecture-sources-national-stations
- docs-architecture-sources-register
- docs-assets-app-tutorial-CAPTURE_CONTRACT
- docs-assets-app-tutorial-FABLE_LANDING_POLISH_PROMPT
- docs-assets-app-tutorial-README
- docs-assets-attribution
- docs-assets-brand-README
- docs-assets-flags-ATTRIBUTION
- docs-assets-fuel-icons-README
- docs-assets-games-fuel-v1-README
- docs-assets-home-icons-README
- docs-assets-landing-fleet-android-20261012-BRIEF
- docs-assets-landing-hero-20261011-BRIEF
- docs-assets-landing-illustrated-20261012-BRIEF
- docs-assets-landing-illustrated-20261012-README
- docs-assets-landing-minimal-20261012-BRIEF
- docs-assets-landing-open-data-20261026-BRIEF
- docs-assets-landing-redesign-20261011-PREPARATION_EVIDENCE
- docs-assets-landing-redesign-20261011-README
- docs-assets-landing-redesign-20261011-REFERENCE_BRIEF
- docs-assets-landing-sync-20261012-BRIEF
- docs-assets-map-icons-README
- docs-backend-anp-ingestion
- docs-backend-api
- docs-backend-community-pricing
- docs-backend-data-model
- docs-backend-domain-model
- docs-backend-driver-private-data
- docs-backend-forum-architecture
- docs-backend-forum-bulletins
- docs-backend-forum-sources
- docs-backend-payments-provider-admission
- docs-backend-payments-provider-register
- docs-backend-photos-capture
- docs-backend-photos-subset-submission
- docs-backend-premium-api
- docs-backend-premium-cloud-protocol
- docs-backend-testing
- docs-backend-toolchain
- docs-brand-app-icons
- docs-brand-identity
- docs-decisions-001-kotlin-compose-stack
- docs-decisions-002-price-import-immutability
- docs-decisions-003-nominatim-reverse-geocode
- docs-decisions-005-modular-monolith-and-postgresql
- docs-decisions-006-official-catalog-and-exact-contracts
- docs-decisions-007-anonymous-proof-of-possession
- docs-decisions-008-privacy-and-retention
- docs-decisions-009-community-consensus-and-projections
- docs-decisions-010-private-object-evidence
- docs-decisions-012-licensing-and-hosted-business
- docs-decisions-015-kotlin-multiplatform-shared-domain
- docs-decisions-016-android-commercial-community-ios-deferred
- docs-decisions-017-station-profile-and-verified-representation
- docs-decisions-021-community-first-contribution
- docs-decisions-022-comaps-derived-native-map-engine
- docs-decisions-023-admin-suite-granted-tiers-contributors
- docs-decisions-025-private-abastevo-empresas-organization-boundary
- docs-decisions-026-multilingual-public-site
- docs-decisions-027-ai-reviewed-landing-translations
- docs-decisions-028-ai-reviewed-portal-translations
- docs-decisions-README
- docs-enterprise-README
- docs-enterprise-architecture
- docs-enterprise-backlog-INDEX
- docs-enterprise-backlog-ep00-governance
- docs-enterprise-backlog-ep01-platform
- docs-enterprise-backlog-ep02-organizations
- docs-enterprise-backlog-ep03-identity-access
- docs-enterprise-backlog-ep04-sync
- docs-enterprise-backlog-ep05-fleet-meters
- docs-enterprise-backlog-ep06-trips
- docs-enterprise-backlog-ep07-gps-navigation
- docs-enterprise-backlog-ep08-fuelings
- docs-enterprise-backlog-ep09-documents
- docs-enterprise-backlog-ep10-expenses-finance
- docs-enterprise-backlog-ep11-maintenance
- docs-enterprise-backlog-ep12-fuel-stock
- docs-enterprise-backlog-ep13-intelligence
- docs-enterprise-backlog-ep14-station-claims
- docs-enterprise-backlog-ep15-station-commerce
- docs-enterprise-backlog-ep16-subscriptions
- docs-enterprise-backlog-ep17-data
- docs-enterprise-backlog-ep18-imports-notifications-integrations
- docs-enterprise-backlog-ep19-back-office
- docs-enterprise-backlog-ep20-release
- docs-enterprise-business-rules
- docs-enterprise-contract
- docs-enterprise-conventions
- docs-enterprise-data-offering
- docs-enterprise-decisions
- docs-enterprise-domain-model
- docs-enterprise-glossary
- docs-enterprise-journeys
- docs-enterprise-modules-back-office
- docs-enterprise-modules-data
- docs-enterprise-modules-documents
- docs-enterprise-modules-expenses-finance
- docs-enterprise-modules-fleet
- docs-enterprise-modules-fuel-stock
- docs-enterprise-modules-fuelings
- docs-enterprise-modules-gps-navigation
- docs-enterprise-modules-identity
- docs-enterprise-modules-imports-notifications-integrations
- docs-enterprise-modules-intelligence
- docs-enterprise-modules-maintenance
- docs-enterprise-modules-organizations
- docs-enterprise-modules-station-claims
- docs-enterprise-modules-station-commerce
- docs-enterprise-modules-subscriptions
- docs-enterprise-modules-trips
- docs-enterprise-offline-sync
- docs-enterprise-permissions
- docs-enterprise-portal-routes
- docs-enterprise-privacy-security
- docs-enterprise-product-vision
- docs-enterprise-source-admission
- docs-enterprise-state-model
- docs-enterprise-testing
- docs-enterprise-ux-app
- docs-enterprise-ux-web
- docs-operations-README
- docs-operations-backup
- docs-operations-deploy-agent
- docs-operations-dou-editions
- docs-operations-edge-cache
- docs-operations-enterprise-activation
- docs-operations-map-static-overlay
- docs-operations-moderation-feedback
- docs-operations-moderation-profiles
- docs-operations-monitoring
- docs-operations-operator-access
- docs-operations-payment-providers-guide
- docs-operations-payments
- docs-operations-premium-billing
- docs-operations-recovery
- docs-operations-registry-daily-sync
- docs-operations-registry-runs
- docs-product-README
- docs-product-admin-tiers
- docs-product-community-community-first
- docs-product-community-experience
- docs-product-community-metrics
- docs-product-community-moderation
- docs-product-community-safety
- docs-product-community-terms-pt-br
- docs-product-driver-suite-README
- docs-product-driver-suite-android-state
- docs-product-driver-suite-cloud-sync
- docs-product-driver-suite-cost-profiles-and-maintenance
- docs-product-driver-suite-driver-model-and-earnings
- docs-product-driver-suite-foundation-decisions
- docs-product-driver-suite-gps-lifecycle
- docs-product-driver-suite-mobile-hub
- docs-product-driver-suite-odometer-review
- docs-product-driver-suite-outbox-wire
- docs-product-driver-suite-quick-refuel
- docs-product-driver-suite-reports
- docs-product-driver-suite-shifts-and-distance
- docs-product-driver-suite-signed-commands
- docs-product-ev-README
- docs-product-ev-charging-stop-planner
- docs-product-ev-energy-model
- docs-product-ev-financial-method
- docs-product-ev-journey-ui
- docs-product-ev-preparation
- docs-product-ev-typed-data
- docs-product-exploration
- docs-product-forum-contract
- docs-product-forum-policies
- docs-product-glossary
- docs-product-landing-content
- docs-product-landing-guides
- docs-product-landing-organic-growth-i18n-plan
- docs-product-landing-organic-traffic-expansion-plan
- docs-product-licensing
- docs-product-map-discovery
- docs-product-map-favorites-and-trips
- docs-product-map-reports-routing-guidance
- docs-product-notification-content
- docs-product-official-prices
- docs-product-open-source-business
- docs-product-overview
- docs-product-payments-README
- docs-product-payments-offer-policy
- docs-product-premium-README
- docs-product-premium-financial-method
- docs-product-premium-source-policy
- docs-product-stations-catalog
- docs-product-stations-fuel-feedback
- docs-product-stations-fuel-quality
- docs-product-stations-identity-and-ev-catalog
- docs-product-stations-profile-contract
- docs-product-stations-profile-representation
- docs-product-stations-registry-sources
- docs-product-vehicle-registration
- docs-product-vehicles-and-occurrences
- docs-security-android-terms-acceptance
- docs-security-free-account-access
- docs-security-identity-profile
- docs-security-media-location-policy
- docs-security-privacy-notice
- docs-security-privacy-policy
- docs-security-retention
- docs-security-risks
- docs-security-security-privacy
- docs-store-README
- docs-store-play-readiness
- docs-store-play-store-listing
- docs-store-ugc-safety
Source: AlexandreZanata/brazil-fuel-prices @ 9c7752ddd09ff1241fda4007f0e281d1a1dbab43