arkaik 0.12.0 → 0.14.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/dist/io.js CHANGED
@@ -15189,12 +15189,12 @@ var WeighingCriteriaSetSchema = external_exports.object({
15189
15189
  criteria: documented(external_exports.array(documented(WeighingCriterionSchema))).optional(),
15190
15190
  role: leaf("positioning marks the set a project writes about itself."),
15191
15191
  status: leaf("Absent or active is active; anything else is a draft, which feeds no roll-up."),
15192
- extends: leaf("A positioning's ruler, e.g. value-contribution@1.")
15192
+ extends: leaf("A positioning's ruler, e.g. value-contribution@2.")
15193
15193
  }).catchall(external_exports.unknown()).meta({ id: "WeighingCriteriaSet", description: "A versioned list of criteria for one kind of subject. The 30 elements of value are one; a positioning is another." });
15194
15194
  var WeighingMatrixSchema = external_exports.object({
15195
15195
  id: leaf("The matrix's id."),
15196
15196
  title: leaf("A human title."),
15197
- set: leaf("The set's id and major, e.g. value-contribution@1."),
15197
+ set: leaf("The set's id and major, e.g. value-contribution@2."),
15198
15198
  subjects: documented(
15199
15199
  external_exports.object({ kind: leaf("query or list."), species: leaf("For a query: the species judged."), items: leaf("For a list: the subjects.") }).catchall(external_exports.unknown())
15200
15200
  ).optional().meta({ description: "What the matrix judges: { kind: query, species } or { kind: list, items }." }),
@@ -15218,6 +15218,8 @@ var WeighingAssessmentSchema = external_exports.object({
15218
15218
  refs: leaf("Ids cited: nodes, journal events, findings."),
15219
15219
  basis: documented(WeighingAssessmentBasisSchema).optional().meta({ description: "What the scorer was looking at, so a re-read can tell the score went stale." }),
15220
15220
  run: leaf("The audit or plan the score belongs to."),
15221
+ p_serves: leaf("Optional: a probabilistic scorer's certainty (0 to 1) that the subject serves the element. Certainty, not size. Any value parses; the validator warns on one outside 0..1."),
15222
+ p_costs: leaf("Optional: the same for costs, asked independently, so both can be high."),
15221
15223
  ts: leaf("ISO 8601.")
15222
15224
  }).catchall(external_exports.unknown()).meta({ id: "WeighingAssessment", description: "One (matrix \xD7 subject \xD7 criterion) judgement \u2014 latest per scorer kind wins; history lives in the journal." });
15223
15225
  var WeighingSectionSchema = external_exports.object({
@@ -15431,7 +15433,9 @@ var WeighingAssessmentRecordedEventSchema = external_exports.object({
15431
15433
  evidence: external_exports.string().optional(),
15432
15434
  refs: external_exports.array(external_exports.string()).optional(),
15433
15435
  basis: WeighingAssessmentBasisSchema.optional(),
15434
- run: external_exports.string().optional()
15436
+ run: external_exports.string().optional(),
15437
+ p_serves: external_exports.number().min(0).max(1).optional(),
15438
+ p_costs: external_exports.number().min(0).max(1).optional()
15435
15439
  }).catchall(external_exports.unknown());
15436
15440
  var WeighingSetSavedEventSchema = external_exports.object({ ...envelope, type: external_exports.literal("weighing.set.saved"), set: WeighingCriteriaSetSchema }).catchall(external_exports.unknown());
15437
15441
  var JOURNAL_EVENT_SCHEMAS = {
@@ -15940,6 +15944,253 @@ function isBuiltInMapId(id) {
15940
15944
  return BUILT_IN_MAP_IDS.includes(id);
15941
15945
  }
15942
15946
 
15947
+ // ../schema/src/weighing-ladders.ts
15948
+ var LADDERS = {
15949
+ "saves-time": {
15950
+ "-3": "Takes hours out of the person's life.",
15951
+ "-2": "Costs the person time on tasks they do regularly in this domain.",
15952
+ "-1": "Costs the person a little time on one task inside the product.",
15953
+ "1": "Saves a little time on one task inside the product.",
15954
+ "2": "Saves time on tasks the person does regularly in this domain.",
15955
+ "3": "Gives the person back hours of their life, the way online banking replaced trips to the bank."
15956
+ },
15957
+ simplifies: {
15958
+ "-3": "Makes a part of the person's life confusing or hard to manage.",
15959
+ "-2": "Makes a whole task in this domain clearly more complicated.",
15960
+ "-1": "Adds a step or a choice inside the product.",
15961
+ "1": "Removes a step or a choice inside the product.",
15962
+ "2": "Makes a whole task in this domain clearly simpler.",
15963
+ "3": "Makes a complicated part of the person's life simple, the way a single search box replaced browsing directories."
15964
+ },
15965
+ "makes-money": {
15966
+ "-3": "Costs the person a meaningful part of their income.",
15967
+ "-2": "Cuts a regular way the person earns in this domain.",
15968
+ "-1": "Makes earning slightly harder or costs the person a little income.",
15969
+ "1": "Helps the person earn a little, or makes earning slightly easier.",
15970
+ "2": "Gives the person a regular way to earn in this domain.",
15971
+ "3": "Provides a meaningful part of the person's income."
15972
+ },
15973
+ "reduces-risk": {
15974
+ "-3": "Exposes the person to a major loss in their life.",
15975
+ "-2": "Exposes the person to a serious loss or error in this domain.",
15976
+ "-1": "Exposes the person to a small mistake or loss inside the product.",
15977
+ "1": "Guards against a small mistake or loss inside the product.",
15978
+ "2": "Protects against a serious loss or error in this domain.",
15979
+ "3": "Protects against a major loss in the person's life, the way insurance or a full backup does."
15980
+ },
15981
+ organizes: {
15982
+ "-3": "Brings disorder to a large part of the person's life.",
15983
+ "-2": "Makes things in this domain hard to keep in order or to find.",
15984
+ "-1": "Leaves a few things in disorder inside the product.",
15985
+ "1": "Keeps a few things in order inside the product.",
15986
+ "2": "Keeps everything in this domain in order and easy to find.",
15987
+ "3": "Brings order to a large part of the person's life, the way a calendar does."
15988
+ },
15989
+ integrates: {
15990
+ "-3": "Pulls separate parts of the person's life further apart.",
15991
+ "-2": "Splits apart the several tools the person uses in this domain.",
15992
+ "-1": "Cuts the product off from one other tool the person uses.",
15993
+ "1": "Connects the product to one other tool the person uses.",
15994
+ "2": "Ties together the several tools the person uses in this domain.",
15995
+ "3": "Makes separate parts of the person's life work together as one."
15996
+ },
15997
+ connects: {
15998
+ "-3": "Separates the person from the people who matter most in their life.",
15999
+ "-2": "Makes it harder to build or keep relationships in this domain.",
16000
+ "-1": "Gets in the way of reaching someone through the product.",
16001
+ "1": "Lets the person reach someone through the product.",
16002
+ "2": "Helps the person build and keep relationships in this domain.",
16003
+ "3": "Brings the person together with the people who matter most in their life."
16004
+ },
16005
+ "reduces-effort": {
16006
+ "-3": "Puts a heavy burden of work on the person's life.",
16007
+ "-2": "Adds repetitive work to a task the person does regularly in this domain.",
16008
+ "-1": "Adds a little effort to one task inside the product.",
16009
+ "1": "Saves a little effort on one task inside the product.",
16010
+ "2": "Takes the repetitive work out of a task the person does regularly in this domain.",
16011
+ "3": "Lifts a heavy burden of work off the person's life."
16012
+ },
16013
+ "avoids-hassles": {
16014
+ "-3": "Brings a whole kind of annoyance into the person's life.",
16015
+ "-2": "Adds an annoyance that keeps coming back in this domain.",
16016
+ "-1": "Adds a small annoyance inside the product.",
16017
+ "1": "Avoids a small annoyance inside the product.",
16018
+ "2": "Avoids an annoyance that keeps coming back in this domain.",
16019
+ "3": "Takes a whole kind of annoyance out of the person's life, the way a GPS ended getting lost."
16020
+ },
16021
+ "reduces-cost": {
16022
+ "-3": "Costs the person a significant amount of money over their life.",
16023
+ "-2": "Costs the person money regularly in this domain.",
16024
+ "-1": "Costs the person a little money on one purchase.",
16025
+ "1": "Saves the person a little money on one purchase.",
16026
+ "2": "Saves the person money regularly in this domain.",
16027
+ "3": "Saves the person a significant amount of money over their life."
16028
+ },
16029
+ quality: {
16030
+ "-3": "Craft so poor the person would call it the worst they have used.",
16031
+ "-2": "The product does its job in this domain clearly worse than the usual alternatives.",
16032
+ "-1": "Something inside the product works noticeably badly.",
16033
+ "1": "Something inside the product works noticeably well.",
16034
+ "2": "The product does its job in this domain clearly better than the usual alternatives.",
16035
+ "3": "Craft so good the person would call it the best they have used."
16036
+ },
16037
+ variety: {
16038
+ "-3": "Closes off a breadth of choice the person had elsewhere.",
16039
+ "-2": "Narrows the choice in this domain.",
16040
+ "-1": "Removes a few meaningful options inside the product.",
16041
+ "1": "Offers a few meaningful options inside the product.",
16042
+ "2": "Offers a wide and meaningful choice in this domain.",
16043
+ "3": "Opens a breadth of choice the person could not get anywhere else."
16044
+ },
16045
+ "sensory-appeal": {
16046
+ "-3": "A sensory experience the person avoids.",
16047
+ "-2": "The product looks, sounds or feels bad and the person dislikes using it.",
16048
+ "-1": "An unpleasant detail the person notices in the moment.",
16049
+ "1": "A pleasant detail the person notices in the moment.",
16050
+ "2": "The product looks, sounds or feels good and the person enjoys using it.",
16051
+ "3": "A sensory experience the person seeks out for its own sake."
16052
+ },
16053
+ informs: {
16054
+ "-3": "Misleads the person deeply about the service area or domain.",
16055
+ "-2": "Confuses the person about the service area or domain.",
16056
+ "-1": "Hides from the person something about the service that they want to know.",
16057
+ "1": "Informs the person about the service.",
16058
+ "2": "Informs the person about the service area or domain.",
16059
+ "3": "Informs the person deeply and efficiently about the service area or domain."
16060
+ },
16061
+ "reduces-anxiety": {
16062
+ "-3": "Gives the person a lasting worry in their life.",
16063
+ "-2": "Stirs up a worry the person has in this domain.",
16064
+ "-1": "Adds a small worry inside the product.",
16065
+ "1": "Removes a small worry inside the product.",
16066
+ "2": "Calms a worry the person has in this domain.",
16067
+ "3": "Takes a lasting worry out of the person's life."
16068
+ },
16069
+ "rewards-me": {
16070
+ "-3": "Takes away rewards the person values as much as the product itself.",
16071
+ "-2": "Takes away perks the person regularly values.",
16072
+ "-1": "Takes away a small perk the person had.",
16073
+ "1": "Gives the person a small perk for engaging.",
16074
+ "2": "Gives the person regular perks they value.",
16075
+ "3": "Gives the person rewards they value as much as the product itself."
16076
+ },
16077
+ nostalgia: {
16078
+ "-3": "Destroys a cherished memory for good.",
16079
+ "-2": "Loses or overwrites a good memory of the past.",
16080
+ "-1": "Puts a pleasant memory at slight risk.",
16081
+ "1": "Faintly recalls a pleasant memory of the past.",
16082
+ "2": "Clearly brings back a good memory of the past.",
16083
+ "3": "Brings back a cherished past in a vivid and deeply felt way."
16084
+ },
16085
+ "design-aesthetics": {
16086
+ "-3": "Ugliness the person would be embarrassed to show to others.",
16087
+ "-2": "A design the person finds ugly.",
16088
+ "-1": "A displeasing design detail.",
16089
+ "1": "A pleasing design detail.",
16090
+ "2": "A design the person finds beautiful.",
16091
+ "3": "Beauty the person would show to others and that shapes how they feel about it."
16092
+ },
16093
+ "badge-value": {
16094
+ "-3": "Signals something the person does not want the people who matter to them to see.",
16095
+ "-2": "Clearly signals a low identity or status in a community.",
16096
+ "-1": "Gives a mild negative signal about the person to others.",
16097
+ "1": "Gives a mild signal about the person to others.",
16098
+ "2": "Clearly signals the person's identity or status in a community.",
16099
+ "3": "Signals who the person is to the people who matter to them."
16100
+ },
16101
+ wellness: {
16102
+ "-3": "Lastingly harms the person's physical or mental well-being.",
16103
+ "-2": "Noticeably worsens how the person feels over time.",
16104
+ "-1": "Slightly worsens how the person feels, in the moment.",
16105
+ "1": "Slightly improves how the person feels, in the moment.",
16106
+ "2": "Noticeably improves how the person feels over time.",
16107
+ "3": "Lastingly improves the person's physical or mental well-being."
16108
+ },
16109
+ "therapeutic-value": {
16110
+ "-3": "Deepens something that hurts the person.",
16111
+ "-2": "Makes a difficult feeling harder for the person to work through.",
16112
+ "-1": "Reopens a small emotional sore.",
16113
+ "1": "Gives a small moment of emotional relief.",
16114
+ "2": "Helps the person work through a difficult feeling.",
16115
+ "3": "Supports real healing of something that hurts the person."
16116
+ },
16117
+ "fun-entertainment": {
16118
+ "-3": "So joyless that the person avoids it and warns others.",
16119
+ "-2": "Boring or tedious to use.",
16120
+ "-1": "A dull moment.",
16121
+ "1": "A light moment of enjoyment.",
16122
+ "2": "Genuinely enjoyable to use.",
16123
+ "3": "Delight the person would seek out and tell others about."
16124
+ },
16125
+ attractiveness: {
16126
+ "-3": "Changes how unattractive the person feels in general.",
16127
+ "-2": "Clearly makes the person feel less attractive.",
16128
+ "-1": "Makes the person feel slightly worse about how they look.",
16129
+ "1": "Makes the person feel slightly better about how they look.",
16130
+ "2": "Clearly makes the person feel more attractive.",
16131
+ "3": "Changes how attractive the person feels in general."
16132
+ },
16133
+ "provides-access": {
16134
+ "-3": "Shuts the person out of something that matters in their life.",
16135
+ "-2": "Cuts the person off from a service or from people in this domain that they could otherwise reach.",
16136
+ "-1": "Puts a feature inside the product behind a barrier or closes it off.",
16137
+ "1": "Opens a feature inside the product.",
16138
+ "2": "Gives access to a service or to people in this domain that the person could not easily reach.",
16139
+ "3": "Gives access to something that matters in the person's life and that they could not get otherwise."
16140
+ },
16141
+ "provides-hope": {
16142
+ "-3": "Leaves the person believing their life cannot get better.",
16143
+ "-2": "Gives the person a reason to doubt that things in this domain can improve.",
16144
+ "-1": "Plants a small doubt.",
16145
+ "1": "Gives a small reason for optimism.",
16146
+ "2": "Gives a real reason to believe things in this domain can improve.",
16147
+ "3": "Gives a lasting belief that the person's life can get better."
16148
+ },
16149
+ "self-actualization": {
16150
+ "-3": "Pushes the person away from who they want to be.",
16151
+ "-2": "Clear drift away from who the person wants to be.",
16152
+ "-1": "A small step away from who the person wants to be.",
16153
+ "1": "A small step toward who the person wants to be.",
16154
+ "2": "Clear progress toward who the person wants to be.",
16155
+ "3": "Helps the person become who they want to be."
16156
+ },
16157
+ motivation: {
16158
+ "-3": "Drains the person's drive toward goals that matter in their life.",
16159
+ "-2": "Saps the person's energy toward a goal in this domain.",
16160
+ "-1": "A small drag on the person's drive.",
16161
+ "1": "A small nudge to act.",
16162
+ "2": "Energizes the person toward a goal in this domain.",
16163
+ "3": "Sustains the person's drive toward goals that matter in their life."
16164
+ },
16165
+ heirloom: {
16166
+ "-3": "Loses something meaningful that was meant to be passed on across time.",
16167
+ "-2": "Lets something meaningful be lost within years.",
16168
+ "-1": "Puts something worth keeping at slight risk.",
16169
+ "1": "Keeps something worth keeping for a while.",
16170
+ "2": "Preserves something meaningful for years.",
16171
+ "3": "Holds something meaningful enough to be passed on to others across time."
16172
+ },
16173
+ "affiliation-belonging": {
16174
+ "-3": "Cuts the person off from a group that matters deeply to who they are.",
16175
+ "-2": "Leaves the person out of a group in this domain.",
16176
+ "-1": "A feeling of being slightly left out of something small.",
16177
+ "1": "A feeling of being part of something small.",
16178
+ "2": "Makes the person part of a group in this domain.",
16179
+ "3": "Makes the person part of a group that matters deeply to who they are."
16180
+ },
16181
+ "self-transcendence": {
16182
+ "-3": "Works against something larger than the person themselves.",
16183
+ "-2": "Harms others in a meaningful way.",
16184
+ "-1": "Does a small harm to others.",
16185
+ "1": "Does a small good for others.",
16186
+ "2": "Helps others in a meaningful way.",
16187
+ "3": "Contributes to something larger than the person themselves."
16188
+ }
16189
+ };
16190
+ var VALUE_REACH_LADDERS = Object.freeze(
16191
+ Object.fromEntries(Object.entries(LADDERS).map(([id, ladder]) => [id, Object.freeze(ladder)]))
16192
+ );
16193
+
15943
16194
  // ../schema/src/weighing.ts
15944
16195
  var SCORER_KINDS = ["human", "agent", "rule"];
15945
16196
  var STORED_SCORER_KINDS = ["human", "agent"];
@@ -15947,6 +16198,10 @@ function scorerRank(kind) {
15947
16198
  const index = SCORER_KINDS.indexOf(kind);
15948
16199
  return index === -1 ? 0 : SCORER_KINDS.length - index;
15949
16200
  }
16201
+ var WEIGHING_PROBABILITY_FIELDS = ["p_serves", "p_costs"];
16202
+ function isWeighingProbability(value) {
16203
+ return typeof value === "number" && Number.isFinite(value) && value >= 0 && value <= 1;
16204
+ }
15950
16205
  var WEIGHING_ASSESSMENT_RECORDED = "weighing.assessment.recorded";
15951
16206
  var WEIGHING_SET_SAVED = "weighing.set.saved";
15952
16207
  function cellKey(matrix, subject, criterion) {
@@ -15986,10 +16241,20 @@ function deepFreeze(value) {
15986
16241
  return value;
15987
16242
  }
15988
16243
  var VALUE_SET_ID = "value-contribution";
15989
- var VALUE_SET_VERSION = "1.0.0";
16244
+ var VALUE_SET_VERSION = "2.0.0";
16245
+ var VALUE_SET_V1_VERSION = "1.0.0";
15990
16246
  var VALUE_MATRIX_ID = "value";
15991
16247
  var POSITIONING_SET_ID = "positioning";
15992
16248
  var VALUE_SCALE_ANCHORS = {
16249
+ "3": "Life-wide. It gives the person this well beyond the product and its domain, in their life.",
16250
+ "2": "Across the domain. The person gets this in the whole area the product belongs to, not only inside it.",
16251
+ "1": "Within the product. A real contribution, felt while using it.",
16252
+ "0": "Unrelated: weighed and found to have nothing to do with it. (No row means nobody has weighed it yet.)",
16253
+ "-1": "Within the product. A small cost, felt while using it.",
16254
+ "-2": "Across the domain. The person notices the loss of this in the whole area the product belongs to.",
16255
+ "-3": "Life-wide. It leaves the person with the opposite of this in their life."
16256
+ };
16257
+ var VALUE_SCALE_V1_ANCHORS = {
15993
16258
  "3": "Core. The promise exists for this; take it away and the value goes.",
15994
16259
  "2": "Supports clearly. The user would notice it missing.",
15995
16260
  "1": "Touches. A side effect of the promise, not its purpose.",
@@ -16037,13 +16302,36 @@ var VALUE_TEXT = {
16037
16302
  "self-transcendence": { name: "Self-transcendence", definition: "Helps beyond the user themselves." }
16038
16303
  };
16039
16304
  var VALUE_SCALE = { min: -3, max: 3, anchors: { ...VALUE_SCALE_ANCHORS } };
16305
+ var GROUPS = Object.keys(TIER_TITLES).map((id) => ({ id, title: TIER_TITLES[id] }));
16306
+ function reachQuestion(id) {
16307
+ if (id === "informs") {
16308
+ return "Is what this promise mainly gives the person information, rather than an ability, a shortcut, a protection or a feeling? Or does it keep them from knowing something? And how far into their life does it reach?";
16309
+ }
16310
+ return `Does this promise serve, or cost, "${VALUE_TEXT[id].name}" for the person? And how far into their life does it reach: within the product, across its domain, or life-wide?`;
16311
+ }
16040
16312
  var VALUE_CONTRIBUTION_SET = deepFreeze({
16041
16313
  id: VALUE_SET_ID,
16042
16314
  version: VALUE_SET_VERSION,
16043
16315
  title: "Elements of value",
16044
16316
  subject: "acceptance",
16045
16317
  scale: VALUE_SCALE,
16046
- groups: Object.keys(TIER_TITLES).map((id) => ({ id, title: TIER_TITLES[id] })),
16318
+ groups: GROUPS,
16319
+ criteria: VALUE_IDS.map((id) => ({
16320
+ id,
16321
+ group: VALUE_TIERS[id],
16322
+ name: VALUE_TEXT[id].name,
16323
+ question: reachQuestion(id),
16324
+ definition: VALUE_TEXT[id].definition,
16325
+ anchors: { ...VALUE_REACH_LADDERS[id] }
16326
+ }))
16327
+ });
16328
+ var VALUE_CONTRIBUTION_SET_V1 = deepFreeze({
16329
+ id: VALUE_SET_ID,
16330
+ version: VALUE_SET_V1_VERSION,
16331
+ title: "Elements of value",
16332
+ subject: "acceptance",
16333
+ scale: { min: -3, max: 3, anchors: { ...VALUE_SCALE_V1_ANCHORS } },
16334
+ groups: GROUPS,
16047
16335
  criteria: VALUE_IDS.map((id) => ({
16048
16336
  id,
16049
16337
  group: VALUE_TIERS[id],
@@ -16055,12 +16343,12 @@ var VALUE_CONTRIBUTION_SET = deepFreeze({
16055
16343
  var VALUE_MATRIX = deepFreeze({
16056
16344
  id: VALUE_MATRIX_ID,
16057
16345
  title: "Value",
16058
- set: `${VALUE_SET_ID}@1`,
16346
+ set: `${VALUE_SET_ID}@2`,
16059
16347
  subjects: { kind: "query", species: "acceptance" },
16060
16348
  positioning: POSITIONING_SET_ID,
16061
16349
  status: "active"
16062
16350
  });
16063
- var BUILT_IN_SETS = [VALUE_CONTRIBUTION_SET];
16351
+ var BUILT_IN_SETS = [VALUE_CONTRIBUTION_SET, VALUE_CONTRIBUTION_SET_V1];
16064
16352
  var BUILT_IN_MATRICES = [VALUE_MATRIX];
16065
16353
  var isObject2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
16066
16354
  function cleaned(set2) {
@@ -16100,9 +16388,14 @@ function resolveWeighing(section) {
16100
16388
  }
16101
16389
  function setOfRef(resolved, ref) {
16102
16390
  const { id, major } = splitSetRef(ref);
16103
- const set2 = resolved.sets.find((candidate) => candidate.id === id);
16104
- if (set2 === void 0) return void 0;
16105
- return major === void 0 || majorOf(set2.version) === major ? set2 : void 0;
16391
+ return resolved.sets.find((candidate) => candidate.id === id && (major === void 0 || majorOf(candidate.version) === major));
16392
+ }
16393
+ function isOlderMajorRef(resolved, ref) {
16394
+ const { id, major } = splitSetRef(ref);
16395
+ const current = resolved.sets.find((candidate) => candidate.id === id);
16396
+ if (current === void 0 || major === void 0) return false;
16397
+ const now = Number(majorOf(current.version));
16398
+ return Number.isFinite(now) && Number(major) < now;
16106
16399
  }
16107
16400
 
16108
16401
  // ../schema/src/weighing-validate.ts
@@ -16186,9 +16479,11 @@ function validateWeighingSection(section, nodeSpecies, journal) {
16186
16479
  if (entry.role === "positioning") {
16187
16480
  const ruler = typeof entry.extends === "string" ? resolveRef2(entry.extends, `${path}.extends`, `Positioning "${String(entry.id)}"`, "weighing-positioning-unknown-ruler") : void 0;
16188
16481
  if (typeof entry.extends !== "string") {
16189
- warn(`${path}.extends`, "weighing-positioning-unknown-ruler", `Positioning "${String(entry.id)}" does not say which set it re-weights \u2014 set extends to e.g. value-contribution@1`);
16482
+ warn(`${path}.extends`, "weighing-positioning-unknown-ruler", `Positioning "${String(entry.id)}" does not say which set it re-weights \u2014 set extends to e.g. value-contribution@2`);
16190
16483
  } else if (ruler !== void 0 && ruler.role === "positioning") {
16191
- warn(`${path}.extends`, "weighing-positioning-unknown-ruler", `Positioning "${String(entry.id)}" extends "${entry.extends}", which is itself a positioning \u2014 it must extend a criteria set such as value-contribution@1`);
16484
+ warn(`${path}.extends`, "weighing-positioning-unknown-ruler", `Positioning "${String(entry.id)}" extends "${entry.extends}", which is itself a positioning \u2014 it must extend a criteria set such as value-contribution@2`);
16485
+ } else if (ruler !== void 0 && isOlderMajorRef(resolved, entry.extends)) {
16486
+ warn(`${path}.extends`, "weighing-positioning-old-ruler", `Positioning "${String(entry.id)}" extends ${entry.extends}, an older ruler \u2014 its weights still apply, but read its level descriptions against ${ruler.id}'s current major and save it again`);
16192
16487
  }
16193
16488
  const known = new Set(ruler !== void 0 && ruler.role !== "positioning" ? ruler.criteria.map((criterion) => criterion?.id) : []);
16194
16489
  (Array.isArray(entry.criteria) ? entry.criteria : []).forEach((criterion, at) => {
@@ -16224,7 +16519,9 @@ function validateWeighingSection(section, nodeSpecies, journal) {
16224
16519
  }
16225
16520
  }
16226
16521
  checkStatus(path, who, entry);
16227
- if (wellFormed) resolveRef2(entry.set, `${path}.set`, who, "weighing-unknown-set");
16522
+ if (wellFormed && resolveRef2(entry.set, `${path}.set`, who, "weighing-unknown-set") !== void 0 && isOlderMajorRef(resolved, entry.set)) {
16523
+ warn(`${path}.set`, "weighing-matrix-old-ruler", `${who} reads ${entry.set}, an older ruler \u2014 its levels still read, but nothing new can be scored on it; point it at the current major`);
16524
+ }
16228
16525
  });
16229
16526
  const seenCells = /* @__PURE__ */ new Set();
16230
16527
  assessments.forEach((entry, index) => {
@@ -16279,6 +16576,11 @@ function validateWeighingSection(section, nodeSpecies, journal) {
16279
16576
  } else if ((entry.confidence === 2 || entry.confidence === 3) && (entry.evidence === void 0 || entry.evidence.trim() === "")) {
16280
16577
  warn(`${path}.evidence`, "weighing-no-evidence", `${label}: confidence ${String(entry.confidence)} claims evidence and cites none`);
16281
16578
  }
16579
+ for (const field of WEIGHING_PROBABILITY_FIELDS) {
16580
+ if (entry[field] !== void 0 && !isWeighingProbability(entry[field])) {
16581
+ warn(`${path}.${field}`, "weighing-probability-shape", `${label}: ${field} must be a number from 0 to 1 \u2014 it is ignored`);
16582
+ }
16583
+ }
16282
16584
  if (entry.refs !== void 0 && !(Array.isArray(entry.refs) && entry.refs.every((ref) => typeof ref === "string"))) {
16283
16585
  warn(`${path}.refs`, "weighing-refs-type", `${label}: refs must be an array of id strings`);
16284
16586
  }
@@ -17227,7 +17529,7 @@ function makeEvent(type, payload = {}, options = {}) {
17227
17529
  }
17228
17530
 
17229
17531
  // ../schema/src/weighing-derive.ts
17230
- var SEED_SCORER_ID = "seed-by-claim-order";
17532
+ var SEED_SCORER_ID = "seed-claimed";
17231
17533
  var SEED_SCORER = Object.freeze({ kind: "rule", id: SEED_SCORER_ID });
17232
17534
 
17233
17535
  // src/lib/bundle-io.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkaik",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "description": "Arkaik CLI — link a repository to a hosted product graph, validate and pack bundles, mirror external ref status.",
5
5
  "license": "MIT",
6
6
  "type": "module",