arkaik-mcp 0.11.0 → 0.12.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/index.js +391 -34
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15399,12 +15399,12 @@ var WeighingCriteriaSetSchema = external_exports.object({
|
|
|
15399
15399
|
criteria: documented(external_exports.array(documented(WeighingCriterionSchema))).optional(),
|
|
15400
15400
|
role: leaf("positioning marks the set a project writes about itself."),
|
|
15401
15401
|
status: leaf("Absent or active is active; anything else is a draft, which feeds no roll-up."),
|
|
15402
|
-
extends: leaf("A positioning's ruler, e.g. value-contribution@
|
|
15402
|
+
extends: leaf("A positioning's ruler, e.g. value-contribution@2.")
|
|
15403
15403
|
}).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." });
|
|
15404
15404
|
var WeighingMatrixSchema = external_exports.object({
|
|
15405
15405
|
id: leaf("The matrix's id."),
|
|
15406
15406
|
title: leaf("A human title."),
|
|
15407
|
-
set: leaf("The set's id and major, e.g. value-contribution@
|
|
15407
|
+
set: leaf("The set's id and major, e.g. value-contribution@2."),
|
|
15408
15408
|
subjects: documented(
|
|
15409
15409
|
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())
|
|
15410
15410
|
).optional().meta({ description: "What the matrix judges: { kind: query, species } or { kind: list, items }." }),
|
|
@@ -15428,6 +15428,8 @@ var WeighingAssessmentSchema = external_exports.object({
|
|
|
15428
15428
|
refs: leaf("Ids cited: nodes, journal events, findings."),
|
|
15429
15429
|
basis: documented(WeighingAssessmentBasisSchema).optional().meta({ description: "What the scorer was looking at, so a re-read can tell the score went stale." }),
|
|
15430
15430
|
run: leaf("The audit or plan the score belongs to."),
|
|
15431
|
+
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."),
|
|
15432
|
+
p_costs: leaf("Optional: the same for costs, asked independently, so both can be high."),
|
|
15431
15433
|
ts: leaf("ISO 8601.")
|
|
15432
15434
|
}).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." });
|
|
15433
15435
|
var WeighingSectionSchema = external_exports.object({
|
|
@@ -15641,7 +15643,9 @@ var WeighingAssessmentRecordedEventSchema = external_exports.object({
|
|
|
15641
15643
|
evidence: external_exports.string().optional(),
|
|
15642
15644
|
refs: external_exports.array(external_exports.string()).optional(),
|
|
15643
15645
|
basis: WeighingAssessmentBasisSchema.optional(),
|
|
15644
|
-
run: external_exports.string().optional()
|
|
15646
|
+
run: external_exports.string().optional(),
|
|
15647
|
+
p_serves: external_exports.number().min(0).max(1).optional(),
|
|
15648
|
+
p_costs: external_exports.number().min(0).max(1).optional()
|
|
15645
15649
|
}).catchall(external_exports.unknown());
|
|
15646
15650
|
var WeighingSetSavedEventSchema = external_exports.object({ ...envelope, type: external_exports.literal("weighing.set.saved"), set: WeighingCriteriaSetSchema }).catchall(external_exports.unknown());
|
|
15647
15651
|
var JOURNAL_EVENT_SCHEMAS = {
|
|
@@ -17132,6 +17136,253 @@ function listMaps(project) {
|
|
|
17132
17136
|
return [...BUILT_IN_MAPS, ...custom2];
|
|
17133
17137
|
}
|
|
17134
17138
|
|
|
17139
|
+
// ../schema/src/weighing-ladders.ts
|
|
17140
|
+
var LADDERS = {
|
|
17141
|
+
"saves-time": {
|
|
17142
|
+
"-3": "Takes hours out of the person's life.",
|
|
17143
|
+
"-2": "Costs the person time on tasks they do regularly in this domain.",
|
|
17144
|
+
"-1": "Costs the person a little time on one task inside the product.",
|
|
17145
|
+
"1": "Saves a little time on one task inside the product.",
|
|
17146
|
+
"2": "Saves time on tasks the person does regularly in this domain.",
|
|
17147
|
+
"3": "Gives the person back hours of their life, the way online banking replaced trips to the bank."
|
|
17148
|
+
},
|
|
17149
|
+
simplifies: {
|
|
17150
|
+
"-3": "Makes a part of the person's life confusing or hard to manage.",
|
|
17151
|
+
"-2": "Makes a whole task in this domain clearly more complicated.",
|
|
17152
|
+
"-1": "Adds a step or a choice inside the product.",
|
|
17153
|
+
"1": "Removes a step or a choice inside the product.",
|
|
17154
|
+
"2": "Makes a whole task in this domain clearly simpler.",
|
|
17155
|
+
"3": "Makes a complicated part of the person's life simple, the way a single search box replaced browsing directories."
|
|
17156
|
+
},
|
|
17157
|
+
"makes-money": {
|
|
17158
|
+
"-3": "Costs the person a meaningful part of their income.",
|
|
17159
|
+
"-2": "Cuts a regular way the person earns in this domain.",
|
|
17160
|
+
"-1": "Makes earning slightly harder or costs the person a little income.",
|
|
17161
|
+
"1": "Helps the person earn a little, or makes earning slightly easier.",
|
|
17162
|
+
"2": "Gives the person a regular way to earn in this domain.",
|
|
17163
|
+
"3": "Provides a meaningful part of the person's income."
|
|
17164
|
+
},
|
|
17165
|
+
"reduces-risk": {
|
|
17166
|
+
"-3": "Exposes the person to a major loss in their life.",
|
|
17167
|
+
"-2": "Exposes the person to a serious loss or error in this domain.",
|
|
17168
|
+
"-1": "Exposes the person to a small mistake or loss inside the product.",
|
|
17169
|
+
"1": "Guards against a small mistake or loss inside the product.",
|
|
17170
|
+
"2": "Protects against a serious loss or error in this domain.",
|
|
17171
|
+
"3": "Protects against a major loss in the person's life, the way insurance or a full backup does."
|
|
17172
|
+
},
|
|
17173
|
+
organizes: {
|
|
17174
|
+
"-3": "Brings disorder to a large part of the person's life.",
|
|
17175
|
+
"-2": "Makes things in this domain hard to keep in order or to find.",
|
|
17176
|
+
"-1": "Leaves a few things in disorder inside the product.",
|
|
17177
|
+
"1": "Keeps a few things in order inside the product.",
|
|
17178
|
+
"2": "Keeps everything in this domain in order and easy to find.",
|
|
17179
|
+
"3": "Brings order to a large part of the person's life, the way a calendar does."
|
|
17180
|
+
},
|
|
17181
|
+
integrates: {
|
|
17182
|
+
"-3": "Pulls separate parts of the person's life further apart.",
|
|
17183
|
+
"-2": "Splits apart the several tools the person uses in this domain.",
|
|
17184
|
+
"-1": "Cuts the product off from one other tool the person uses.",
|
|
17185
|
+
"1": "Connects the product to one other tool the person uses.",
|
|
17186
|
+
"2": "Ties together the several tools the person uses in this domain.",
|
|
17187
|
+
"3": "Makes separate parts of the person's life work together as one."
|
|
17188
|
+
},
|
|
17189
|
+
connects: {
|
|
17190
|
+
"-3": "Separates the person from the people who matter most in their life.",
|
|
17191
|
+
"-2": "Makes it harder to build or keep relationships in this domain.",
|
|
17192
|
+
"-1": "Gets in the way of reaching someone through the product.",
|
|
17193
|
+
"1": "Lets the person reach someone through the product.",
|
|
17194
|
+
"2": "Helps the person build and keep relationships in this domain.",
|
|
17195
|
+
"3": "Brings the person together with the people who matter most in their life."
|
|
17196
|
+
},
|
|
17197
|
+
"reduces-effort": {
|
|
17198
|
+
"-3": "Puts a heavy burden of work on the person's life.",
|
|
17199
|
+
"-2": "Adds repetitive work to a task the person does regularly in this domain.",
|
|
17200
|
+
"-1": "Adds a little effort to one task inside the product.",
|
|
17201
|
+
"1": "Saves a little effort on one task inside the product.",
|
|
17202
|
+
"2": "Takes the repetitive work out of a task the person does regularly in this domain.",
|
|
17203
|
+
"3": "Lifts a heavy burden of work off the person's life."
|
|
17204
|
+
},
|
|
17205
|
+
"avoids-hassles": {
|
|
17206
|
+
"-3": "Brings a whole kind of annoyance into the person's life.",
|
|
17207
|
+
"-2": "Adds an annoyance that keeps coming back in this domain.",
|
|
17208
|
+
"-1": "Adds a small annoyance inside the product.",
|
|
17209
|
+
"1": "Avoids a small annoyance inside the product.",
|
|
17210
|
+
"2": "Avoids an annoyance that keeps coming back in this domain.",
|
|
17211
|
+
"3": "Takes a whole kind of annoyance out of the person's life, the way a GPS ended getting lost."
|
|
17212
|
+
},
|
|
17213
|
+
"reduces-cost": {
|
|
17214
|
+
"-3": "Costs the person a significant amount of money over their life.",
|
|
17215
|
+
"-2": "Costs the person money regularly in this domain.",
|
|
17216
|
+
"-1": "Costs the person a little money on one purchase.",
|
|
17217
|
+
"1": "Saves the person a little money on one purchase.",
|
|
17218
|
+
"2": "Saves the person money regularly in this domain.",
|
|
17219
|
+
"3": "Saves the person a significant amount of money over their life."
|
|
17220
|
+
},
|
|
17221
|
+
quality: {
|
|
17222
|
+
"-3": "Craft so poor the person would call it the worst they have used.",
|
|
17223
|
+
"-2": "The product does its job in this domain clearly worse than the usual alternatives.",
|
|
17224
|
+
"-1": "Something inside the product works noticeably badly.",
|
|
17225
|
+
"1": "Something inside the product works noticeably well.",
|
|
17226
|
+
"2": "The product does its job in this domain clearly better than the usual alternatives.",
|
|
17227
|
+
"3": "Craft so good the person would call it the best they have used."
|
|
17228
|
+
},
|
|
17229
|
+
variety: {
|
|
17230
|
+
"-3": "Closes off a breadth of choice the person had elsewhere.",
|
|
17231
|
+
"-2": "Narrows the choice in this domain.",
|
|
17232
|
+
"-1": "Removes a few meaningful options inside the product.",
|
|
17233
|
+
"1": "Offers a few meaningful options inside the product.",
|
|
17234
|
+
"2": "Offers a wide and meaningful choice in this domain.",
|
|
17235
|
+
"3": "Opens a breadth of choice the person could not get anywhere else."
|
|
17236
|
+
},
|
|
17237
|
+
"sensory-appeal": {
|
|
17238
|
+
"-3": "A sensory experience the person avoids.",
|
|
17239
|
+
"-2": "The product looks, sounds or feels bad and the person dislikes using it.",
|
|
17240
|
+
"-1": "An unpleasant detail the person notices in the moment.",
|
|
17241
|
+
"1": "A pleasant detail the person notices in the moment.",
|
|
17242
|
+
"2": "The product looks, sounds or feels good and the person enjoys using it.",
|
|
17243
|
+
"3": "A sensory experience the person seeks out for its own sake."
|
|
17244
|
+
},
|
|
17245
|
+
informs: {
|
|
17246
|
+
"-3": "Misleads the person deeply about the service area or domain.",
|
|
17247
|
+
"-2": "Confuses the person about the service area or domain.",
|
|
17248
|
+
"-1": "Hides from the person something about the service that they want to know.",
|
|
17249
|
+
"1": "Informs the person about the service.",
|
|
17250
|
+
"2": "Informs the person about the service area or domain.",
|
|
17251
|
+
"3": "Informs the person deeply and efficiently about the service area or domain."
|
|
17252
|
+
},
|
|
17253
|
+
"reduces-anxiety": {
|
|
17254
|
+
"-3": "Gives the person a lasting worry in their life.",
|
|
17255
|
+
"-2": "Stirs up a worry the person has in this domain.",
|
|
17256
|
+
"-1": "Adds a small worry inside the product.",
|
|
17257
|
+
"1": "Removes a small worry inside the product.",
|
|
17258
|
+
"2": "Calms a worry the person has in this domain.",
|
|
17259
|
+
"3": "Takes a lasting worry out of the person's life."
|
|
17260
|
+
},
|
|
17261
|
+
"rewards-me": {
|
|
17262
|
+
"-3": "Takes away rewards the person values as much as the product itself.",
|
|
17263
|
+
"-2": "Takes away perks the person regularly values.",
|
|
17264
|
+
"-1": "Takes away a small perk the person had.",
|
|
17265
|
+
"1": "Gives the person a small perk for engaging.",
|
|
17266
|
+
"2": "Gives the person regular perks they value.",
|
|
17267
|
+
"3": "Gives the person rewards they value as much as the product itself."
|
|
17268
|
+
},
|
|
17269
|
+
nostalgia: {
|
|
17270
|
+
"-3": "Destroys a cherished memory for good.",
|
|
17271
|
+
"-2": "Loses or overwrites a good memory of the past.",
|
|
17272
|
+
"-1": "Puts a pleasant memory at slight risk.",
|
|
17273
|
+
"1": "Faintly recalls a pleasant memory of the past.",
|
|
17274
|
+
"2": "Clearly brings back a good memory of the past.",
|
|
17275
|
+
"3": "Brings back a cherished past in a vivid and deeply felt way."
|
|
17276
|
+
},
|
|
17277
|
+
"design-aesthetics": {
|
|
17278
|
+
"-3": "Ugliness the person would be embarrassed to show to others.",
|
|
17279
|
+
"-2": "A design the person finds ugly.",
|
|
17280
|
+
"-1": "A displeasing design detail.",
|
|
17281
|
+
"1": "A pleasing design detail.",
|
|
17282
|
+
"2": "A design the person finds beautiful.",
|
|
17283
|
+
"3": "Beauty the person would show to others and that shapes how they feel about it."
|
|
17284
|
+
},
|
|
17285
|
+
"badge-value": {
|
|
17286
|
+
"-3": "Signals something the person does not want the people who matter to them to see.",
|
|
17287
|
+
"-2": "Clearly signals a low identity or status in a community.",
|
|
17288
|
+
"-1": "Gives a mild negative signal about the person to others.",
|
|
17289
|
+
"1": "Gives a mild signal about the person to others.",
|
|
17290
|
+
"2": "Clearly signals the person's identity or status in a community.",
|
|
17291
|
+
"3": "Signals who the person is to the people who matter to them."
|
|
17292
|
+
},
|
|
17293
|
+
wellness: {
|
|
17294
|
+
"-3": "Lastingly harms the person's physical or mental well-being.",
|
|
17295
|
+
"-2": "Noticeably worsens how the person feels over time.",
|
|
17296
|
+
"-1": "Slightly worsens how the person feels, in the moment.",
|
|
17297
|
+
"1": "Slightly improves how the person feels, in the moment.",
|
|
17298
|
+
"2": "Noticeably improves how the person feels over time.",
|
|
17299
|
+
"3": "Lastingly improves the person's physical or mental well-being."
|
|
17300
|
+
},
|
|
17301
|
+
"therapeutic-value": {
|
|
17302
|
+
"-3": "Deepens something that hurts the person.",
|
|
17303
|
+
"-2": "Makes a difficult feeling harder for the person to work through.",
|
|
17304
|
+
"-1": "Reopens a small emotional sore.",
|
|
17305
|
+
"1": "Gives a small moment of emotional relief.",
|
|
17306
|
+
"2": "Helps the person work through a difficult feeling.",
|
|
17307
|
+
"3": "Supports real healing of something that hurts the person."
|
|
17308
|
+
},
|
|
17309
|
+
"fun-entertainment": {
|
|
17310
|
+
"-3": "So joyless that the person avoids it and warns others.",
|
|
17311
|
+
"-2": "Boring or tedious to use.",
|
|
17312
|
+
"-1": "A dull moment.",
|
|
17313
|
+
"1": "A light moment of enjoyment.",
|
|
17314
|
+
"2": "Genuinely enjoyable to use.",
|
|
17315
|
+
"3": "Delight the person would seek out and tell others about."
|
|
17316
|
+
},
|
|
17317
|
+
attractiveness: {
|
|
17318
|
+
"-3": "Changes how unattractive the person feels in general.",
|
|
17319
|
+
"-2": "Clearly makes the person feel less attractive.",
|
|
17320
|
+
"-1": "Makes the person feel slightly worse about how they look.",
|
|
17321
|
+
"1": "Makes the person feel slightly better about how they look.",
|
|
17322
|
+
"2": "Clearly makes the person feel more attractive.",
|
|
17323
|
+
"3": "Changes how attractive the person feels in general."
|
|
17324
|
+
},
|
|
17325
|
+
"provides-access": {
|
|
17326
|
+
"-3": "Shuts the person out of something that matters in their life.",
|
|
17327
|
+
"-2": "Cuts the person off from a service or from people in this domain that they could otherwise reach.",
|
|
17328
|
+
"-1": "Puts a feature inside the product behind a barrier or closes it off.",
|
|
17329
|
+
"1": "Opens a feature inside the product.",
|
|
17330
|
+
"2": "Gives access to a service or to people in this domain that the person could not easily reach.",
|
|
17331
|
+
"3": "Gives access to something that matters in the person's life and that they could not get otherwise."
|
|
17332
|
+
},
|
|
17333
|
+
"provides-hope": {
|
|
17334
|
+
"-3": "Leaves the person believing their life cannot get better.",
|
|
17335
|
+
"-2": "Gives the person a reason to doubt that things in this domain can improve.",
|
|
17336
|
+
"-1": "Plants a small doubt.",
|
|
17337
|
+
"1": "Gives a small reason for optimism.",
|
|
17338
|
+
"2": "Gives a real reason to believe things in this domain can improve.",
|
|
17339
|
+
"3": "Gives a lasting belief that the person's life can get better."
|
|
17340
|
+
},
|
|
17341
|
+
"self-actualization": {
|
|
17342
|
+
"-3": "Pushes the person away from who they want to be.",
|
|
17343
|
+
"-2": "Clear drift away from who the person wants to be.",
|
|
17344
|
+
"-1": "A small step away from who the person wants to be.",
|
|
17345
|
+
"1": "A small step toward who the person wants to be.",
|
|
17346
|
+
"2": "Clear progress toward who the person wants to be.",
|
|
17347
|
+
"3": "Helps the person become who they want to be."
|
|
17348
|
+
},
|
|
17349
|
+
motivation: {
|
|
17350
|
+
"-3": "Drains the person's drive toward goals that matter in their life.",
|
|
17351
|
+
"-2": "Saps the person's energy toward a goal in this domain.",
|
|
17352
|
+
"-1": "A small drag on the person's drive.",
|
|
17353
|
+
"1": "A small nudge to act.",
|
|
17354
|
+
"2": "Energizes the person toward a goal in this domain.",
|
|
17355
|
+
"3": "Sustains the person's drive toward goals that matter in their life."
|
|
17356
|
+
},
|
|
17357
|
+
heirloom: {
|
|
17358
|
+
"-3": "Loses something meaningful that was meant to be passed on across time.",
|
|
17359
|
+
"-2": "Lets something meaningful be lost within years.",
|
|
17360
|
+
"-1": "Puts something worth keeping at slight risk.",
|
|
17361
|
+
"1": "Keeps something worth keeping for a while.",
|
|
17362
|
+
"2": "Preserves something meaningful for years.",
|
|
17363
|
+
"3": "Holds something meaningful enough to be passed on to others across time."
|
|
17364
|
+
},
|
|
17365
|
+
"affiliation-belonging": {
|
|
17366
|
+
"-3": "Cuts the person off from a group that matters deeply to who they are.",
|
|
17367
|
+
"-2": "Leaves the person out of a group in this domain.",
|
|
17368
|
+
"-1": "A feeling of being slightly left out of something small.",
|
|
17369
|
+
"1": "A feeling of being part of something small.",
|
|
17370
|
+
"2": "Makes the person part of a group in this domain.",
|
|
17371
|
+
"3": "Makes the person part of a group that matters deeply to who they are."
|
|
17372
|
+
},
|
|
17373
|
+
"self-transcendence": {
|
|
17374
|
+
"-3": "Works against something larger than the person themselves.",
|
|
17375
|
+
"-2": "Harms others in a meaningful way.",
|
|
17376
|
+
"-1": "Does a small harm to others.",
|
|
17377
|
+
"1": "Does a small good for others.",
|
|
17378
|
+
"2": "Helps others in a meaningful way.",
|
|
17379
|
+
"3": "Contributes to something larger than the person themselves."
|
|
17380
|
+
}
|
|
17381
|
+
};
|
|
17382
|
+
var VALUE_REACH_LADDERS = Object.freeze(
|
|
17383
|
+
Object.fromEntries(Object.entries(LADDERS).map(([id, ladder]) => [id, Object.freeze(ladder)]))
|
|
17384
|
+
);
|
|
17385
|
+
|
|
17135
17386
|
// ../schema/src/weighing.ts
|
|
17136
17387
|
var CONFIDENCE_LEVELS = [0, 1, 2, 3];
|
|
17137
17388
|
var CONFIDENCE_ANCHORS = {
|
|
@@ -17146,6 +17397,19 @@ function scorerRank(kind) {
|
|
|
17146
17397
|
const index = SCORER_KINDS.indexOf(kind);
|
|
17147
17398
|
return index === -1 ? 0 : SCORER_KINDS.length - index;
|
|
17148
17399
|
}
|
|
17400
|
+
var WEIGHING_PROBABILITY_FIELDS = ["p_serves", "p_costs"];
|
|
17401
|
+
function isWeighingProbability(value) {
|
|
17402
|
+
return typeof value === "number" && Number.isFinite(value) && value >= 0 && value <= 1;
|
|
17403
|
+
}
|
|
17404
|
+
var WEIGHING_CLEAR_AT = 0.7;
|
|
17405
|
+
var WEIGHING_UNSETTLED_AT = 0.3;
|
|
17406
|
+
function isUncertainCell(row) {
|
|
17407
|
+
const serves = isWeighingProbability(row.p_serves) ? row.p_serves : void 0;
|
|
17408
|
+
const costs = isWeighingProbability(row.p_costs) ? row.p_costs : void 0;
|
|
17409
|
+
const same = row.level > 0 ? serves : row.level < 0 ? costs : void 0;
|
|
17410
|
+
const others = row.level > 0 ? [costs] : row.level < 0 ? [serves] : [serves, costs];
|
|
17411
|
+
return same !== void 0 && same < WEIGHING_CLEAR_AT || others.some((p) => p !== void 0 && p >= WEIGHING_UNSETTLED_AT);
|
|
17412
|
+
}
|
|
17149
17413
|
var WEIGHING_ASSESSMENT_RECORDED = "weighing.assessment.recorded";
|
|
17150
17414
|
var WEIGHING_SET_SAVED = "weighing.set.saved";
|
|
17151
17415
|
function cellKey(matrix, subject, criterion) {
|
|
@@ -17220,10 +17484,20 @@ function deepFreeze(value) {
|
|
|
17220
17484
|
return value;
|
|
17221
17485
|
}
|
|
17222
17486
|
var VALUE_SET_ID = "value-contribution";
|
|
17223
|
-
var VALUE_SET_VERSION = "
|
|
17487
|
+
var VALUE_SET_VERSION = "2.0.0";
|
|
17488
|
+
var VALUE_SET_V1_VERSION = "1.0.0";
|
|
17224
17489
|
var VALUE_MATRIX_ID = "value";
|
|
17225
17490
|
var POSITIONING_SET_ID = "positioning";
|
|
17226
17491
|
var VALUE_SCALE_ANCHORS = {
|
|
17492
|
+
"3": "Life-wide. It gives the person this well beyond the product and its domain, in their life.",
|
|
17493
|
+
"2": "Across the domain. The person gets this in the whole area the product belongs to, not only inside it.",
|
|
17494
|
+
"1": "Within the product. A real contribution, felt while using it.",
|
|
17495
|
+
"0": "Unrelated: weighed and found to have nothing to do with it. (No row means nobody has weighed it yet.)",
|
|
17496
|
+
"-1": "Within the product. A small cost, felt while using it.",
|
|
17497
|
+
"-2": "Across the domain. The person notices the loss of this in the whole area the product belongs to.",
|
|
17498
|
+
"-3": "Life-wide. It leaves the person with the opposite of this in their life."
|
|
17499
|
+
};
|
|
17500
|
+
var VALUE_SCALE_V1_ANCHORS = {
|
|
17227
17501
|
"3": "Core. The promise exists for this; take it away and the value goes.",
|
|
17228
17502
|
"2": "Supports clearly. The user would notice it missing.",
|
|
17229
17503
|
"1": "Touches. A side effect of the promise, not its purpose.",
|
|
@@ -17271,13 +17545,36 @@ var VALUE_TEXT = {
|
|
|
17271
17545
|
"self-transcendence": { name: "Self-transcendence", definition: "Helps beyond the user themselves." }
|
|
17272
17546
|
};
|
|
17273
17547
|
var VALUE_SCALE = { min: -3, max: 3, anchors: { ...VALUE_SCALE_ANCHORS } };
|
|
17548
|
+
var GROUPS = Object.keys(TIER_TITLES).map((id) => ({ id, title: TIER_TITLES[id] }));
|
|
17549
|
+
function reachQuestion(id) {
|
|
17550
|
+
if (id === "informs") {
|
|
17551
|
+
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?";
|
|
17552
|
+
}
|
|
17553
|
+
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?`;
|
|
17554
|
+
}
|
|
17274
17555
|
var VALUE_CONTRIBUTION_SET = deepFreeze({
|
|
17275
17556
|
id: VALUE_SET_ID,
|
|
17276
17557
|
version: VALUE_SET_VERSION,
|
|
17277
17558
|
title: "Elements of value",
|
|
17278
17559
|
subject: "acceptance",
|
|
17279
17560
|
scale: VALUE_SCALE,
|
|
17280
|
-
groups:
|
|
17561
|
+
groups: GROUPS,
|
|
17562
|
+
criteria: VALUE_IDS.map((id) => ({
|
|
17563
|
+
id,
|
|
17564
|
+
group: VALUE_TIERS[id],
|
|
17565
|
+
name: VALUE_TEXT[id].name,
|
|
17566
|
+
question: reachQuestion(id),
|
|
17567
|
+
definition: VALUE_TEXT[id].definition,
|
|
17568
|
+
anchors: { ...VALUE_REACH_LADDERS[id] }
|
|
17569
|
+
}))
|
|
17570
|
+
});
|
|
17571
|
+
var VALUE_CONTRIBUTION_SET_V1 = deepFreeze({
|
|
17572
|
+
id: VALUE_SET_ID,
|
|
17573
|
+
version: VALUE_SET_V1_VERSION,
|
|
17574
|
+
title: "Elements of value",
|
|
17575
|
+
subject: "acceptance",
|
|
17576
|
+
scale: { min: -3, max: 3, anchors: { ...VALUE_SCALE_V1_ANCHORS } },
|
|
17577
|
+
groups: GROUPS,
|
|
17281
17578
|
criteria: VALUE_IDS.map((id) => ({
|
|
17282
17579
|
id,
|
|
17283
17580
|
group: VALUE_TIERS[id],
|
|
@@ -17289,12 +17586,12 @@ var VALUE_CONTRIBUTION_SET = deepFreeze({
|
|
|
17289
17586
|
var VALUE_MATRIX = deepFreeze({
|
|
17290
17587
|
id: VALUE_MATRIX_ID,
|
|
17291
17588
|
title: "Value",
|
|
17292
|
-
set: `${VALUE_SET_ID}@
|
|
17589
|
+
set: `${VALUE_SET_ID}@2`,
|
|
17293
17590
|
subjects: { kind: "query", species: "acceptance" },
|
|
17294
17591
|
positioning: POSITIONING_SET_ID,
|
|
17295
17592
|
status: "active"
|
|
17296
17593
|
});
|
|
17297
|
-
var BUILT_IN_SETS = [VALUE_CONTRIBUTION_SET];
|
|
17594
|
+
var BUILT_IN_SETS = [VALUE_CONTRIBUTION_SET, VALUE_CONTRIBUTION_SET_V1];
|
|
17298
17595
|
var BUILT_IN_MATRICES = [VALUE_MATRIX];
|
|
17299
17596
|
var isObject2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
17300
17597
|
function cleaned(set2) {
|
|
@@ -17334,9 +17631,14 @@ function resolveWeighing(section) {
|
|
|
17334
17631
|
}
|
|
17335
17632
|
function setOfRef(resolved, ref) {
|
|
17336
17633
|
const { id, major } = splitSetRef(ref);
|
|
17337
|
-
|
|
17338
|
-
|
|
17339
|
-
|
|
17634
|
+
return resolved.sets.find((candidate) => candidate.id === id && (major === void 0 || majorOf(candidate.version) === major));
|
|
17635
|
+
}
|
|
17636
|
+
function isOlderMajorRef(resolved, ref) {
|
|
17637
|
+
const { id, major } = splitSetRef(ref);
|
|
17638
|
+
const current = resolved.sets.find((candidate) => candidate.id === id);
|
|
17639
|
+
if (current === void 0 || major === void 0) return false;
|
|
17640
|
+
const now = Number(majorOf(current.version));
|
|
17641
|
+
return Number.isFinite(now) && Number(major) < now;
|
|
17340
17642
|
}
|
|
17341
17643
|
|
|
17342
17644
|
// ../schema/src/weighing-validate.ts
|
|
@@ -17420,9 +17722,11 @@ function validateWeighingSection(section, nodeSpecies, journal) {
|
|
|
17420
17722
|
if (entry.role === "positioning") {
|
|
17421
17723
|
const ruler = typeof entry.extends === "string" ? resolveRef2(entry.extends, `${path}.extends`, `Positioning "${String(entry.id)}"`, "weighing-positioning-unknown-ruler") : void 0;
|
|
17422
17724
|
if (typeof entry.extends !== "string") {
|
|
17423
|
-
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@
|
|
17725
|
+
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`);
|
|
17424
17726
|
} else if (ruler !== void 0 && ruler.role === "positioning") {
|
|
17425
|
-
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@
|
|
17727
|
+
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`);
|
|
17728
|
+
} else if (ruler !== void 0 && isOlderMajorRef(resolved, entry.extends)) {
|
|
17729
|
+
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`);
|
|
17426
17730
|
}
|
|
17427
17731
|
const known = new Set(ruler !== void 0 && ruler.role !== "positioning" ? ruler.criteria.map((criterion) => criterion?.id) : []);
|
|
17428
17732
|
(Array.isArray(entry.criteria) ? entry.criteria : []).forEach((criterion, at) => {
|
|
@@ -17458,7 +17762,9 @@ function validateWeighingSection(section, nodeSpecies, journal) {
|
|
|
17458
17762
|
}
|
|
17459
17763
|
}
|
|
17460
17764
|
checkStatus(path, who, entry);
|
|
17461
|
-
if (wellFormed
|
|
17765
|
+
if (wellFormed && resolveRef2(entry.set, `${path}.set`, who, "weighing-unknown-set") !== void 0 && isOlderMajorRef(resolved, entry.set)) {
|
|
17766
|
+
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`);
|
|
17767
|
+
}
|
|
17462
17768
|
});
|
|
17463
17769
|
const seenCells = /* @__PURE__ */ new Set();
|
|
17464
17770
|
assessments.forEach((entry, index) => {
|
|
@@ -17513,6 +17819,11 @@ function validateWeighingSection(section, nodeSpecies, journal) {
|
|
|
17513
17819
|
} else if ((entry.confidence === 2 || entry.confidence === 3) && (entry.evidence === void 0 || entry.evidence.trim() === "")) {
|
|
17514
17820
|
warn(`${path}.evidence`, "weighing-no-evidence", `${label}: confidence ${String(entry.confidence)} claims evidence and cites none`);
|
|
17515
17821
|
}
|
|
17822
|
+
for (const field of WEIGHING_PROBABILITY_FIELDS) {
|
|
17823
|
+
if (entry[field] !== void 0 && !isWeighingProbability(entry[field])) {
|
|
17824
|
+
warn(`${path}.${field}`, "weighing-probability-shape", `${label}: ${field} must be a number from 0 to 1 \u2014 it is ignored`);
|
|
17825
|
+
}
|
|
17826
|
+
}
|
|
17516
17827
|
if (entry.refs !== void 0 && !(Array.isArray(entry.refs) && entry.refs.every((ref) => typeof ref === "string"))) {
|
|
17517
17828
|
warn(`${path}.refs`, "weighing-refs-type", `${label}: refs must be an array of id strings`);
|
|
17518
17829
|
}
|
|
@@ -19942,6 +20253,9 @@ function assessmentProblem(entry) {
|
|
|
19942
20253
|
if (!isNonEmptyString(entry.evidence) || entry.evidence.trim() === "") return "evidence must be a non-blank string when present";
|
|
19943
20254
|
if (entry.evidence.length > evidenceChars) return `evidence must be at most ${evidenceChars} characters`;
|
|
19944
20255
|
}
|
|
20256
|
+
for (const field of WEIGHING_PROBABILITY_FIELDS) {
|
|
20257
|
+
if (entry[field] !== void 0 && !isWeighingProbability(entry[field])) return `${field} must be a number from 0 to 1 when present`;
|
|
20258
|
+
}
|
|
19945
20259
|
if (entry.refs !== void 0) {
|
|
19946
20260
|
if (!Array.isArray(entry.refs) || !entry.refs.every(isNonEmptyString)) return "refs must be an array of non-empty strings when present";
|
|
19947
20261
|
if (entry.refs.length > refs) return `refs must hold at most ${refs} items`;
|
|
@@ -19970,7 +20284,10 @@ function planWeighingEvents(section, nodes, inputs, ctx) {
|
|
|
19970
20284
|
if (set3.id !== POSITIONING_SET_ID || set3.role !== "positioning") {
|
|
19971
20285
|
return refuse("invalid_set", `only the positioning can be saved: id "${POSITIONING_SET_ID}" with role "positioning"`);
|
|
19972
20286
|
}
|
|
19973
|
-
if (ruler === void 0) return refuse("invalid_set", `a positioning extends a set the library holds (e.g. ${VALUE_SET_ID}@
|
|
20287
|
+
if (ruler === void 0) return refuse("invalid_set", `a positioning extends a set the library holds (e.g. ${VALUE_SET_ID}@2)`);
|
|
20288
|
+
if (isOlderMajorRef(resolved, set3.extends)) {
|
|
20289
|
+
return refuse("invalid_set", `${String(set3.extends)} is an older ruler \u2014 extend ${ruler.id}'s current major instead`);
|
|
20290
|
+
}
|
|
19974
20291
|
const known = new Set(ruler.criteria.map((criterion2) => criterion2.id));
|
|
19975
20292
|
for (const criterion2 of set3.criteria) {
|
|
19976
20293
|
if (!isNonEmptyString(criterion2?.id) || !known.has(criterion2.id)) {
|
|
@@ -20013,6 +20330,9 @@ function planWeighingEvents(section, nodes, inputs, ctx) {
|
|
|
20013
20330
|
}
|
|
20014
20331
|
const set2 = setOfRef(resolved, matrix.set);
|
|
20015
20332
|
if (set2 === void 0) return refuse("unknown_matrix", `matrix "${matrix.id}" names set "${matrix.set}", which is not available`);
|
|
20333
|
+
if (isOlderMajorRef(resolved, matrix.set)) {
|
|
20334
|
+
return refuse("unknown_matrix", `matrix "${matrix.id}" reads ${matrix.set}, an older ruler \u2014 nothing new is scored against it; point the matrix at the current major`);
|
|
20335
|
+
}
|
|
20016
20336
|
const node = byId.get(input.subject);
|
|
20017
20337
|
const judged = matrix.subjects.kind === "query" ? node?.species === matrix.subjects.species : matrix.subjects.items.some((item) => (item?.node_id ?? item?.id) === input.subject);
|
|
20018
20338
|
if (node === void 0 || !judged) {
|
|
@@ -20053,6 +20373,8 @@ function planWeighingEvents(section, nodes, inputs, ctx) {
|
|
|
20053
20373
|
...input.commit !== void 0 ? { commit: input.commit } : {}
|
|
20054
20374
|
},
|
|
20055
20375
|
...input.run !== void 0 ? { run: input.run } : {},
|
|
20376
|
+
...input.p_serves !== void 0 ? { p_serves: input.p_serves } : {},
|
|
20377
|
+
...input.p_costs !== void 0 ? { p_costs: input.p_costs } : {},
|
|
20056
20378
|
ts
|
|
20057
20379
|
};
|
|
20058
20380
|
const { ts: _ts, ...payload } = row;
|
|
@@ -20068,11 +20390,13 @@ function planWeighingEvents(section, nodes, inputs, ctx) {
|
|
|
20068
20390
|
}
|
|
20069
20391
|
|
|
20070
20392
|
// ../schema/src/weighing-derive.ts
|
|
20071
|
-
var SEED_SCORER_ID = "seed-
|
|
20393
|
+
var SEED_SCORER_ID = "seed-claimed";
|
|
20394
|
+
var SEED_LEVEL = 1;
|
|
20072
20395
|
var SEED_SCORER = Object.freeze({ kind: "rule", id: SEED_SCORER_ID });
|
|
20073
20396
|
var SEED_TS = "1970-01-01T00:00:00.000Z";
|
|
20074
20397
|
function seedLevelAt(position) {
|
|
20075
|
-
|
|
20398
|
+
void position;
|
|
20399
|
+
return SEED_LEVEL;
|
|
20076
20400
|
}
|
|
20077
20401
|
function claimedElements(node, set2) {
|
|
20078
20402
|
const known = new Set(set2.criteria.map((criterion) => criterion.id));
|
|
@@ -20126,11 +20450,15 @@ function resolveCell(criterion, stored, seed, current, claimed) {
|
|
|
20126
20450
|
stale: false,
|
|
20127
20451
|
claimed,
|
|
20128
20452
|
others: [],
|
|
20129
|
-
review: false
|
|
20453
|
+
review: false,
|
|
20454
|
+
uncertain: false
|
|
20130
20455
|
};
|
|
20131
20456
|
}
|
|
20132
20457
|
const basis = winner.basis;
|
|
20133
|
-
const
|
|
20458
|
+
const staleBy = [];
|
|
20459
|
+
if (basis?.fingerprint !== void 0 && basis.fingerprint !== current.fingerprint) staleBy.push("subject");
|
|
20460
|
+
if (basis?.set_version !== void 0 && majorOf(basis.set_version) !== majorOf(current.setVersion)) staleBy.push("ruler");
|
|
20461
|
+
const stale = staleBy.length > 0;
|
|
20134
20462
|
const other = winner === human ? agent : void 0;
|
|
20135
20463
|
return {
|
|
20136
20464
|
criterion,
|
|
@@ -20140,10 +20468,14 @@ function resolveCell(criterion, stored, seed, current, claimed) {
|
|
|
20140
20468
|
confidence: confidenceOf(winner.confidence),
|
|
20141
20469
|
source: "stored",
|
|
20142
20470
|
stale,
|
|
20471
|
+
...stale ? { stale_by: staleBy } : {},
|
|
20143
20472
|
...typeof winner.evidence === "string" ? { evidence: winner.evidence } : {},
|
|
20144
20473
|
claimed,
|
|
20145
20474
|
others: other === void 0 ? [] : [other],
|
|
20146
|
-
review: human !== void 0 && agent !== void 0 && Math.abs(human.level - agent.level) >= 2
|
|
20475
|
+
review: human !== void 0 && agent !== void 0 && Math.abs(human.level - agent.level) >= 2,
|
|
20476
|
+
...isWeighingProbability(winner.p_serves) ? { p_serves: winner.p_serves } : {},
|
|
20477
|
+
...isWeighingProbability(winner.p_costs) ? { p_costs: winner.p_costs } : {},
|
|
20478
|
+
uncertain: isUncertainCell(winner)
|
|
20147
20479
|
};
|
|
20148
20480
|
}
|
|
20149
20481
|
function positioningWeights(set2) {
|
|
@@ -20210,6 +20542,7 @@ function weighPromise(node, ctx) {
|
|
|
20210
20542
|
const flags = { claim_not_supported: [], claim_contradicted: [], unclaimed_value: [], unclaimed_cost: [] };
|
|
20211
20543
|
const stale = [];
|
|
20212
20544
|
const review = [];
|
|
20545
|
+
const uncertain = [];
|
|
20213
20546
|
for (const cell of cells) {
|
|
20214
20547
|
const weight = ctx.positioning?.weights.get(cell.criterion);
|
|
20215
20548
|
const guess = cell.confidence === 0;
|
|
@@ -20230,10 +20563,11 @@ function weighPromise(node, ctx) {
|
|
|
20230
20563
|
}
|
|
20231
20564
|
if (cell.stale) stale.push(cell.criterion);
|
|
20232
20565
|
if (cell.review) review.push(cell.criterion);
|
|
20566
|
+
if (cell.uncertain) uncertain.push(cell.criterion);
|
|
20233
20567
|
if (cell.source === "stored") {
|
|
20234
20568
|
if (cell.claimed) {
|
|
20235
20569
|
if (cell.level < 0) flags.claim_contradicted.push(cell.criterion);
|
|
20236
|
-
else if (cell.level
|
|
20570
|
+
else if (cell.level === 0) flags.claim_not_supported.push(cell.criterion);
|
|
20237
20571
|
} else if (cell.level < 0) flags.unclaimed_cost.push(cell.criterion);
|
|
20238
20572
|
else if (cell.level >= 1) flags.unclaimed_value.push(cell.criterion);
|
|
20239
20573
|
}
|
|
@@ -20256,7 +20590,8 @@ function weighPromise(node, ctx) {
|
|
|
20256
20590
|
guesswork: { served: share(servedGuess, served), cost: share(costGuess, cost) },
|
|
20257
20591
|
flags,
|
|
20258
20592
|
stale,
|
|
20259
|
-
review
|
|
20593
|
+
review,
|
|
20594
|
+
uncertain
|
|
20260
20595
|
};
|
|
20261
20596
|
}
|
|
20262
20597
|
function matrixSubjects(nodes, matrix) {
|
|
@@ -22339,7 +22674,7 @@ function requireInt2(args, key, min, max) {
|
|
|
22339
22674
|
return value;
|
|
22340
22675
|
}
|
|
22341
22676
|
var optionalString = (args, key) => typeof args[key] === "string" && args[key] !== "" ? args[key] : void 0;
|
|
22342
|
-
function cellRow(cell) {
|
|
22677
|
+
function cellRow(cell, withProbabilities) {
|
|
22343
22678
|
return {
|
|
22344
22679
|
criterion: cell.criterion,
|
|
22345
22680
|
level: cell.level,
|
|
@@ -22347,13 +22682,17 @@ function cellRow(cell) {
|
|
|
22347
22682
|
confidence: cell.confidence,
|
|
22348
22683
|
source: cell.source,
|
|
22349
22684
|
stale: cell.stale,
|
|
22685
|
+
...cell.stale_by !== void 0 ? { stale_by: cell.stale_by } : {},
|
|
22350
22686
|
claimed: cell.claimed,
|
|
22351
22687
|
...cell.evidence !== void 0 ? { evidence: cell.evidence } : {},
|
|
22352
22688
|
...cell.review ? { review: true } : {},
|
|
22689
|
+
...cell.uncertain ? { uncertain: true } : {},
|
|
22690
|
+
...withProbabilities && cell.p_serves !== void 0 ? { p_serves: cell.p_serves } : {},
|
|
22691
|
+
...withProbabilities && cell.p_costs !== void 0 ? { p_costs: cell.p_costs } : {},
|
|
22353
22692
|
...cell.others.length > 0 ? { others: cell.others.map((row) => ({ scorer: row.scorer, level: row.level, confidence: row.confidence, ...row.evidence !== void 0 ? { evidence: row.evidence } : {} })) } : {}
|
|
22354
22693
|
};
|
|
22355
22694
|
}
|
|
22356
|
-
function promiseRow(promise2, withCells) {
|
|
22695
|
+
function promiseRow(promise2, withCells, withProbabilities = false) {
|
|
22357
22696
|
return {
|
|
22358
22697
|
node_id: promise2.node_id,
|
|
22359
22698
|
title: promise2.title,
|
|
@@ -22370,11 +22709,12 @@ function promiseRow(promise2, withCells) {
|
|
|
22370
22709
|
flags: promise2.flags,
|
|
22371
22710
|
stale: promise2.stale,
|
|
22372
22711
|
review: promise2.review,
|
|
22712
|
+
uncertain: promise2.uncertain,
|
|
22373
22713
|
...promise2.archived ? { archived: true } : {},
|
|
22374
|
-
...withCells ? { cells: promise2.cells.map(cellRow) } : {}
|
|
22714
|
+
...withCells ? { cells: promise2.cells.map((cell) => cellRow(cell, withProbabilities)) } : {}
|
|
22375
22715
|
};
|
|
22376
22716
|
}
|
|
22377
|
-
var FILTERS = ["flagged", "stale", "review", "unassessed"];
|
|
22717
|
+
var FILTERS = ["flagged", "stale", "review", "uncertain", "unassessed"];
|
|
22378
22718
|
function matchesFilter(promise2, filter) {
|
|
22379
22719
|
switch (filter) {
|
|
22380
22720
|
case "flagged":
|
|
@@ -22383,6 +22723,8 @@ function matchesFilter(promise2, filter) {
|
|
|
22383
22723
|
return promise2.stale.length > 0;
|
|
22384
22724
|
case "review":
|
|
22385
22725
|
return promise2.review.length > 0;
|
|
22726
|
+
case "uncertain":
|
|
22727
|
+
return promise2.uncertain.length > 0;
|
|
22386
22728
|
case "unassessed":
|
|
22387
22729
|
return !promise2.cells.some((cell) => cell.source === "stored");
|
|
22388
22730
|
default:
|
|
@@ -22423,7 +22765,7 @@ function buildWeighingCatalog(ctx) {
|
|
|
22423
22765
|
tool(
|
|
22424
22766
|
{
|
|
22425
22767
|
name: "get_matrix",
|
|
22426
|
-
description: "The value matrix: what each promise (acceptance) is worth, against the 30 elements of value on a signed -3..+3 scale. Per promise: `served` (sum of positive levels / 3) and `cost` (sum of |negative levels| / 3), NEVER netted; `positioned` (the same over the elements the product's active positioning stands on, each times its weight); `kept_share` (platforms where it is live / platforms it applies to); `guesswork` (the share of served and of cost resting on confidence-0 cells; `positioned` carries its own, and every mass and total says how much of it is guesswork). `flags` is a partition: claim_not_supported (claimed in metadata.values but assessed 0
|
|
22768
|
+
description: "The value matrix: what each promise (acceptance) is worth, against the 30 elements of value on a signed -3..+3 scale that measures REACH in a person's life: +1 within the product, +2 across the product's domain, +3 life-wide; the negatives mirror it, and 0 is weighed and unrelated. Most real promises land at +1; +3 is rare. Each element has its own ladder of what every level means. Per promise: `served` (sum of positive levels / 3) and `cost` (sum of |negative levels| / 3), NEVER netted; `positioned` (the same over the elements the product's active positioning stands on, each times its weight); `kept_share` (platforms where it is live / platforms it applies to); `guesswork` (the share of served and of cost resting on confidence-0 cells; `positioned` carries its own, and every mass and total says how much of it is guesswork). `flags` is a partition: claim_not_supported (claimed in metadata.values but assessed 0), claim_contradicted (claimed but assessed negative), unclaimed_value (not claimed, assessed 1 or more) and unclaimed_cost (not claimed, assessed negative \u2014 authors claim intent, so a cost is never claimed). `stale` lists elements whose winning level was scored before the promise's title, Gherkin or values changed, or against an older major of the ruler; `review` lists elements where a human and an agent differ by 2 or more; `uncertain` lists elements whose winning level a probabilistic scorer was unsure of (read it as a range). A cell nobody has scored reads at a SEEDED level: every claimed value +1 (scorer rule, confidence 0), a guess, never a score \u2014 negatives are never seeded. A human's level beats an agent's beats a seed, whatever the dates. Pass `subject` for one promise with every cell, its evidence, and each element's question and ladder \u2014 what you read before calling assess. Otherwise it lists promises (sort: served | cost | positioned | title; filter: flagged | stale | review | uncertain | unassessed; limit) plus the per-element promised / kept / cost masses. `probabilities: true` adds each cell's stored p_serves / p_costs. A draft positioning feeds nothing.",
|
|
22427
22769
|
inputSchema: {
|
|
22428
22770
|
type: "object",
|
|
22429
22771
|
properties: {
|
|
@@ -22431,7 +22773,8 @@ function buildWeighingCatalog(ctx) {
|
|
|
22431
22773
|
subject: { type: "string", description: "An acceptance id: return that promise with every cell." },
|
|
22432
22774
|
sort: { type: "string", enum: ["served", "cost", "positioned", "title"], description: "Default: served, heaviest first." },
|
|
22433
22775
|
filter: { type: "string", enum: [...FILTERS] },
|
|
22434
|
-
limit: { type: "integer", minimum: 1, maximum: 200, description: "Default 25." }
|
|
22776
|
+
limit: { type: "integer", minimum: 1, maximum: 200, description: "Default 25." },
|
|
22777
|
+
probabilities: { type: "boolean", description: "With `subject`: add each cell's stored p_serves / p_costs. Default false \u2014 the `uncertain` marker is usually enough." }
|
|
22435
22778
|
},
|
|
22436
22779
|
additionalProperties: false
|
|
22437
22780
|
}
|
|
@@ -22454,7 +22797,7 @@ function buildWeighingCatalog(ctx) {
|
|
|
22454
22797
|
const notes = [];
|
|
22455
22798
|
if (skipped.length > 0) notes.push(`${skipped.length} stored set(s) or matrix(es) are malformed or duplicated and are ignored \u2014 see \`skipped\`.`);
|
|
22456
22799
|
if (view.positioning !== null && !view.positioning.active) notes.push("The positioning is a draft \u2014 `positioned` figures are absent until it is saved as active.");
|
|
22457
|
-
if (view.totals.assessed === 0) notes.push("Nothing has been assessed yet \u2014 every
|
|
22800
|
+
if (view.totals.assessed === 0) notes.push("Nothing has been assessed yet \u2014 every claimed value is seeded at +1 (confidence 0), a guess.");
|
|
22458
22801
|
const subject = optionalString(args, "subject");
|
|
22459
22802
|
if (subject !== void 0) {
|
|
22460
22803
|
const promise2 = view.promises.find((candidate) => candidate.node_id === subject);
|
|
@@ -22462,9 +22805,18 @@ function buildWeighingCatalog(ctx) {
|
|
|
22462
22805
|
return {
|
|
22463
22806
|
matrix: { id: view.matrix.id, set: view.matrix.set, set_version: view.set.version },
|
|
22464
22807
|
scale: weighingScaleOf(view.set),
|
|
22808
|
+
// Each element's own question and ladder: a level means what ITS ladder says, the scale's anchors are the fallback.
|
|
22809
|
+
elements: view.set.criteria.map((criterion) => ({
|
|
22810
|
+
id: criterion.id,
|
|
22811
|
+
name: criterion.name,
|
|
22812
|
+
tier: criterion.group,
|
|
22813
|
+
...criterion.question !== void 0 ? { question: criterion.question } : {},
|
|
22814
|
+
...criterion.definition !== void 0 ? { definition: criterion.definition } : {},
|
|
22815
|
+
...criterion.anchors !== void 0 ? { anchors: criterion.anchors } : {}
|
|
22816
|
+
})),
|
|
22465
22817
|
confidence_anchors: CONFIDENCE_ANCHORS,
|
|
22466
22818
|
positioning,
|
|
22467
|
-
promise: promiseRow(promise2, true),
|
|
22819
|
+
promise: promiseRow(promise2, true, args.probabilities === true),
|
|
22468
22820
|
...skipped.length > 0 ? { skipped } : {},
|
|
22469
22821
|
...notes.length > 0 ? { notes } : {}
|
|
22470
22822
|
};
|
|
@@ -22508,7 +22860,7 @@ function buildWeighingCatalog(ctx) {
|
|
|
22508
22860
|
tool(
|
|
22509
22861
|
{
|
|
22510
22862
|
name: "assess",
|
|
22511
|
-
description: "Record one judgement: a signed level (-3..+3) for one promise on one value element, with how sure you are and why. Read the promise first with get_matrix `subject` so you score against the
|
|
22863
|
+
description: "Record one judgement: a signed level (-3..+3) for one promise on one value element, with how sure you are and why. Read the promise first with get_matrix `subject` so you score against the element's own ladder, not from memory: the level is how far into the person's life it reaches (+1 within the product, +2 across its domain, +3 life-wide). 0 means weighed and unrelated; a negative level is a COST (the promise works against that value) \u2014 score costs you find, authors rarely claim them, and an unclaimed cost is the most valuable thing an audit returns. `confidence`: 0 guess \xB7 1 inferred from the promise's own text \xB7 2 evidenced (cites something outside it) \xB7 3 verified. `evidence` is required above confidence 0: a score without a citation is an opinion. Scored as an AGENT \u2014 a human's level for the same cell keeps winning and yours is recorded beside it, flagged for review when you differ by 2 or more. The tool stamps what you cannot: who you are (and, where it can tell, whose hands you are \u2014 in a repository that is your git author name, read from `ARKAIK_ON_BEHALF_OF`, then `git config arkaik.user`, then `git config user.name`, and written into the committed sidecar; set `arkaik.user` to `-` to record nobody), the set's version and a fingerprint of the promise, so a later edit to its title, Gherkin or values marks your score stale. In a repository it upserts docs/weighing/assessments/<matrix>.json (nothing in the journal); on a hosted project it records weighing.assessment.recorded. The write goes through the same validator-gated gate as the app's form: an unknown element, an out-of-range level or a subject that is not an acceptance refuses with the reason.",
|
|
22512
22864
|
inputSchema: {
|
|
22513
22865
|
type: "object",
|
|
22514
22866
|
properties: {
|
|
@@ -22521,7 +22873,9 @@ function buildWeighingCatalog(ctx) {
|
|
|
22521
22873
|
model: { type: "string", maxLength: 200, description: "The model you are, when you know. At most 200 characters." },
|
|
22522
22874
|
run: { type: "string", maxLength: 200, description: "The audit or session this score belongs to. At most 200 characters." },
|
|
22523
22875
|
commit: { type: "string", maxLength: 200 },
|
|
22524
|
-
matrix: { type: "string", description: `Default: ${VALUE_MATRIX_ID}.` }
|
|
22876
|
+
matrix: { type: "string", description: `Default: ${VALUE_MATRIX_ID}.` },
|
|
22877
|
+
p_serves: { type: "number", minimum: 0, maximum: 1, description: "Only from a probabilistic scorer: how sure it is (0 to 1) that the promise serves this element. Certainty, not size." },
|
|
22878
|
+
p_costs: { type: "number", minimum: 0, maximum: 1, description: "The same for costs, asked independently. A level its scorer was unsure of reads as a range." }
|
|
22525
22879
|
},
|
|
22526
22880
|
required: ["subject", "criterion", "level", "confidence"],
|
|
22527
22881
|
additionalProperties: false
|
|
@@ -22549,7 +22903,10 @@ function buildWeighingCatalog(ctx) {
|
|
|
22549
22903
|
...refs !== void 0 && refs.length > 0 ? { refs } : {},
|
|
22550
22904
|
...optionalString(args, "model") !== void 0 ? { model: optionalString(args, "model") } : {},
|
|
22551
22905
|
...optionalString(args, "run") !== void 0 ? { run: optionalString(args, "run") } : {},
|
|
22552
|
-
...optionalString(args, "commit") !== void 0 ? { commit: optionalString(args, "commit") } : {}
|
|
22906
|
+
...optionalString(args, "commit") !== void 0 ? { commit: optionalString(args, "commit") } : {},
|
|
22907
|
+
// Passed as given: a value off 0..1 is the planner's to refuse, with the reason.
|
|
22908
|
+
...args.p_serves !== void 0 ? { p_serves: args.p_serves } : {},
|
|
22909
|
+
...args.p_costs !== void 0 ? { p_costs: args.p_costs } : {}
|
|
22553
22910
|
};
|
|
22554
22911
|
const graph = await load2();
|
|
22555
22912
|
const section = sectionOf(graph);
|
|
@@ -22568,7 +22925,7 @@ function buildWeighingCatalog(ctx) {
|
|
|
22568
22925
|
if (before?.source === "stored" && before.scorer.kind === "human") {
|
|
22569
22926
|
notes.push("A human's level already stands for this cell and keeps winning \u2014 yours is recorded beside it" + (Math.abs(before.level - level) >= 2 ? ", and the cell now sits on the review list (you differ by 2 or more)." : "."));
|
|
22570
22927
|
}
|
|
22571
|
-
const anchor = weighingScaleOf(view.set).anchors[String(level)];
|
|
22928
|
+
const anchor = view.set.criteria.find((candidate) => candidate.id === criterion)?.anchors?.[String(level)] ?? weighingScaleOf(view.set).anchors[String(level)];
|
|
22572
22929
|
if (ctx.qualityRoot === void 0) {
|
|
22573
22930
|
const events = await appendHosted2([input]);
|
|
22574
22931
|
const recorded = events.find((event) => event.type === WEIGHING_ASSESSMENT_RECORDED);
|
|
@@ -23501,7 +23858,7 @@ function resolveRemoteConfig(argv2, env, cwd) {
|
|
|
23501
23858
|
}
|
|
23502
23859
|
|
|
23503
23860
|
// src/index.ts
|
|
23504
|
-
var VERSION = "0.
|
|
23861
|
+
var VERSION = "0.12.0";
|
|
23505
23862
|
var argv = process.argv.slice(2);
|
|
23506
23863
|
if (argv.includes("--help") || argv.includes("-h")) {
|
|
23507
23864
|
process.stdout.write(
|
package/package.json
CHANGED