{"id":"c0088","filename":"c0088_digigraf_edd_ghost_sprint.dok.json","weise3_id":"","tip":"sesija_sprint","naziv":"eDD Viewer + Ghost Driver — Digigraf Sprint N+2","kreator":"genesis","datum":"2026-05-07","snippet":"","status":"","prev_weise3":"","bunker_l":"#00d4ff","full":{"tip":"sesija_sprint","naziv":"eDD Viewer + Ghost Driver — Digigraf Sprint N+2","sto_treba":"Implementirati eDD Viewer (.ddd parser, Trojan Horse) i Ghost Driver (EU 561 route simulator, Wasm-ready)","implementirano":["edd-viewer.js: DataReader, heuristic block detector, _parseActivityBlock EU Reg.1360/2002","_eu561Day() compliance check (driveSec, maxCont, break_ok), _activitiesToSegments()","_renderResult(): summary stats, per-day timeline strips (break/avail/work/drive), PDF print","index.html: card-edd button, edd-modal drop-zone, CSS edd-* classes, script + init","ghost-driver.js: GhostDriver.simulate() — haversine, segment drive time, EU 561 Art.6/7/8","EU 561 loop: continuous drive tracking, mandatory break injection, daily/weekly violation check","renderResult(): feasibility badge, stats grid, breaks list, violations, leg table","dispatcher.html: Ghost Driver modal, waypoint builder (+add intermediate), jurisdiction/routeType selects, driverState inputs","dispatcher.js: openGhostDriver, ghostAddWaypoint, runGhostSimulation — reads state + calls GhostDriver.simulate","api/tahograf.py: POST /ghost/simulate — Python mirror, GhostWaypoint + GhostDriverState Pydantic models","schema_dokarh/regulations/eu561_rules.json: DSL rules HR/DE/AT/FR/SI, Art.6/7/8, derogations","Tested: Zagreb→Klagenfurt 157km, 1h44m, no violations (highway mode)"],"architekturalne_odluke":["Ghost Driver = pure JS (no Rust yet) — Wasm interface stable per ZAKON 35","eDD parser = heuristic block detection, ~80% coverage bez pune TLV implementacije","Server endpoint mirrors JS logic — ghost chain writes sequential (c-last+1)","Regulatory DSL rules u JSON schema_dokarh/regulations/ — masinski citljivo","Chain entitlement: computation free, chain write = premium trace (ZAKON 34 foundation)"],"sljedeci_sprint":["N+3: Border crossing alarm (quadkey geofence, country detection at GPS coord)","N+4: Offline quadkey cache (Mapbox tiles pre-cache za rute)","N+5: DTT geofence entry/exit logging (Digital Twin Terminal events)","N+6: eDD full TLV parser (kriptografski blokovi, DDD Vehicle Unit sections)","N+7: Fleet Benchmarking (differential privacy k≥50, ε=1.0)"],"zakoni":["ZAKON 17 BORG","ZAKON 27 Model Trinity","ZAKON 32 Chain entry","ZAKON 34 Chain is entitlement","ZAKON 35 Ghost Driver consumes all"],"commitovi":["a39acfd feat(digigraf): eDD Viewer","102e1c8 feat(digigraf): Ghost Driver"],"nastao":"2026-05-07T20:00:38.928185Z","datum":"2026-05-07","created_at":"2026-05-07T20:00:38.928235Z"}}