Skip to content

Latest commit

 

History

History
91 lines (57 loc) · 7 KB

SHAPE.md

File metadata and controls

91 lines (57 loc) · 7 KB

Product shape (from the problem)

Status: identity SSOT (0.8 teach). British English.
Not the same word as Recall Shape (\tilde{X}) (the pin_map neighbourhood of a session). This file is the form of the product. Operator math stays in grammar/math-skeleton.md. Versions stay in ROADMAP.md. Mission contract: MN-REQ-00 in sysml-models/models/requirements.sysml.


The problem

An LLM call is goldfish. The next call does not remember the last graph, the last constraint, or which file the worker already settled.

Three common substitutes fail the mission:

Substitute What goes wrong
Chat as memory Transcript is not a named graph. Peers cannot re-read the same facts. Tokens grow with every dump. Chat is never SSOT.
Dump the whole session (S) Burns the token budget MN-REQ-00 exists to save. The model still has to pick what matters.
Search the corpus (RAG / GraphRAG) That haystack is documents, not this mission’s working facts. Retrieval may help the host; it does not replace a session.

The job is system, programme, software, firmware, hardware, and documentation work: live TSK / USR / MOD, a few technical documents as atoms and locators (not PDF bytes), handoff between agents. Aims: save wall-clock and tokens, keep factual accuracy. When structural SSOT is SysML (and the code or docs it specifies), that saving is relatives of one cue plus sub-units in separate sessions — not a dump of the load tree. Application: application-notes/system/llm-sysml-v2-modeling.md.

So MemNet must sit between LLM call pipelines and data search — not as the notepad, and not as the library.


Necessary form

From that problem, the product must be this shape:

  1. Named session (S) — a labelled property graph (GQL node/vertex, edge/relationship, property). The handle you pass is the session id. Peers re-pin_map from a codebook cue (labels+properties / keyword). They do not receive a graph dump in chat. Optional property id is a nickname, not identity.

  2. Goldfish read — when a turn needs memory, the agent sees only a bounded Recall Shape (\tilde{X} = \mathrm{Recall}(q)), not raw (S). Cue first (kind / labels+properties / keyword / find), then neighbourhood. Empty (q) is session outline (0.11); request it once at job start, not every turn. Skip is valid when a cued seed is empty. When MATCH_L (|Q|>1), the emit carries CueConflict (list (Q), show cardinality) — do not pick one root and do not absorb. A codebook miss last-resorts Peak_L and MUST carry CueMiss / Peak_L, not CueConflict.

  3. Sparse write — (\mathrm{Commit}(\Delta)) gated mutate. Same GQL (openCypher-shaped) alphabet as the read. Write = display: the live pin map is a shaped subgraph emit, not a second language.

  4. Two budgets, two jobs

    • Session Shape — compress (S) for the next LLM call (max_rows (M), hop (k)).
    • Host Snap — optional corpus → locators only. MUST NOT Snap-on-session (no ANN / rag_query of (S)).
  5. Durable copy = file snapshot — session save / session load lets (S) outlive a process. A durable cabinet would sit behind, not instead (never the handoff handle, never the teach surface). The 0.7 AgensGraph adapter had no runtime caller and is removed. Neo4j is retired (#187). MEMNET_NEO4J_* is ignored. Note: cabinet/README.md.

  6. This repo — engine + generic memnet-mcp only. Novel-writer stays dropped. Transport: in-process first (single agent); Multitask uses TCP serve or streamable-http so workers share one (S).

That is the shape. Versions fill it. They do not invent a different product.


Two uses of “shape”

Name Object Operator
Product shape (this file) What MemNet is —
Recall Shape (\tilde{X}) Bounded neighbourhood of (S) (\mathrm{Recall}(q)) → pin_map
Snap (not Shape) Host corpus topics → locators Host search outside MemNetSystem

Do not call MemNet a “shaped RAG” or a “shaped Cypher proxy”.


What this shape forbids

  • Chat or a pasted transcript as SSOT
  • rag_query / embeddings / GraphRAG as MemNet
  • HostSearch nested under MemNetSystem
  • Layer / Tier A as accept or teach
  • LLM talking to the durable store directly
  • Claiming goldfish from pin_map alone when there is no cue — empty (q) is session outline (0.11 census of S: kinds + LIMIT exemplars), then pick a seen cue and pin_map. leftover --anchor is a nickname cue, not a store key. view=shell is grain on a seed, not the outline.
  • Stuffing every pin_map into a growing chat list — drop prior map rows; env blobs stay in the harness (stuffed_maps, 0.13)
  • Claiming the live cabinet on Fake alone

People (0.8 teach; 1.0 claim)

0.8.0 is this shape taught for people in-repo: this file, GQL-only playbook, application-note contract, Multitask honesty (RSV + Path-B ingest shipped; full ACL modes still to-be).

1.0.0 is 0.5 + 0.6 + 0.7 + 0.8 claimed — the shape is mature for people: one GQL dialect, goldfish pin_map, gated mutate, cue-then-shape (including find when there is no ego), a durable copy so (S) can outlive a process (file snapshot; the 0.7 cabinet client is removed). Not GraphRAG. Not cabinet-only. Map and a.b.c law: ROADMAP.md. Honest install: pip install memnet-llm (package 0.21.2; extras 0.10–0.19; Neo4j retired #187). Release history: ../CHANGELOG.md. Optional extra [mcp]. 1.0 stays unclaimed.


SysML (application vs product)

The shape applies to SysML work; it is not a SysML clone.

Kind Path Role
Application note application-notes/system/llm-sysml-v2-modeling.md Use MemNet as session working memory while modelling someone else's SysML v2 tree (atoms + locators). This engine checkout and modelbasedPrj-* are repo-based (.sysml is model SSOT; MUST NOT use SysMLEdge as model SSOT). SysMLEdgePrj-* and bound: desk hosts the model graph
Application note (Multitask) application-notes/system/llm-system-dev-multitask.md Shared working memory vs model host. modelbasedPrj-*: git sysml-models/ (MUST NOT use SysMLEdge as model SSOT). SysMLEdgePrj-* and bound (SysMLEdge-based): desk graph is working model SSOT; MemNet stays campaign working memory
Product model ../sysml-models/ MemNet itself (MN-REQ-00…13). Not an application note

Do not import MemNetRequirements into a downstream load tree. User pack: sysml-memnet-documentation / sysml-memnet-cache.