pi-braid 0.43.50 → 0.43.51

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 CHANGED
@@ -96,6 +96,17 @@ Adding a thirteenth extension moves the counts six source claims pin to the mani
96
96
  schema's recorded line for the `braid.contrib.*` reader; `check:doc-drift` and `check:schema` demanded
97
97
  both repairs in the same commit.
98
98
 
99
+ ## Core — a prefix is ranked, never qualifying on its own (2026-11-11)
100
+
101
+ The same defect as the class noun, one leg over: `improve` starts `improvement`, so the token-prefix leg
102
+ of the matcher counted a plain English word as a qualifying name hit. Measured on the shipped scorer, a
103
+ design complaint ("please improve the landing page, it looks generic and flat") selected
104
+ `cv-improvement` with score 2 and reason `name`, while `visual-creator` scored zero. A prefix hit now
105
+ adds its points and is ranked, and it no longer sets the qualifying flag: a word that only starts a name
106
+ token cannot carry a match by itself, and the corpus-frequency gate still refuses a common prefix. The
107
+ design complaint scores zero against the same skill, the labelled set holds at recall@2 13/24 with the
108
+ same 2/7 slot spend, and a rare prefix beside a real token still contributes its two points.
109
+
99
110
  ## Core — a skill's class noun stopped qualifying it on its own (2026-11-11)
100
111
 
101
112
  A question about search quality was answered with `cv-improvement`: the word `improvements` stems to a
package/build-info.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "pi-braid",
3
- "version": "0.43.50",
4
- "sha": "0cbf68ab9dbcb4f9200114c3d4d64742437f90eb",
5
- "shaShort": "0cbf68ab",
3
+ "version": "0.43.51",
4
+ "sha": "54f4e60bb5d2aab8cf715cbde3db71f90445b89d",
5
+ "shaShort": "54f4e60b",
6
6
  "branch": "detached",
7
7
  "dirty": false,
8
- "packedAt": "2026-11-11T19:58:55.773Z"
8
+ "packedAt": "2026-11-11T22:02:52.457Z"
9
9
  }
@@ -521,15 +521,17 @@ export function matchSkill(skill, keywords, promptText, keywordDf) {
521
521
  }
522
522
  continue;
523
523
  }
524
- // Token-prefix match in name ("engine" starting "engineer"): name
525
- // evidence, but only while the word is distinctive enough to mean it.
524
+ // Token-prefix match in name ("engine" starting "engineer", "improve"
525
+ // starting "improvement"): ranked evidence, never a qualifying signal on its
526
+ // own. A prefix is a shorter word that happens to start a longer one, and
527
+ // the ordinary word is usually the prefix ("improve" for "improvement"), so
528
+ // a prefix alone is exactly the one-shared-word case the bar exists to
529
+ // refuse. The rarity gate stays: a corpus-common prefix earns nothing.
526
530
  if (occurrence?.form === "prefix" && df < COMMON_KEYWORD_DF) {
527
531
  score += 2;
528
532
  signals++;
529
533
  evidenceDf += df;
530
534
  noteReason("name");
531
- nameHit = true;
532
- qualifying++;
533
535
  continue;
534
536
  }
535
537
  // Corpus-common keyword: the weak legs score nothing for it, so a prompt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-braid",
3
- "version": "0.43.50",
3
+ "version": "0.43.51",
4
4
  "description": "🥨 Braid - Metacognitive extension suite for pi coding agent: Adds memory, plan tracking, structured cognitive signals and completion checks on top of pi core loop, so long sessions keep their context and stop claiming unfinished work.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -694,15 +694,17 @@ export function matchSkill(
694
694
  }
695
695
  continue;
696
696
  }
697
- // Token-prefix match in name ("engine" starting "engineer"): name
698
- // evidence, but only while the word is distinctive enough to mean it.
697
+ // Token-prefix match in name ("engine" starting "engineer", "improve"
698
+ // starting "improvement"): ranked evidence, never a qualifying signal on its
699
+ // own. A prefix is a shorter word that happens to start a longer one, and
700
+ // the ordinary word is usually the prefix ("improve" for "improvement"), so
701
+ // a prefix alone is exactly the one-shared-word case the bar exists to
702
+ // refuse. The rarity gate stays: a corpus-common prefix earns nothing.
699
703
  if (occurrence?.form === "prefix" && df < COMMON_KEYWORD_DF) {
700
704
  score += 2;
701
705
  signals++;
702
706
  evidenceDf += df;
703
707
  noteReason("name");
704
- nameHit = true;
705
- qualifying++;
706
708
  continue;
707
709
  }
708
710
  // Corpus-common keyword: the weak legs score nothing for it, so a prompt