instance_idstringобязательный
UUID of the cache instance
topicstringобязательный
Short slug, e.g. "deploy:web", "debug:redis-tls", "fix:generate-series"
outcomeenumобязательный
Did it work?
what_workedstringобязательный
What solved the problem or what approach succeeded
what_failedstring
What did NOT work (optional but valuable)
contextstring
Additional context, error messages, root cause (optional)
severityenum
Impact severity: critical (blocks work/deploy), major (significant slowdown), minor (nice to know). Default: major.
file_pathsstring[]
Files involved in this lesson (e.g. ["infra/deploy.sh", ".env"])
commandsstring[]
Commands that worked or failed (e.g. ["rsync -avz ...", "docker compose up -d"])
tagsstring[]
Topic tags for filtering (e.g. ["bash", "deploy", "env"])
depends_onstring[]
Prerequisites this lesson depends on (e.g. ["node:>=20", "docker:running", "wireguard:active"]). When a dependency is marked stale, all dependent lessons get needs_review.
authorstring
Name or handle of the person storing this lesson (e.g. "alice", "bob"). Used for Team Telepathy — teammates see each other's lessons in session_start. Also powers brain_who_knows and team_expertise_map.
visibilityenum
Who can see this lesson. "team" (default) = all team members. "private" = only accessible via exact recall_best_solution, never surfaced in smart_recall or team_recall. "public" = same as team (public syndication planned).
servicestring
The service or system this lesson concerns (e.g. "prometheus", "cachly-web", "auth-service"). Builds a Service node in the knowledge graph linking the people who operate it and the files that run in it. Powers brain_service_map for instant incident triage.
service_kindenum
Whether `service` is an application service ("service", default) or infrastructure ("system", e.g. prometheus, kubernetes, redis). Shown as 🛰️/🖥️ in brain_service_map.
groupstring
Optional team scope — restricts this lesson to a named group/sub-team (e.g. "backend", "security"). Only members of that group (managed via team_grant_scope) and admins see it in smart_recall. Orthogonal to visibility: a team-wide lesson has no group; a private lesson is author-only regardless of group.