Security

This page separates source-observed mechanisms from production security targets. Repository review does not establish the deployed TLS, headers, tenant isolation, encryption, backups, operator access, retention jobs, deletion completion, or incident operating history. Hosted API mode processes prompts, responses, and provider authorization and should be treated as sensitive.

Effective date: July 10, 2026. Security contact: rishabh@costlayers.com.

Local-first path

source_observed: audit commands and local artifacts exist. Platform and deployment behavior remain unverified.

Bring your own key

source_observed: API mode accepts customer provider authorization. Secret-canary and logging evidence are still required.

Bearer dashboard URLs

partial: the CLI hides full URLs by default, but bearer-path authentication remains a known gap.

Hash-based artifacts

source_observed: public proof formats use hashes and counters. Hashes do not prove correctness, attribution, or deployment security.

Opt-in response cache

partial: source includes explicit opt-in and keyed purge logic; production isolation, expiry, races, and backup behavior are unverified.

Source-Observed Controls and Targets

Data Flow Summary

ModeSource-observed flowSecurity boundary
Local audit and proofLocal files under .agentspend/.Default no-upload is a source intent; keep artifacts private and verify network behavior.
Hosted dashboard and meteringAccount labels, keyed state, counters, hashes, usage, quality, and proof metadata.Raw-data avoidance and tenant isolation are production targets, not verified guarantees.
Hosted API modeProvider-bound bodies, responses, authorization, and account traffic transit the gateway.Sensitive hosted processing. Assume traffic may reach operational systems until non-persistence evidence exists.
Response-cache opt-inProvider response bodies may persist under the repo key.Source requires explicit opt-in; purge, expiry, backup, and operator-access evidence remain required.

Hosted API Mode Boundary

Hosted API mode is not local-only scanning. It routes provider-bound requests, responses, and authorization through the gateway. Source is designed to retain metering metadata and hashes and to persist response bodies only after cache opt-in. That non-persistence boundary is not deployment-verified, and provider-side logs remain governed by your provider account.

Response Cache Guardrails

Source review shows an explicit confirmation command, cache generation binding, a 30-day source default, and keyed disable/purge paths. The production target is that disable/delete prevents new body persistence and removes controlled primary rows. Concurrency, restart, fallback journal, backup, and operator-access tests are still open.

API Key Handling

Use dedicated provider keys through environment variables or headers, never committed files. Source intends not to persist provider authorization and hides full dashboard URLs by default, but secret canaries, logs, redirects, SSRF boundaries, and platform permissions still require verification. Treat CostLayers keys and dashboard URLs as bearer credentials.

Local Artifacts

Source writes audit, proof, quality, cache, and report files under .agentspend/ and attempts to add a root ignore rule. Keep the directory out of public repositories and tickets. Local cleanup is partial: run costlayers privacy delete-local, inspect its report, and complete any manual cleanup it identifies.

Retention and Deletion Targets

Customer Responsibilities

Vulnerability Disclosure

If you find a security issue, email rishabh@costlayers.com with a description, affected endpoint or version, reproduction steps, impact, and proof-of-concept details. The unverified beta targets are acknowledgement within 2 business days and triage of plausible hosted-data reports within 1 business day. No operating-history SLA is claimed.

Incident Response

The readiness target is to contain affected services or keys, preserve evidence, assess data categories, notify affected users when appropriate, rotate secrets, and publish remediation guidance. The unverified beta notification target is within 72 hours after confirmation where legally and operationally feasible. No staffed on-call evidence, tabletop history, contractual SLA, SOC 2, ISO 27001, HIPAA, PCI, or FedRAMP claim is made.

Public Artifacts

Source review, target-state controls, gaps, and a non-authoritative subprocessor example are published at /docs/security-artifacts.html. The DPA summary is unsigned and non-contractual.

Enterprise Deployment

Teams that cannot route code-related traffic through unverified hosted infrastructure should stay on local-only paths. Private deployment, named subprocessors, a signed DPA, custom retention, key management, audit exports, deletion evidence, and support SLAs are review targets, not current commitments.