# Security and trust model

## Threat model

Treat every contributed package as untrusted input. The kit is designed to parse and interpret a small data language. It does not import, compile, or execute contributor-supplied programs.

## Enforced boundaries

- Standard-library-only implementation; no network or shell APIs.
- No `eval`, `exec`, `compile`, dynamic import, subprocess, socket, HTTP, or third-party request libraries.
- Strict archive member allowlist; ZIP traversal, duplicate names, symlinks, encrypted members, unexpected files, and size excesses are rejected.
- Canonical JSON, duplicate-key rejection, file hashes, exact schemas, fixed operation allowlist, and empty permissions.
- Explicit input references and prior-step-only references; no loops or dynamic expressions.
- Bounded input complexity, package size, step count, test count, and output size.
- Local installation uses content-addressed immutable release directories, atomic pointer writes, stored package bytes, and verified rollback.
- No owner keys, credentials, personal data, customer data, or prompts are included in the package format.

## What the checks do not prove

A passing hash proves integrity relative to the manifest, not who authored the package. A passing test suite proves only that the included test cases passed in this interpreter; it is not a security audit or an assurance of correctness, suitability, or safety for every input.

Do not put secrets, private data, customer information, or personal identifiers in a package. Review a package before installing it.

## Hosted deployment is intentionally separate

This v1 kit does not accept uploads into production and does not run user code on the DARKOZA server. Hosted, per-user deployment must not be enabled until the platform has:

1. Strong account and publisher identity binding.
2. Signed package provenance and revocation.
3. Tenant-isolated runtime boundaries and resource quotas.
4. A permission broker with default-deny policies.
5. Abuse controls, privacy-safe audit receipts, and tested rollback.
6. Independent security tests for cross-tenant access and resource exhaustion.

The paid Developer API gate and existing OERSI owner/production holds are not changed by this kit.
