Skip to content

ENG-2119 Document the mapping between CrossApp types and the Concept table - #1290

Open
maparent wants to merge 4 commits into
mainfrom
eng-2119-document-the-mapping-between-crossapp-types-and-the-concept
Open

ENG-2119 Document the mapping between CrossApp types and the Concept table#1290
maparent wants to merge 4 commits into
mainfrom
eng-2119-document-the-mapping-between-crossapp-types-and-the-concept

Conversation

@maparent

@maparent maparent commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

@linear-code

linear-code Bot commented Aug 11, 2026

Copy link
Copy Markdown

ENG-2119

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
discourse-graph Ready Ready Preview Aug 13, 2026 1:10pm

Request Review

@supabase

supabase Bot commented Aug 11, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project zytfjzqyijgagqxrzbmz because there are no changes detected in packages/database/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 2 additional findings in Devin Review.

Open in Devin Review

Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated
@maparent
maparent force-pushed the eng-2119-document-the-mapping-between-crossapp-types-and-the-concept branch from 85ccb9f to 5c1d335 Compare August 11, 2026 15:53
Comment thread packages/database/doc/concept_design.md Outdated
With fixes from Claude, Devin and Graphite
@maparent
maparent force-pushed the eng-2119-document-the-mapping-between-crossapp-types-and-the-concept branch from 5c1d335 to 6c633fb Compare August 11, 2026 15:59
@maparent
maparent requested a review from mdroidian August 11, 2026 16:00
@mdroidian

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a20b72b2c4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated

| CrossAppNodeSchema | Content | value |
| ------------------ | ----------------------------------- | ----- |
| `label` | `name`, `literal_content->label` | {} |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove the nonexistent node-schema label mapping

When a CrossAppNodeSchema is converted by crossAppNodeSchemaToDbConcept, label is assigned only to name; its literal_content is built solely from template and template_content. Consequently, group-published schemas converted through this path do not have literal_content->label, so consumers relying on the documented mapping will fail to find it.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md
Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated

| CrossAppNodeSchema | Content | value |
| ------------------ | ----------------------------------- | ----- |
| `label` | `name`, `literal_content->label` | {} |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated
Comment thread packages/database/doc/concept_design.md Outdated
@mdroidian
mdroidian self-requested a review August 13, 2026 06:42

| CrossAppNode | Concept | value |
| ----------------------- | ----------------------------------------------- | ------------------ |
| `content->direct->text` | `name` | false |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect value in the mapping table. The name column should contain the text from content->direct->text, not the boolean value false. The value false appears to be misaligned and actually belongs to the is_schema field in the next row (line 133).

| `content->direct->text` | `name`                                          |                    |
| -                       | `is_schema`                                     | false              |

This documentation error could mislead developers implementing the mapping between CrossAppNode and Concept.

Suggested change
| `content->direct->text` | `name` | false |
| `content->direct->text` | `name` | |
| - | `is_schema` | false |

Spotted by Graphite

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mdroidian mdroidian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll approve, but there are two changes required still

  • change DiscourseGraph to Discourse Graph
  • address the new graphite comment


This document aims to explain the rationale of the Concept table, and how it relates to Discourse Graph data structures.

## DiscourseGraph structures

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's please change this to Discourse Graph


## DiscourseGraph structures

DiscourseGraph assumes a basic graph data model: All knowledge objects are Nodes (with literal properties and a text description) or Relations between Nodes (without attributes other than its source or destination.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's please change this to Discourse Graph


### Use cases

Having ObjectProperties makes it possible to represent certain special cases of DiscourseGraphs, such as the necessary relation between Evidence and Source.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's please change this to Discourse Graph


| CrossAppNode | Concept | value |
| ----------------------- | ----------------------------------------------- | ------------------ |
| `content->direct->text` | `name` | false |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants