# Darkoza Fleet Capacity Gate v0.1

## Purpose
A small, read-only policy evaluator that determines whether a workload profile is eligible for a node. It does not schedule, transfer, mount, start, stop, or modify workloads.

## Safety properties
- Role allowlists are mandatory.
- Disk free-space floors are explicit per workload.
- Freshness uses a central collector timestamp, not a potentially skewed node clock.
- Confidential/internal/restricted workloads require verified encryption at rest.
- Time-sensitive workloads require a node clock reported as synchronized.
- Unknown encryption and unknown clock state fail closed for sensitive workloads.
- Offline nodes and stale observations are rejected.
- Every decision includes a clear blocked/eligible state and reason list.

## Files
- `fleet_capacity_gate.py`: dependency-free policy evaluator and CLI.
- `test_fleet_capacity_gate.py`: 13 unit tests.
- `fleet-snapshot-20261103.json`: redacted, non-identifying operational decision snapshot; internal use only.
- `decision-report-20261103.json`: redacted, non-identifying decision output; internal use only.

## Run
```sh
python3 -m unittest -v
python3 fleet_capacity_gate.py fleet-snapshot-20261103.json --output decision-report.json
```

## Live Darkoza assessment — 2026-11-03
- Public CPU research: eligible on the science-lab role, using public input data only.
- Public cold archive: eligible on the archive role, with integrity verification still required before any transfer.
- Confidential archive: blocked because at-rest encryption and clock synchronization are not verified on the current archive node.
- Production API workload: blocked by the primary free-space floor and unverified at-rest encryption.
- Confidential admin cache: blocked because Mac clock synchronization could not be verified, despite FileVault being enabled.
- Edge ingress cache: blocked by capacity and encryption constraints.

These are eligibility decisions only. No placement or data movement occurred.

## Limits
This prototype is not integrated with the OERSI queue, Docker Compose, CI/CD, a secrets broker, or production services. A passing evaluator test is not proof of isolation, backup, availability, or recovery. Before any execution integration, add signed workload identity, durable approvals, revocation, idempotency, sandbox enforcement, network egress controls, audit retention, and rollback.

## Privacy
The public release intentionally omits exact hostnames, IP addresses, storage sizes, clock offsets, credentials, and private node data. The public demo fixture is synthetic.
