@mjasnikovs/pi-task 0.40.13 → 0.40.14

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.
@@ -22,14 +22,24 @@ export interface RetrieveOptions {
22
22
  contentBudget?: number;
23
23
  }
24
24
  /**
25
- * How many chunks a retrieval returns, per corpus. An npm package gets 8 and
26
- * project source gets 50.
25
+ * How many chunks a retrieval returns. Both corpora get 50, and that is measured.
27
26
  *
28
- * Nothing in this repo records WHY they differ. They are stated here, together,
29
- * so the divergence is at least visible and changing either is a
30
- * retrieval-policy change, not a tidy-up.
27
+ * The package limit was 8 and nothing recorded why it differed from project
28
+ * source's 50. Measured both ways, over every recorded query, on the two things
29
+ * that can be measured:
30
+ *
31
+ * retrieval — does a chunk DEFINE the queried symbol? 91/101 -> 97/101,
32
+ * monotone to 50 and flat at 100, p = 0.0703
33
+ * answers — does the extraction child answer at all? 67/94 -> 79/94,
34
+ * only-8 3, only-50 15, McNemar exact p = 0.0075
35
+ *
36
+ * Abstention on the replay corpus falls 29% to 16%. The cost is +70% of retrieved
37
+ * text, and `RETRIEVE_CONTENT_BUDGET` still bounds it — at 8 only 6 of 74 calls
38
+ * reached that budget, so two thirds of it was never spent.
39
+ *
40
+ * Changing either is still a retrieval-policy change, not a tidy-up.
31
41
  */
32
- export declare const PACKAGE_RETRIEVE_LIMIT = 8;
42
+ export declare const PACKAGE_RETRIEVE_LIMIT = 50;
33
43
  export declare const PROJECT_RETRIEVE_LIMIT = 50;
34
44
  /** Character budget for the assembled chunk text. The same for both corpora. */
35
45
  export declare const RETRIEVE_CONTENT_BUDGET = 24000;
@@ -1,12 +1,22 @@
1
1
  /**
2
- * How many chunks a retrieval returns, per corpus. An npm package gets 8 and
3
- * project source gets 50.
2
+ * How many chunks a retrieval returns. Both corpora get 50, and that is measured.
4
3
  *
5
- * Nothing in this repo records WHY they differ. They are stated here, together,
6
- * so the divergence is at least visible and changing either is a
7
- * retrieval-policy change, not a tidy-up.
4
+ * The package limit was 8 and nothing recorded why it differed from project
5
+ * source's 50. Measured both ways, over every recorded query, on the two things
6
+ * that can be measured:
7
+ *
8
+ * retrieval — does a chunk DEFINE the queried symbol? 91/101 -> 97/101,
9
+ * monotone to 50 and flat at 100, p = 0.0703
10
+ * answers — does the extraction child answer at all? 67/94 -> 79/94,
11
+ * only-8 3, only-50 15, McNemar exact p = 0.0075
12
+ *
13
+ * Abstention on the replay corpus falls 29% to 16%. The cost is +70% of retrieved
14
+ * text, and `RETRIEVE_CONTENT_BUDGET` still bounds it — at 8 only 6 of 74 calls
15
+ * reached that budget, so two thirds of it was never spent.
16
+ *
17
+ * Changing either is still a retrieval-policy change, not a tidy-up.
8
18
  */
9
- export const PACKAGE_RETRIEVE_LIMIT = 8;
19
+ export const PACKAGE_RETRIEVE_LIMIT = 50;
10
20
  export const PROJECT_RETRIEVE_LIMIT = 50;
11
21
  /** Character budget for the assembled chunk text. The same for both corpora. */
12
22
  export const RETRIEVE_CONTENT_BUDGET = 24_000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjasnikovs/pi-task",
3
- "version": "0.40.13",
3
+ "version": "0.40.14",
4
4
  "description": "Deterministic task planning and spec-orchestration for local models — crash-safe /task pipelines with verify/enforce gates, a real-time remote web view, and web/docs/fetch/worker subagent tools.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",