Repository navigation
docs product driver suite odometer review
Date: 2026-10-26. B-BR-DRV-02/03/17/18; BUC-DRV-04/06. Freeze before implementation.
Missing provenance is UNVERIFIED regardless of the magnitude/date of an old number. No real user database is inspected or rewritten to close this phase. Synthetic old/current records exercise the actual local storage boundary.
Add a versioned, local-only _abastevo_odometer object to the existing Room ledger_draft.body_json object. It is envelope metadata, not a signed command field or a server schema. Existing typed LedgerDraft decoding ignores extra local fields; outgoing bodies are always reconstructed by LedgerDraft.bodyJson() and never forward this envelope. This avoids colliding with the other front's Room schema/migration work or overloading the charge session-context column.
Version 1 metadata records explicit VERIFIED_METRES versus UNVERIFIED. New corrected UI input supplies VERIFIED_METRES only after exact conversion. Generic imports/restores without explicit proof remain UNVERIFIED. Existing missing/unknown metadata fails closed for measured consumption, while raw purchases remain readable/exportable. Version 1 must be an integer JSON value; fractional, string or boolean versions cannot certify a record through numeric coercion. Equal-value record heuristics, timestamps and successful server parsing are not proof of original human units.
A review receipt holds only original numeric reading, canonical original-body SHA-256, expected revision, explicit AS_METRES/AS_KILOMETRES choice and resulting canonical-body hash. Do not retain old note text or raw full financial payload in the receipt. Account/origin/dataset/record keys remain in the existing row scope; no global identifier authorizes review.
- Load the current owner's row, classify missing provenance and show the original stored number as unverified, without guessing a km value.
- Owner explicitly selects whether that number was metres or kilometres. Show the converted km proposal; preserve prices, quantities, event, vehicle and notes. Charge keeps its stricter existing bound. Impossible conversion/overflow fails without writing.
- Commit only with the expected canonical-body hash and current server revision. A parameterized SQLite compare-and-set on owner/origin/dataset/record/revision/full stored body fences local edits occurring after the preview.
- The identical retry returns the existing accepted receipt/result. A different choice, foreign owner, changed revision/body, deleted row or obsolete receipt fails visibly. Cancellation before commit changes nothing; a lost acknowledgement after commit is recovered by identical retry.
- Correction is local and retains sync revision; enqueue is explicit through the existing flow. An older queued body or revision cannot silently overwrite the correction. After the suspending current-draft read, dispatch rechecks the live owner/session and device/dataset consent before conflict mutation or transport; revocation leaves the bounded claim pending without sending or acknowledging it. Apply the record guard only to refuel/expense/charge rows; gap/reset intents have no draft row and retain their existing authorized transport path. Restoring the original numeric value is a new owner-reviewed correction with a new preview, not a destructive down migration.
Unverified odometer rows cannot supply measured consumption, bought-energy efficiency or a cost/km denominator. Keep exact purchase/expense totals, raw rows and export, with odometer-unit-unverified and an actionable review entry. Do not silently label a zero distance as measured travel. Existing owner-configured reference efficiency remains separately labeled estimated.
The old entry editor requires explicit unit review before saving a legacy odometer; editing a note cannot accidentally attest a guessed distance. Fresh entry/edit round-trips use km↔metres symmetrically. The receipt is removed with its owning row/account; notes corrected/deleted later are not resurrected from provenance. A backup that excludes the local proof loses certification, not the financial record, and must be reviewed again.
Pure preview cases: proven metres, explicit old-km choice, ambiguous classification, no-reading, each dataset bound, overflow and unaltered non-odometer fields. Actual Room: legacy row, new proven row, metadata restart, owner isolation, stale edit, competing choices, identical concurrent retries, cancelled commit, raw-money preservation and deletion. Actual command/codec tests prove the local envelope never reaches the server. Monthly use-case and UI tests prove unknown metrics retain real totals and expose review. Backend SQL and original financial-v1 are unchanged.
Keep financial-v1 and the planning JSON byte-identical. Execute the existing
unit/consumption runtime rows in Go and Kotlin. Separately execute manually
worked earnings/time examples in test-only reference consumers in both
languages: detailed versus inclusive net earnings, payouts kept separate,
recorded versus modeled result, signed loss, overlapping interval union, and
missing/nonpositive denominators. Use integer centavos/seconds/metres and exact
rational arithmetic; expected values come from the frozen examples, never from
the consumer being tested. These reference checks freeze future contracts;
they do not certify a runtime earnings or shift feature (DRV-03 onward).
- 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-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-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-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/Abastevo @ e4a67580fc368a59bc1c0f1e0466fc011313f330