Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

10.5 KB
Raw Blame

Customization and capability profiles

Pixel has two independent profile axes:

  • deploymentProfile selects infrastructure: prepared uses existing private model and search endpoints; reference supplies reproducible local service definitions.
  • capabilityProfile selects external limbs. Individual limb booleans in onboarding override the selected profile.

Built-in capability profiles

Profile Email Calendar Social Web Operations Frontier Typical use
minimal off off off off off off private conversational core
chief-of-staff on on off on off off inbox, schedule, and research
research off off off on off off public-source research
engineering-operator on on off on on off chief of staff plus fleet workflows

Profiles live in profiles/capabilities/ and contain no secrets. To customize a client, select the nearest profile and override only the differences in its private onboarding file:

{
  "deploymentProfile": "prepared",
  "capabilityProfile": "engineering-operator",
  "socialLimbEnabled": true,
  "calendarLimbEnabled": false,
  "operationsPolicyFile": "/secure/acme/pixel-operations-policy.json",
  "frontierLimbEnabled": true,
  "frontierPolicyFile": "/secure/acme/pixel-frontier-policy.json",
  "frontierCredentialFile": "/secure/acme/openai-api-key"
}

For eligible Codex subscription access, start from deploy/frontier-broker/policy.chatgpt.example.json and set frontierCredentialFile to a private exported Codex auth.json instead. ChatGPT and API-key usage have different billing and workspace-control boundaries; see FRONTIER-LIMB.md.

./pixel limbs shows the effective configuration. Reconfiguration removes disabled tools from Pixel's allowlist and explicitly denies them; it also removes the related plugin or service requirement. Disabling a limb does not delete private state. Review retention separately before removing credentials, projections, artifacts, or logs.

Customization-kit preview: signed projection limbs

Pixel 3.5 development includes a constrained pack workflow for offline local helpers. The gateway adapter is generated by Pixel and can only read bounded JSON projections; it has no network, credential, process, or write authority. The separate worker is declared as offline and credential-free, can read only its signed pack and projection state, and can write only its own projection directory. Every pack includes the same signed hardened systemd service/timer boundary and baseline negative-case manifest.

Create and inspect an unsigned skeleton without granting it trust:

./pixel limb-kit generate host-health /absolute/work/host-health --name "Host health"
./pixel limb-kit validate /absolute/work/host-health

Customize service/service.py inside the declared boundary. Optional policy declarations are generated with separate commands so their safe defaults and schema identities are not hand-copied:

./pixel limb-kit add-local /absolute/work/host-health host-health-status
./pixel limb-kit add-operations /absolute/work/host-health host-health-actions \
  --target-placeholder private-host
./pixel limb-kit add-frontier /absolute/work/host-health host-health-review \
  --task-class plan_review
./pixel limb-kit validate /absolute/work/host-health

Local declarations are observe-only inventories tied to tools already declared by the limb. Operations declarations can invoke only fixed /usr/local/libexec/pixel-* helpers, remain inert without a private target mapping, and cannot grant production or change-tier autonomy. Frontier declarations can only tighten an existing typed broker task: they may reduce classifications or token bounds, disable it, or turn rehydration off. They cannot add a prompt, task class, data category, provider, credential, or budget.

Do not put a token, password, private key, client data, raw source corpus, target hostname, or provider configuration in the pack. Then sign the exact canonical tree with a dedicated Ed25519 publisher key and verify it against a separately maintained allowed-signers file:

./pixel limb-kit sign /absolute/work/host-health \
  --signing-key /secure/pixel-limb-publisher --identity owner@example --confirm
./pixel limb-kit verify /absolute/work/host-health \
  --allowed-signers /secure/pixel-limb-allowed-signers --identity owner@example

Installation remains disabled and absent from onboarding. Activation is a separate, confirmed operation. On Linux, enable verifies the installed receipt again, installs the exact signed worker units under a new non-login per-pack identity, grants projection read access only to the explicitly named gateway user, runs the worker once, enables its timer, and only then updates private onboarding and the registry. Any failed step removes the new service and restores onboarding. --gateway-user "$USER" is deliberately explicit; do not substitute a shared or privileged account. Follow activation with Pixel's normal configuration review:

sudo ./pixel limb-kit install /absolute/work/host-health \
  --allowed-signers /secure/pixel-limb-allowed-signers --identity owner@example --confirm
sudo ./pixel limb-kit enable host-health \
  --onboarding /secure/client/onboarding.json --gateway-user "$USER" --confirm
