What leaves your server

See the exact summaries, heartbeats, evidence records, dashboard data, email content, and optional AI metadata that leave a shld host.

Use this page to trace host data from local collection to the shld platform. The field lists come from platform/src/contracts.ts, the transport comes from cmd/shld/connection.go, and optional AI fields come from platform/src/incident-ai.ts.

What stays local by default

The agent writes the full event and finding tape to <state>/events.jsonl. The tape can contain hostnames, paths, package versions, process identities, network endpoints, SSH usernames, source addresses, network prefixes, and key fingerprints. The collector excludes credential contents and environment values. Treat the tape and JSON reports as sensitive operational data.

The normal notification API has no full-inventory or raw-tape field. A one-shot shld scan keeps notification records local. A configured shld run exports bounded summaries and heartbeats.

An optional evidence sink, experimental and not supported at launch, is a separate path. When configured with SHLD_SINK and SHLD_EVIDENCE_TOKEN, it receives full tape records, including login records. Observe mode suppresses SSH login email, not evidence-sink export. Use separate administration and a same-host TLS proxy for a remote sink.

What the agent sends to the platform

The agent uses the enrolled host's bearer credential. Remote notification origins require HTTPS, and the exporter refuses redirects. Managed login stores the credential at /etc/shld/connection.json with mode 0600; systemd delivers a separate read-only copy to the service.

A record batch contains exactly schema_version, host_id, and 1 to 128 contiguous records. Each summary starts with sequence, record_hash, and kind.

Summary partFields accepted by the Worker
Eventsequence, record_hash, kind
FindingEvent fields plus finding_key, rule_code, severity, source_time
Optional finding fieldsadvisory, coverage, already_notified, action, group_part, group_total
Heartbeatschema_version, host_id, heartbeat_counter

An advisory always includes ecosystem, package, installed_version, advisory_id, urgency, remediation, and status. Optional fields cover advisory IDs, fixed version, affected packages, update and verify commands, restart hint, group counts and severity, KEV state and fingerprint, target fix, coverage notice, EPSS, new-KEV state, and closure reason.

A coverage summary contains exactly condition, count, reasons, paths, and omitted. It can include up to 10 absolute paths and 16 reason strings. Generic activity summaries omit detailed paths, permissions, owners, and process evidence, but coverage paths are an explicit exception.

The Worker returns a receipt with through_sequence and through_hash, plus refused_sequences when capacity causes refusals. A heartbeat receipt includes heartbeat_counter and received_at. Receipt proves service acceptance, not inbox delivery or human review.

What the platform stores

The hosted implementation uses a Cloudflare Worker and D1. The company_state row stores the company projection, non-advisory incidents, hosts, auth state, configured caps, diagnostics, and advisory counters. Separate advisory_incidents rows store advisory incident JSON, and advisory_receipts rows store host sequence, batch fingerprint, and refused-sequence data.

Stored host records include ID, alias, token digest, revocation state, chain and heartbeat positions, registration and receipt times, silence state, and enrollment state. The host record does not store the raw bearer token.

Incident records include host ID, reason, severity, source sequence, hash and time, service timestamps, occurrence count, acknowledgment actor and time, recovery time, advisory or coverage details, and delivery state. For a not-applicable dismissal, the incident also stores the selected reason (not_used, tolerable_risk, or inaccurate) and a snapshot of severity, advisory urgency, fixed version when present, and KEV group fingerprint and count when present. The service stores the acknowledgment actor and time when the incident was not already acknowledged. Delivery attempts can contain provider references, and the enclosing delivery object can contain recipient results. Company auth state stores recipient addresses and device grants with secret digests rather than raw host credentials or user codes.

The platform sends email through Cloudflare's SendEmail binding. The message contains the host, issue, severity, relevant advisory or coverage details, and an authenticated incident link. Advisory email can include package versions, commands, and remediation references. Provider acceptance does not prove mailbox receipt.

What optional AI drafting sends

When an operator enables it, Workers AI receives incident kind, reason, severity, host-reported and service-recorded times, recovered_at, acknowledged_at, and host_revoked. Its advisory object contains only ecosystem, package, installed version, advisory ID, urgency, and status. Five fixed strings name missing local evidence.

The provider payload excludes host labels and IDs, credentials, recipients, source hashes, coverage paths, file contents, update and verify commands, and unrelated incidents. The copied prompt can contain more than the provider payload because shld adds deterministic evidence and safeguards afterward.

Retention and deletion

You can delete your company and its data from shld yourself: Settings, then Data and privacy, then Delete company. The dashboard says what that removes and what stays on your servers.

There is no single documented retention period for every record. Ordinary platform pruning requires acknowledgment, accepted email delivery, and seven days after the relevant timestamps. Heartbeat and capacity incidents also wait until the server recovers. Capacity pressure can remove some records earlier, and advisory records have separate pressure rules. Device grants expire after 10 minutes. AI plans expire from the application cache after one hour.

The sources do not document a fixed retention period for unacknowledged incidents, host records, recipients, revoked-server history, or the local tape. They also do not document retention for Cloudflare Access logs, Worker logs, D1 backups, email content, mailboxes, or Workers AI inputs and outputs. No general data-residency commitment follows from the shld code.

Limits

Local evidence can identify people, systems, and network locations even without file contents. Review and redact reports before disclosure. The exact third-party retention terms and deployed settings require operator confirmation outside this source snapshot.