@zew1me/pi-clear 0.1.1-alpha.210 → 0.1.1-alpha.221
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/ATTRIBUTION.md +60 -0
- package/package.json +1 -1
package/dist/ATTRIBUTION.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# Attribution
|
|
2
2
|
|
|
3
|
+
## Model router (`extensions/router`)
|
|
4
|
+
|
|
5
|
+
This section supersedes, for the router only, the "router … intentionally not adopted" notes in the subagent context
|
|
6
|
+
mode and npm packaging sections below: a simplified router is now adopted from the sources listed here.
|
|
7
|
+
|
|
8
|
+
- Source: [`nigel-upstart/pi-buildout`](https://github.com/nigel-upstart/pi-buildout) `extensions/router/` and
|
|
9
|
+
`specs/routing-layer/`
|
|
10
|
+
- Revision reviewed:
|
|
11
|
+
[`1453faf`](https://github.com/nigel-upstart/pi-buildout/commit/1453fafc11158421bb5ad46e91f1ff33cd662b41)
|
|
12
|
+
- License: MIT (Copyright 2026 Nigel Stuke); the root `LICENSE` preserves the notice.
|
|
13
|
+
|
|
14
|
+
Copied and modified code: the continuation, discontinuity and same-task-operation regexes and the plan-then-implement
|
|
15
|
+
rule of `deterministicBoundaryGate` (`core/lease.ts`); the provider quota-exhaustion error pattern (`core/fallback.ts`);
|
|
16
|
+
the significant-reusable-cache threshold and the "cache resists a marginal task switch" rule; and the bounded,
|
|
17
|
+
newest-first session synopsis (`core/synopsis.ts`, reduced to goals, outcomes, files and failed tools). Adapted ideas:
|
|
18
|
+
an LLM classifier that only extracts task features while deterministic code maps them to an archetype and route;
|
|
19
|
+
per-task leases with hard boundaries; a fresh-task classifier failure keeping the current route; the reconciliation rule
|
|
20
|
+
that a switch must beat its cache-switch penalty; shadow/active modes with a `/route` command; JSONL telemetry without
|
|
21
|
+
prompt text that drops to shadow on write failure; and a Pi contract canary test. Not adopted: the twenty-field feature
|
|
22
|
+
schema and twelve archetypes (reduced to seven features and six archetypes), code-defined model policies and
|
|
23
|
+
evidence/telemetry-learned ranking, secondary cross-vendor classifier reconciliation, reviewer sessions, plan
|
|
24
|
+
validators, the safety-policy layer, prompt profiles and system-prompt compilation, xstate, OpenTelemetry spans,
|
|
25
|
+
endpoint health probes, the `off` mode, and private packaging.
|
|
26
|
+
|
|
27
|
+
- Source: [`alexei-led/pi-model-router`](https://github.com/alexei-led/pi-model-router)
|
|
28
|
+
- Revision reviewed:
|
|
29
|
+
[`04a24b0`](https://github.com/alexei-led/pi-model-router/commit/04a24b09c3041d35cc805ecf819a06843b6c120f)
|
|
30
|
+
- License: MIT
|
|
31
|
+
|
|
32
|
+
Conceptual inspiration only, no code copied: explicit capability tiers bound to ordered fallback lists; the switch-cost
|
|
33
|
+
horizon comparison (stay warm versus one cold request plus warm requests on the target); effort-only changes keeping the
|
|
34
|
+
prompt cache; quota-group holds driven by `retry-after`; repeated-failure escalation keyed by a normalized error
|
|
35
|
+
signature after an intervening edit. Not adopted: the custom provider wrapper, the tier × activity × phase matrix,
|
|
36
|
+
advisor probability-mass selection, per-request background advice, session budget caps and inline prompt keywords.
|
|
37
|
+
|
|
38
|
+
- Source: [`mraghakhani/pi-triage-router`](https://github.com/mraghakhani/pi-triage-router)
|
|
39
|
+
- Revision reviewed:
|
|
40
|
+
[`7e93e36`](https://github.com/mraghakhani/pi-triage-router/commit/7e93e36af34bf1e5414a32a2aac8d053307cf976)
|
|
41
|
+
- License: MIT
|
|
42
|
+
|
|
43
|
+
Conceptual inspiration only, no code copied: routing through Pi's virtual-model `route()` hook, one pure decision
|
|
44
|
+
function returning a reason code, sending `direct` (compaction) requests to the cheapest model, and context-window
|
|
45
|
+
eligibility. Not adopted: the local ONNX classifier, benchmark/price scoring, OpenRouter price caches and the dashboard.
|
|
46
|
+
|
|
47
|
+
- Source: [`green-dalii/pi-shift-router`](https://github.com/green-dalii/pi-shift-router)
|
|
48
|
+
- Revision reviewed:
|
|
49
|
+
[`ee8b627`](https://github.com/green-dalii/pi-shift-router/commit/ee8b627eafb045e080814a04e068c97ab52b240a)
|
|
50
|
+
- License: MIT
|
|
51
|
+
|
|
52
|
+
Conceptual inspiration only, no code copied: the expected-value escalation threshold θ = 1/R; treating low-confidence or
|
|
53
|
+
missing classifier answers as a hold; asymmetric stickiness (up immediately, down only after consecutive decisive lower
|
|
54
|
+
decisions); blocking downgrades while the prompt cache is warm; and exponential cooldowns (×4) cleared by a successful
|
|
55
|
+
response, starting 4xx failures further up the ladder. Changed here: the cap is one week instead of six hours, because
|
|
56
|
+
providers enforce weekly limits. Not adopted: the eco/default/sport presets (R is fixed at 3), event-driven `setModel`
|
|
57
|
+
switching, the two-tier fast/smart model, orchestration mode, acceptance audits, savings reports and session profiles.
|
|
58
|
+
|
|
59
|
+
- Pi virtual models and classifiers: `@earendil-works/pi-coding-agent` 1.6.0 `docs/virtual-models.md` and
|
|
60
|
+
`examples/extensions/jev-router.ts` (MIT) informed the `route()` reason handling; no example code was copied.
|
|
61
|
+
- OpenAI Decisions API guide: <https://developers.openai.com/api/docs/guides/decisions> informed the classifier chain.
|
|
62
|
+
|
|
3
63
|
## Published-package skills smoke tests
|
|
4
64
|
|
|
5
65
|
- Source: [`nigel-upstart/pi-buildout`](https://github.com/nigel-upstart/pi-buildout)
|