GeezerVison is showing github.com — research(id): graph query language selection + visualization · Issue #9126 · developing-today/code
research(id): graph query language selection + visualization #9126Done 1 / 31 of 3 issues completedDone 1 / 31 of 3 issues completed Labels app/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearing DescriptionProgram #9106 (extensible primitives / federation / namespaces), Drew directive 2026-11-12 18:29 CST.
Parent: #9107.
§5 (8-12). Evaluate graph query languages and visualization tooling against the encoding chosen in the bake-off; metadata is accessed via the graph when graph query lands; visualization consumes the same query layer, not a separate store. Acceptance: evidence-backed research note merged under doc/ and linked from the parent epic, with a recommendation the sibling designs can build on; open questions recorded, not silently settled. Sub-issuesCollapse Sub-issuesSub-issues1 of 31 of 3 Issues completedLoading 3 sub-issues Activitydeveloping-today commented on Nov 13, 2026 dezren39 commented on Nov 13, 2026 Amendment — Drew's directive, 2026-11-13 11:43 CST (Reports chat; verbatim staged at workspace/reporting-architecture-intake-20261113/sources/directive-2026-11-13-pages-comments-templates-graph.md). Amendment to this item; no new issue filed. Encoding-side constraints are on #9125.
Part A — Graph semantics the query/visualization layer must support
- No non-directional links. A pair/group is a unit object (Jack + Jill as
together); each member links to the other members and to the unit; the unit is a signable aggregation object (member-signed, co-signed, or unsigned with provenance recorded). Units extend over time (add a pet/child to the unit) without rewriting history. Query must find members via the unit and the unit via any member, including chained/aggregated relations ("related single unit").
- Notifications over the graph: pressing "I love Jill" on a unit/person notifies the other party, who gets one-tap actions ("I love Jack", "I support Jack loving Jill", both). Query/visualization should treat these action-generated signed links as ordinary graph citizens (see also design(id): append-list user-attribute protocol — signed submission, server order, pending queue #9127 — they arrive as append-list attribute objects).
- Calendar-event objects: an event schema type with a start→end duration; an invite object attaches a verb ("inviting", or simply "Drew created this event") and can be sent to a user, accepted from any user, or limited to a group. Responses: accept / decline / custom verb (e.g. "ignore", "postpone" — postpone re-surfaces the event later; mark-read dismisses reminders). Client behavior on ignore: re-remind with increasing frequency. (Directive: these details explicitly do NOT all need solving now — they are recorded as the shape.)
- Link weighting: links made by one person vs many vs an admin vs the subject themselves carry different weight, and the querier's relative context can change weighting — in addition to BM25-style, embedding-similarity, and hot/recommendation ranking already in scope here.
Part B — Story → structure machine translation (homed here)
Why here, not on #9106 or #9125: this material is about producing and querying/exploring structured graph documents — fact documents made of triples plus order objects, alias/phrase links, link weighting, and a click-a-word explorer. #9126 owns the graph query language + visualization surface, so the translation output format, its explorer, and its review loop belong to this item. #9125 is the storage-encoding bake-off: the translation consumes whatever encoding wins, but the encoding choice shouldn't be driven by the translation layer. #9106 received the separate bots/worlds input from the same directive.
Requirements from the directive:
- Decomposition: any document (story, notebook, game result) can be broken down — in one or more structural ways — into a stored, pretty-printed KDL- or YAML-like fact document: facts, statements, associations, links. Alongside it, generate the rough natural-language rendering of the facts alone (what the document would mean stripped of the rest of its text), since the facts are one person's assertions/opinions/conjectures presented as structure.
- Order is explicit: sequences get a thin order object (1. first, 2. next, 3. next…) when order matters, or unordered triples when it doesn't. Example decomposition ("Jack and Jill went up a hill to fetch a pail of water…"): Jack went up a hill / Jill went up a hill / Jack-and-Jill-unit went up a hill for reason: fetch a pail filled with water.
- Alias & phrase links: phrases are alias/synonym objects ("pail of water" as a phrase-node, alias of variants), so graph chains can be followed through phrases as well as entities — find all users/actions related to "pail filled with water."
- Embeddings cover all three forms: originals, structured versions, and sentences regenerated from the structured version — all linked to each other. Re-embedding/refresh runs as interval sweeps, plus an admin/user-triggered refresh (embeddings spend is a permissioned action) or an LLM review request on demand.
- Dictionary growth & disambiguation: as the store grows, every word (English + other languages) accrues entries with definitions and contexts; popularity/likelihood informs which meaning a breakdown picks. Mis-picks are expected modes: wrong verb sense entirely changes meaning; pronoun/referent resolution should prefer the Jill most related to both speaker and listener, not just the speaker's closest Jill. Distinguishing these needs steering/context beyond imperative code.
- Correction feedback loop: corrections feed back for machine re-processing and ML review of original-vs-new. A correction may edit the original's attached definition/ID bindings without immediately rewriting the structured document — the structured version is marked stale; unverified automatic translations are displayable as such, with an approval flow. The explorer: click into a word in an editor/explorer and see its relationships — a debugger-for-language — with equivalent capability for agents via tools/API.
- Expanded companion documents: alongside compact KDL, produce expanded versions embedding cognates, synonyms, word definitions, action/object lengths, prior occurrences "this way before", and other metadata — so a relatively small model can process the document with only instructions + input, no tools, and rule on sense (directive's example: "driving" as metaphor — driving horses to stay on track — vs literal driving a person somewhere) and apply the fix as an edit to which definition-ID the word attaches to, changing little or nothing else.
- Grammar permissiveness: a definition, string, verb, noun, adjective are all just things usable in any order — auto-interpreted as "person does the adjective / does the noun in an adjective manner," with literal readings possible where sensible; the format must stay flexible enough for multiple languages and nuance. Structured versions may legitimately be more literal or more poetic/abstract than the original — it's a different medium; the review protocol guards fidelity.
- Review protocol (4 steps) for a re-translation: (1) review the old document, the old input, and the new input; (2) create the new structure document; (3) review the mechanically generated sentences; (4) if there are issues, apply a corrective edit on top of the original (change meaning/verbs/reorder) as appropriate.
- Demo target: take any short children's story / beginning chapter book and translate the whole thing end to end; measure whether the structured+embedding pipeline gives a real advantage. Prefer a large share done without an LLM once corpus/vocabulary is large enough to scan graphs performantly; seed corpora named in the epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106 comment (CC Wikipedia, Gutenberg, runbooks/policies).
dezren39 commented on Nov 17, 2026
state: triaged
lane: any-b, worker: repo-worker-code, task 18870
Triage verdict for #9126 (checked fresh this shift, 2026-11-17): real research/design work, sequenced behind its encoding bake-off dependency by the program's own plan — not yet actionable, and not lane work.
- In the epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106 summit plan (
doc/2026-11-13T03-40-00Z_design_id-atlas-summit/crosscut/sequencing.json on origin/main), research(id): graph query language selection + visualization #9126 is slot next, wave 2, kind design, with hard dependency research(id): triple encoding bake-off — compressed binary vs JSONB vs normalized byte-key maps #9125 — reason recorded there: "Query/viz representation must consume the selected triple encoding; language choice may remain a research-only substage." The issue's own §5 text agrees: languages are evaluated "against the encoding chosen in the bake-off".
- The dependency's state is verified fresh this shift and recorded in the triage result; while it is open, the evaluation has no selected encoding to evaluate against.
- Routing: no follow-on packet. kind/design research owned by the summit cadence under parent epic(id): Part A — ID core: namespaces, ID shapes, triples, user attributes #9107 / program epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106; the issue itself is the tracked item and becomes actionable when research(id): triple encoding bake-off — compressed binary vs JSONB vs normalized byte-key maps #9125 closes.
dezren39 commented on Nov 17, 2026 agent-note:v1
kind: triaged
task: 20317 (repo-worker-code, openchamber-scheduled-lane any-o)
verdict: still OPEN; assigned dezren39; labels kind/design, app/id, epic/id-program. Part of the #9106 design program; depends on the triple encoding bake-off #9125 (parked this run). No follow-on packet from this lane, to avoid a parallel design dispatch. dezren39 commented on Nov 24, 2026 #9126 research slice is ready for review in PR #14629. The focused note is doc/2026-11-24T21-10-00Z_research_id_graph-query-visualization/2026-11-24T21-10-00Z_research_id_graph-query-visualization.md.
Recommendation: typed, bounded conjunctive triple-pattern API/IR as the V2 contract; language syntaxes remain adapters; visualization consumes authorized, paged, provenance-bearing results; story decomposition, correction, embeddings and ranking stay as derived-artifact workflows. The note explicitly records that #9125 is still open and scopes its merged bake-off recommendation to its prototype evidence.
Validation: git diff --check clean; all local Markdown links resolve. Documentation-only, no runtime tests applicable. dezren39 commented on Nov 24, 2026 PR #14629 updated (d9e51fa128f) after reading the implementation tree: the note now builds on the shipped bounded query core (pkgs/id/crates/id-core/src/graph/query.rs — conjunctive triple patterns, finite profile, snapshot/continuation pages, budget errors) and the rebuildable SPO/POS/OSP index tests, and records the key limit: the current core evaluator scans visible assertions, so engine/adapter performance is still unproven rather than established by the API's existence. Sequencing changed accordingly (extend + benchmark that surface; don't re-specify it). No other repo graph-rendering package was found (search hits were docs only).
Links/git diff --check re-verified. dezren39 commented on Nov 24, 2026 Final evidence correction pushed (3ccf0fcd611). Two precision fixes the tree forced:
- The redb SPO/POS/OSP index module (
pkgs/id/crates/id-store/src/graph_index.rs) says its own crate root does not export it yet; the id-core Query::run evaluator is scan-based. So the note now separates "index slice + independent-oracle tests exist" from "integrated indexed query engine / adapter performance is proven" — the latter is still open.
apps/id-graph-poc/ exists but is a stdlib Python organizing/data PoC, not a browser renderer. No graph-rendering package in application code; visualization remains a consumer of query pages.
Links and git diff --check re-verified clean. dezren39 commented on Nov 25, 2026 Completion check — 2026-11-25: PR #14629 merged at 7f933b7. The acceptance evidence is present in doc/2026-11-24T21-10-00Z_research_id_graph-query-visualization/2026-11-24T21-10-00Z_research_id_graph-query-visualization.md: evidence-backed query-language comparison, visualization boundaries, story-to-structure recommendation, explicit open questions and scope boundaries. The merged note is linked from parent #9107. Closing this research slice; engine integration/performance and semantic-pipeline implementation remain follow-on work, not acceptance criteria for this research item. dezren39 commented on Nov 25, 2026
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearing DevelopmentNo branches or pull requestsIssue actions
|