@unified-product-graph/core 0.34.0 → 0.35.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/CHANGELOG.md +66 -0
- package/README.md +1 -1
- package/dist/index.cjs +625 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +297 -26
- package/dist/index.d.ts +297 -26
- package/dist/index.js +622 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -60,6 +60,7 @@ __export(index_exports, {
|
|
|
60
60
|
PROPERTY_MODIFIERS: () => PROPERTY_MODIFIERS,
|
|
61
61
|
PROPERTY_MODIFIER_SEMANTICS: () => PROPERTY_MODIFIER_SEMANTICS,
|
|
62
62
|
PROPERTY_SCALE_MAP: () => PROPERTY_SCALE_MAP,
|
|
63
|
+
PROPERTY_SCALE_MAP_BY_ENTITY: () => PROPERTY_SCALE_MAP_BY_ENTITY,
|
|
63
64
|
QUALIFIABLE_EDGE_TYPES: () => QUALIFIABLE_EDGE_TYPES,
|
|
64
65
|
RECORD_ENTITY_TYPES: () => RECORD_ENTITY_TYPES,
|
|
65
66
|
REFLECT_MODES: () => REFLECT_MODES,
|
|
@@ -96,6 +97,7 @@ __export(index_exports, {
|
|
|
96
97
|
UPG_EDGE_PAIR_MAP: () => UPG_EDGE_PAIR_MAP,
|
|
97
98
|
UPG_EDGE_TYPES: () => UPG_EDGE_TYPES,
|
|
98
99
|
UPG_ENTITY_COUNT: () => UPG_ENTITY_COUNT,
|
|
100
|
+
UPG_ENTITY_DESCRIPTIONS: () => UPG_ENTITY_DESCRIPTIONS,
|
|
99
101
|
UPG_ENTITY_FILTER_SPECS: () => UPG_ENTITY_FILTER_SPECS,
|
|
100
102
|
UPG_ENTITY_META: () => UPG_ENTITY_META,
|
|
101
103
|
UPG_ENTITY_META_BY_ID: () => UPG_ENTITY_META_BY_ID,
|
|
@@ -197,6 +199,7 @@ __export(index_exports, {
|
|
|
197
199
|
getDomainIdForType: () => getDomainIdForType,
|
|
198
200
|
getDomainsInRing: () => getDomainsInRing,
|
|
199
201
|
getEdgePropertySchema: () => getEdgePropertySchema,
|
|
202
|
+
getEntityDescription: () => getEntityDescription,
|
|
200
203
|
getEntityModifierSummary: () => getEntityModifierSummary,
|
|
201
204
|
getEnumScale: () => getEnumScale,
|
|
202
205
|
getEnumValueMeta: () => getEnumValueMeta,
|
|
@@ -1491,6 +1494,19 @@ var UPG_EDGE_CATALOG = {
|
|
|
1491
1494
|
product_contains_research_study: { forward_verb: "contains", reverse_verb: "belongs_to", classification: "hierarchy", source_type: "product", target_type: "research_study" },
|
|
1492
1495
|
research_study_enrolls_participant: { forward_verb: "enrolls", reverse_verb: "enrolled_in", classification: "hierarchy", source_type: "research_study", target_type: "participant" },
|
|
1493
1496
|
research_study_captures_observation: { forward_verb: "captures", reverse_verb: "captured_in", classification: "hierarchy", source_type: "research_study", target_type: "observation" },
|
|
1497
|
+
// (0.35.0) Provenance for a verbatim quote: which study produced it. The
|
|
1498
|
+
// quote card wanted an outbound `quote_from_research_study`; canon answers it
|
|
1499
|
+
// study-first, matching the whole `research_study_*` family (enrolls ·
|
|
1500
|
+
// captures · clusters_into · produces · investigates · follows · collects),
|
|
1501
|
+
// so the quote renders it INBOUND on its connections rail. The `captures`
|
|
1502
|
+
// verb is deliberately reused from the observation twin above: the F3
|
|
1503
|
+
// duplicate gate is on the (source, target) pair, which is new, and a study
|
|
1504
|
+
// captures raw material by one verb regardless of which raw shape it is.
|
|
1505
|
+
// Companion: `UPG_VALID_CHILDREN.research_study` gains 'quote'. A quote may
|
|
1506
|
+
// now hang from observation (raw-capture parent), insight (synthesis parent)
|
|
1507
|
+
// or research_study (provenance parent) — multi-parent grammar is explicitly
|
|
1508
|
+
// sanctioned, and per-INSTANCE parentage stays single via `parent_id`.
|
|
1509
|
+
research_study_captures_quote: { forward_verb: "captures", reverse_verb: "captured_in", classification: "hierarchy", source_type: "research_study", target_type: "quote" },
|
|
1494
1510
|
research_study_clusters_into_affinity_cluster: { forward_verb: "clusters_into", reverse_verb: "clustered_from", classification: "hierarchy", source_type: "research_study", target_type: "affinity_cluster" },
|
|
1495
1511
|
research_study_produces_insight: { forward_verb: "produces", reverse_verb: "produced_by", classification: "hierarchy", source_type: "research_study", target_type: "insight" },
|
|
1496
1512
|
research_study_investigates_research_question: { forward_verb: "investigates", reverse_verb: "investigated_by", classification: "hierarchy", source_type: "research_study", target_type: "research_question" },
|
|
@@ -1772,6 +1788,22 @@ var UPG_EDGE_CATALOG = {
|
|
|
1772
1788
|
// the work into `task`; v0.7.0/UPG-571 re-canonicalised the statement
|
|
1773
1789
|
// story_statement → user_story; see UPG_EDGE_MIGRATIONS['0.7.0'].)
|
|
1774
1790
|
epic_specified_by_user_story: { forward_verb: "specified_by", reverse_verb: "specifies", classification: "hierarchy", source_type: "epic", target_type: "user_story" },
|
|
1791
|
+
// (0.35.0) The feature-level rung of the same ladder. `epic` is OPTIONAL in
|
|
1792
|
+
// UPG — `feature_decomposed_into_epic` is not mandatory — so a feature that
|
|
1793
|
+
// skips the epic level had no way to reach the stories that specify it, and
|
|
1794
|
+
// `user_story` had exactly one declared parent. Verb pair is cloned verbatim
|
|
1795
|
+
// from the epic rung above so the two rungs read identically; it is NOT
|
|
1796
|
+
// `groups`, which would invent a second verb for one relationship.
|
|
1797
|
+
//
|
|
1798
|
+
// This is also the reason `feature_contains_acceptance_criterion` is NOT
|
|
1799
|
+
// here: with this rung the path is feature → user_story → acceptance_
|
|
1800
|
+
// criterion, and a direct containment edge would be the "X_contains_Y verb
|
|
1801
|
+
// that duplicates the parent link" ARCHITECTURE.md forbids.
|
|
1802
|
+
//
|
|
1803
|
+
// Companion: `UPG_VALID_CHILDREN.feature` gains 'user_story'. Per-instance
|
|
1804
|
+
// parentage stays single (`parent_id`), so the dual declared parent is a
|
|
1805
|
+
// grammar widening, not a dual-parent instance.
|
|
1806
|
+
feature_specified_by_user_story: { forward_verb: "specified_by", reverse_verb: "specifies", classification: "hierarchy", source_type: "feature", target_type: "user_story" },
|
|
1775
1807
|
user_story_verified_by_acceptance_criterion: { forward_verb: "verified_by", reverse_verb: "verifies", classification: "hierarchy", source_type: "user_story", target_type: "acceptance_criterion" },
|
|
1776
1808
|
task_implements_user_story: { forward_verb: "implements", reverse_verb: "implemented_by", classification: "cross-domain", source_type: "task", target_type: "user_story" },
|
|
1777
1809
|
feature_affected_by_bug: { forward_verb: "affected_by", reverse_verb: "affects", classification: "hierarchy", source_type: "feature", target_type: "bug" },
|
|
@@ -2868,6 +2900,16 @@ var UPG_EDGE_CATALOG = {
|
|
|
2868
2900
|
team_decides_decision: { forward_verb: "decides", reverse_verb: "decided_by", classification: "hierarchy", source_type: "team", target_type: "decision" },
|
|
2869
2901
|
decision_references_decision: { forward_verb: "references", reverse_verb: "referenced_by", classification: "cross-domain", source_type: "decision", target_type: "decision" },
|
|
2870
2902
|
stakeholder_maps_to_persona: { forward_verb: "maps_to", reverse_verb: "mapped_by", classification: "cross-domain", source_type: "stakeholder", target_type: "persona" },
|
|
2903
|
+
// (0.35.0) The stakeholder-map relation: who cares about which outcome.
|
|
2904
|
+
// Deliberately a verb-only edge and NOT a `kind: 'scale'` property on a
|
|
2905
|
+
// generic `stakeholder_relates_to_node` — UPG edges are payload-free outside
|
|
2906
|
+
// the gated `carries_properties` set, and the MAGNITUDE of the stake is
|
|
2907
|
+
// already `influence` / `interest` on the stakeholder itself. The reverse
|
|
2908
|
+
// reading is what makes the pair right: "outcome matters_to stakeholder".
|
|
2909
|
+
// Sits beside `persona_pursues_outcome` (the persona twin) and
|
|
2910
|
+
// `product_influenced_by_stakeholder`. Retires the manifest's denormalised
|
|
2911
|
+
// `stake_in` string: the subtitle renders the target outcome's title.
|
|
2912
|
+
stakeholder_invested_in_outcome: { forward_verb: "invested_in", reverse_verb: "matters_to", classification: "cross-domain", source_type: "stakeholder", target_type: "outcome" },
|
|
2871
2913
|
team_okr_aligns_with_objective: { forward_verb: "aligns_with", reverse_verb: "aligned_by", classification: "cross-domain", source_type: "team_okr", target_type: "objective" },
|
|
2872
2914
|
team_okr_aligns_with_key_result: { forward_verb: "aligns_with", reverse_verb: "aligned_by", classification: "cross-domain", source_type: "team_okr", target_type: "key_result" },
|
|
2873
2915
|
ceremony_involves_team: { forward_verb: "involves", reverse_verb: "involved_in", classification: "cross-domain", source_type: "ceremony", target_type: "team" },
|
|
@@ -2946,6 +2988,27 @@ var UPG_EDGE_CATALOG = {
|
|
|
2946
2988
|
compliance_requirement_constrains_feature: { forward_verb: "constrains", reverse_verb: "constrained_by", classification: "cross-domain", source_type: "compliance_requirement", target_type: "feature" },
|
|
2947
2989
|
compliance_requirement_constrains_decision: { forward_verb: "constrains", reverse_verb: "constrained_by", classification: "cross-domain", source_type: "compliance_requirement", target_type: "decision" },
|
|
2948
2990
|
risk_manifests_as_technical_debt_item: { forward_verb: "manifests_as", reverse_verb: "manifested_by", classification: "cross-domain", source_type: "risk", target_type: "technical_debt_item" },
|
|
2991
|
+
// ── Risk exposure (0.35.0) ──────────────────────────────────────────────────
|
|
2992
|
+
// Typed source, wildcard target: the 16th registered polymorphic family, and
|
|
2993
|
+
// structurally the "decision-to-anything" construction with `risk` in the
|
|
2994
|
+
// source slot. Both are `cross-domain`, so neither enters UPG_VALID_CHILDREN
|
|
2995
|
+
// and neither can be walked as containment.
|
|
2996
|
+
//
|
|
2997
|
+
// Why wildcard rather than typed-per-target: what a risk puts at stake is
|
|
2998
|
+
// genuinely unbounded (outcome, key_result, release, service, contract,
|
|
2999
|
+
// launch, metric, feature), and so is what mitigates it (decision, feature,
|
|
3000
|
+
// experiment, security_control, compliance_requirement). Enumerating either
|
|
3001
|
+
// side balloons the catalogue across two open sets while the endpoint carries
|
|
3002
|
+
// no structural role — the exact condition ARCHITECTURE.md admits polymorphism
|
|
3003
|
+
// for. The typed `security_control_mitigates_threat` stays as the
|
|
3004
|
+
// security-domain edge; `risk_mitigated_by_node` is the product generalisation.
|
|
3005
|
+
//
|
|
3006
|
+
// These two replace three manifest fields that were properties pretending to
|
|
3007
|
+
// be relations: `scope_entities` (an entity-reference list) is
|
|
3008
|
+
// risk_threatens_node, and `mitigation_actions` (a top-list of action
|
|
3009
|
+
// strings) is risk_mitigated_by_node. The prose `mitigation?: string` stays.
|
|
3010
|
+
risk_threatens_node: { forward_verb: "threatens", reverse_verb: "threatened_by", classification: "cross-domain", source_type: "risk", target_type: "node" },
|
|
3011
|
+
risk_mitigated_by_node: { forward_verb: "mitigated_by", reverse_verb: "mitigates", classification: "cross-domain", source_type: "risk", target_type: "node" },
|
|
2949
3012
|
data_contract_governs_data_source: { forward_verb: "governs", reverse_verb: "governed_by", classification: "cross-domain", source_type: "data_contract", target_type: "data_source" },
|
|
2950
3013
|
compliance_framework_requires_security_control: { forward_verb: "requires", reverse_verb: "required_by", classification: "cross-domain", source_type: "compliance_framework", target_type: "security_control" },
|
|
2951
3014
|
security_audit_validates_compliance_framework: { forward_verb: "validates", reverse_verb: "validated_by", classification: "cross-domain", source_type: "security_audit", target_type: "compliance_framework" },
|
|
@@ -4232,7 +4295,12 @@ var UPG_POLYMORPHIC_EDGE_KEYS = [
|
|
|
4232
4295
|
// Document transclusion (0.34.0): a document embeds any renderable node's live
|
|
4233
4296
|
// value at a position in its prose. Open by nature rather than by an
|
|
4234
4297
|
// enumeration nobody wanted to write out.
|
|
4235
|
-
"document_transcludes_node"
|
|
4298
|
+
"document_transcludes_node",
|
|
4299
|
+
// Risk exposure (0.35.0): what a risk threatens, and what mitigates it.
|
|
4300
|
+
// Typed source, wildcard target — the decision-to-anything construction with
|
|
4301
|
+
// `risk` in the source slot. Both cross-domain, so containment is untouched.
|
|
4302
|
+
"risk_threatens_node",
|
|
4303
|
+
"risk_mitigated_by_node"
|
|
4236
4304
|
];
|
|
4237
4305
|
var UPG_POLYMORPHIC_EDGE_FAMILIES = {
|
|
4238
4306
|
"universal semantic verbs": ["node_informs_node", "node_constrains_node", "node_inspires_node"],
|
|
@@ -4271,7 +4339,14 @@ var UPG_POLYMORPHIC_EDGE_FAMILIES = {
|
|
|
4271
4339
|
// `document_describes_*` set, which is not polymorphic at all: those are
|
|
4272
4340
|
// enumerated edges saying a document is ABOUT a thing. Transclusion says it
|
|
4273
4341
|
// RENDERS the thing, and the difference is the whole reason the edge exists.
|
|
4274
|
-
"document transclusion": ["document_transcludes_node"]
|
|
4342
|
+
"document transclusion": ["document_transcludes_node"],
|
|
4343
|
+
// 0.35.0. Its own family and deliberately NOT merged into
|
|
4344
|
+
// 'decision-to-anything', which it mirrors structurally. The two say different
|
|
4345
|
+
// things: a decision INFLUENCES what it touches, a risk ENDANGERS what it
|
|
4346
|
+
// threatens, and a partition that merged them on shape alone would assert
|
|
4347
|
+
// those are one relation. Two members because exposure has two directions,
|
|
4348
|
+
// and collapsing them would lose which way an edge points.
|
|
4349
|
+
"risk exposure": ["risk_threatens_node", "risk_mitigated_by_node"]
|
|
4275
4350
|
};
|
|
4276
4351
|
var _POLY_KEY_SET = new Set(UPG_POLYMORPHIC_EDGE_KEYS);
|
|
4277
4352
|
function isPolymorphicEdge(key) {
|
|
@@ -6836,6 +6911,378 @@ function isLegacyProductStage(stage) {
|
|
|
6836
6911
|
return typeof stage === "string" && stage.toLowerCase() in LEGACY_PRODUCT_STAGES;
|
|
6837
6912
|
}
|
|
6838
6913
|
|
|
6914
|
+
// src/catalog/entity-descriptions.ts
|
|
6915
|
+
var UPG_ENTITY_DESCRIPTIONS = Object.freeze({
|
|
6916
|
+
// Strategy
|
|
6917
|
+
product: "The product being created, the root of the graph",
|
|
6918
|
+
outcome: "A desired business or user outcome",
|
|
6919
|
+
objective: "A strategic goal (OKR)",
|
|
6920
|
+
key_result: "A measurable result tied to an objective",
|
|
6921
|
+
metric: "A unified metric that measures progress, health, or behaviour across the product",
|
|
6922
|
+
metric_quality_assessment: "An assessment of whether a metric is well-defined, measurable, and aligned to a meaningful outcome.",
|
|
6923
|
+
vision: "A long-term aspirational statement of the future state",
|
|
6924
|
+
mission: "The purpose and reason the product exists",
|
|
6925
|
+
strategic_theme: "A high-level strategic focus area for a planning period. Its own time_horizon is now deprecated: promote the period to a planning_cycle and link the two with strategic_theme_scoped_to_planning_cycle, so themes share one dated, nestable interval instead of a drifting per-theme label.",
|
|
6926
|
+
initiative: "A large coordinated effort to achieve a strategic goal",
|
|
6927
|
+
capability: "An ability that enables value delivery",
|
|
6928
|
+
value_stream: "An end-to-end flow delivering value to the customer",
|
|
6929
|
+
strategic_pillar: "A foundational principle that guides decisions",
|
|
6930
|
+
strategic_question: "An open strategic question a plan must resolve (of coordination, ownership, sequencing, or which bet to place), held explicitly until a decision retires it; the strategy sibling of research_question and design_question",
|
|
6931
|
+
assumption: "A belief taken as true that underpins a strategy",
|
|
6932
|
+
decision: "A recorded decision with context, rationale, and consequences",
|
|
6933
|
+
constraint: "A limit, requirement, or ceiling the product must respect, whether a self-imposed principle or an externally imposed boundary",
|
|
6934
|
+
// User
|
|
6935
|
+
persona: "An archetype representing a user segment",
|
|
6936
|
+
job: "Job To Be Done: what the user is trying to accomplish",
|
|
6937
|
+
need: "A user need, pain, desire, or constraint",
|
|
6938
|
+
desired_outcome: "What the user hopes to achieve",
|
|
6939
|
+
job_step: "A discrete step within a Job To Be Done",
|
|
6940
|
+
switching_cost: "A barrier preventing users from switching alternatives",
|
|
6941
|
+
// Discovery
|
|
6942
|
+
opportunity: "A validated gap worth solving",
|
|
6943
|
+
solution: "A proposed approach to address an opportunity",
|
|
6944
|
+
feasibility_study: "An assessment of technical or business viability",
|
|
6945
|
+
design_sprint: "A time-boxed sprint to prototype and validate ideas",
|
|
6946
|
+
// Validation
|
|
6947
|
+
hypothesis: "A testable belief about a solution",
|
|
6948
|
+
experiment: "A test designed to validate a hypothesis",
|
|
6949
|
+
experiment_plan: "An experiment plan describing the hypothesis, setup, success criteria, and methodology before a test runs.",
|
|
6950
|
+
experiment_run: "An execution instance of an experiment that records actual conditions, observations, and raw results.",
|
|
6951
|
+
learning: "An insight gained from an experiment",
|
|
6952
|
+
test_plan: "A structured plan for testing a hypothesis",
|
|
6953
|
+
evidence: "Data supporting or refuting a hypothesis",
|
|
6954
|
+
research_plan: "A plan for gathering evidence to validate a draft entity",
|
|
6955
|
+
// Market Intelligence
|
|
6956
|
+
competitor: "A competing product or company",
|
|
6957
|
+
competitor_feature: "A feature offered by a competitor",
|
|
6958
|
+
market_trend: "An emerging trend in the market",
|
|
6959
|
+
market_segment: "A distinct group of potential customers",
|
|
6960
|
+
competitive_analysis: "A structured analysis of the competitive landscape",
|
|
6961
|
+
classification_axis: "A single dimension in a competitive classification matrix that defines one axis of comparison across alternatives.",
|
|
6962
|
+
classification_value: "A position or value on a classification axis, representing where one option lands on that dimension.",
|
|
6963
|
+
competitor_signal: "An observed competitor move or datapoint (a pricing change, launch, or hire) that feeds competitive analysis",
|
|
6964
|
+
// User Research
|
|
6965
|
+
research_study: "A planned research activity",
|
|
6966
|
+
insight: "A synthesised finding from research",
|
|
6967
|
+
participant: "A person participating in research",
|
|
6968
|
+
observation: "A specific behaviour or statement observed",
|
|
6969
|
+
quote: "A direct quote from a research participant",
|
|
6970
|
+
affinity_cluster: "A group of related observations",
|
|
6971
|
+
research_question: "A question guiding a research study",
|
|
6972
|
+
interview_guide: "A structured guide for conducting interviews",
|
|
6973
|
+
survey_response: "A response to a survey instrument",
|
|
6974
|
+
// Experience Design
|
|
6975
|
+
user_journey: "An end-to-end map of a user experience",
|
|
6976
|
+
journey_step: "A single step in a user journey",
|
|
6977
|
+
journey_phase: "A named phase in a user journey that groups a sequence of actions the user performs to reach a milestone.",
|
|
6978
|
+
journey_action: "A single step a user takes within a journey phase, the atomic unit of observable user behaviour.",
|
|
6979
|
+
user_flow: "A navigation path through the product",
|
|
6980
|
+
screen: "A distinct screen or view in the product",
|
|
6981
|
+
screen_state: "A specific state of a screen (e.g., empty, loading, error)",
|
|
6982
|
+
surface: "A place inside a screen, the features that occupy it, and the rule that decides who wins it",
|
|
6983
|
+
design_question: "An open design problem to explore",
|
|
6984
|
+
design_concept: "A possible design direction or approach",
|
|
6985
|
+
prototype: "An interactive mockup for testing",
|
|
6986
|
+
wireframe: "A low-fidelity structural layout",
|
|
6987
|
+
annotation: "A note or markup on a design artifact",
|
|
6988
|
+
interaction_spec: "A specification for an interaction behaviour",
|
|
6989
|
+
// Design System
|
|
6990
|
+
design_component: "A reusable UI component",
|
|
6991
|
+
design_token: "A design token (colour, spacing, typography)",
|
|
6992
|
+
design_system: "The root design system entity",
|
|
6993
|
+
design_pattern: "A documented design pattern",
|
|
6994
|
+
design_guideline: "A design usage guideline",
|
|
6995
|
+
// Brand Identity
|
|
6996
|
+
brand_identity: "The root brand identity entity",
|
|
6997
|
+
brand_colour: "A brand colour definition",
|
|
6998
|
+
brand_typography: "Brand typography specifications",
|
|
6999
|
+
brand_voice: "Brand voice and tone guidelines",
|
|
7000
|
+
brand_logo: "A brand logo or mark",
|
|
7001
|
+
brand_imagery: "Brand imagery and photography guidelines",
|
|
7002
|
+
// Product Specification
|
|
7003
|
+
feature: "A product capability or feature",
|
|
7004
|
+
feature_area: "A grouping of related features",
|
|
7005
|
+
epic: "A large body of work that can be broken into stories",
|
|
7006
|
+
user_story: `A user's goal and the value they expect, in the "As a\u2026 I want\u2026 So that\u2026" format. Now also a first-class plannable unit (priority, effort, assignee, due_date) that schedules into a planning_cycle, and it round-trips an external board's column via workflow_state.`,
|
|
7007
|
+
acceptance_criterion: "A condition that must be met for a story to be done",
|
|
7008
|
+
release: "A shipped version of the product",
|
|
7009
|
+
task: "A unit of work within a story or epic",
|
|
7010
|
+
bug: "A defect or unexpected behaviour",
|
|
7011
|
+
roadmap: "A strategic plan of features and milestones",
|
|
7012
|
+
roadmap_item: "An item on the product roadmap",
|
|
7013
|
+
theme: "A strategic grouping of related features",
|
|
7014
|
+
roadmap_theme: "A customer problem used as the organising unit of a roadmap",
|
|
7015
|
+
changelog: "A record of changes shipped in a release",
|
|
7016
|
+
planning_cycle: "The cadence axis of a plan: a dated interval a team plans in, be it a sprint, iteration, quarter, or program increment. Cycles self-nest, so a fine iteration sits inside a coarse period to form a granularity ladder.",
|
|
7017
|
+
configuration_axis: "A named dimension along which the product's composition differs: a feature flag, a plan tier, a permission level, a beta programme. The stored graph is the union of the family; one configuration is a projection of it.",
|
|
7018
|
+
// Engineering
|
|
7019
|
+
bounded_context: "A DDD bounded context defining a service boundary",
|
|
7020
|
+
service: "A deployable service or microservice",
|
|
7021
|
+
domain_event: "An event published when something happens in the domain",
|
|
7022
|
+
api_contract: "An API contract or specification",
|
|
7023
|
+
technical_debt_item: "A known piece of technical debt",
|
|
7024
|
+
feature_flag: "A feature toggle for controlled rollout",
|
|
7025
|
+
deployment: "A deployment event",
|
|
7026
|
+
aggregate: "A DDD aggregate root",
|
|
7027
|
+
domain_entity: "A DDD domain entity: a core object with a distinct identity and lifecycle inside a bounded context",
|
|
7028
|
+
value_object: "A DDD value object",
|
|
7029
|
+
command: "A DDD command (write operation)",
|
|
7030
|
+
read_model: "A DDD read model (query projection)",
|
|
7031
|
+
api_endpoint: "A specific API endpoint",
|
|
7032
|
+
database_schema: "A database schema definition",
|
|
7033
|
+
queue_topic: "A message queue topic",
|
|
7034
|
+
build_artifact: "A build output (binary, container image)",
|
|
7035
|
+
code_repository: "A source code repository",
|
|
7036
|
+
library_dependency: "A third-party library dependency",
|
|
7037
|
+
integration_pattern: "An integration pattern (saga, event sourcing, etc.)",
|
|
7038
|
+
external_api: "An external API consumed by the product",
|
|
7039
|
+
data_flow: "A data flow between systems",
|
|
7040
|
+
investigation: "An investigation into an issue or incident",
|
|
7041
|
+
root_cause: "An identified root cause of an issue",
|
|
7042
|
+
symptom: "A symptom of a problem",
|
|
7043
|
+
fix: "A fix applied to resolve an issue",
|
|
7044
|
+
// Growth
|
|
7045
|
+
funnel: "A conversion funnel tracking user progression",
|
|
7046
|
+
funnel_step: "A stage within a conversion funnel",
|
|
7047
|
+
acquisition_channel: "A channel through which users are acquired",
|
|
7048
|
+
growth_campaign: "A growth-focused campaign",
|
|
7049
|
+
cohort: "A group of users sharing a common characteristic",
|
|
7050
|
+
behavioral_segment: "A user segment based on behaviour",
|
|
7051
|
+
growth_loop: "A self-reinforcing growth cycle",
|
|
7052
|
+
variant: "A variant in an A/B test",
|
|
7053
|
+
attribution_model: "A model for attributing conversions to touchpoints",
|
|
7054
|
+
// Business Model
|
|
7055
|
+
business_model: "The business model canvas or definition",
|
|
7056
|
+
value_proposition: "A unique value offered to customers",
|
|
7057
|
+
revenue_stream: "A source of revenue",
|
|
7058
|
+
pricing_tier: "A pricing tier or plan",
|
|
7059
|
+
cost_structure: "A cost category or structure",
|
|
7060
|
+
unit_economics: "Per-unit economic metrics (CAC, LTV, etc.)",
|
|
7061
|
+
partnership: "A strategic partnership",
|
|
7062
|
+
key_resource: "A key resource required by the business",
|
|
7063
|
+
key_activity: "A key activity the business performs",
|
|
7064
|
+
target_customer_segment: "A target customer segment",
|
|
7065
|
+
customer_relationship: "A type of customer relationship",
|
|
7066
|
+
distribution_channel: "A channel for delivering value to customers",
|
|
7067
|
+
// Go-To-Market
|
|
7068
|
+
gtm_strategy: "A go-to-market strategy",
|
|
7069
|
+
ideal_customer_profile: "The ideal customer profile (ICP)",
|
|
7070
|
+
positioning: "Product positioning statement",
|
|
7071
|
+
messaging: "Messaging framework and key messages",
|
|
7072
|
+
launch: "A product launch event",
|
|
7073
|
+
content_strategy: "A content strategy for thought leadership",
|
|
7074
|
+
sales_motion: "A repeatable sales motion",
|
|
7075
|
+
competitive_battle_card: "A competitive battle card for sales enablement",
|
|
7076
|
+
demand_gen_program: "A demand generation program",
|
|
7077
|
+
territory: "A sales territory",
|
|
7078
|
+
objection: "A common sales objection",
|
|
7079
|
+
rebuttal: "A rebuttal to a sales objection",
|
|
7080
|
+
proof_point: "Evidence supporting a sales claim",
|
|
7081
|
+
// Team & Organisation
|
|
7082
|
+
team: "A cross-functional team",
|
|
7083
|
+
role: "A role within a team",
|
|
7084
|
+
stakeholder: "A person with influence over the product",
|
|
7085
|
+
team_okr: "A team-level OKR",
|
|
7086
|
+
retrospective: "A team retrospective",
|
|
7087
|
+
dependency: "A cross-team or system dependency",
|
|
7088
|
+
department: "An organisational department",
|
|
7089
|
+
skill: "A skill or competency within a team",
|
|
7090
|
+
ceremony: "A recurring team ritual (standup, planning)",
|
|
7091
|
+
capacity_plan: "A plan for allocating team capacity",
|
|
7092
|
+
person: "A named individual (owner, stakeholder, or participant) referenced across the graph",
|
|
7093
|
+
// Data & Analytics
|
|
7094
|
+
data_source: "A data source or integration",
|
|
7095
|
+
event_schema: "An event schema for tracking",
|
|
7096
|
+
dashboard: "An analytics dashboard",
|
|
7097
|
+
data_model: "A data model or schema",
|
|
7098
|
+
data_quality_rule: "A data quality validation rule",
|
|
7099
|
+
data_product: "A curated, reusable data asset",
|
|
7100
|
+
data_pipeline: "An automated pipeline for data transformation",
|
|
7101
|
+
data_lineage: "A record of data origin and transformations",
|
|
7102
|
+
glossary_term: "A defined term for shared understanding",
|
|
7103
|
+
data_domain: "A logical grouping of related data assets",
|
|
7104
|
+
report: "A structured analytical report",
|
|
7105
|
+
// Customer Success
|
|
7106
|
+
support_ticket: "Customer support request or issue",
|
|
7107
|
+
customer_feedback: "Voice-of-customer input",
|
|
7108
|
+
churn_reason: "Why a customer left",
|
|
7109
|
+
customer_health_score: "A composite health score for a customer",
|
|
7110
|
+
playbook: "A standard operating procedure for CS",
|
|
7111
|
+
service_level_agreement: "A service level agreement with customers",
|
|
7112
|
+
customer_journey_stage: "A stage in the post-sale customer journey",
|
|
7113
|
+
touchpoint: "A customer interaction touchpoint",
|
|
7114
|
+
success_milestone: "A customer success milestone",
|
|
7115
|
+
service_blueprint: "A blueprint of the full service delivery",
|
|
7116
|
+
// Content & Knowledge
|
|
7117
|
+
content_piece: "A piece of content (article, video, etc.)",
|
|
7118
|
+
knowledge_base_article: "A knowledge base article",
|
|
7119
|
+
brand_asset: "A brand asset (logo, image, etc.)",
|
|
7120
|
+
internal_doc: "An internal documentation page",
|
|
7121
|
+
prompt_template: "A reusable prompt template",
|
|
7122
|
+
content_calendar: "A content publication calendar",
|
|
7123
|
+
content_theme: "A thematic grouping for content",
|
|
7124
|
+
documentation_template: "A template for documentation",
|
|
7125
|
+
document: "A general-purpose document",
|
|
7126
|
+
// Legal
|
|
7127
|
+
legal_entity: "A legal entity (company, subsidiary)",
|
|
7128
|
+
ip_asset: "An intellectual property asset",
|
|
7129
|
+
contract: "A legal contract",
|
|
7130
|
+
contract_clause: "A clause within a contract",
|
|
7131
|
+
privacy_policy: "A privacy policy",
|
|
7132
|
+
// Compliance
|
|
7133
|
+
compliance_requirement: "A compliance requirement",
|
|
7134
|
+
risk: "A risk to the product or business",
|
|
7135
|
+
data_contract: "A data-sharing contract",
|
|
7136
|
+
audit_log_policy: "An audit logging policy",
|
|
7137
|
+
compliance_framework: "A compliance framework (SOC 2, GDPR, etc.)",
|
|
7138
|
+
security_audit: "A security audit",
|
|
7139
|
+
// DevOps & Platform
|
|
7140
|
+
service_level_indicator: "A service level indicator (SLI)",
|
|
7141
|
+
service_level_objective: "A service level objective (SLO)",
|
|
7142
|
+
error_budget: "An error budget for a service",
|
|
7143
|
+
incident: "A production incident",
|
|
7144
|
+
postmortem: "A post-incident review",
|
|
7145
|
+
runbook: "A runbook for incident response",
|
|
7146
|
+
monitor: "A monitoring check",
|
|
7147
|
+
alert_rule: "An alerting rule",
|
|
7148
|
+
ci_pipeline: "A CI/CD pipeline",
|
|
7149
|
+
release_strategy: "A release strategy (canary, blue-green, etc.)",
|
|
7150
|
+
on_call_rotation: "An on-call rotation schedule",
|
|
7151
|
+
infrastructure_component: "An infrastructure component (server, CDN, etc.)",
|
|
7152
|
+
// Security
|
|
7153
|
+
threat_model: "A threat model for the system",
|
|
7154
|
+
threat: "A specific security threat",
|
|
7155
|
+
vulnerability: "A known vulnerability",
|
|
7156
|
+
security_control: "A security control or mitigation",
|
|
7157
|
+
security_policy: "A security policy",
|
|
7158
|
+
penetration_test: "A penetration test",
|
|
7159
|
+
security_review: "A security review",
|
|
7160
|
+
data_classification: "A data classification level",
|
|
7161
|
+
access_policy: "An access control policy",
|
|
7162
|
+
// Accessibility
|
|
7163
|
+
a11y_standard: "An accessibility standard (WCAG, Section 508)",
|
|
7164
|
+
a11y_guideline: "An accessibility guideline",
|
|
7165
|
+
a11y_audit: "An accessibility audit",
|
|
7166
|
+
a11y_issue: "An accessibility issue",
|
|
7167
|
+
a11y_annotation: "An accessibility annotation on a design",
|
|
7168
|
+
// Quality Assurance
|
|
7169
|
+
test_suite: "A suite of related tests",
|
|
7170
|
+
test_case: "An individual test case",
|
|
7171
|
+
qa_session: "An exploratory QA session",
|
|
7172
|
+
regression_test: "A regression test",
|
|
7173
|
+
test_coverage_report: "A test coverage report",
|
|
7174
|
+
test_environment: "A testing environment",
|
|
7175
|
+
test_result: "A test execution result",
|
|
7176
|
+
// Customer Feedback
|
|
7177
|
+
feedback_program: "A structured feedback collection program",
|
|
7178
|
+
feature_request: "A user-submitted feature request",
|
|
7179
|
+
feedback_vote: "A vote on a feature request or feedback item",
|
|
7180
|
+
nps_campaign: "A Net Promoter Score survey campaign",
|
|
7181
|
+
user_advisory_board: "A panel of users providing ongoing feedback",
|
|
7182
|
+
beta_program: "A beta testing program",
|
|
7183
|
+
feedback_theme: "A recurring theme across feedback items",
|
|
7184
|
+
// Pricing & Packaging
|
|
7185
|
+
pricing_strategy: "An overarching pricing strategy",
|
|
7186
|
+
package: "A bundled package of features at a price point",
|
|
7187
|
+
discount_strategy: "A strategy for offering discounts",
|
|
7188
|
+
trial_config: "Configuration for a free trial",
|
|
7189
|
+
paywall: "A paywall gating premium features",
|
|
7190
|
+
// AI & Machine Learning
|
|
7191
|
+
ai_model: "An AI or ML model used within the product",
|
|
7192
|
+
prompt_version: "A version of a prompt template",
|
|
7193
|
+
eval_benchmark: "A benchmark for evaluating AI quality",
|
|
7194
|
+
eval_run: "An evaluation run against a benchmark",
|
|
7195
|
+
ai_cost_tracker: "A tracker for AI inference costs",
|
|
7196
|
+
hallucination_report: "A report of an AI hallucination",
|
|
7197
|
+
ai_guardrail: "A guardrail for AI safety",
|
|
7198
|
+
model_comparison: "A comparison between AI models",
|
|
7199
|
+
ai_experiment: "An AI-focused experiment",
|
|
7200
|
+
ai_dataset: "A dataset for AI training or evaluation",
|
|
7201
|
+
ai_trace: "An AI inference trace",
|
|
7202
|
+
// Workflows & Agents
|
|
7203
|
+
workflow_template: "A reusable workflow template",
|
|
7204
|
+
workflow_run: "An execution of a workflow",
|
|
7205
|
+
agent_definition: "An autonomous agent definition",
|
|
7206
|
+
agent_session: "An agent working session",
|
|
7207
|
+
review_gate: "A human review checkpoint in a workflow",
|
|
7208
|
+
approval_record: "A record of an approval decision",
|
|
7209
|
+
agent_skill: "A capability of an agent",
|
|
7210
|
+
agent_hook: "A trigger connecting an agent to an event",
|
|
7211
|
+
workflow_artifact: "An output artifact from a workflow run",
|
|
7212
|
+
agent_task: "A discrete unit of agent work",
|
|
7213
|
+
// Portfolio
|
|
7214
|
+
organization: "The top-level organisational entity",
|
|
7215
|
+
portfolio: "A grouping of products by strategic axis",
|
|
7216
|
+
product_area: "A grouping of products by organisational axis",
|
|
7217
|
+
// Sales & Revenue
|
|
7218
|
+
account: "A customer account",
|
|
7219
|
+
contact: "A person within an account",
|
|
7220
|
+
lead: "An inbound lead",
|
|
7221
|
+
deal: "An active sales opportunity",
|
|
7222
|
+
pipeline_sales: "A sales pipeline",
|
|
7223
|
+
pipeline_stage: "A stage in the sales pipeline",
|
|
7224
|
+
quote_document: "A formal quote document",
|
|
7225
|
+
subscription: "A recurring subscription",
|
|
7226
|
+
invoice: "An invoice for billing",
|
|
7227
|
+
forecast: "A revenue forecast",
|
|
7228
|
+
// Program Management
|
|
7229
|
+
program: "A program coordinating multiple projects",
|
|
7230
|
+
project: "A project within a program",
|
|
7231
|
+
milestone: "A key date or achievement",
|
|
7232
|
+
risk_register: "A register of project risks",
|
|
7233
|
+
change_request: "A request to change project scope",
|
|
7234
|
+
deliverable: "A deliverable from a project",
|
|
7235
|
+
resource_allocation: "An allocation of team capacity",
|
|
7236
|
+
status_report: "A project status report",
|
|
7237
|
+
// Marketing
|
|
7238
|
+
marketing_strategy: "A marketing strategy",
|
|
7239
|
+
marketing_channel: "A marketing channel",
|
|
7240
|
+
marketing_campaign_plan: "A marketing campaign plan",
|
|
7241
|
+
email_sequence: "An email nurture sequence",
|
|
7242
|
+
social_post: "A social media post",
|
|
7243
|
+
seo_keyword: "An SEO keyword target",
|
|
7244
|
+
ad_creative: "An ad creative",
|
|
7245
|
+
press_release: "A press release",
|
|
7246
|
+
event: "A marketing event",
|
|
7247
|
+
community_initiative: "A community engagement initiative",
|
|
7248
|
+
// Localisation
|
|
7249
|
+
locale: "A supported locale (language + region)",
|
|
7250
|
+
translation_key: "A translatable string key",
|
|
7251
|
+
translation_bundle: "A bundle of translation keys",
|
|
7252
|
+
locale_config: "Per-locale configuration settings",
|
|
7253
|
+
cultural_adaptation: "A region-specific cultural adaptation",
|
|
7254
|
+
regional_pricing: "Location-based pricing",
|
|
7255
|
+
// Customer Education
|
|
7256
|
+
education_program: "A customer education program",
|
|
7257
|
+
tutorial: "A step-by-step tutorial",
|
|
7258
|
+
walkthrough: "A guided product walkthrough",
|
|
7259
|
+
webinar: "A live or recorded webinar",
|
|
7260
|
+
certification: "A certification program",
|
|
7261
|
+
help_video: "A help video",
|
|
7262
|
+
learning_path: "A structured learning path",
|
|
7263
|
+
// Partners & Ecosystem
|
|
7264
|
+
partner_program: "A partner program",
|
|
7265
|
+
partner_tier: "A partner tier level",
|
|
7266
|
+
api_ecosystem: "An API ecosystem",
|
|
7267
|
+
marketplace_listing: "A marketplace listing",
|
|
7268
|
+
developer_portal: "A developer portal",
|
|
7269
|
+
integration_partner: "An integration partner",
|
|
7270
|
+
partner_revenue_share: "A partner revenue sharing arrangement",
|
|
7271
|
+
// Foundations
|
|
7272
|
+
operating_lifecycle: "A canonical, ordered (often cyclic) operating process a product's journey phases map onto",
|
|
7273
|
+
operating_stage: "One ordered stage of an operating_lifecycle",
|
|
7274
|
+
specification: "A canonical open standard or specification that primitives and products conform to",
|
|
7275
|
+
primitive: "A canonical reusable building block defined by a specification",
|
|
7276
|
+
// Workspace
|
|
7277
|
+
workspace: "A spatial thinking space for arranging entities",
|
|
7278
|
+
framework_exercise: "A recorded run of a product framework (RICE, OST, and the like) over specific entities, holding its inputs and outputs",
|
|
7279
|
+
composition: "A published arrangement of graph entities that has an identity of its own: a gallery, a board, a deck. Membership can be derived by running its query, position is authored by a person, and both are stored because both are real.",
|
|
7280
|
+
capture: "A dated, hashed rendition of something already in the graph: a screenshot of a surface, a PDF of a report, an export of a canvas. The subject stays a graph node; the capture records what it looked like at one moment, and the content hash says whether it still does."
|
|
7281
|
+
});
|
|
7282
|
+
function getEntityDescription(type) {
|
|
7283
|
+
return UPG_ENTITY_DESCRIPTIONS[type];
|
|
7284
|
+
}
|
|
7285
|
+
|
|
6839
7286
|
// src/shapes/base-node.ts
|
|
6840
7287
|
var BASE_NODE_FIELD_PRESENCE = {
|
|
6841
7288
|
id: true,
|
|
@@ -7262,6 +7709,11 @@ var UPG_VALID_CHILDREN = {
|
|
|
7262
7709
|
competitor: ["competitor_feature", "competitor_signal"],
|
|
7263
7710
|
classification_axis: ["classification_value"],
|
|
7264
7711
|
// ── UX Research hierarchy ───────────────────────────────────────────────────
|
|
7712
|
+
// (0.35.0) 'quote' added: a study is the provenance parent of the verbatim
|
|
7713
|
+
// quotes it captured, pairing with `research_study_captures_quote`. A quote
|
|
7714
|
+
// now has three declared parents — observation (raw capture), insight
|
|
7715
|
+
// (synthesis) and research_study (provenance) — which is multi-parent
|
|
7716
|
+
// GRAMMAR; per-instance parentage stays single via `parent_id`.
|
|
7265
7717
|
research_study: [
|
|
7266
7718
|
"participant",
|
|
7267
7719
|
"observation",
|
|
@@ -7269,7 +7721,8 @@ var UPG_VALID_CHILDREN = {
|
|
|
7269
7721
|
"research_question",
|
|
7270
7722
|
"interview_guide",
|
|
7271
7723
|
"insight",
|
|
7272
|
-
"survey_response"
|
|
7724
|
+
"survey_response",
|
|
7725
|
+
"quote"
|
|
7273
7726
|
],
|
|
7274
7727
|
observation: ["quote"],
|
|
7275
7728
|
// F6 (UPG-672): affinity_cluster owns the observations it groups, in addition
|
|
@@ -7326,7 +7779,12 @@ var UPG_VALID_CHILDREN = {
|
|
|
7326
7779
|
// story_task collapsed into canonical task. feature now owns
|
|
7327
7780
|
// task directly; story-derived tasks implement user_story via
|
|
7328
7781
|
// task_implements_user_story edge.
|
|
7329
|
-
|
|
7782
|
+
// (0.35.0) 'user_story' added, pairing with `feature_specified_by_user_story`.
|
|
7783
|
+
// The epic rung is optional in UPG, so a feature that skips it could not
|
|
7784
|
+
// reach the stories that specify it and `user_story` had a single declared
|
|
7785
|
+
// parent. Same widening shape as the 0.23.0 epic twins: an existing leaf type
|
|
7786
|
+
// gains a second, SHALLOWER parent, verbs inherited from the deeper edge.
|
|
7787
|
+
feature: ["epic", "bug", "task", "user_story"],
|
|
7330
7788
|
feature_area: ["feature", "feature_area"],
|
|
7331
7789
|
// epic owns user_story (the templated promise) and, mirroring feature, may
|
|
7332
7790
|
// also directly contain bug/task — heterogeneous imported tickets that belong
|
|
@@ -8112,6 +8570,37 @@ var UPG_SCALES = {
|
|
|
8112
8570
|
// the existing classify-edge population, so nothing needs re-stamping.
|
|
8113
8571
|
friendly_aliases: { low: 2, medium: 3, high: 4 }
|
|
8114
8572
|
},
|
|
8573
|
+
// ── Likelihood ─────────────────────────────────────────────────────────────
|
|
8574
|
+
/**
|
|
8575
|
+
* (0.35.0) How likely a future event is to occur.
|
|
8576
|
+
*
|
|
8577
|
+
* Added because the nine pre-existing ladders had no probability ladder, and
|
|
8578
|
+
* `likelihood` was resolving to `confidence_5` — which is EPISTEMIC. Confidence
|
|
8579
|
+
* says how sure you are of a judgment ("Guessing → Data-backed"); likelihood
|
|
8580
|
+
* says how probable the event is. A risk you are certain about and a risk that
|
|
8581
|
+
* is certain to happen are different facts, and one ladder cannot hold both.
|
|
8582
|
+
*
|
|
8583
|
+
* Vocabulary is ISO 31000's, which is also what `risk.likelihood`,
|
|
8584
|
+
* `threat.likelihood` and the Notion fixtures already say in prose.
|
|
8585
|
+
*
|
|
8586
|
+
* Polarity is `low-is-good` (rendered by the design system's direction map,
|
|
8587
|
+
* which is where numeric-scale polarity lives): 5 on this ladder is bad news.
|
|
8588
|
+
*/
|
|
8589
|
+
likelihood_5: {
|
|
8590
|
+
id: "likelihood_5",
|
|
8591
|
+
label: "Likelihood (5-point)",
|
|
8592
|
+
description: "How likely this event is to occur",
|
|
8593
|
+
min: 1,
|
|
8594
|
+
max: 5,
|
|
8595
|
+
steps: 5,
|
|
8596
|
+
points: [
|
|
8597
|
+
{ value: 1, label: "Rare", description: "Would be surprising; no known precedent" },
|
|
8598
|
+
{ value: 2, label: "Unlikely", description: "Could happen, but not expected" },
|
|
8599
|
+
{ value: 3, label: "Possible", description: "Might happen; roughly even odds" },
|
|
8600
|
+
{ value: 4, label: "Likely", description: "Expected to happen absent intervention" },
|
|
8601
|
+
{ value: 5, label: "Almost certain", description: "Expected to happen; plan for it" }
|
|
8602
|
+
]
|
|
8603
|
+
},
|
|
8115
8604
|
// ── Effort ─────────────────────────────────────────────────────────────────
|
|
8116
8605
|
effort_5: {
|
|
8117
8606
|
id: "effort_5",
|
|
@@ -8184,12 +8673,17 @@ var PROPERTY_SCALE_MAP = {
|
|
|
8184
8673
|
// discovery, validation, sales, product-spec
|
|
8185
8674
|
current_confidence: "confidence_5",
|
|
8186
8675
|
// validation/hypothesis (UPG-579 Option B)
|
|
8187
|
-
likelihood: "confidence_5",
|
|
8188
|
-
// market/risk (UPG-579 Option B)
|
|
8189
8676
|
probability: "confidence_5",
|
|
8190
8677
|
// sales/forecast (UPG-579 Option B)
|
|
8191
8678
|
qualification_score: "confidence_5",
|
|
8192
8679
|
// sales/deal — how confident the qualification is (0.24.0)
|
|
8680
|
+
// ── Likelihood ───────────────────────────────────────────────────────────
|
|
8681
|
+
// (0.35.0) Moved off confidence_5. `likelihood` is how probable the event is,
|
|
8682
|
+
// not how well-evidenced the judgment is; the two were sharing one ladder
|
|
8683
|
+
// because no probability ladder existed. Carries market/risk (`risk`,
|
|
8684
|
+
// `market_trend`) and `security.threat.likelihood` in one line.
|
|
8685
|
+
likelihood: "likelihood_5",
|
|
8686
|
+
// compliance/risk, security/threat, market
|
|
8193
8687
|
// ── Effort ───────────────────────────────────────────────────────────────
|
|
8194
8688
|
effort: "effort_5",
|
|
8195
8689
|
// discovery
|
|
@@ -8219,9 +8713,18 @@ var PROPERTY_SCALE_MAP = {
|
|
|
8219
8713
|
// rarity : VRIO distinctiveness; no canonical named scale fits.
|
|
8220
8714
|
// strength : deprecated (validation/evidence; superseded by weight).
|
|
8221
8715
|
};
|
|
8716
|
+
var PROPERTY_SCALE_MAP_BY_ENTITY = {
|
|
8717
|
+
risk: {
|
|
8718
|
+
// Severity of consequences, not magnitude of benefit. See above.
|
|
8719
|
+
impact: "severity_5",
|
|
8720
|
+
// The DEPRECATED spelling of `likelihood`, held on the same ladder as its
|
|
8721
|
+
// replacement for the length of the deprecation window. See above.
|
|
8722
|
+
probability: "likelihood_5"
|
|
8723
|
+
}
|
|
8724
|
+
};
|
|
8222
8725
|
var DEFAULT_SCALE_ID = "scale_5";
|
|
8223
|
-
function getPropertyDefaultScale(
|
|
8224
|
-
return PROPERTY_SCALE_MAP[propertyName] ?? DEFAULT_SCALE_ID;
|
|
8726
|
+
function getPropertyDefaultScale(entityType, propertyName) {
|
|
8727
|
+
return PROPERTY_SCALE_MAP_BY_ENTITY[entityType]?.[propertyName] ?? PROPERTY_SCALE_MAP[propertyName] ?? DEFAULT_SCALE_ID;
|
|
8225
8728
|
}
|
|
8226
8729
|
function getPropertiesForScale(scaleId) {
|
|
8227
8730
|
return Object.entries(PROPERTY_SCALE_MAP).filter(([, id]) => id === scaleId).map(([property]) => property);
|
|
@@ -8312,6 +8815,29 @@ var UPG_ENUM_SCALES = {
|
|
|
8312
8815
|
{ value: "guideline", label: "Guideline", description: "Recommendation: encouraged and expected in most cases, but not enforced." }
|
|
8313
8816
|
]
|
|
8314
8817
|
},
|
|
8818
|
+
// ── EngagementPosture ────────────────────────────────────────────────
|
|
8819
|
+
/**
|
|
8820
|
+
* (0.35.0) The third axis of stakeholder canon, beside the power/interest
|
|
8821
|
+
* grid `influence` / `interest` carry. Those two say how much weight a
|
|
8822
|
+
* stakeholder has and how much they care; neither says which WAY they lean,
|
|
8823
|
+
* and "who blocks this?" is the question a stakeholder map is drawn to answer.
|
|
8824
|
+
*
|
|
8825
|
+
* `tone_direction: 'high-is-good'` reading champion → blocker: the first
|
|
8826
|
+
* value is the desirable end, matching HealthStatus's convention.
|
|
8827
|
+
*/
|
|
8828
|
+
EngagementPosture: {
|
|
8829
|
+
id: "EngagementPosture",
|
|
8830
|
+
label: "Engagement posture",
|
|
8831
|
+
description: "Which way a stakeholder leans on the thing at hand: actively for it, against it, or neither.",
|
|
8832
|
+
tone_direction: "high-is-good",
|
|
8833
|
+
values: [
|
|
8834
|
+
{ value: "champion", label: "Champion", description: "Actively advocates for it and spends their own capital doing so." },
|
|
8835
|
+
{ value: "supporter", label: "Supporter", description: "In favour and will say so when asked, but does not drive it." },
|
|
8836
|
+
{ value: "neutral", label: "Neutral", description: "No position taken; neither helps nor hinders." },
|
|
8837
|
+
{ value: "skeptic", label: "Skeptic", description: "Unconvinced and voices objections, but is not blocking." },
|
|
8838
|
+
{ value: "blocker", label: "Blocker", description: "Actively opposes, and holds enough leverage to stop it." }
|
|
8839
|
+
]
|
|
8840
|
+
},
|
|
8315
8841
|
// ── ProxyConfidence ─────────────────────────────────────────────────
|
|
8316
8842
|
ProxyConfidence: {
|
|
8317
8843
|
id: "ProxyConfidence",
|
|
@@ -8824,6 +9350,62 @@ function getDeprecatedTypes() {
|
|
|
8824
9350
|
return deprecated;
|
|
8825
9351
|
}
|
|
8826
9352
|
var UPG_PROPERTY_MIGRATIONS = {
|
|
9353
|
+
// ── v0.35.0: risk.probability → risk.likelihood, STAGED ─────────────────────
|
|
9354
|
+
//
|
|
9355
|
+
// Deliberately EMPTY, and the emptiness is the design rather than an omission.
|
|
9356
|
+
// The rename is staged: `RiskProperties.probability` is kept, marked
|
|
9357
|
+
// `@deprecated since="0.35.0" removeIn="1.0.0"`, and still read. 0.35.0 changes
|
|
9358
|
+
// what writers emit (`likelihood`) and what readers prefer; it changes no
|
|
9359
|
+
// stored bytes, so there is nothing for a load-time rule to do. A graph
|
|
9360
|
+
// written before 0.35.0 carries `probability` and no `likelihood` and reads
|
|
9361
|
+
// correctly — which is what staging BUYS, and a rule here would spend it.
|
|
9362
|
+
//
|
|
9363
|
+
// Three reasons there is no executable rule, in order of weight:
|
|
9364
|
+
//
|
|
9365
|
+
// 1. A staged deprecation that rewrites data is not staged. The point of the
|
|
9366
|
+
// `epic.estimate` → `effort` pattern this follows is that both names live
|
|
9367
|
+
// through the window and the consumer chooses; migrating the key on load
|
|
9368
|
+
// would end the window on the first read and break any reader still
|
|
9369
|
+
// asking for the old name.
|
|
9370
|
+
// 2. The executable step belongs at the REMOVAL version, not here. That is
|
|
9371
|
+
// the two-step the `removeIn="0.5.0"` properties followed: declared
|
|
9372
|
+
// deprecated with a deadline at 0.4.0, dropped by `drop_props` rules in
|
|
9373
|
+
// the '0.5.0' block below. `probability` is scheduled for the same
|
|
9374
|
+
// treatment at 1.0.0.
|
|
9375
|
+
// 3. No kind fits, and inventing one would be the larger change. Checked
|
|
9376
|
+
// against the APPLIER, not just the type union:
|
|
9377
|
+
// - `drop_props` deletes, which is the 1.0.0 step, not this one.
|
|
9378
|
+
// - `lift_property_to_top_level` targets `UPGBaseNode`, and `likelihood`
|
|
9379
|
+
// is a property, not a top-level field.
|
|
9380
|
+
// - `rename_top_level` renames a top-level field, same mismatch.
|
|
9381
|
+
// - `remap_property_value` is the near miss and still misses twice: it
|
|
9382
|
+
// `break`s unless `typeof oldValue === 'string'` (these values are
|
|
9383
|
+
// `UPGAssessment` objects, or bare numbers in older graphs), and its
|
|
9384
|
+
// `to_property` split OVERWRITES the source with `reset_value`, which
|
|
9385
|
+
// is precisely the staging this release is buying.
|
|
9386
|
+
// - `reshape_value_to_assessment` wraps a bare number on a named scale;
|
|
9387
|
+
// it does not move a key.
|
|
9388
|
+
// The edge-side `kind: 'rename'` (UPG_EDGE_MIGRATIONS, e.g. 0.8.0's
|
|
9389
|
+
// `theme_groups_feature` -> `roadmap_theme_groups_feature`) renames an
|
|
9390
|
+
// EDGE TYPE across instances and has no property-key analogue. Adding one
|
|
9391
|
+
// is new spec surface: a ratified decision, not a side effect of one
|
|
9392
|
+
// property rename.
|
|
9393
|
+
//
|
|
9394
|
+
// The scale moves ride along and need no rule either. `PROPERTY_SCALE_MAP`
|
|
9395
|
+
// resolves `likelihood` to `likelihood_5` (which carries `threat.likelihood`
|
|
9396
|
+
// off `confidence_5` in the same line, since the map is keyed by name) and
|
|
9397
|
+
// `PROPERTY_SCALE_MAP_BY_ENTITY` resolves `risk.impact` to `severity_5`. Both
|
|
9398
|
+
// resolve at READ time, and an assessment only overrides them by PINNING a
|
|
9399
|
+
// `scale_id` on the stored value. Measured across all 36 `.upg` files in the
|
|
9400
|
+
// repo: zero assessments pin a `scale_id` on `likelihood`, `probability` or
|
|
9401
|
+
// `impact`, so there is nothing stamped to re-stamp. One that does pin a
|
|
9402
|
+
// `scale_id` keeps it, by the existing contract.
|
|
9403
|
+
//
|
|
9404
|
+
// What lands at 1.0.0, written down now so it is not rediscovered:
|
|
9405
|
+
// { kind: 'drop_props', type: 'risk', drop_props: ['probability'],
|
|
9406
|
+
// reason: '1.0.0: risk.probability was @deprecated since 0.35.0 with
|
|
9407
|
+
// removeIn="1.0.0"; superseded by `likelihood` on likelihood_5.' }
|
|
9408
|
+
"0.35.0": [],
|
|
8827
9409
|
"0.32.0": [
|
|
8828
9410
|
// C3 — archive becomes a base-node axis. WorkspaceProperties.archived /
|
|
8829
9411
|
// archived_at shipped the orthogonal-archive idea for exactly one type;
|
|
@@ -14228,10 +14810,23 @@ var UPG_PROPERTY_SCHEMA = {
|
|
|
14228
14810
|
// RiskProperties: Risk.
|
|
14229
14811
|
risk: {
|
|
14230
14812
|
risk_type: { type: "string", enum: ["technical", "business", "legal", "security", "operational", "program"], description: "Domain the risk belongs to. The single kind axis for `risk`: there is no second classification vocabulary. `program` added in v0.26.0 so the retired `risk_item` (Program Management) type has a home on the canonical `risk` after consolidation, rather than a parallel `risk_domain` field free to drift from this one." },
|
|
14813
|
+
likelihood: {
|
|
14814
|
+
type: "assessment",
|
|
14815
|
+
scale_id: "likelihood_5",
|
|
14816
|
+
description: "How likely this risk is to materialise. Rated on `likelihood_5` (Rare \u2192 Almost certain).",
|
|
14817
|
+
notes: 'Canonical name since 0.35.0, superseding `probability` below. Three reasons, in order of weight. (1) `probability` was one name for two incompatible types (`UPGAssessment` here, a bare `number` on `forecast.probability`), and `PROPERTY_SCALE_MAP` is keyed by name alone, so a sales percentage and a risk judgment resolved to the same ladder. (2) `likelihood` is already the spec\'s own word: the RISK_ITEM lifecycle prose says "Likelihood and impact have been evaluated", and `threat.likelihood` has been a `UPGAssessment` all along: one name, one type, one ladder. (3) ISO 31000 says likelihood. The ladder moved with the name: `likelihood_5` is new in 0.35.0 because no probability ladder existed and `confidence_5` is epistemic. It says how sure the assessor is, not how likely the event is.',
|
|
14818
|
+
properties: {
|
|
14819
|
+
value: { type: "number", description: "The numeric value, used for computation." },
|
|
14820
|
+
label: { type: "string", description: "The qualitative label (what the assessor meant)." },
|
|
14821
|
+
scale_id: { type: "string", description: "Which assessment scale this was rated on (optional)." },
|
|
14822
|
+
normalized: { type: "number", description: "Normalized 0-1 value for cross-tool comparison (optional)." }
|
|
14823
|
+
},
|
|
14824
|
+
required: ["value", "label"]
|
|
14825
|
+
},
|
|
14231
14826
|
probability: {
|
|
14232
14827
|
type: "assessment",
|
|
14233
|
-
scale_id: "
|
|
14234
|
-
description:
|
|
14828
|
+
scale_id: "likelihood_5",
|
|
14829
|
+
description: 'How likely this risk is to materialise (1 = unlikely, 5 = near certain). @deprecated since="0.35.0" removeIn="1.0.0". Use `likelihood`, which is the spec\'s own word for this in the risk lifecycle and on `threat`. Both names resolve to the same `likelihood_5` ladder for the length of the deprecation window (`PROPERTY_SCALE_MAP_BY_ENTITY.risk.probability`, Captain-ratified 2026-08-22): a deprecated field that renders on a DIFFERENT ladder from its replacement would make one stored 4 read "Confident" under the old name and "Likely" under the new one, which is the data changing meaning at the rename, which is the exact thing staging exists to prevent. `forecast.probability` is untouched and stays on `confidence_5`. STAGED, not renamed. The field is KEPT and still read: 0.35.0 changes what writers emit and what readers prefer, and changes NO stored bytes. A graph written before 0.35.0 carries `probability` and no `likelihood`, and reads correctly, which is the whole point of staging it. Writers: emit `likelihood`. Readers: prefer `likelihood`, fall back to `probability`. The fallback is a CONTRACT on consumers, not executable spec machinery, exactly as it is for `epic.estimate` \u2192 `effort`. `removeIn="1.0.0"` is a deadline, not a wish: at 1.0.0 this field is dropped by a `drop_props` rule in `UPG_PROPERTY_MIGRATIONS`, the same two-step the `removeIn="0.5.0"` properties followed (declared at 0.4.0, dropped by the 0.5.0 rules). Until then there is deliberately no executable rule: see the `\'0.35.0\'` block in `grammar/migrations.ts`.',
|
|
14235
14830
|
properties: {
|
|
14236
14831
|
value: { type: "number", description: "The numeric value, used for computation." },
|
|
14237
14832
|
label: { type: "string", description: "The qualitative label (what the assessor meant)." },
|
|
@@ -14242,8 +14837,9 @@ var UPG_PROPERTY_SCHEMA = {
|
|
|
14242
14837
|
},
|
|
14243
14838
|
impact: {
|
|
14244
14839
|
type: "assessment",
|
|
14245
|
-
scale_id: "
|
|
14246
|
-
description: "Severity of consequences if the risk materialises (
|
|
14840
|
+
scale_id: "severity_5",
|
|
14841
|
+
description: "Severity of consequences if the risk materialises. Rated on `severity_5` (Mild inconvenience \u2192 Blocker), NOT the benefit-framed `impact_5`.",
|
|
14842
|
+
notes: "The ladder is set by `PROPERTY_SCALE_MAP_BY_ENTITY.risk.impact` (0.35.0), the per-entity override layer. `impact` legitimately means magnitude of BENEFIT on discovery and market entities, where high is good; on a risk it means severity of harm, where high is bad. Sharing `impact_5` rendered a catastrophic risk green.",
|
|
14247
14843
|
properties: {
|
|
14248
14844
|
value: { type: "number", description: "The numeric value, used for computation." },
|
|
14249
14845
|
label: { type: "string", description: "The qualitative label (what the assessor meant)." },
|
|
@@ -14252,7 +14848,7 @@ var UPG_PROPERTY_SCHEMA = {
|
|
|
14252
14848
|
},
|
|
14253
14849
|
required: ["value", "label"]
|
|
14254
14850
|
},
|
|
14255
|
-
mitigation: { type: "string", description: "Planned or implemented mitigation strategy" }
|
|
14851
|
+
mitigation: { type: "string", description: "Planned or implemented mitigation strategy, as prose.", notes: "Prose only. A structured list of mitigating ACTIONS is a set of edges: `risk_mitigated_by_node` (0.35.0), pointing at the decisions, features and experiments that actually do the mitigating; a string array of them is unqueryable by construction. Likewise, what the risk puts at stake is `risk_threatens_node`, not a scope-list property." }
|
|
14256
14852
|
},
|
|
14257
14853
|
// RiskRegisterProperties: Risk register.
|
|
14258
14854
|
risk_register: {
|
|
@@ -14506,7 +15102,9 @@ var UPG_PROPERTY_SCHEMA = {
|
|
|
14506
15102
|
normalized: { type: "number", description: "Normalized 0-1 value for cross-tool comparison (optional)." }
|
|
14507
15103
|
},
|
|
14508
15104
|
required: ["value", "label"]
|
|
14509
|
-
}
|
|
15105
|
+
},
|
|
15106
|
+
engagement_posture: { type: "string", enum: ["champion", "supporter", "neutral", "skeptic", "blocker"], description: "Which way this stakeholder leans: actively for, actively against, or neither. The third axis of the stakeholder model (0.35.0), beside the power/interest grid `influence` and `interest` describe.", notes: "`influence` and `interest` are magnitudes and carry no direction: a high-influence, high-interest stakeholder can be the strongest champion or the one who kills it, and the grid renders them identically. This closed enum is what makes \"who blocks this?\" a query rather than a reading exercise. Pairs with `UPG_ENUM_SCALES.EngagementPosture`. Posture is about the person's stance; it is NOT delivery health, which belongs to work items, and NOT the relationship's operational state." },
|
|
15107
|
+
engagement_cadence: { type: "string", enum: ["continuous", "hourly", "daily", "weekly", "monthly", "quarterly", "yearly", "on_demand", "other"], description: "How often this stakeholder is engaged. Uses the shared `Cadence` scale.", notes: 'Typed as `Cadence` rather than free text on purpose: v0.4.0 introduced that enum precisely to retire strings like `"2x/week"`, and a cadence that cannot be compared across stakeholders cannot answer "who have we not spoken to this quarter?". WHERE you meet them (the channel) is an app-level concern and is deliberately not modelled here.' }
|
|
14510
15108
|
},
|
|
14511
15109
|
// StatusReportProperties: Status report.
|
|
14512
15110
|
status_report: {
|
|
@@ -14764,7 +15362,7 @@ var UPG_PROPERTY_SCHEMA = {
|
|
|
14764
15362
|
category: { type: "string", description: 'Attack or threat scenario. @example "injection", "misconfiguration", "social engineering", "supply chain"' },
|
|
14765
15363
|
likelihood: {
|
|
14766
15364
|
type: "assessment",
|
|
14767
|
-
scale_id: "
|
|
15365
|
+
scale_id: "likelihood_5",
|
|
14768
15366
|
description: "Likelihood (1 = theoretical, 5 = actively exploited). @example value 5 for a known, exploitable, commonly targeted pattern",
|
|
14769
15367
|
properties: {
|
|
14770
15368
|
value: { type: "number", description: "The numeric value, used for computation." },
|
|
@@ -21749,10 +22347,16 @@ function validateUPGDocument(doc) {
|
|
|
21749
22347
|
}
|
|
21750
22348
|
const d = doc;
|
|
21751
22349
|
if (!d.upg_version || typeof d.upg_version !== "string") {
|
|
21752
|
-
errors.push({
|
|
22350
|
+
errors.push({
|
|
22351
|
+
path: "$upg.spec_version",
|
|
22352
|
+
message: "spec_version is required and must be a string"
|
|
22353
|
+
});
|
|
21753
22354
|
}
|
|
21754
22355
|
if (!d.exported_at || typeof d.exported_at !== "string") {
|
|
21755
|
-
errors.push({
|
|
22356
|
+
errors.push({
|
|
22357
|
+
path: "$upg.provenance.exported_at",
|
|
22358
|
+
message: "provenance.exported_at is required and must be an ISO 8601 string"
|
|
22359
|
+
});
|
|
21756
22360
|
}
|
|
21757
22361
|
if (!d.source || typeof d.source !== "object") {
|
|
21758
22362
|
errors.push({ path: "$.source", message: "source is required and must be an object" });
|
|
@@ -33520,7 +34124,7 @@ function checkHeaderSealText(text) {
|
|
|
33520
34124
|
}
|
|
33521
34125
|
|
|
33522
34126
|
// src/index.ts
|
|
33523
|
-
var UPG_VERSION = "0.
|
|
34127
|
+
var UPG_VERSION = "0.35.0";
|
|
33524
34128
|
var UPG_FORMAT_VERSION = "0.4.0";
|
|
33525
34129
|
var MARKDOWN_FORMAT_VERSION = "0.1";
|
|
33526
34130
|
var UPG_TYPES = getTypes();
|
|
@@ -33623,6 +34227,7 @@ var UPG_PHASE_COUNT = (() => {
|
|
|
33623
34227
|
PROPERTY_MODIFIERS,
|
|
33624
34228
|
PROPERTY_MODIFIER_SEMANTICS,
|
|
33625
34229
|
PROPERTY_SCALE_MAP,
|
|
34230
|
+
PROPERTY_SCALE_MAP_BY_ENTITY,
|
|
33626
34231
|
QUALIFIABLE_EDGE_TYPES,
|
|
33627
34232
|
RECORD_ENTITY_TYPES,
|
|
33628
34233
|
REFLECT_MODES,
|
|
@@ -33659,6 +34264,7 @@ var UPG_PHASE_COUNT = (() => {
|
|
|
33659
34264
|
UPG_EDGE_PAIR_MAP,
|
|
33660
34265
|
UPG_EDGE_TYPES,
|
|
33661
34266
|
UPG_ENTITY_COUNT,
|
|
34267
|
+
UPG_ENTITY_DESCRIPTIONS,
|
|
33662
34268
|
UPG_ENTITY_FILTER_SPECS,
|
|
33663
34269
|
UPG_ENTITY_META,
|
|
33664
34270
|
UPG_ENTITY_META_BY_ID,
|
|
@@ -33760,6 +34366,7 @@ var UPG_PHASE_COUNT = (() => {
|
|
|
33760
34366
|
getDomainIdForType,
|
|
33761
34367
|
getDomainsInRing,
|
|
33762
34368
|
getEdgePropertySchema,
|
|
34369
|
+
getEntityDescription,
|
|
33763
34370
|
getEntityModifierSummary,
|
|
33764
34371
|
getEnumScale,
|
|
33765
34372
|
getEnumValueMeta,
|