अवधारणा और विकासमानवरहित खेल · #bezpiLOTa · KAIROS DRONE AGENTदस्तावेज़
#bezpiLOTa→Drone Agent→विस्तार
KairOS / DRONE AGENT / 06

Signed package को सीमित hardware, MAVLink, telemetry, mission और network capabilities मिलती हैं; यह अलग process में चलता है और verified IPC द्वारा host से बात करता है। Extension की त्रुटि से flight-critical services बंद नहीं होनी चाहिए।

Release नहीं हुआ

Extension model और CLI लक्षित contract के रूप में वर्णित हैं; KairOS registry, signing root और public SDK अभी release नहीं हुए हैं।

KairOS repository ↗
29Capability permissions
ED25519Package signature
03Built-in plugins
CGROUPResource isolation
01
Signed extension system

सुरक्षा की पाँच सीमाएँ

01

पैकेज

Extension .kairosplug में manifest, version, entry point, requested capabilities और signature के साथ packed होता है।

02

विश्वास

Unpack करने से पहले Ed25519 signature जाँचा जाता है; boot पर revocation list लागू होती है। Unsigned केवल developer mode में अनुमत है।

03

Operator की अनुमति

Installation से पहले permissions व्यक्ति को दिखाई जाती हैं; sensitive permissions के लिए अलग पुनः पुष्टि चाहिए।

04

Process सीमा

हर plugin अपने subprocess/cgroup में CPU, memory और PID limits के साथ चलता है।

05

Capability IPC

Unix socket पर msgpack RPC हर host API call में capability token जाँचता है।

02
Permissions

Permissions वास्तविक resource के अनुसार समूहित हैं

समूहCapability के उदाहरण
हार्डवेयरUART, I²C, SPI, GPIO, USB serial/UVC, CSI
MAVLinkRead, write और अपने component का registration
टेलीमेट्रीSubscribe, extend और event publish करना
Sensors / payloadSensor या payload interface का registration
मिशनMission data पढ़ना, लिखना और record करना
नेटवर्ककेवल manifest allowlist तक HTTPS egress

Permission का अर्थ पूरे system तक सीधी पहुँच नहीं है। उदाहरण के लिए UART permission को specific device या brokered handle देना चाहिए, और network egress केवल पहले घोषित domains तक होना चाहिए। Operator Mission Control से grant revoke कर सकता है।

03
निर्माण

Manifest और न्यूनतम plugin context

yamlन्यूनतम KairOS manifest
name: cell-balance-monitor
version: 0.1.0
agent:
  entry: cell_balance:run
  capabilities:
    - telemetry.read
    - event.publish
KairOS का लक्षित interface: संबंधित component के release के बाद ही command चलाने योग्य होगी।
pythonAgent extension का उदाहरण
from kairos_sdk import PluginContext

async def run(ctx: PluginContext):
    async for battery in ctx.telemetry.subscribe("telemetry.battery"):
        cells = battery.get("cells", [])
        if cells and max(cells) - min(cells) > 0.15:
            await ctx.events.publish(
                "alert.cell_imbalance",
                {"spread_v": max(cells) - min(cells)},
            )
KairOS का लक्षित interface: संबंधित component के release के बाद ही command चलाने योग्य होगी।
04
Plugin CLI

Installation, permissions, logs और tests

bashलक्षित KairOS CLI
kairos plugin install ./thermal-cam.kairosplug
kairos plugin enable thermal-cam
kairos plugin list
kairos plugin disable <name>
kairos plugin remove <name>
kairos plugin info <name>
kairos plugin perms <name>
kairos plugin logs <name>
kairos plugin test <path>
KairOS का लक्षित interface: संबंधित component के release के बाद ही command चलाने योग्य होगी।

install package और signature जाँचकर requested permissions दिखाता है। enable केवल grant के बाद process शुरू करता है। info और perms audit के लिए, logs diagnostics के लिए और test local author workflow के लिए हैं। Removal को process रोककर केवल उसका scoped state साफ़ करना चाहिए, अन्य extensions को नहीं छूना चाहिए।

05
Built-in

तीन मूल plugins और device extensions

01

geofence

अनुमत क्षेत्रों के सापेक्ष position जाँचता है और दिखाई देने वाला event प्रकाशित करता है।

02

telemetry-logger

चुनी हुई telemetry streams को volume limits और स्पष्ट lifecycle के साथ record करता है।

03

mavlink-inspector

डिफ़ॉल्ट रूप से flight state बदले बिना diagnostics के लिए frames दिखाता है।

04

Thermal कैमरा

FLIR Lepton USB UVC, radiometric Y16, Celsius, palette/isotherm और MAVLink camera interface।

05

MAVLink Gimbal v2

बाहरी controller bridge, attitude command/status और component 154।

06
पहले क्या आएगा / आगे क्या आएगा

पहला release और आगे के चरण अलग हैं

पहला लक्षित releaseअगला चरण
स्थानीय signed installationखोज योग्य hosted registry
हर IPC पर capability enforcementPublic standalone kairos_sdk package
Built-ins और CLIScaffolder और templates
Permission review और revokeGit URL से installation
परीक्षण runnerShared driver layer और पूर्ण author documentation