sprag-cli 3.107.1 → 3.108.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sprag-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.108.0",
|
|
4
4
|
"description": "The delegation layer for Claude Code and Codex: each task goes to the model and effort that fits it, down to cheaper models for lookups and up to higher effort when a cheaper run would miss, backed by public replay cases, with a live statusline and team rules for Pro and Enterprise.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Delegation bounds
|
|
2
2
|
|
|
3
|
-
You were spawned by a delegation call from another session. These
|
|
3
|
+
You were spawned by a delegation call from another session. These six rules
|
|
4
4
|
keep your exploration finite and your output usable by the caller that spawned
|
|
5
5
|
you.
|
|
6
6
|
|
|
@@ -34,3 +34,10 @@ you.
|
|
|
34
34
|
command lookup and fails). Quote any argument with `?`, `*` or `[`, URLs
|
|
35
35
|
above all. The shell tool is `Bash`, with a capital B. A refused command
|
|
36
36
|
line wastes a call and reads as a failure in the caller's records.
|
|
37
|
+
|
|
38
|
+
6. **Look where the answer lives before calling it unknown.** When a page
|
|
39
|
+
carries its key content in images or screenshots, open them before you
|
|
40
|
+
report the content as unverifiable. When the question presumes something
|
|
41
|
+
exists ("which file implements X") and you cannot find it, say that nothing
|
|
42
|
+
implements it, or how it actually happens, instead of naming the closest
|
|
43
|
+
match.
|
package/src/judgement-prompt.js
CHANGED
|
@@ -43,6 +43,11 @@
|
|
|
43
43
|
* investigation" describe the purpose, not the job). Over the 240 prompts of
|
|
44
44
|
* the delegation-ledger snapshot the pass flags 52, about 22%. Both samples
|
|
45
45
|
* come from one user.
|
|
46
|
+
*
|
|
47
|
+
* Added 2026-11-09 after the v4 replay (23 delegations, verify-graded): a
|
|
48
|
+
* question asking which file implements a behaviour that no file implements
|
|
49
|
+
* came back unanswered from Sonnet. The new absence pattern flags 2 of the 309
|
|
50
|
+
* snapshot prompts, both of that shape.
|
|
46
51
|
*/
|
|
47
52
|
|
|
48
53
|
const MARKER = '<!-- sprag:delegation -->';
|
|
@@ -70,6 +75,9 @@ const PATTERNS = {
|
|
|
70
75
|
],
|
|
71
76
|
absence: [
|
|
72
77
|
/없다는 (?:결론|사실)|없다고 (?:단정|판단|보고)|없음을 (?:확인|단정)|(?:is|are) there any\b|does (?:it|the page|the doc|the docs|any page|this) (?:say|mention|describe)|any mention\b|if the page does not answer|read-only search\b/,
|
|
78
|
+
// Asking which code does a behaviour presumes some code does. When none does, or it happens another way
|
|
79
|
+
// (an @ import rather than a hook), the honest answer is that absence, which a cheaper model misses.
|
|
80
|
+
/which (?:source )?(?:file|function|module|code)s? (?:implements|injects|handles|is responsible for)\b|어디서 어떻게 구현|어느 (?:파일|함수|모듈)(?:이|가) [^\n]{0,30}(?:구현|주입|처리)하/,
|
|
73
81
|
],
|
|
74
82
|
conditional: [
|
|
75
83
|
/출력에 따라|결과에 따라|보고 (?:나서 )?(?:더 |어느 )|필요하면 (?:소스|코드|파일|로그)|depending on (?:what|the output|the result)|decide (?:which|what) to (?:open|read|look)|follow (?:the )?leads|(?:무엇|뭔)(?:인지)?(?:는|은)? 아직 모(?:른다|릅니다)|구현 (?:상태|여부)[^\n]{0,10}(?:조사|확인)|(?:막히면|실패하면|안 되면|if (?:it is blocked|that fails|blocked))[^\n]{0,80}(?:다음|대체|우회|fall ?back|시도|instead|try)/,
|
package/src/model-rules.js
CHANGED
|
@@ -341,6 +341,8 @@ export function renderModelRatchet(rules, lang = userLanguage(), { root, grade =
|
|
|
341
341
|
' 바꿔 9회 돌렸고 9회 모두 반려된 후보를 다시 추천했습니다).',
|
|
342
342
|
'- 개선점이나 권고를 내는 검토, 감사, 원인 진단, 검색이 필요한 조사, 무엇이 "없다"고',
|
|
343
343
|
' 단정해야 하는 조회, 출력을 보고 더 볼 곳을 정해야 하는 점검은 결론이 판단입니다.',
|
|
344
|
+
' "어느 파일이 이 동작을 하는가"처럼 동작을 하는 코드를 찾는 조회도 여기에 듭니다. 그런',
|
|
345
|
+
' 코드가 없거나 다른 경로로 일어나면 "없다"가 답이기 때문입니다.',
|
|
344
346
|
' 이런 일은 위임하지 않고 메인이 맡습니다. 세션이 Sonnet이면 Opus(effort high)로',
|
|
345
347
|
' 올립니다. effort xhigh는 권하지 않습니다(판단형 10건 실측에서 틀린 주장이 3개에서',
|
|
346
348
|
' 11개로 늘었습니다). 메인 세션의 effort가 low나 medium이면 판단 부분을 Opus effort high',
|