Documentation
¶
Overview ¶
Package gaps records the questions kb_ask could not answer confidently, so people can see what agents needed that the vault does not say yet.
The log is per machine and lives outside the vault (the user cache directory by default), so it is never committed: questions can carry details of the work an agent was doing. Every okvault process serving the same vault on this machine appends to the same file.
Index ¶
Constants ¶
const MaxQuestion = 500
MaxQuestion caps a recorded question, in runes.
const SameQuestion = 0.6
SameQuestion is the similarity from which two phrasings form one group: kb_ask's own FAQ threshold.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
DefaultPath is the per-machine log for a vault: the user cache directory, keyed by the vault's absolute path.
Types ¶
type Entry ¶
type Entry struct {
At time.Time `json:"at"`
Question string `json:"q,omitempty"`
Client string `json:"client,omitempty"` // MCP client name, e.g. claude-code
Dismiss string `json:"dismiss,omitempty"` // a person hid this group (its ID)
}
Entry is one line of the log: a question an agent asked, or a dismissal.
type Group ¶
type Group struct {
ID string // stable: derived from the earliest phrasing
Phrasings []string // distinct phrasings, most asked first
Counts []int // how often each phrasing was asked
Asked int // total
First time.Time // first asked
Last time.Time // last asked
Clients []string // who asked (MCP client names)
}
Group is a set of questions asking the same thing in different words.
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is an append-only JSON Lines file.