./pixel configure
./pixel plan

Use status, disable, upgrade, and remove for lifecycle work. Upgrades must be newer, signed by the active publisher, explicitly declare migration from the active version, and cannot lower the state schema. An enabled upgrade snapshots bounded projection state and restores the old bytes, units, onboarding, and registry if the new worker or commit fails. Disable verifies the installed units byte-for-byte before it stops or removes them. Removal refuses an enabled pack or leftover worker units and removes managed pack/projection state only after a registry transaction commits.

Enabling publishes signed Local capability receipts and restrictive Frontier receipts to private onboarding. It does not activate an Operations action pack. Bind each action pack to target IDs that already exist in the deployment-owned Operations policy, then re-run the normal configure/plan/apply review:

sudo ./pixel limb-kit bind-operations host-health host-health-actions \
  --onboarding /secure/client/onboarding.json --target lab-runner --confirm
./pixel configure --answers /secure/client/onboarding.json --force
./pixel plan

Use unbind-operations to remove one mapping. Disable removes every Local/Frontier receipt and any Operations mappings sourced from that limb. Upgrade preserves only mappings whose policy-pack ID still exists, whose prior receipt exactly matches the active signed version, and whose private targets still exist in the base policy; it then refreshes their signed path, version, tree, and file hashes. Pixel configure verifies each no-follow file hash and signed-limb provenance again; a Frontier declaration that would widen the deployment's base policy fails closed.

This is still a development preview. Signed host-service confinement is generated, validated, automatically provisioned, and rollback-tested on Linux; it is not yet a stable third-party compatibility promise. Do not hand-edit or weaken an installed unit. Networked workers and credential-bearing workers remain intentionally rejected. Policy packs are data-only signed declarations; they do not run in the worker or gateway and do not bypass the Source, Operations, or Frontier brokers.

Adding a sensory limb

Follow the Source Broker pattern:

  1. Put the source credential in a dedicated service identity, never the gateway.
  2. Fetch raw content only in that service and reduce it to a small typed projection.
  3. Remove instructions, secrets, active content, attachments, and unnecessary fields.
  4. Mark every record untrusted and unable to authorize actions.
  5. Give the OpenClaw plugin read-only access to the projection, scoped to Pixel's ID.
  6. Add a separate actuator for writes; do not let the read plugin reuse its credential.
  7. Add injection, stale-data, malformed-input, and disabled-limb tests.

Adding an operational capability

Follow the Operations Broker pattern. Add a root-owned, narrowly implemented helper if the operation cannot be expressed safely as a fixed argv. Then add a named policy action with:

  • the smallest target set and allowed root;
  • an accurate risk tier and short timeout;
  • anchored parameter patterns with tight length limits;
  • dedicated or ephemeral isolation for automatic staging work;
  • exclusive-target serialization for state changes;
  • bounded, secret-free output and a deterministic success condition.

Add failure, timeout, cancellation, hostile-output, and replay tests before enabling it for a client. A new backend must preserve the same external broker authority, pinned target identity, immutable planning, cancellation, output bounding, and approval semantics.

For reusable capabilities, add actions to a sanitized action-pack file with a placeholder target; map that placeholder only in private onboarding. Declare the target environment honestly. Keep standing grants to lab/test/staging work. Production or change automation should be an exact, short-lived operator lease with parameter, execution, concurrency, runtime, output, artifact, and failure budgets. A managed action must verify its result and automatically restore a known prior state on failure. See OPERATIONS-AUTONOMY.md.

Adding a Frontier task class

Do not add a generic prompt. Define an exact request schema with the minimum structural fields, explicit classification/category rules, deterministic byte/token bounds, and a strict output schema. Extend the broker compiler, plan hash, workspace contract, provider fake, disabled-limb rendering, secret/identifier corpus, malformed-input, replay/concurrency, and clean-room tests together. New raw source, file, repository, message, URL, credential, or regulated-record paths are out of scope; use a local projection or deterministic feature extraction instead. See FRONTIER-LIMB.md.

Replication boundary

Git contains code, examples, schemas, tests, and sanitized templates. Each deployment must generate its own OAuth client, token, model and Frontier credentials, Operations SSH key, host-key pins, private policy, workspace memory, and backups. Package a client handoff with ./pixel package; never copy another deployment's .env, .generated, .runtime, OpenClaw state, broker state, or live workspace into the repository.