fptriagecache

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package fptriagecache provides a bounded, filesystem-backed cache for typed AI false-positive triage claims. Entries contain no source text, credentials, gate authority, token values, or evidence-ledger references. The use case rebinds every hit to the current finding, reapplies deterministic policy, and seals it into the current scan's evidence link.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache stores one immutable JSON envelope per content-addressed key. The root must be operator-owned; New creates only the AI-triage subdirectory, with owner-only permissions, on the first write.

func New

func New(root string) *Cache

func (*Cache) Load

Load returns a clean miss for absent, corrupt, mismatched, oversized, or obsolete entries. Cache integrity is never allowed to turn into scan failure or into an unvalidated model claim.

func (*Cache) Store

Store atomically publishes a validated entry. A valid exact-key entry is retained; corrupt or obsolete formats are replaced. Concurrent valid writers may race, but readers never observe a partial file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL