Subscribe to the Non-Human & AI Identity Journal
Home Glossary Architecture & Implementation Patterns Context custody debt
Architecture & Implementation Patterns

Context custody debt

← Back to Glossary
By NHI Mgmt Group Updated June 6, 2026 Domain: Architecture & Implementation Patterns

Context custody debt is the accumulation of risk created when organisations keep AI memory inside vendor-held sessions that cannot be exported, versioned, or recovered. The debt shows up during outages, migrations, or team handoffs, when the missing context becomes a productivity loss and a control failure.

Expanded Definition

Context custody debt describes the operational and governance burden created when AI session state, memory, prompts, tool outputs, and handoff notes are trapped inside a vendor-held workspace rather than being owned, exported, versioned, and recoverable by the organisation. In NHI and agentic AI operations, that custody gap matters because the agent often acts with tool access, API keys, and delegated permissions, so the context itself becomes part of the control surface.

Usage in the industry is still evolving, and definitions vary across vendors. Some platforms call this “memory,” others call it “conversation history,” but the security question is the same: can the organisation recover authoritative context after an outage, migration, or personnel change? NIST’s NIST Cybersecurity Framework 2.0 frames this as a resilience and recovery problem as much as an access problem. The most common misapplication is treating ephemeral AI chat state as disposable, which occurs when teams rely on a vendor session for decisions, approvals, or operational memory without export or retention controls.

Examples and Use Cases

Implementing context custody rigorously often introduces extra workflow overhead, requiring organisations to balance fast agent adoption against the cost of capture, versioning, and retrieval controls.

  • An IT operations agent documents incident triage in a vendor session, but the notes are not exportable, so the next shift cannot reconstruct the decision trail after a service restart.
  • A finance team uses an AI assistant to draft payment exception handling, then discovers the reasoning history cannot be retained for audit or replay.
  • A platform team migrates from one model provider to another and loses prompt templates, tool schemas, and approval context because the old workspace does not support portable export.
  • An autonomous agent uses privileged API keys and remembers the last successful run only inside the vendor app, creating a hidden dependency that resists offboarding and review.

These patterns align with the broader NHI control problem described in the Ultimate Guide to NHIs, where lifecycle, visibility, and offboarding failures create lasting security exposure. For controls thinking, NIST Cybersecurity Framework 2.0 helps teams tie context portability to recovery, governance, and access management rather than treating it as a UX preference. The practical question is whether the organisation can reconstruct agent intent after the platform itself is gone.

Why It Matters in NHI Security

Context custody debt turns an AI convenience feature into an identity governance issue. When memory, approvals, and task state are locked inside a vendor boundary, teams lose the ability to investigate misuse, reproduce actions, or prove what an agent knew at the time it acted. That undermines incident response, offboarding, and change control, especially when the agent is connected to sensitive systems through service accounts, tokens, or delegated authority.

This risk is not theoretical. The Ultimate Guide to NHIs reports that only 5.7% of organisations have full visibility into their service accounts, which shows how quickly unmanaged machine identity state can disappear from view. In practice, context custody debt compounds the same visibility gap by hiding the operational reasoning attached to those identities. It also clashes with Zero Trust expectations in NIST Cybersecurity Framework 2.0, because recovery and verification depend on portable evidence, not vendor memory. Organisations typically encounter the consequence only after an outage, migration, or staff handoff, at which point context custody debt becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10A1Agent memory and tool-state retention affect attack surface and misuse paths.
OWASP Non-Human Identity Top 10NHI-01Non-human identity lifecycle failures include lost context around credentials and usage.
NIST CSF 2.0PR.DSProtecting stored context and recovery data supports secure handling of operational records.

Classify AI context as protected data and ensure it is recoverable, retained, and access controlled.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on June 6, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org