Knowledge Graph
Goal
Turn the supplied sources into a durable graph that agents can traverse by entity, type, and relationship. Build the graph as this artifact tree:
entities/
<entity-id>.md
relations.jsonl
Keep sources read-only. Follow the task reason for scope, language, audience, and depth; otherwise use the dominant language of the sources. Ground every node, material claim, and edge in the supplied sources. Treat sources as provenance rather than domain nodes unless a source is itself a named subject in the domain.
Entity nodes
Create a node for a named thing with a stable identity or boundary, such as a person, organization, group, animal, place, product, project, system, service, module, dataset, standard, document, artifact, or named event.
Store each node at entities/<entity-id>.md with this structure:
---
type: entity
id: 取经队伍
title: 取经队伍
entity_type: group
description: 由唐三藏率领、以西行取经为目标的行动团体。
aliases: [唐僧师徒, 师徒五众]
sources:
- viking://resources/source.md
---
Use type: entity as the artifact kind and entity_type as the entity's semantic class.
Choose a stable lowercase snake_case value such as person, organization, `…