ACP Cache File
AI Context Protocol cache file format for storing indexed codebase metadata
| Type | object |
|---|---|
| File match |
.acp.cache.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/acp-cache-file/latest.json |
| Source | https://acp-protocol.dev/schemas/v1/cache.schema.json |
Validate with Lintel
npx @lintel/lintel check
AI Context Protocol cache file format (.acp.cache.json)
Properties
ACP specification version
ISO 8601 timestamp when cache was generated
Project metadata
3 nested properties
Project name
Absolute path to project root
Project description
Aggregate statistics
3 nested properties
Total indexed files
Total indexed symbols
Total lines of code
Map of relative file paths to modification times for staleness detection
Map of relative file paths to file entries
Map of qualified symbol names to symbol entries
Git commit SHA if project is in a git repository
Call graph relationships
2 nested properties
Map of symbol to symbols it calls
Map of symbol to symbols that call it
Domain index
Constraint index
2 nested properties
Map of file path to constraints
Map of lock level to file paths
Annotation provenance statistics (RFC-0003)
3 nested properties
Aggregate provenance statistics
5 nested properties
Total annotations tracked
Count by source type
5 nested properties
Annotations flagged for review
Annotations that have been reviewed
Average confidence by source type
2 nested properties
Annotations with confidence below threshold
Last annotation generation run
4 nested properties
Generation batch ID
Project-wide documentation index (RFC-0002)
3 nested properties
Map of source ID to usage info
Map of style guide to usage info
References that could not be resolved
Project-wide bridging statistics (RFC-0006)
5 nested properties
Whether bridging was enabled during indexing
Precedence mode used
Aggregate statistics
4 nested properties
Total annotations from all sources
Annotations converted from native docs
Annotations merged (native + ACP)
Pure ACP annotations
Counts by source format
Counts by programming language
Definitions
Annotation provenance entry (RFC-0003)
The annotation value
Origin of the annotation
Confidence score for auto-generated annotations (0.0-1.0)
Whether annotation is flagged for human review
Whether annotation has been reviewed by human
When the annotation was reviewed
When the annotation was auto-generated
Batch identifier for generation run
Inline annotation entry (RFC-001)
Inline annotation type
Line number
Self-documenting directive for AI (RFC-001)
Annotation value (task description, issue, etc.)
Related issue/ticket reference
Expiration date for hacks
True if directive was auto-generated (RFC-001)
Parameter documentation entry (RFC-001, RFC-0006)
Parameter name
Parameter type (RFC-0006)
Where the type was extracted from (RFC-0006)
Whether parameter is optional
Default value if optional
Parameter description
Directive for parameter usage (RFC-001)
Provenance of this entry (RFC-0006)
Original format (jsdoc, docstring:google, etc.) (RFC-0006)
All formats that contributed for merged entries (RFC-0006)
Return value documentation entry (RFC-001, RFC-0006)
Return type (RFC-0006)
Where the type was extracted from (RFC-0006)
Return value description
Directive for handling return value (RFC-001)
Provenance of this entry (RFC-0006)
Original format (RFC-0006)
All formats that contributed for merged entries (RFC-0006)
Exception documentation entry (RFC-001, RFC-0006)
Exception type
When exception is thrown
How to handle the exception (RFC-001)
Provenance of this entry (RFC-0006)
Original format (RFC-0006)
Symbol-level constraints (RFC-001)
Lock level constraint
Structured reason for lock
Self-documenting directive for AI (RFC-001)
True if directive was auto-generated (RFC-001)
Relative path from project root
Line count
Programming language identifier
Exported symbols (qualified names)
[]
Imported modules
[]
Human-readable module name (from @acp:module)
Brief file description (from @acp:summary)
File purpose from @acp:purpose (RFC-001)
Team ownership from @acp:owner (RFC-001)
Domain classifications (from @acp:domain)
[]
Architectural layer (from @acp:layer)
Stability level
AI behavioral hints (e.g., 'ai-careful', 'ai-readonly')
[]
Git metadata for a file
5 nested properties
SHA of the last commit that modified this file
Author of the last commit
ISO 8601 timestamp of the last modification
Number of commits that have modified this file
List of unique contributors to this file
Style guide configuration entry (RFC-0002)
8 nested properties
Style guide name or ID
Parent style guide (from @acp:style-extends)
Documentation source ID for this style
Direct URL to style guide documentation
Specific style rules applied
[]
Style scope
Symbol name if scope is 'symbol'
Line number where style is declared
Annotation provenance tracking (RFC-0003)
Documentation bridging metadata (RFC-0006)
6 nested properties
Whether bridging was enabled for this file
Auto-detected docstring style (google, numpy, sphinx, etc.)
Number of annotations bridged from native docs
Number of annotations merged (native + ACP)
Number of pure ACP annotations
Documentation formats found in this file
File version (from @acp:version) (RFC-0009)
Version when file was introduced (from @acp:since) (RFC-0009)
File license (from @acp:license) (RFC-0009)
File author (from @acp:author) (RFC-0009)
Lifecycle status of a symbol or file (RFC-0009)
6 nested properties
Deprecation message with version/replacement (from @acp:deprecated)
API may change without notice (from @acp:experimental)
Feature in beta testing (from @acp:beta)
Not intended for external use (from @acp:internal)
Stable public interface (from @acp:public-api)
Version when introduced (from @acp:since)
Simple symbol name
Format: file_path:class.symbol
Symbol type
Containing file path
[start_line, end_line]
Whether exported
Function signature if applicable
Brief description (from @acp:summary)
Symbol purpose from @acp:fn/@acp:class/etc (RFC-001)
Return value documentation entry (RFC-001, RFC-0006)
7 nested properties
Return type (RFC-0006)
Where the type was extracted from (RFC-0006)
Return value description
Directive for handling return value (RFC-001)
Provenance of this entry (RFC-0006)
Original format (RFC-0006)
All formats that contributed for merged entries (RFC-0006)
Symbol-level constraints (RFC-001)
4 nested properties
Lock level constraint
Structured reason for lock
Self-documenting directive for AI (RFC-001)
True if directive was auto-generated (RFC-001)
Whether async
Symbol visibility
Symbols this calls (qualified names)
[]
Symbols calling this (qualified names)
[]
Git metadata for a symbol
3 nested properties
SHA of the last commit that modified this symbol
Author of the last commit that modified this symbol
Number of days since this code was last modified
Annotation provenance tracking (RFC-0003)
Behavioral characteristics of a symbol (RFC-0009)
8 nested properties
Function has no side effects (from @acp:pure)
Function is safe to call multiple times (from @acp:idempotent)
Results are cached; string for duration (from @acp:memoized)
Function is asynchronous (from @acp:async)
Function is a generator (from @acp:generator)
Rate limit specification (from @acp:throttled)
Function runs in a database transaction (from @acp:transactional)
List of side effects (from @acp:side-effects)
Lifecycle status of a symbol or file (RFC-0009)
6 nested properties
Deprecation message with version/replacement (from @acp:deprecated)
API may change without notice (from @acp:experimental)
Feature in beta testing (from @acp:beta)
Not intended for external use (from @acp:internal)
Stable public interface (from @acp:public-api)
Version when introduced (from @acp:since)
Documentation metadata for a symbol (RFC-0009)
6 nested properties
Code examples (from @acp:example)
References to related symbols (from @acp:see)
External documentation URLs (from @acp:link)
Important notes (from @acp:note)
Warnings about usage (from @acp:warning)
Pending work items (from @acp:todo)
Performance characteristics of a symbol (RFC-0009)
3 nested properties
Time complexity notation (from @acp:perf)
Space complexity notation (from @acp:memory)
Caching duration or strategy (from @acp:cached)
Domain identifier
Files in this domain
Symbols in this domain (qualified names)
Human description
Lock level constraint
Reason for lock level
Self-documenting directive for AI (RFC-001)
True if directive was auto-generated from defaults (RFC-001)
Style guide constraint
AI behavior constraint (matches config.schema.json)
Quality constraints
Git metadata for a file
SHA of the last commit that modified this file
Author of the last commit
ISO 8601 timestamp of the last modification
Number of commits that have modified this file
List of unique contributors to this file
Git metadata for a symbol
SHA of the last commit that modified this symbol
Author of the last commit that modified this symbol
Number of days since this code was last modified
Documentation reference entry (RFC-0002)
Documentation URL
Approved source ID from config (if applicable)
Documentation version (from @acp:ref-version)
Section within documentation (from @acp:ref-section)
Whether AI should fetch this reference (from @acp:ref-fetch)
Reference scope
Symbol name if scope is 'symbol'
Line number where reference appears
Documentation bridging metadata (RFC-0006)
Whether bridging was enabled for this file
Auto-detected docstring style (google, numpy, sphinx, etc.)
Number of annotations bridged from native docs
Number of annotations merged (native + ACP)
Number of pure ACP annotations
Documentation formats found in this file
Style guide configuration entry (RFC-0002)
Style guide name or ID
Parent style guide (from @acp:style-extends)
Documentation source ID for this style
Direct URL to style guide documentation
Specific style rules applied
[]
Style scope
Symbol name if scope is 'symbol'
Line number where style is declared
Behavioral characteristics of a symbol (RFC-0009)
Function has no side effects (from @acp:pure)
Function is safe to call multiple times (from @acp:idempotent)
Results are cached; string for duration (from @acp:memoized)
Function is asynchronous (from @acp:async)
Function is a generator (from @acp:generator)
Rate limit specification (from @acp:throttled)
Function runs in a database transaction (from @acp:transactional)
List of side effects (from @acp:side-effects)
Lifecycle status of a symbol or file (RFC-0009)
Deprecation message with version/replacement (from @acp:deprecated)
API may change without notice (from @acp:experimental)
Feature in beta testing (from @acp:beta)
Not intended for external use (from @acp:internal)
Stable public interface (from @acp:public-api)
Version when introduced (from @acp:since)
Documentation metadata for a symbol (RFC-0009)
Code examples (from @acp:example)
References to related symbols (from @acp:see)
External documentation URLs (from @acp:link)
Important notes (from @acp:note)
Warnings about usage (from @acp:warning)
Pending work items (from @acp:todo)
Performance characteristics of a symbol (RFC-0009)
Time complexity notation (from @acp:perf)
Space complexity notation (from @acp:memory)
Caching duration or strategy (from @acp:cached)