Files
autopilot/Cargo.toml
T
Oleksandr Bezdieniezhnykh 0a87c0f716
ci/woodpecker/push/build-arm Pipeline failed
[AZ-645] [AZ-646] [AZ-647] mission_client: middle-waypoint POST + mapobjects pull/push
Batch 3 of greenfield Step 7 — mission_client epic AZ-638 close-out.

AZ-645 (Middle-waypoint POST)
- post_middle_waypoint(mission_id, &Mission) -> Result<MissionUpdateAck, PostError>
- Bounded retry (default 3 attempts) shared with the rest of missions_api
- Health: last_middle_waypoint_post_status (ok/error)

AZ-646 (Pre-flight MapObjects pull)
- pull_mapobjects(mission_id) -> Result<MapObjectsBundle, PullError>
- Schema-validated against bundled shared/contracts/mapobjects-bundle.json
- Typed errors: Unreachable / SchemaInvalid / MaxRetriesExceeded / Internal
- Health: mapobjects_pull_state, last_mapobjects_pull_ts

AZ-647 (Post-flight push + durable disk queue)
- push_mapobjects_diff(mission_id, MapObjectsDiff) -> PushReport
- recover_pending_pushes() -> Vec<PushReport> for crash recovery
- Write-ahead atomic-rename persistence under ${state_dir}/mapobjects_push/
- Per-endpoint independent retry: observations + ignored_items
- Partial success rewrites the disk file with only the failing portion
- Health: mapobjects_push_pending, last_push_ts, per-endpoint last error

Infrastructure
- Schemas: shared/contracts/mapobjects-{bundle,observations,ignored}.json
- Restructured schema/ into mission.rs + mapobjects.rs sub-modules
- New mapobjects_sync/ (pull, push, queue)
- workspace dep tempfile=3; mission_client dev-deps add tempfile + chrono

Tests
- 12/12 ACs verified locally (4 AZ-645 + 4 AZ-646 + 5 AZ-647)
- mission_client suite: 15 unit + 18 integration = 33 tests pass
- AZ-646 AC-4 proxy: 1000-object + 1000-ignored bundle within 30s
- AZ-647 AC-5 proxy: 5000-obs + 500-ignored push within 2min

Code review verdict: PASS_WITH_WARNINGS (inline). Cumulative review
(K=3 trigger) PASS_WITH_WARNINGS — full report in
_docs/03_implementation/cumulative_review_batches_01-03_cycle1_report.md.

Open follow-ups (non-blocking):
- module-layout.md: rename push_mapobjects -> push_mapobjects_diff (Step 13)
- ExponentialBackoff still duplicated across crates; promote to shared::retry
  when the third caller lands (likely detection_client AZ-660/661)
- state_dir default is relative; composition root must override

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-19 12:54:15 +03:00

94 lines
2.6 KiB
TOML

[workspace]
resolver = "2"
members = [
"crates/shared",
"crates/autopilot",
"crates/mavlink_layer",
"crates/mission_client",
"crates/frame_ingest",
"crates/detection_client",
"crates/movement_detector",
"crates/semantic_analyzer",
"crates/vlm_client",
"crates/scan_controller",
"crates/mapobjects_store",
"crates/gimbal_controller",
"crates/operator_bridge",
"crates/mission_executor",
"crates/telemetry_stream",
]
[workspace.package]
edition = "2021"
rust-version = "1.82"
license = "Proprietary"
publish = false
authors = ["AZAION autopilot team"]
[workspace.dependencies]
# Async runtime
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "time", "io-util", "net", "signal"] }
# Foundational
bytes = "1"
anyhow = "1"
thiserror = "1"
async-trait = "0.1"
once_cell = "1"
# Serialisation
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
# IDs and time
uuid = { version = "1", features = ["v4", "serde"] }
chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] }
# Observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json", "fmt"] }
# CLI
clap = { version = "4", features = ["derive", "env"] }
# Health server
axum = { version = "0.7", default-features = false, features = ["http1", "json", "tokio"] }
tower = "0.5"
hyper = { version = "1", features = ["server", "http1"] }
# Networking / transports / schema
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "gzip"] }
jsonschema = { version = "0.18", default-features = false }
tokio-serial = "5"
# Test scaffolding
wiremock = "0.6"
tempfile = "3"
# Workspace-internal
shared = { path = "crates/shared" }
mavlink_layer = { path = "crates/mavlink_layer" }
mission_client = { path = "crates/mission_client" }
frame_ingest = { path = "crates/frame_ingest" }
detection_client = { path = "crates/detection_client" }
movement_detector = { path = "crates/movement_detector" }
semantic_analyzer = { path = "crates/semantic_analyzer" }
vlm_client = { path = "crates/vlm_client" }
scan_controller = { path = "crates/scan_controller" }
mapobjects_store = { path = "crates/mapobjects_store" }
gimbal_controller = { path = "crates/gimbal_controller" }
operator_bridge = { path = "crates/operator_bridge" }
mission_executor = { path = "crates/mission_executor" }
telemetry_stream = { path = "crates/telemetry_stream" }
[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"
opt-level = 3
[profile.dev]
opt-level = 0
debug = true