@commonlyai/cli 0.1.66 → 0.1.67
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/package.json +1 -1
- package/src/lib/upstream-refusal.js +20 -0
package/package.json
CHANGED
|
@@ -17,6 +17,26 @@
|
|
|
17
17
|
* 2. Exact-match refusal for credentials. If the kept text contains a value
|
|
18
18
|
* this spawn was handed, the text is dropped — a known value, not a guessed
|
|
19
19
|
* shape (Wren 70877).
|
|
20
|
+
*
|
|
21
|
+
* Two limits follow from rule 2. They are the accepted cost of refusing guessed
|
|
22
|
+
* shapes, named here so they are not rediscovered as defects later (Vera 71082):
|
|
23
|
+
*
|
|
24
|
+
* a. The match is exact and against THIS spawn's values only, so a credential
|
|
25
|
+
* that arrives transformed — base64 inside a proxy error, percent-encoded in
|
|
26
|
+
* a URL echo — does not match and the text is kept. Matching transformed
|
|
27
|
+
* shapes instead would reintroduce the class rule 1 exists to avoid.
|
|
28
|
+
* b. The keep-list can still surface someone ELSE's secret. A third party's key
|
|
29
|
+
* relayed in an upstream error is not detectable here, because the one
|
|
30
|
+
* inventory this module has is the set of values it was itself handed.
|
|
31
|
+
*
|
|
32
|
+
* Scope: this reader is wired into the pi adapter only. codex and claude are NOT
|
|
33
|
+
* silent the way pi was: the claude adapter rejects on a non-zero exit and
|
|
34
|
+
* deliberately reports stdout with it, because a `-p` run writes quota
|
|
35
|
+
* conditions there; the codex adapter rejects on `turnFailedMessage` even at
|
|
36
|
+
* exit 0. Their gap is the opposite one — the text they raise is the raw tail,
|
|
37
|
+
* unscrubbed by the rules above, and carries no HTTP status for the run loop to
|
|
38
|
+
* key a refusal on. Extending this module to them is adapter work (TASK-103),
|
|
39
|
+
* not a line in this comment.
|
|
20
40
|
*/
|
|
21
41
|
|
|
22
42
|
/** The kept detail is truncated, ellipsis included, to this many characters. */
|