@equationalapplications/schema-software-org 8.4.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -6
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @equationalapplications/schema-software-org
|
|
2
2
|
|
|
3
|
-
A custom minimal ontology manifest for an executive agent operating on behalf of a software organization —
|
|
3
|
+
A custom minimal ontology manifest for an executive agent operating on behalf of a software organization — 21 node types, 42 edges, a superset of the warm-agent manifest in which the warm-agent rows are copied verbatim except for one intentional override of `product` (which delegates to `software_application` / `service`), data-only with no runtime code. Tests import from sibling packages through their built `dist/` output — on a fresh checkout run `pnpm build` (workspace root or per package) before `pnpm test`.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@equationalapplications/schema-software-org) [](https://www.npmjs.com/package/@equationalapplications/schema-software-org)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
@@ -27,9 +27,13 @@ A custom minimal ontology manifest for an executive agent operating on behalf of
|
|
|
27
27
|
| `service` | — | A running hosted capability the organization consumes or operates, vendor-run or self-run — databases, APIs, CI, auth, monitoring. Distinct from software_application (the codebase the organization ships) and product (third-party tools it owns). The organization's own backend is a software_application as source and a service as a deployed dependency. Expected frontmatter properties: provider, dashboard_url, status, tier (critical/important/optional). |
|
|
28
28
|
| `role` | — | A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities. |
|
|
29
29
|
| `design_spec` | `creativework` | A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch. |
|
|
30
|
-
| `handoff` | `creativework` | An operational handoff or session transition document. Expected frontmatter properties: session_id, outcome (pending/complete/blocked), open_items. |
|
|
31
30
|
| `procedure` | `creativework` | A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug). |
|
|
32
|
-
| `
|
|
31
|
+
| `statement` | — | Abstract parent of the four statement kinds. Classify a fact as one of the four kinds, never as `statement`. |
|
|
32
|
+
| `rule` | `statement` | A situation, and what to do in it. |
|
|
33
|
+
| `decision` | `statement` | What was chosen, what was rejected, and why. |
|
|
34
|
+
| `lesson` | `statement` | What went wrong, and what to do differently. |
|
|
35
|
+
| `trap` | `statement` | A likely wrong assumption, and the fact that corrects it. |
|
|
36
|
+
| `area` | — | A named part of a `software_application`, such as deploy or billing. Expected frontmatter properties: name, patterns_file. |
|
|
33
37
|
| `reference_doc` | `creativework` | A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug). |
|
|
34
38
|
|
|
35
39
|
## Edge Catalog
|
|
@@ -69,14 +73,49 @@ A custom minimal ontology manifest for an executive agent operating on behalf of
|
|
|
69
73
|
| `specifies` | design_spec → service | Spec is about this service. |
|
|
70
74
|
| `documents` | procedure → software_application | Procedure applies to this software application. |
|
|
71
75
|
| `documents` | procedure → service | Procedure applies to this service. |
|
|
72
|
-
| `
|
|
73
|
-
| `
|
|
76
|
+
| `partOf` | area → software_application | This area is a named part of this software application. |
|
|
77
|
+
| `about` | statement → area | This statement (any of the four kinds) concerns this area. |
|
|
78
|
+
| `about` | statement → software_application | This statement concerns this software application as a whole. |
|
|
79
|
+
| `about` | statement → organization | This statement concerns the organization. |
|
|
74
80
|
| `supersedes` | creativework → creativework | This document replaces an older one. |
|
|
75
81
|
| `hasRole` | person → role | Person fills this role. |
|
|
76
82
|
| `operates` | role → software_application | Role operates this software application. |
|
|
77
83
|
| `provides` | organization → service | Organization provides this service. |
|
|
78
84
|
| `maintains` | person → software_application | Person maintains this software application. |
|
|
79
85
|
|
|
86
|
+
## Statements and areas
|
|
87
|
+
|
|
88
|
+
A statement is one claim the organization wants to keep. There are four kinds:
|
|
89
|
+
|
|
90
|
+
- `rule`: a situation, and what to do in it.
|
|
91
|
+
- `decision`: what was chosen, what was rejected, and why.
|
|
92
|
+
- `lesson`: what went wrong, and what to do differently.
|
|
93
|
+
- `trap`: a likely wrong assumption, and the fact that corrects it.
|
|
94
|
+
|
|
95
|
+
Each statement holds one claim. Classify a fact as one of the four kinds, never as `statement`.
|
|
96
|
+
|
|
97
|
+
### Attachment
|
|
98
|
+
|
|
99
|
+
A statement attaches with `about` to the most specific thing it concerns: an `area`, a `software_application`, or the `organization`. An `area` is a part of one application (`partOf`). Attachment is prompt-steered: the model proposes the edge during classification. In the first measured run (2026-11-13, GLM-5.3-flash, 28 statements — see `packages/benchmarks/results/statement-kinds-2026-11-13.json` and follow-up issue #381) no `about` edge survived to storage, so treat attachment as unproven until #381 resolves; kind classification itself measured 28/28.
|
|
100
|
+
|
|
101
|
+
### Areas and patterns
|
|
102
|
+
|
|
103
|
+
An `area` stores `patterns_file`: the path, inside the repo, of the file that holds the area's file globs. It is a pointer, not a copy. Area matching reads the repo's own patterns file, so the patterns change in the same PR as the code.
|
|
104
|
+
|
|
105
|
+
### The three labels
|
|
106
|
+
|
|
107
|
+
The labels use fields that already exist. No new fields.
|
|
108
|
+
|
|
109
|
+
| Label | Field(s) |
|
|
110
|
+
|---|---|
|
|
111
|
+
| Who vouches | `okf_verified` (entries in order; the latest shows as `last_verified_by`) |
|
|
112
|
+
| Standing | `superseded_by` and `valid_to` (set by supersede); `lifecycle_status: 'deprecated'` (set by an explicit `setLifecycleStatus` call) |
|
|
113
|
+
| Dates | `valid_from` and `valid_to` |
|
|
114
|
+
|
|
115
|
+
**Who vouches.** When grounding is on, the grounding writer stamps every grounded fact with a machine verifier, `process:grounding-check`. A verifier string is a machine unless it starts with `human:`. Only `human:`-prefixed entries give `trustTier === 'human-reviewed'`. Fill a label only when the source says so in plain words.
|
|
116
|
+
|
|
117
|
+
**Standing.** Supersede writes `superseded_by` and `valid_to`. It does not set `deprecated`. The host or the memory app calls `setLifecycleStatus` when it accepts the replacement. The engine never does this by itself.
|
|
118
|
+
|
|
80
119
|
## Property Conventions
|
|
81
120
|
|
|
82
121
|
Property names follow [CodeMeta](https://codemeta.github.io/) shape: `snake_case`, single-word keys where possible, URL values for links. Status enums are written inline in parentheses — for example `status (active/deprecated/in_dev)` — rather than enumerated as separate properties.
|
|
@@ -132,7 +171,7 @@ Requires `@equationalapplications/core-llm-wiki` **>= 6.1.0** — that is the re
|
|
|
132
171
|
|
|
133
172
|
| Package | Purpose |
|
|
134
173
|
| ----- | ----- |
|
|
135
|
-
| [**@equationalapplications/schema-software-org**](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/schema-software-org/README.md) | Software-organization executive ontology manifest —
|
|
174
|
+
| [**@equationalapplications/schema-software-org**](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/schema-software-org/README.md) | Software-organization executive ontology manifest — 21 node types, 42 edges, warm-agent superset, data-only |
|
|
136
175
|
| [@equationalapplications/mcp-server](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/mcp-server/README.md) | MCP server exposing SynapseTree memory tools to coding agents |
|
|
137
176
|
| [@equationalapplications/core-llm-wiki](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/core/README.md) | Persistent episodic memory |
|
|
138
177
|
| [@equationalapplications/expo-llm-wiki](https://github.com/equationalapplications/expo-llm-wiki/blob/main/packages/expo/README.md) | Persistent episodic memory for Expo/React Native |
|
package/dist/index.d.mts
CHANGED
|
@@ -3,10 +3,12 @@ export { OntologyEdgeType, OntologyManifest, OntologyNodeType } from '@equationa
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Custom minimal ontology for an executive agent operating on behalf of a
|
|
6
|
-
* software organization:
|
|
6
|
+
* software organization: 21 node types, 42 edges. Superset of the warm-agent
|
|
7
7
|
* manifest (`schema-org-llm-wiki`), whose 9 node types and 28 edges are copied
|
|
8
8
|
* verbatim (D2) — with one deliberate override on `product` (D8) — plus 3
|
|
9
|
-
* software-org base types,
|
|
9
|
+
* software-org base types, 3 `creativework` subtypes, the abstract `statement`
|
|
10
|
+
* with its four kinds (`rule`, `decision`, `lesson`, `trap`), `area`, and 14
|
|
11
|
+
* new edges.
|
|
10
12
|
*
|
|
11
13
|
* Properties live in the description strings (D3): `buildPromptContext`
|
|
12
14
|
* JSON-serializes the manifest into the classification prompt, so description
|
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,12 @@ export { OntologyEdgeType, OntologyManifest, OntologyNodeType } from '@equationa
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Custom minimal ontology for an executive agent operating on behalf of a
|
|
6
|
-
* software organization:
|
|
6
|
+
* software organization: 21 node types, 42 edges. Superset of the warm-agent
|
|
7
7
|
* manifest (`schema-org-llm-wiki`), whose 9 node types and 28 edges are copied
|
|
8
8
|
* verbatim (D2) — with one deliberate override on `product` (D8) — plus 3
|
|
9
|
-
* software-org base types,
|
|
9
|
+
* software-org base types, 3 `creativework` subtypes, the abstract `statement`
|
|
10
|
+
* with its four kinds (`rule`, `decision`, `lesson`, `trap`), `area`, and 14
|
|
11
|
+
* new edges.
|
|
10
12
|
*
|
|
11
13
|
* Properties live in the description strings (D3): `buildPromptContext`
|
|
12
14
|
* JSON-serializes the manifest into the classification prompt, so description
|
package/dist/index.js
CHANGED
|
@@ -22,10 +22,15 @@ var schemaSoftwareOrgManifest = {
|
|
|
22
22
|
{ type: "role", description: "A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities." },
|
|
23
23
|
// Software-org concrete types (one level under creativework)
|
|
24
24
|
{ type: "design_spec", parent_type: "creativework", description: "A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch." },
|
|
25
|
-
{ type: "handoff", parent_type: "creativework", description: "An operational handoff or session transition document. Expected frontmatter properties: session_id, outcome (pending/complete/blocked), open_items." },
|
|
26
25
|
{ type: "procedure", parent_type: "creativework", description: "A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug)." },
|
|
27
|
-
{ type: "
|
|
28
|
-
|
|
26
|
+
{ type: "reference_doc", parent_type: "creativework", description: "A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug)." },
|
|
27
|
+
// Statement kinds: one abstract parent, four content-defined children.
|
|
28
|
+
{ type: "statement", description: "Abstract parent of the four statement kinds (rule, decision, lesson, trap); classify a fact as one of the four kinds, never as `statement`. The four kinds attach with `about` to an `area`, the `software_application`, or the `organization`, and the `about` rows declared with source `statement` apply to every kind." },
|
|
29
|
+
{ type: "rule", parent_type: "statement", description: "A situation, and what to do in it. Each rule holds one claim." },
|
|
30
|
+
{ type: "decision", parent_type: "statement", description: "What was chosen, what was rejected, and why. Each decision holds one claim." },
|
|
31
|
+
{ type: "lesson", parent_type: "statement", description: "What went wrong, and what to do differently. Each lesson holds one claim." },
|
|
32
|
+
{ type: "trap", parent_type: "statement", description: "A likely wrong assumption, and the fact that corrects it. Each trap holds one claim." },
|
|
33
|
+
{ type: "area", description: "A named part of a `software_application`, such as deploy or billing. Expected frontmatter properties: name, patterns_file (path, inside the host repo, of the file that holds the area's file globs \u2014 a pointer, not a copy)." }
|
|
29
34
|
],
|
|
30
35
|
edge_types: [
|
|
31
36
|
// Warm-agent edges — copied verbatim from schemaOrgWarmAgentManifest (D2).
|
|
@@ -57,21 +62,23 @@ var schemaSoftwareOrgManifest = {
|
|
|
57
62
|
{ type: "itemReviewed", source_type: "review", target_type: "event", description: "The event this review evaluates." },
|
|
58
63
|
{ type: "itemReviewed", source_type: "review", target_type: "product", description: "The tool, device, or product this review evaluates." },
|
|
59
64
|
{ type: "owns", source_type: "person", target_type: "product", description: "Item owned by the person (electronics, vehicles, etc.)." },
|
|
60
|
-
// Software-org edges (
|
|
65
|
+
// Software-org edges (14, new)
|
|
61
66
|
{ type: "dependsOn", source_type: "software_application", target_type: "service", description: "This software application depends on this service." },
|
|
62
67
|
{ type: "specifies", source_type: "design_spec", target_type: "software_application", description: "Spec is about this software application." },
|
|
63
68
|
{ type: "specifies", source_type: "design_spec", target_type: "service", description: "Spec is about this service." },
|
|
64
69
|
{ type: "documents", source_type: "procedure", target_type: "software_application", description: "Procedure applies to this software application." },
|
|
65
70
|
{ type: "documents", source_type: "procedure", target_type: "service", description: "Procedure applies to this service." },
|
|
66
|
-
{ type: "handoffFor", source_type: "handoff", target_type: "software_application", description: "Handoff is for this software application." },
|
|
67
|
-
{ type: "handoffFor", source_type: "handoff", target_type: "service", description: "Handoff is for this service." },
|
|
68
71
|
// One row covers every creativework subtype on both sides: matching is
|
|
69
72
|
// parent-aware on source and target alike, exact-first (D6).
|
|
70
73
|
{ type: "supersedes", source_type: "creativework", target_type: "creativework", description: "This document replaces an older one." },
|
|
71
74
|
{ type: "hasRole", source_type: "person", target_type: "role", description: "Person fills this role." },
|
|
72
75
|
{ type: "operates", source_type: "role", target_type: "software_application", description: "Role operates this software application." },
|
|
73
76
|
{ type: "provides", source_type: "organization", target_type: "service", description: "Organization provides this service." },
|
|
74
|
-
{ type: "maintains", source_type: "person", target_type: "software_application", description: "Person maintains this software application." }
|
|
77
|
+
{ type: "maintains", source_type: "person", target_type: "software_application", description: "Person maintains this software application." },
|
|
78
|
+
{ type: "partOf", source_type: "area", target_type: "software_application", description: "This area is a named part of this software application." },
|
|
79
|
+
{ type: "about", source_type: "statement", target_type: "area", description: "This statement (any of the four kinds) concerns this area." },
|
|
80
|
+
{ type: "about", source_type: "statement", target_type: "software_application", description: "This statement (any of the four kinds) concerns this software application as a whole." },
|
|
81
|
+
{ type: "about", source_type: "statement", target_type: "organization", description: "This statement (any of the four kinds) concerns the organization." }
|
|
75
82
|
]
|
|
76
83
|
};
|
|
77
84
|
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAmBO,IAAM,yBAAA,GAA8C;AAAA,EACzD,UAAA,EAAY;AAAA;AAAA;AAAA,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AAa,gBAAgB,WAAA,EAAa,cAAA,EAAgB,aAAa,sCAAA,EAAuC;AAAA,IACpI,EAAE,MAAM,SAAA,EAAW,WAAA,EAAa,UAAU,WAAA,EAAa,MAAA,EAAQ,aAAa,yBAAA,EAA0B;AAAA,IACtG,EAAE,MAAM,UAAA,EAAY,WAAA,EAAa,QAAQ,WAAA,EAAa,sBAAA,EAAwB,aAAa,0CAAA,EAA2C;AAAA,IACtI,EAAE,MAAM,UAAA,EAAY,WAAA,EAAa,gBAAgB,WAAA,EAAa,SAAA,EAAW,aAAa,qCAAA,EAAsC;AAAA,IAC5H,EAAE,MAAM,WAAA,EAAa,WAAA,EAAa,UAAU,WAAA,EAAa,sBAAA,EAAwB,aAAa,6CAAA;AAA8C;AAEhJ","file":"index.js","sourcesContent":["import type { OntologyManifest } from '@equationalapplications/core-llm-wiki';\n\nexport type { OntologyManifest, OntologyNodeType, OntologyEdgeType } from '@equationalapplications/core-llm-wiki';\n\n/**\n * Custom minimal ontology for an executive agent operating on behalf of a\n * software organization: 17 node types, 40 edges. Superset of the warm-agent\n * manifest (`schema-org-llm-wiki`), whose 9 node types and 28 edges are copied\n * verbatim (D2) — with one deliberate override on `product` (D8) — plus 3\n * software-org base types, 5 `creativework` subtypes, and 12 new edges.\n *\n * Properties live in the description strings (D3): `buildPromptContext`\n * JSON-serializes the manifest into the classification prompt, so description\n * text reaches the model verbatim and no core change is needed. There is no\n * property inheritance (D4) — every subtype lists its own complete set.\n *\n * The text is organization-neutral: it says \"the organization\", never a\n * specific company, so any software org can adopt it unmodified.\n */\nexport const schemaSoftwareOrgManifest: OntologyManifest = {\n node_types: [\n // Warm-agent types — copied verbatim from schemaOrgWarmAgentManifest.\n // Do not abridge: descriptions are the classification signal (D2/D3).\n { type: 'person', description: \"A person—friend, family member, colleague, or public figure. Use this for any individual in the user's social, professional, or knowledge network.\" },\n { type: 'organization', description: 'A company, nonprofit, club, sports team, or institution. Covers businesses, schools, local shops, and communities.' },\n { type: 'place', description: 'A geographic location, address, landmark, or venue. Use for cities, buildings, parks, restaurants, or any physical or conceptual location.' },\n { type: 'event', description: 'A scheduled or past gathering, meeting, conference, concert, or celebration. Links attendees and organizers to the event.' },\n { type: 'project', description: 'A multi-step initiative, goal, or endeavor. Use for personal projects, learning goals, business initiatives, or long-term objectives.' },\n { type: 'action', description: 'An individual task, chore, step, or completed action. Links to a parent Project and assigns responsibility to a Person.' },\n { type: 'creativework', description: 'A book, movie, article, song, recipe, blog post, or other creative content. Captures media the user consumes, learns from, or creates.' },\n { type: 'review', description: 'A personal review, opinion, or evaluation. The implicit subject is always the owning character—use to review a book, restaurant, place, product, or experience. Rating values stay inside the fact content.' },\n // D8: intentional divergence from the warm-agent original — the upstream\n // row claims \"and software\", which pulls the org's own repositories here.\n { type: 'product', description: 'A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, and household items. For software the organization builds, ships, or maintains, use software_application instead; for a hosted capability it consumes or operates, use service.' },\n // Software-org base types (no parent_type, no children — D5)\n { type: 'software_application', description: 'Software the organization itself builds, ships, or maintains — its own portfolio codebase. Not third-party software the organization merely uses (that is product), and not a running hosted capability (that is service). Expected frontmatter properties: repo_url, version, install_path, status (active/deprecated/in_dev).' },\n { type: 'service', description: \"A running hosted capability the organization consumes or operates, vendor-run or self-run — databases, APIs, CI, auth, monitoring. Distinct from software_application (the codebase the organization ships) and product (third-party tools it owns). The organization's own backend is a software_application as source and a service as a deployed dependency. Expected frontmatter properties: provider, dashboard_url, status, tier (critical/important/optional).\" },\n { type: 'role', description: 'A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities.' },\n // Software-org concrete types (one level under creativework)\n { type: 'design_spec', parent_type: 'creativework', description: 'A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch.' },\n { type: 'handoff', parent_type: 'creativework', description: 'An operational handoff or session transition document. Expected frontmatter properties: session_id, outcome (pending/complete/blocked), open_items.' },\n { type: 'procedure', parent_type: 'creativework', description: 'A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug).' },\n { type: 'session_recap', parent_type: 'creativework', description: 'A dated recap of one working session. Use only for session records — ordinary facts are not memories. Expected frontmatter properties: session_date, key_decisions (comma-separated list).' },\n { type: 'reference_doc', parent_type: 'creativework', description: 'A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug).' },\n ],\n edge_types: [\n // Warm-agent edges — copied verbatim from schemaOrgWarmAgentManifest (D2).\n { type: 'knows', source_type: 'person', target_type: 'person', description: 'Friendship, acquaintance, or general connection between two people.' },\n { type: 'spouse', source_type: 'person', target_type: 'person', description: 'Spousal or long-term partner relationship.' },\n { type: 'parent', source_type: 'person', target_type: 'person', description: 'A parent of this person: the source is the child, the target is the parent.' },\n { type: 'worksFor', source_type: 'person', target_type: 'organization', description: 'Employment or primary professional affiliation.' },\n { type: 'memberOf', source_type: 'person', target_type: 'organization', description: 'Membership in clubs, associations, or communities.' },\n { type: 'homeLocation', source_type: 'person', target_type: 'place', description: 'Primary residence.' },\n { type: 'workLocation', source_type: 'person', target_type: 'place', description: 'Workplace or primary work location.' },\n { type: 'location', source_type: 'event', target_type: 'place', description: 'Venue or geographic location of an event.' },\n { type: 'location', source_type: 'organization', target_type: 'place', description: 'Physical headquarters or primary location.' },\n { type: 'containedInPlace', source_type: 'place', target_type: 'place', description: 'Hierarchical location: the source place is inside the target place (e.g., Paris is contained in France).' },\n { type: 'subOrganization', source_type: 'project', target_type: 'project', description: 'Nested project hierarchy: the target is a sub-project contained in the source project.' },\n { type: 'object', source_type: 'action', target_type: 'project', description: 'Project this task belongs to; the object the action advances.' },\n { type: 'agent', source_type: 'action', target_type: 'person', description: 'Person responsible for or performing the action.' },\n { type: 'attendee', source_type: 'event', target_type: 'person', description: 'Person attending or participating in the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'person', description: 'Person who organized the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'organization', description: 'Organization hosting the event.' },\n { type: 'author', source_type: 'creativework', target_type: 'person', description: 'Author, creator, artist, or filmmaker.' },\n { type: 'publisher', source_type: 'creativework', target_type: 'organization', description: 'Publisher, platform, studio, or distributor.' },\n { type: 'about', source_type: 'creativework', target_type: 'person', description: 'Content centered on a specific person.' },\n { type: 'about', source_type: 'creativework', target_type: 'organization', description: 'Content centered on a company, institution, or group.' },\n { type: 'about', source_type: 'creativework', target_type: 'place', description: 'Content centered on a location (travel guide, history).' },\n { type: 'about', source_type: 'creativework', target_type: 'event', description: 'Content centered on an event (documentary, article).' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'creativework', description: 'The book, movie, article, or other work this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'organization', description: 'The business, restaurant, or institution this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'place', description: 'The venue, park, or location this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'event', description: 'The event this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'product', description: 'The tool, device, or product this review evaluates.' },\n { type: 'owns', source_type: 'person', target_type: 'product', description: 'Item owned by the person (electronics, vehicles, etc.).' },\n // Software-org edges (12, new)\n { type: 'dependsOn', source_type: 'software_application', target_type: 'service', description: 'This software application depends on this service.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'software_application', description: 'Spec is about this software application.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'service', description: 'Spec is about this service.' },\n { type: 'documents', source_type: 'procedure', target_type: 'software_application', description: 'Procedure applies to this software application.' },\n { type: 'documents', source_type: 'procedure', target_type: 'service', description: 'Procedure applies to this service.' },\n { type: 'handoffFor', source_type: 'handoff', target_type: 'software_application', description: 'Handoff is for this software application.' },\n { type: 'handoffFor', source_type: 'handoff', target_type: 'service', description: 'Handoff is for this service.' },\n // One row covers every creativework subtype on both sides: matching is\n // parent-aware on source and target alike, exact-first (D6).\n { type: 'supersedes', source_type: 'creativework', target_type: 'creativework', description: 'This document replaces an older one.' },\n { type: 'hasRole', source_type: 'person', target_type: 'role', description: 'Person fills this role.' },\n { type: 'operates', source_type: 'role', target_type: 'software_application', description: 'Role operates this software application.' },\n { type: 'provides', source_type: 'organization', target_type: 'service', description: 'Organization provides this service.' },\n { type: 'maintains', source_type: 'person', target_type: 'software_application', description: 'Person maintains this software application.' },\n ],\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAqBO,IAAM,yBAAA,GAA8C;AAAA,EACzD,UAAA,EAAY;AAAA;AAAA;AAAA,IAGV,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,yJAAA,EAAqJ;AAAA,IACpL,EAAE,IAAA,EAAM,cAAA,EAAgB,WAAA,EAAa,oHAAA,EAAqH;AAAA,IAC1J,EAAE,IAAA,EAAM,OAAA,EAAS,WAAA,EAAa,4IAAA,EAA6I;AAAA,IAC3K,EAAE,IAAA,EAAM,OAAA,EAAS,WAAA,EAAa,2HAAA,EAA4H;AAAA,IAC1J,EAAE,IAAA,EAAM,SAAA,EAAW,WAAA,EAAa,uIAAA,EAAwI;AAAA,IACxK,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,yHAAA,EAA0H;AAAA,IACzJ,EAAE,IAAA,EAAM,cAAA,EAAgB,WAAA,EAAa,wIAAA,EAAyI;AAAA,IAC9K,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,kNAAA,EAA8M;AAAA;AAAA;AAAA,IAG7O,EAAE,IAAA,EAAM,SAAA,EAAW,WAAA,EAAa,uRAAA,EAAwR;AAAA;AAAA,IAExT,EAAE,IAAA,EAAM,sBAAA,EAAwB,WAAA,EAAa,sUAAA,EAAkU;AAAA,IAC/W,EAAE,IAAA,EAAM,SAAA,EAAW,WAAA,EAAa,4cAAA,EAAwc;AAAA,IACxe,EAAE,IAAA,EAAM,MAAA,EAAQ,WAAA,EAAa,4HAAA,EAA6H;AAAA;AAAA,IAE1J,EAAE,IAAA,EAAM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;AAAA,IACrL,EAAE,MAAM,OAAA,EAAS,WAAA,EAAa,aAAa,WAAA,EAAa,cAAA,EAAgB,aAAa,mEAAA;AAAoE;AAE7J","file":"index.js","sourcesContent":["import type { OntologyManifest } from '@equationalapplications/core-llm-wiki';\n\nexport type { OntologyManifest, OntologyNodeType, OntologyEdgeType } from '@equationalapplications/core-llm-wiki';\n\n/**\n * Custom minimal ontology for an executive agent operating on behalf of a\n * software organization: 21 node types, 42 edges. Superset of the warm-agent\n * manifest (`schema-org-llm-wiki`), whose 9 node types and 28 edges are copied\n * verbatim (D2) — with one deliberate override on `product` (D8) — plus 3\n * software-org base types, 3 `creativework` subtypes, the abstract `statement`\n * with its four kinds (`rule`, `decision`, `lesson`, `trap`), `area`, and 14\n * new edges.\n *\n * Properties live in the description strings (D3): `buildPromptContext`\n * JSON-serializes the manifest into the classification prompt, so description\n * text reaches the model verbatim and no core change is needed. There is no\n * property inheritance (D4) — every subtype lists its own complete set.\n *\n * The text is organization-neutral: it says \"the organization\", never a\n * specific company, so any software org can adopt it unmodified.\n */\nexport const schemaSoftwareOrgManifest: OntologyManifest = {\n node_types: [\n // Warm-agent types — copied verbatim from schemaOrgWarmAgentManifest.\n // Do not abridge: descriptions are the classification signal (D2/D3).\n { type: 'person', description: \"A person—friend, family member, colleague, or public figure. Use this for any individual in the user's social, professional, or knowledge network.\" },\n { type: 'organization', description: 'A company, nonprofit, club, sports team, or institution. Covers businesses, schools, local shops, and communities.' },\n { type: 'place', description: 'A geographic location, address, landmark, or venue. Use for cities, buildings, parks, restaurants, or any physical or conceptual location.' },\n { type: 'event', description: 'A scheduled or past gathering, meeting, conference, concert, or celebration. Links attendees and organizers to the event.' },\n { type: 'project', description: 'A multi-step initiative, goal, or endeavor. Use for personal projects, learning goals, business initiatives, or long-term objectives.' },\n { type: 'action', description: 'An individual task, chore, step, or completed action. Links to a parent Project and assigns responsibility to a Person.' },\n { type: 'creativework', description: 'A book, movie, article, song, recipe, blog post, or other creative content. Captures media the user consumes, learns from, or creates.' },\n { type: 'review', description: 'A personal review, opinion, or evaluation. The implicit subject is always the owning character—use to review a book, restaurant, place, product, or experience. Rating values stay inside the fact content.' },\n // D8: intentional divergence from the warm-agent original — the upstream\n // row claims \"and software\", which pulls the org's own repositories here.\n { type: 'product', description: 'A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, and household items. For software the organization builds, ships, or maintains, use software_application instead; for a hosted capability it consumes or operates, use service.' },\n // Software-org base types (no parent_type, no children — D5)\n { type: 'software_application', description: 'Software the organization itself builds, ships, or maintains — its own portfolio codebase. Not third-party software the organization merely uses (that is product), and not a running hosted capability (that is service). Expected frontmatter properties: repo_url, version, install_path, status (active/deprecated/in_dev).' },\n { type: 'service', description: \"A running hosted capability the organization consumes or operates, vendor-run or self-run — databases, APIs, CI, auth, monitoring. Distinct from software_application (the codebase the organization ships) and product (third-party tools it owns). The organization's own backend is a software_application as source and a service as a deployed dependency. Expected frontmatter properties: provider, dashboard_url, status, tier (critical/important/optional).\" },\n { type: 'role', description: 'A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities.' },\n // Software-org concrete types (one level under creativework)\n { type: 'design_spec', parent_type: 'creativework', description: 'A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch.' },\n { type: 'procedure', parent_type: 'creativework', description: 'A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug).' },\n { type: 'reference_doc', parent_type: 'creativework', description: 'A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug).' },\n // Statement kinds: one abstract parent, four content-defined children.\n { type: 'statement', description: 'Abstract parent of the four statement kinds (rule, decision, lesson, trap); classify a fact as one of the four kinds, never as `statement`. The four kinds attach with `about` to an `area`, the `software_application`, or the `organization`, and the `about` rows declared with source `statement` apply to every kind.' },\n { type: 'rule', parent_type: 'statement', description: 'A situation, and what to do in it. Each rule holds one claim.' },\n { type: 'decision', parent_type: 'statement', description: 'What was chosen, what was rejected, and why. Each decision holds one claim.' },\n { type: 'lesson', parent_type: 'statement', description: 'What went wrong, and what to do differently. Each lesson holds one claim.' },\n { type: 'trap', parent_type: 'statement', description: 'A likely wrong assumption, and the fact that corrects it. Each trap holds one claim.' },\n { type: 'area', description: \"A named part of a `software_application`, such as deploy or billing. Expected frontmatter properties: name, patterns_file (path, inside the host repo, of the file that holds the area's file globs — a pointer, not a copy).\" },\n ],\n edge_types: [\n // Warm-agent edges — copied verbatim from schemaOrgWarmAgentManifest (D2).\n { type: 'knows', source_type: 'person', target_type: 'person', description: 'Friendship, acquaintance, or general connection between two people.' },\n { type: 'spouse', source_type: 'person', target_type: 'person', description: 'Spousal or long-term partner relationship.' },\n { type: 'parent', source_type: 'person', target_type: 'person', description: 'A parent of this person: the source is the child, the target is the parent.' },\n { type: 'worksFor', source_type: 'person', target_type: 'organization', description: 'Employment or primary professional affiliation.' },\n { type: 'memberOf', source_type: 'person', target_type: 'organization', description: 'Membership in clubs, associations, or communities.' },\n { type: 'homeLocation', source_type: 'person', target_type: 'place', description: 'Primary residence.' },\n { type: 'workLocation', source_type: 'person', target_type: 'place', description: 'Workplace or primary work location.' },\n { type: 'location', source_type: 'event', target_type: 'place', description: 'Venue or geographic location of an event.' },\n { type: 'location', source_type: 'organization', target_type: 'place', description: 'Physical headquarters or primary location.' },\n { type: 'containedInPlace', source_type: 'place', target_type: 'place', description: 'Hierarchical location: the source place is inside the target place (e.g., Paris is contained in France).' },\n { type: 'subOrganization', source_type: 'project', target_type: 'project', description: 'Nested project hierarchy: the target is a sub-project contained in the source project.' },\n { type: 'object', source_type: 'action', target_type: 'project', description: 'Project this task belongs to; the object the action advances.' },\n { type: 'agent', source_type: 'action', target_type: 'person', description: 'Person responsible for or performing the action.' },\n { type: 'attendee', source_type: 'event', target_type: 'person', description: 'Person attending or participating in the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'person', description: 'Person who organized the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'organization', description: 'Organization hosting the event.' },\n { type: 'author', source_type: 'creativework', target_type: 'person', description: 'Author, creator, artist, or filmmaker.' },\n { type: 'publisher', source_type: 'creativework', target_type: 'organization', description: 'Publisher, platform, studio, or distributor.' },\n { type: 'about', source_type: 'creativework', target_type: 'person', description: 'Content centered on a specific person.' },\n { type: 'about', source_type: 'creativework', target_type: 'organization', description: 'Content centered on a company, institution, or group.' },\n { type: 'about', source_type: 'creativework', target_type: 'place', description: 'Content centered on a location (travel guide, history).' },\n { type: 'about', source_type: 'creativework', target_type: 'event', description: 'Content centered on an event (documentary, article).' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'creativework', description: 'The book, movie, article, or other work this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'organization', description: 'The business, restaurant, or institution this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'place', description: 'The venue, park, or location this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'event', description: 'The event this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'product', description: 'The tool, device, or product this review evaluates.' },\n { type: 'owns', source_type: 'person', target_type: 'product', description: 'Item owned by the person (electronics, vehicles, etc.).' },\n // Software-org edges (14, new)\n { type: 'dependsOn', source_type: 'software_application', target_type: 'service', description: 'This software application depends on this service.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'software_application', description: 'Spec is about this software application.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'service', description: 'Spec is about this service.' },\n { type: 'documents', source_type: 'procedure', target_type: 'software_application', description: 'Procedure applies to this software application.' },\n { type: 'documents', source_type: 'procedure', target_type: 'service', description: 'Procedure applies to this service.' },\n // One row covers every creativework subtype on both sides: matching is\n // parent-aware on source and target alike, exact-first (D6).\n { type: 'supersedes', source_type: 'creativework', target_type: 'creativework', description: 'This document replaces an older one.' },\n { type: 'hasRole', source_type: 'person', target_type: 'role', description: 'Person fills this role.' },\n { type: 'operates', source_type: 'role', target_type: 'software_application', description: 'Role operates this software application.' },\n { type: 'provides', source_type: 'organization', target_type: 'service', description: 'Organization provides this service.' },\n { type: 'maintains', source_type: 'person', target_type: 'software_application', description: 'Person maintains this software application.' },\n { type: 'partOf', source_type: 'area', target_type: 'software_application', description: 'This area is a named part of this software application.' },\n { type: 'about', source_type: 'statement', target_type: 'area', description: 'This statement (any of the four kinds) concerns this area.' },\n { type: 'about', source_type: 'statement', target_type: 'software_application', description: 'This statement (any of the four kinds) concerns this software application as a whole.' },\n { type: 'about', source_type: 'statement', target_type: 'organization', description: 'This statement (any of the four kinds) concerns the organization.' },\n ],\n};\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -20,10 +20,15 @@ var schemaSoftwareOrgManifest = {
|
|
|
20
20
|
{ type: "role", description: "A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities." },
|
|
21
21
|
// Software-org concrete types (one level under creativework)
|
|
22
22
|
{ type: "design_spec", parent_type: "creativework", description: "A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch." },
|
|
23
|
-
{ type: "handoff", parent_type: "creativework", description: "An operational handoff or session transition document. Expected frontmatter properties: session_id, outcome (pending/complete/blocked), open_items." },
|
|
24
23
|
{ type: "procedure", parent_type: "creativework", description: "A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug)." },
|
|
25
|
-
{ type: "
|
|
26
|
-
|
|
24
|
+
{ type: "reference_doc", parent_type: "creativework", description: "A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug)." },
|
|
25
|
+
// Statement kinds: one abstract parent, four content-defined children.
|
|
26
|
+
{ type: "statement", description: "Abstract parent of the four statement kinds (rule, decision, lesson, trap); classify a fact as one of the four kinds, never as `statement`. The four kinds attach with `about` to an `area`, the `software_application`, or the `organization`, and the `about` rows declared with source `statement` apply to every kind." },
|
|
27
|
+
{ type: "rule", parent_type: "statement", description: "A situation, and what to do in it. Each rule holds one claim." },
|
|
28
|
+
{ type: "decision", parent_type: "statement", description: "What was chosen, what was rejected, and why. Each decision holds one claim." },
|
|
29
|
+
{ type: "lesson", parent_type: "statement", description: "What went wrong, and what to do differently. Each lesson holds one claim." },
|
|
30
|
+
{ type: "trap", parent_type: "statement", description: "A likely wrong assumption, and the fact that corrects it. Each trap holds one claim." },
|
|
31
|
+
{ type: "area", description: "A named part of a `software_application`, such as deploy or billing. Expected frontmatter properties: name, patterns_file (path, inside the host repo, of the file that holds the area's file globs \u2014 a pointer, not a copy)." }
|
|
27
32
|
],
|
|
28
33
|
edge_types: [
|
|
29
34
|
// Warm-agent edges — copied verbatim from schemaOrgWarmAgentManifest (D2).
|
|
@@ -55,21 +60,23 @@ var schemaSoftwareOrgManifest = {
|
|
|
55
60
|
{ type: "itemReviewed", source_type: "review", target_type: "event", description: "The event this review evaluates." },
|
|
56
61
|
{ type: "itemReviewed", source_type: "review", target_type: "product", description: "The tool, device, or product this review evaluates." },
|
|
57
62
|
{ type: "owns", source_type: "person", target_type: "product", description: "Item owned by the person (electronics, vehicles, etc.)." },
|
|
58
|
-
// Software-org edges (
|
|
63
|
+
// Software-org edges (14, new)
|
|
59
64
|
{ type: "dependsOn", source_type: "software_application", target_type: "service", description: "This software application depends on this service." },
|
|
60
65
|
{ type: "specifies", source_type: "design_spec", target_type: "software_application", description: "Spec is about this software application." },
|
|
61
66
|
{ type: "specifies", source_type: "design_spec", target_type: "service", description: "Spec is about this service." },
|
|
62
67
|
{ type: "documents", source_type: "procedure", target_type: "software_application", description: "Procedure applies to this software application." },
|
|
63
68
|
{ type: "documents", source_type: "procedure", target_type: "service", description: "Procedure applies to this service." },
|
|
64
|
-
{ type: "handoffFor", source_type: "handoff", target_type: "software_application", description: "Handoff is for this software application." },
|
|
65
|
-
{ type: "handoffFor", source_type: "handoff", target_type: "service", description: "Handoff is for this service." },
|
|
66
69
|
// One row covers every creativework subtype on both sides: matching is
|
|
67
70
|
// parent-aware on source and target alike, exact-first (D6).
|
|
68
71
|
{ type: "supersedes", source_type: "creativework", target_type: "creativework", description: "This document replaces an older one." },
|
|
69
72
|
{ type: "hasRole", source_type: "person", target_type: "role", description: "Person fills this role." },
|
|
70
73
|
{ type: "operates", source_type: "role", target_type: "software_application", description: "Role operates this software application." },
|
|
71
74
|
{ type: "provides", source_type: "organization", target_type: "service", description: "Organization provides this service." },
|
|
72
|
-
{ type: "maintains", source_type: "person", target_type: "software_application", description: "Person maintains this software application." }
|
|
75
|
+
{ type: "maintains", source_type: "person", target_type: "software_application", description: "Person maintains this software application." },
|
|
76
|
+
{ type: "partOf", source_type: "area", target_type: "software_application", description: "This area is a named part of this software application." },
|
|
77
|
+
{ type: "about", source_type: "statement", target_type: "area", description: "This statement (any of the four kinds) concerns this area." },
|
|
78
|
+
{ type: "about", source_type: "statement", target_type: "software_application", description: "This statement (any of the four kinds) concerns this software application as a whole." },
|
|
79
|
+
{ type: "about", source_type: "statement", target_type: "organization", description: "This statement (any of the four kinds) concerns the organization." }
|
|
73
80
|
]
|
|
74
81
|
};
|
|
75
82
|
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAmBO,IAAM,yBAAA,GAA8C;AAAA,EACzD,UAAA,EAAY;AAAA;AAAA;AAAA,IAGV,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,yJAAA,EAAqJ;AAAA,IACpL,EAAE,IAAA,EAAM,cAAA,EAAgB,WAAA,EAAa,oHAAA,EAAqH;AAAA,IAC1J,EAAE,IAAA,EAAM,OAAA,EAAS,WAAA,EAAa,4IAAA,EAA6I;AAAA,IAC3K,EAAE,IAAA,EAAM,OAAA,EAAS,WAAA,EAAa,2HAAA,EAA4H;AAAA,IAC1J,EAAE,IAAA,EAAM,SAAA,EAAW,WAAA,EAAa,uIAAA,EAAwI;AAAA,IACxK,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,yHAAA,EAA0H;AAA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U,WAAA,EAAa,sBAAA,EAAwB,aAAa,6CAAA;AAA8C;AAEhJ","file":"index.mjs","sourcesContent":["import type { OntologyManifest } from '@equationalapplications/core-llm-wiki';\n\nexport type { OntologyManifest, OntologyNodeType, OntologyEdgeType } from '@equationalapplications/core-llm-wiki';\n\n/**\n * Custom minimal ontology for an executive agent operating on behalf of a\n * software organization: 17 node types, 40 edges. Superset of the warm-agent\n * manifest (`schema-org-llm-wiki`), whose 9 node types and 28 edges are copied\n * verbatim (D2) — with one deliberate override on `product` (D8) — plus 3\n * software-org base types, 5 `creativework` subtypes, and 12 new edges.\n *\n * Properties live in the description strings (D3): `buildPromptContext`\n * JSON-serializes the manifest into the classification prompt, so description\n * text reaches the model verbatim and no core change is needed. There is no\n * property inheritance (D4) — every subtype lists its own complete set.\n *\n * The text is organization-neutral: it says \"the organization\", never a\n * specific company, so any software org can adopt it unmodified.\n */\nexport const schemaSoftwareOrgManifest: OntologyManifest = {\n node_types: [\n // Warm-agent types — copied verbatim from schemaOrgWarmAgentManifest.\n // Do not abridge: descriptions are the classification signal (D2/D3).\n { type: 'person', description: \"A person—friend, family member, colleague, or public figure. Use this for any individual in the user's social, professional, or knowledge network.\" },\n { type: 'organization', description: 'A company, nonprofit, club, sports team, or institution. Covers businesses, schools, local shops, and communities.' },\n { type: 'place', description: 'A geographic location, address, landmark, or venue. Use for cities, buildings, parks, restaurants, or any physical or conceptual location.' },\n { type: 'event', description: 'A scheduled or past gathering, meeting, conference, concert, or celebration. Links attendees and organizers to the event.' },\n { type: 'project', description: 'A multi-step initiative, goal, or endeavor. Use for personal projects, learning goals, business initiatives, or long-term objectives.' },\n { type: 'action', description: 'An individual task, chore, step, or completed action. Links to a parent Project and assigns responsibility to a Person.' },\n { type: 'creativework', description: 'A book, movie, article, song, recipe, blog post, or other creative content. Captures media the user consumes, learns from, or creates.' },\n { type: 'review', description: 'A personal review, opinion, or evaluation. The implicit subject is always the owning character—use to review a book, restaurant, place, product, or experience. Rating values stay inside the fact content.' },\n // D8: intentional divergence from the warm-agent original — the upstream\n // row claims \"and software\", which pulls the org's own repositories here.\n { type: 'product', description: 'A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, and household items. For software the organization builds, ships, or maintains, use software_application instead; for a hosted capability it consumes or operates, use service.' },\n // Software-org base types (no parent_type, no children — D5)\n { type: 'software_application', description: 'Software the organization itself builds, ships, or maintains — its own portfolio codebase. Not third-party software the organization merely uses (that is product), and not a running hosted capability (that is service). Expected frontmatter properties: repo_url, version, install_path, status (active/deprecated/in_dev).' },\n { type: 'service', description: \"A running hosted capability the organization consumes or operates, vendor-run or self-run — databases, APIs, CI, auth, monitoring. Distinct from software_application (the codebase the organization ships) and product (third-party tools it owns). The organization's own backend is a software_application as source and a service as a deployed dependency. Expected frontmatter properties: provider, dashboard_url, status, tier (critical/important/optional).\" },\n { type: 'role', description: 'A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities.' },\n // Software-org concrete types (one level under creativework)\n { type: 'design_spec', parent_type: 'creativework', description: 'A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch.' },\n { type: 'handoff', parent_type: 'creativework', description: 'An operational handoff or session transition document. Expected frontmatter properties: session_id, outcome (pending/complete/blocked), open_items.' },\n { type: 'procedure', parent_type: 'creativework', description: 'A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug).' },\n { type: 'session_recap', parent_type: 'creativework', description: 'A dated recap of one working session. Use only for session records — ordinary facts are not memories. Expected frontmatter properties: session_date, key_decisions (comma-separated list).' },\n { type: 'reference_doc', parent_type: 'creativework', description: 'A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug).' },\n ],\n edge_types: [\n // Warm-agent edges — copied verbatim from schemaOrgWarmAgentManifest (D2).\n { type: 'knows', source_type: 'person', target_type: 'person', description: 'Friendship, acquaintance, or general connection between two people.' },\n { type: 'spouse', source_type: 'person', target_type: 'person', description: 'Spousal or long-term partner relationship.' },\n { type: 'parent', source_type: 'person', target_type: 'person', description: 'A parent of this person: the source is the child, the target is the parent.' },\n { type: 'worksFor', source_type: 'person', target_type: 'organization', description: 'Employment or primary professional affiliation.' },\n { type: 'memberOf', source_type: 'person', target_type: 'organization', description: 'Membership in clubs, associations, or communities.' },\n { type: 'homeLocation', source_type: 'person', target_type: 'place', description: 'Primary residence.' },\n { type: 'workLocation', source_type: 'person', target_type: 'place', description: 'Workplace or primary work location.' },\n { type: 'location', source_type: 'event', target_type: 'place', description: 'Venue or geographic location of an event.' },\n { type: 'location', source_type: 'organization', target_type: 'place', description: 'Physical headquarters or primary location.' },\n { type: 'containedInPlace', source_type: 'place', target_type: 'place', description: 'Hierarchical location: the source place is inside the target place (e.g., Paris is contained in France).' },\n { type: 'subOrganization', source_type: 'project', target_type: 'project', description: 'Nested project hierarchy: the target is a sub-project contained in the source project.' },\n { type: 'object', source_type: 'action', target_type: 'project', description: 'Project this task belongs to; the object the action advances.' },\n { type: 'agent', source_type: 'action', target_type: 'person', description: 'Person responsible for or performing the action.' },\n { type: 'attendee', source_type: 'event', target_type: 'person', description: 'Person attending or participating in the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'person', description: 'Person who organized the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'organization', description: 'Organization hosting the event.' },\n { type: 'author', source_type: 'creativework', target_type: 'person', description: 'Author, creator, artist, or filmmaker.' },\n { type: 'publisher', source_type: 'creativework', target_type: 'organization', description: 'Publisher, platform, studio, or distributor.' },\n { type: 'about', source_type: 'creativework', target_type: 'person', description: 'Content centered on a specific person.' },\n { type: 'about', source_type: 'creativework', target_type: 'organization', description: 'Content centered on a company, institution, or group.' },\n { type: 'about', source_type: 'creativework', target_type: 'place', description: 'Content centered on a location (travel guide, history).' },\n { type: 'about', source_type: 'creativework', target_type: 'event', description: 'Content centered on an event (documentary, article).' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'creativework', description: 'The book, movie, article, or other work this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'organization', description: 'The business, restaurant, or institution this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'place', description: 'The venue, park, or location this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'event', description: 'The event this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'product', description: 'The tool, device, or product this review evaluates.' },\n { type: 'owns', source_type: 'person', target_type: 'product', description: 'Item owned by the person (electronics, vehicles, etc.).' },\n // Software-org edges (12, new)\n { type: 'dependsOn', source_type: 'software_application', target_type: 'service', description: 'This software application depends on this service.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'software_application', description: 'Spec is about this software application.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'service', description: 'Spec is about this service.' },\n { type: 'documents', source_type: 'procedure', target_type: 'software_application', description: 'Procedure applies to this software application.' },\n { type: 'documents', source_type: 'procedure', target_type: 'service', description: 'Procedure applies to this service.' },\n { type: 'handoffFor', source_type: 'handoff', target_type: 'software_application', description: 'Handoff is for this software application.' },\n { type: 'handoffFor', source_type: 'handoff', target_type: 'service', description: 'Handoff is for this service.' },\n // One row covers every creativework subtype on both sides: matching is\n // parent-aware on source and target alike, exact-first (D6).\n { type: 'supersedes', source_type: 'creativework', target_type: 'creativework', description: 'This document replaces an older one.' },\n { type: 'hasRole', source_type: 'person', target_type: 'role', description: 'Person fills this role.' },\n { type: 'operates', source_type: 'role', target_type: 'software_application', description: 'Role operates this software application.' },\n { type: 'provides', source_type: 'organization', target_type: 'service', description: 'Organization provides this service.' },\n { type: 'maintains', source_type: 'person', target_type: 'software_application', description: 'Person maintains this software application.' },\n ],\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAqBO,IAAM,yBAAA,GAA8C;AAAA,EACzD,UAAA,EAAY;AAAA;AAAA;AAAA,IAGV,EAAE,IAAA,EAAM,QAAA,EAAU,WAAA,EAAa,yJAAA,EAAqJ;AAAA,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A;AAAA,IAGzH,EAAE,MAAM,YAAA,EAAc,WAAA,EAAa,gBAAgB,WAAA,EAAa,cAAA,EAAgB,aAAa,sCAAA,EAAuC;AAAA,IACpI,EAAE,MAAM,SAAA,EAAW,WAAA,EAAa,UAAU,WAAA,EAAa,MAAA,EAAQ,aAAa,yBAAA,EAA0B;AAAA,IACtG,EAAE,MAAM,UAAA,EAAY,WAAA,EAAa,QAAQ,WAAA,EAAa,sBAAA,EAAwB,aAAa,0CAAA,EAA2C;AAAA,IACtI,EAAE,MAAM,UAAA,EAAY,WAAA,EAAa,gBAAgB,WAAA,EAAa,SAAA,EAAW,aAAa,qCAAA,EAAsC;AAAA,IAC5H,EAAE,MAAM,WAAA,EAAa,WAAA,EAAa,UAAU,WAAA,EAAa,sBAAA,EAAwB,aAAa,6CAAA,EAA8C;AAAA,IAC5I,EAAE,MAAM,QAAA,EAAU,WAAA,EAAa,QAAQ,WAAA,EAAa,sBAAA,EAAwB,aAAa,yDAAA,EAA0D;AAAA,IACnJ,EAAE,MAAM,OAAA,EAAS,WAAA,EAAa,aAAa,WAAA,EAAa,MAAA,EAAQ,aAAa,4DAAA,EAA6D;AAAA,IAC1I,EAAE,MAAM,OAAA,EAAS,WAAA,EAAa,aAAa,WAAA,EAAa,sBAAA,EAAwB,aAAa,uFAAA,EAAwF;AAAA,IACrL,EAAE,MAAM,OAAA,EAAS,WAAA,EAAa,aAAa,WAAA,EAAa,cAAA,EAAgB,aAAa,mEAAA;AAAoE;AAE7J","file":"index.mjs","sourcesContent":["import type { OntologyManifest } from '@equationalapplications/core-llm-wiki';\n\nexport type { OntologyManifest, OntologyNodeType, OntologyEdgeType } from '@equationalapplications/core-llm-wiki';\n\n/**\n * Custom minimal ontology for an executive agent operating on behalf of a\n * software organization: 21 node types, 42 edges. Superset of the warm-agent\n * manifest (`schema-org-llm-wiki`), whose 9 node types and 28 edges are copied\n * verbatim (D2) — with one deliberate override on `product` (D8) — plus 3\n * software-org base types, 3 `creativework` subtypes, the abstract `statement`\n * with its four kinds (`rule`, `decision`, `lesson`, `trap`), `area`, and 14\n * new edges.\n *\n * Properties live in the description strings (D3): `buildPromptContext`\n * JSON-serializes the manifest into the classification prompt, so description\n * text reaches the model verbatim and no core change is needed. There is no\n * property inheritance (D4) — every subtype lists its own complete set.\n *\n * The text is organization-neutral: it says \"the organization\", never a\n * specific company, so any software org can adopt it unmodified.\n */\nexport const schemaSoftwareOrgManifest: OntologyManifest = {\n node_types: [\n // Warm-agent types — copied verbatim from schemaOrgWarmAgentManifest.\n // Do not abridge: descriptions are the classification signal (D2/D3).\n { type: 'person', description: \"A person—friend, family member, colleague, or public figure. Use this for any individual in the user's social, professional, or knowledge network.\" },\n { type: 'organization', description: 'A company, nonprofit, club, sports team, or institution. Covers businesses, schools, local shops, and communities.' },\n { type: 'place', description: 'A geographic location, address, landmark, or venue. Use for cities, buildings, parks, restaurants, or any physical or conceptual location.' },\n { type: 'event', description: 'A scheduled or past gathering, meeting, conference, concert, or celebration. Links attendees and organizers to the event.' },\n { type: 'project', description: 'A multi-step initiative, goal, or endeavor. Use for personal projects, learning goals, business initiatives, or long-term objectives.' },\n { type: 'action', description: 'An individual task, chore, step, or completed action. Links to a parent Project and assigns responsibility to a Person.' },\n { type: 'creativework', description: 'A book, movie, article, song, recipe, blog post, or other creative content. Captures media the user consumes, learns from, or creates.' },\n { type: 'review', description: 'A personal review, opinion, or evaluation. The implicit subject is always the owning character—use to review a book, restaurant, place, product, or experience. Rating values stay inside the fact content.' },\n // D8: intentional divergence from the warm-agent original — the upstream\n // row claims \"and software\", which pulls the org's own repositories here.\n { type: 'product', description: 'A physical item, software tool, or device owned or under consideration. Covers electronics, vehicles, and household items. For software the organization builds, ships, or maintains, use software_application instead; for a hosted capability it consumes or operates, use service.' },\n // Software-org base types (no parent_type, no children — D5)\n { type: 'software_application', description: 'Software the organization itself builds, ships, or maintains — its own portfolio codebase. Not third-party software the organization merely uses (that is product), and not a running hosted capability (that is service). Expected frontmatter properties: repo_url, version, install_path, status (active/deprecated/in_dev).' },\n { type: 'service', description: \"A running hosted capability the organization consumes or operates, vendor-run or self-run — databases, APIs, CI, auth, monitoring. Distinct from software_application (the codebase the organization ships) and product (third-party tools it owns). The organization's own backend is a software_application as source and a service as a deployed dependency. Expected frontmatter properties: provider, dashboard_url, status, tier (critical/important/optional).\" },\n { type: 'role', description: 'A functional role a person fills within the organization. Expected frontmatter properties: role_name, scope, capabilities.' },\n // Software-org concrete types (one level under creativework)\n { type: 'design_spec', parent_type: 'creativework', description: 'A technical or product design specification. Expected frontmatter properties: status (draft/approved/implemented/superseded), spec_for (software_application or service slug), branch.' },\n { type: 'procedure', parent_type: 'creativework', description: 'A checklist, workflow, or how-to document. Expected frontmatter properties: trigger (when to use it), last_reviewed, applies_to (software_application or service slug).' },\n { type: 'reference_doc', parent_type: 'creativework', description: 'A product doc, service description, or architecture reference. Expected frontmatter properties: source_url, application (software_application slug).' },\n // Statement kinds: one abstract parent, four content-defined children.\n { type: 'statement', description: 'Abstract parent of the four statement kinds (rule, decision, lesson, trap); classify a fact as one of the four kinds, never as `statement`. The four kinds attach with `about` to an `area`, the `software_application`, or the `organization`, and the `about` rows declared with source `statement` apply to every kind.' },\n { type: 'rule', parent_type: 'statement', description: 'A situation, and what to do in it. Each rule holds one claim.' },\n { type: 'decision', parent_type: 'statement', description: 'What was chosen, what was rejected, and why. Each decision holds one claim.' },\n { type: 'lesson', parent_type: 'statement', description: 'What went wrong, and what to do differently. Each lesson holds one claim.' },\n { type: 'trap', parent_type: 'statement', description: 'A likely wrong assumption, and the fact that corrects it. Each trap holds one claim.' },\n { type: 'area', description: \"A named part of a `software_application`, such as deploy or billing. Expected frontmatter properties: name, patterns_file (path, inside the host repo, of the file that holds the area's file globs — a pointer, not a copy).\" },\n ],\n edge_types: [\n // Warm-agent edges — copied verbatim from schemaOrgWarmAgentManifest (D2).\n { type: 'knows', source_type: 'person', target_type: 'person', description: 'Friendship, acquaintance, or general connection between two people.' },\n { type: 'spouse', source_type: 'person', target_type: 'person', description: 'Spousal or long-term partner relationship.' },\n { type: 'parent', source_type: 'person', target_type: 'person', description: 'A parent of this person: the source is the child, the target is the parent.' },\n { type: 'worksFor', source_type: 'person', target_type: 'organization', description: 'Employment or primary professional affiliation.' },\n { type: 'memberOf', source_type: 'person', target_type: 'organization', description: 'Membership in clubs, associations, or communities.' },\n { type: 'homeLocation', source_type: 'person', target_type: 'place', description: 'Primary residence.' },\n { type: 'workLocation', source_type: 'person', target_type: 'place', description: 'Workplace or primary work location.' },\n { type: 'location', source_type: 'event', target_type: 'place', description: 'Venue or geographic location of an event.' },\n { type: 'location', source_type: 'organization', target_type: 'place', description: 'Physical headquarters or primary location.' },\n { type: 'containedInPlace', source_type: 'place', target_type: 'place', description: 'Hierarchical location: the source place is inside the target place (e.g., Paris is contained in France).' },\n { type: 'subOrganization', source_type: 'project', target_type: 'project', description: 'Nested project hierarchy: the target is a sub-project contained in the source project.' },\n { type: 'object', source_type: 'action', target_type: 'project', description: 'Project this task belongs to; the object the action advances.' },\n { type: 'agent', source_type: 'action', target_type: 'person', description: 'Person responsible for or performing the action.' },\n { type: 'attendee', source_type: 'event', target_type: 'person', description: 'Person attending or participating in the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'person', description: 'Person who organized the event.' },\n { type: 'organizer', source_type: 'event', target_type: 'organization', description: 'Organization hosting the event.' },\n { type: 'author', source_type: 'creativework', target_type: 'person', description: 'Author, creator, artist, or filmmaker.' },\n { type: 'publisher', source_type: 'creativework', target_type: 'organization', description: 'Publisher, platform, studio, or distributor.' },\n { type: 'about', source_type: 'creativework', target_type: 'person', description: 'Content centered on a specific person.' },\n { type: 'about', source_type: 'creativework', target_type: 'organization', description: 'Content centered on a company, institution, or group.' },\n { type: 'about', source_type: 'creativework', target_type: 'place', description: 'Content centered on a location (travel guide, history).' },\n { type: 'about', source_type: 'creativework', target_type: 'event', description: 'Content centered on an event (documentary, article).' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'creativework', description: 'The book, movie, article, or other work this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'organization', description: 'The business, restaurant, or institution this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'place', description: 'The venue, park, or location this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'event', description: 'The event this review evaluates.' },\n { type: 'itemReviewed', source_type: 'review', target_type: 'product', description: 'The tool, device, or product this review evaluates.' },\n { type: 'owns', source_type: 'person', target_type: 'product', description: 'Item owned by the person (electronics, vehicles, etc.).' },\n // Software-org edges (14, new)\n { type: 'dependsOn', source_type: 'software_application', target_type: 'service', description: 'This software application depends on this service.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'software_application', description: 'Spec is about this software application.' },\n { type: 'specifies', source_type: 'design_spec', target_type: 'service', description: 'Spec is about this service.' },\n { type: 'documents', source_type: 'procedure', target_type: 'software_application', description: 'Procedure applies to this software application.' },\n { type: 'documents', source_type: 'procedure', target_type: 'service', description: 'Procedure applies to this service.' },\n // One row covers every creativework subtype on both sides: matching is\n // parent-aware on source and target alike, exact-first (D6).\n { type: 'supersedes', source_type: 'creativework', target_type: 'creativework', description: 'This document replaces an older one.' },\n { type: 'hasRole', source_type: 'person', target_type: 'role', description: 'Person fills this role.' },\n { type: 'operates', source_type: 'role', target_type: 'software_application', description: 'Role operates this software application.' },\n { type: 'provides', source_type: 'organization', target_type: 'service', description: 'Organization provides this service.' },\n { type: 'maintains', source_type: 'person', target_type: 'software_application', description: 'Person maintains this software application.' },\n { type: 'partOf', source_type: 'area', target_type: 'software_application', description: 'This area is a named part of this software application.' },\n { type: 'about', source_type: 'statement', target_type: 'area', description: 'This statement (any of the four kinds) concerns this area.' },\n { type: 'about', source_type: 'statement', target_type: 'software_application', description: 'This statement (any of the four kinds) concerns this software application as a whole.' },\n { type: 'about', source_type: 'statement', target_type: 'organization', description: 'This statement (any of the four kinds) concerns the organization.' },\n ],\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equationalapplications/schema-software-org",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Custom minimal ontology manifest for an executive agent operating on behalf of a software organization:
|
|
3
|
+
"version": "9.0.0",
|
|
4
|
+
"description": "Custom minimal ontology manifest for an executive agent operating on behalf of a software organization: 21 node types, 42 edges, warm-agent superset. Data-only.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"registry": "https://registry.npmjs.org"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@equationalapplications/core-llm-wiki": "
|
|
44
|
+
"@equationalapplications/core-llm-wiki": "9.0.0"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=20"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"tsup": "9.0.0",
|
|
51
51
|
"typescript": "5.9.3",
|
|
52
52
|
"vitest": "5.0.5",
|
|
53
|
-
"@equationalapplications/schema-org-llm-wiki": "
|
|
53
|
+
"@equationalapplications/schema-org-llm-wiki": "9.0.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsup",
|