Repository navigation
Add VLA & Decision models (as expert models) support - #61
Merged
Merged
Conversation
Bind reusable consent to declarations and destinations, unify owned-evidence approval, expose scoped permissions and revocation, and prevent stale consent writes after revocation.
…e contracts - llm/services: typed task admission (contracts), immutable per-caller telemetry records, and provider/runtime/codec wiring for them - hardware: passive bounded clip skill behind an owner port (new builtin entry point), conservative grasp installation preparation, hardware-owned query contracts, and frames/readiness/snapshot evidence updates - engine: streaming usage telemetry, result budget, session factory and learning bridge updates - tools: model service/tools telemetry and fixture alignment - tests: media replay harness, refreshed journey cassettes and expanded coverage for contracts, telemetry, clips and dispatch - docs: plugin lifecycle and third-party plugin development refresh
…s compact raw readings, off-loop focus polling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Features
Read-only model specialists as a first-class capability
llm/services/package: fail-closed declaration admission (config.py), immutable protocol values (protocol.py), strict JSON result codec (codec.py), bounded single-origin HTTP client (http_client.py), generation-pinned stateless runtime (runtime.py), and per-caller inference telemetry (telemetry.py).model_servicetransport +backend: provider: an already-served model becomes an HCP device with one declaration; no per-model Python integration.config_model_service(show/set/enable/disable/unset/check, per-ID upsert, cross-process serialized writes),model_describe,model_query,model_query_batch; exposed through an optional plugin so an empty catalog stays byte-identical.leap config llm services …and/config llm servicesshare one implementation, includingpermissions,revoke, and a bounded local-only--casefixture check.Consent, permissions and revocation
binding(declaration + resolved destination) and are revalidated against a revision before write (put_if_current), preventing stale consent from resurrecting after revocation.revokefor model services;disablekeeps discovery but refuses calls and revokes prior handles.method,processing_location,service_id) now participates in the action digest; session-scoped approval bypass replaces a daemon-wide bypass.Passive evidence, without new capture authority
perceive.clipbuiltin skill +hardware/skills/clips.py: bounded temporal evidence encoded from existing camera/episode seams, owner-port split (builtin_clipentry point).snapshot_evidence.py: opt-in, caller-owned retention of an already-shared snapshot — checksum-bound, per-session quota, no eviction, opaque session artifact IDs only.calib.grasp_evidenceskill (HardwareTaskContractdiagnostics) plusgrasp.installreuse_fromand identical-evidence no-op.Calibration and execution recipes
calib.ball: carried-ball hand-eye calibration with radius-seeded sphere fitting, dual-radius sanity check, and full ring/scale planning incamera_calibration(v1.3.0).relocation_recipe.py+recipe_plugin.py+hardware_relocationexample SKILL: pure-recipe, three-mode (service/native/supplied) task family built on existing governed skills; default-off and reversible.ToolInvokerport for composite toolsdomain/tool_invoker.py+engine/tools/tool_invoker.py: a tool runs its declaredx_leapflow["child_tools"]only through ordinary dispatch, keeping validation, ledger, approval, permits and freshness checks — no parallel mutation path.Demand-driven tool admission (PCD)
agent.admission_policy: demand_driven|legacywith capability manifests, manifest-declared bootstrap tools, and CORE/EXPANDED/FULL disclosure where execution schemas default to on-demand.Child session engines
session_factory.build_child_session_engine: subagents and concurrent children get fresh working memory, compressor config, guardrails and ledger while sharing stateless services; only inference cost merges back.Enhancements
_context_fieldsview that is selected before any lossy shaping; failure/effect metadata always survives.ProviderAttempt; OpenAI/Anthropic usage extraction is contained so telemetry never fails a turn; cached-token shapes preserved.AsyncCloseableProvider, idempotent shieldedaclose(), isolated instance construction with per-provider revisions.mandatory_context()admits only preference/safety sections;sync_turnstores the answer as conversation, never as a verified fact.replay_report()counts expanded samples with scope/epoch-aware loss accounting, grasp verdict depth/size guards.max_duration_s; one-shot firmware drive-latch clear inside an approved enable; release/re-enable fault gating reworked.memory_limit/threads, monitor finding retention (max_age_s,max_per_watch) with durable notification checkpoints, lossless compact raw segments with workspace quota, off-loop focus polling with backoff.config_transaction, new settings (db.*,hardware.raw_quota_mb,hardware.snapshot_evidence,monitor.findings_*,observer.focus_*),llm.servicesrestricted to the profile layer, startup and runtime reload share one decoder.Refactors
SessionPersistence, child-frame install/cleanup, singleOutputSinkpath with fewerAgentEngineinline responsibilities.hardware/transports/model_service.pyrebuilt onllm/services(−134 lines) with the SDK wire shape isolated in_model_http/_model_provider.tool_invoker,tool_attachments, invocation-scoped admission overlay).reference_resolverreduced to a historical-candidate lookup (−37 lines); daemon/session and session registry delegate to the shared factory.Fixes
internal_defectbefore the provider taxonomy (unified classifier).partialsibling payload.Docs
README.md: model specialists, consent/revocation, snapshot evidence, relocation workflow.docs/plugins/: plugin lifecycle (specialist service lifecycle, demand-driven admission and cache integrity), hardware init calibration (+98), third-party plugin development (+207).AGENTS.md: new mandatory TUI draft-overflow and IME-safety contract.src/leapcalib/README.md; newhardware_relocationexample skill doc.Tests
tests/_harness/media_replay.py; 464 refreshed journey cassettes.