The memory kit · Architecture

Inside the AI Coding Memory kit

Three views of the shared structure: records and collections, connected context, and the operating rules. This is the AI Coding Memory 1.2.0 schema from the author's implementation, separate from the smaller portable starter in this playbook.

Back to the playbook · Architecture for your AI · Portable starter

1. The memory model

Ten entity types mapped to collections, with typed fields and document categories

An entity type says what a record represents and how to identify it. A collection defines that type's structured properties. Documents retain reusable guidance or longer supporting material. Typed relations connect records so a session can retrieve the context relevant to its work.

The source declares 10 entity types, 10 collections, 35 relations and six guidance documents. Field types include text, options, number and boolean. Stable keys identify records; display titles can change. A Task Profile, for example, uses task_key (text), status (options), owner_email (text) and created_at_ms (number), alongside acceptance, verification and next-step fields.

The guidance documents use the platform's guideline and playbook content types. Specs, implementation plans and handoffs in the graph illustration are examples of supporting reference content. This kit registers no additional custom document types; those examples are not new entity types or new schema declarations.

2. Work becomes connected context

A synthetic task graph linking people, work, sessions, decisions, messages and documents

Read the arrows from their source to their target. A task is part_of a feature and owned_by a person. A session worked_on the task. A PR event implements it. A decision applies_to it, and a message is regarding it. A feature belongs to a project through in_project.

This is a synthetic example using eight declared relationships. It is not the full graph and contains no private work records. The dotted document link is a document attachment, distinct from a named relation between entity records.

Graph navigation answers “what context is connected to this record?” Complete questions such as “all open tasks in this project” use structured filters and full pagination. Core relations are mirrored by key properties so navigation and complete queries agree. Relationships are explicitly written and verified; the kit declares no automatic graph rules. A schema field by itself does not create an edge.

3. The operating rules

Five guidelines and one retrieval playbook, with the recall-to-handoff loop

The six guidance documents explain how people and agents use the same records consistently:

DocumentContent typeWhat it covers
AI Coding Memory ProtocolGuidelineRecall, attribution, session checkpoints, handoffs and failure reporting
Identifier StandardGuidelineExact stable keys, typed identity and duplicate avoidance
Work Lifecycle StandardGuidelineAccepted work, status transitions and completion evidence
Graph Linking StandardGuidelineDeclared relations, arrow direction, mirrored fields and verified links
Write Safety and ConcurrencyGuidelineRead before writing, preserve changed state, verify writes and report failures
Retrieval PlaybookPlaybookComplete work lists, focused context, decisions, errors, handoffs and messages

These are guidance documents, not an automatic enforcement engine. Local authorization governs each action. The current queue's write/wait/re-read claims do not establish atomic exclusivity across coordinators. The portable local adapter's conditional-update exercise has a different contract; production backends need their own qualification.

Entity and collection catalog

Entity typeStable key fieldCollection
personemailPerson Profile
projectproject_keyProject Profile
featurefeature_keyFeature Profile
tasktask_keyTask Profile
decisiondecision_keyDecision Record
inquiryinquiry_keyInquiry Record
errorerror_keyError Record
eventevent_keyEvent Record
ai_sessionsession_keyAI Session Record
messagemessage_keyMessage Record

Events represent identifiable occurrences such as PRs, commits, CI runs, deploys and releases. These are event kinds, not separate entity types in this kit. Inquiries cover proposals, hypotheses and questions. AI Session uses the actual type name ai_session; the portable starter's session is its own abstraction.

Relation catalog

The catalog below preserves the source's allowed types, direction and cardinality. Where several source/target types appear, read the relation's guidance for the meaningful pairing: duplicate_of, for example, is same-type; part_of means task → feature or commit event → PR event. A single-valued relation is limited to one current target; it is not evidence of an atomic claim or lock.

RelationAllowed source typesAllowed target typesCurrent targets
in_projectfeature, task, decision, inquiry, error, event, ai_session, messageprojectOne
part_oftask, eventfeature, eventOne
subtask_oftasktaskOne
owned_bytask, feature, error, inquiry, projectpersonOne
created_by_persontask, feature, decision, inquiry, errorpersonOne
decided_bydecisionpersonMany
directed_toinquirypersonMany
performed_byeventpersonOne
reviewed_byeventpersonMany
driven_byai_sessionpersonOne
has_managerpersonpersonOne
contributes_topersonprojectMany
blocked_bytask, featuretask, feature, inquiry, errorMany
depends_onfeaturefeatureMany
duplicate_oftask, error, inquirytask, error, inquiryOne
follows_uptasktask, error, decisionMany
related_totask, featuretask, featureMany
implementseventtask, featureMany
fixeseventerrorMany
includeseventeventMany
shipseventtask, featureMany
rolls_backeventeventOne
seen_inerrortask, feature, event, ai_sessionMany
introduced_byerroreventOne
tracked_byerrortaskMany
supersedesdecisiondecisionMany
applies_todecisionfeature, task, projectMany
resolvesdecision, task, eventinquiryMany
concernsinquirytask, feature, error, decision, eventOne
worked_onai_sessiontask, feature, error, decision, inquiry, event, messageMany
continuesai_sessionai_sessionOne
sent_bymessagepersonOne
sent_tomessagepersonOne
replies_tomessagemessageOne
regardingmessagetask, feature, error, decision, inquiry, eventMany

Source and adoption

The machine-readable map includes all entity/collection mappings, property names and types, relation definitions and guidance-document names. It excludes private records, identifiers, messages, credentials and transcripts.

Source: src/modules/actions/seed-data/kits/ai-coding-memory/kit.json at commit 48d788a0be3f0a94384ceb9c5939ad484db45e99, inspected October 14, 2026. The live Graph Linking Standard was also checked for arrow direction and the distinction between graph navigation and complete filtered lists. Schema counts describe this repository snapshot, not a receipt proving a particular live organization's installation.

The downloadable portable starter demonstrates local record and claim mechanics. It does not install this full production schema, semantically retrieve documents or enforce hosted permissions. Map the full model to the adopter's actual collections, native document types, authorities and concurrency contracts before relying on it.