leerness 1.9.434 → 1.9.435
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 +11 -0
- package/README.md +5 -5
- package/bin/leerness.js +5 -1
- package/lib/agents.js +12 -3
- package/package.json +1 -1
- package/scripts/e2e.js +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.435 — 2026-06-08 — agents dispatch task flag-value 흡수 차단 (11th 외부평가 Codex P2, UR-0137)
|
|
4
|
+
|
|
5
|
+
**🧹 `agents dispatch "<task>" --to codex` 의 생성 명령에 `codex`(또는 경로)가 task 본문으로 섞이던 문제.**
|
|
6
|
+
|
|
7
|
+
### 변경
|
|
8
|
+
- **`lib/agents.js` dispatch/multi `_taskArg`**: 상위(bin)에서 `--to` flag 는 제거되나 그 값(codex)은 positional 로 남아 기존 `filter(!startsWith('-'))` 가 task 에 흡수시켰음. → 첫 flag 에서 break + lib 가 소비하는 값-flag(`--to`/`--model`/`--role`/`--only`) 값을 task 에서 제외. 명시 task 는 `--task` 폴백.
|
|
9
|
+
- 결과: `dispatch "REVIEWTASK" --to codex --path X` → 생성 명령 `codex exec … "REVIEWTASK"`(codex/경로 미흡수). 양쪽 인자 순서 안전.
|
|
10
|
+
|
|
11
|
+
### 검증 (회귀 0)
|
|
12
|
+
- **selftest 179→180** + **E2E 신규 B(1.9.435)**: dispatch task 에 `--to`/경로 값 흡수 없음.
|
|
13
|
+
|
|
3
14
|
## 1.9.434 — 2026-06-08 — health/drift/status 미존재 경로 exit 1 통일 (11th 외부평가 Opus P2, UR-0136)
|
|
4
15
|
|
|
5
16
|
**🚧 존재하지 않는 경로를 "healthy"로 위조 보고하던 문제 — CI 게이트 안전성.**
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> **AI 코딩 에이전트의 거짓 완료·중복·망각·충돌을 막아주는 검수·기억·협업 CLI 하네스.**
|
|
4
4
|
> **A CLI harness that stops AI coding agents from faking completion, duplicating work, forgetting context, and colliding.**
|
|
5
5
|
|
|
6
|
-
[](https://www.npmjs.com/package/leerness) [](https://www.npmjs.com/package/leerness) []() []() []() []() []() []()
|
|
7
7
|
|
|
8
8
|
```
|
|
9
9
|
╔══════════════════════════════════════════════════════════════╗
|
|
@@ -471,7 +471,7 @@ MIT — © leerness contributors
|
|
|
471
471
|
<!-- leerness:project-readme:start -->
|
|
472
472
|
## Leerness Project Harness
|
|
473
473
|
|
|
474
|
-
이 프로젝트는 Leerness v1.9.
|
|
474
|
+
이 프로젝트는 Leerness v1.9.435 하네스를 사용합니다. AI 에이전트는 작업 전 `leerness handoff`로 컨텍스트를 적재하고, 작업 후 `leerness check`/`leerness audit`/`leerness session close`를 수행해야 합니다.
|
|
475
475
|
|
|
476
476
|
### 정체성 — AI 에이전트 운영 레이어 (UR-0030)
|
|
477
477
|
|
|
@@ -525,7 +525,7 @@ leerness memory restore decision <date|title>
|
|
|
525
525
|
|
|
526
526
|
### MCP server (외부 AI 통합)
|
|
527
527
|
|
|
528
|
-
Leerness v1.9.
|
|
528
|
+
Leerness v1.9.435는 stdio JSON-RPC MCP server를 내장합니다 — Claude Code · Cursor · Codex CLI 등 외부 AI에 **85개 도구**를 노출:
|
|
529
529
|
|
|
530
530
|
```jsonc
|
|
531
531
|
// 카테고리별
|
|
@@ -546,7 +546,7 @@ Leerness v1.9.434는 stdio JSON-RPC MCP server를 내장합니다 — Claude Cod
|
|
|
546
546
|
`<<autonomous-loop-dynamic>>` 신호만 보내면 AI가:
|
|
547
547
|
1) 다음 라운드 후보 선정 → 2) 코드 변경 → 3) stress-v* 신규 작성 + 누적 회귀 → 4) e2e 219/219 → 5) npm pack + git tag + GitHub release → 6) main 자동 push (1.9.140+) → 7) session close → 8) 다음 라운드 예약.
|
|
548
548
|
|
|
549
|
-
현재 누적: **70 라운드 (1.9.40 → 1.9.
|
|
549
|
+
현재 누적: **70 라운드 (1.9.40 → 1.9.435)** · 매 라운드 GitHub release/태그 생성 · _reports/는 비공개 보존.
|
|
550
550
|
|
|
551
551
|
### 성능 가이드 (1.9.140 측정)
|
|
552
552
|
|
|
@@ -584,6 +584,6 @@ leerness release pack --close --auto-main-push
|
|
|
584
584
|
- `.harness/session-handoff.md`: 다음 세션 인수인계 (자동 작성)
|
|
585
585
|
- `.harness/lessons.md` / `decisions.md` / `rules.md`: 영구 메모리 (5 surface)
|
|
586
586
|
|
|
587
|
-
Last synced by Leerness v1.9.
|
|
587
|
+
Last synced by Leerness v1.9.435: 2026-06-07
|
|
588
588
|
<!-- leerness:project-readme:end -->
|
|
589
589
|
|
package/bin/leerness.js
CHANGED
|
@@ -31,7 +31,7 @@ const { _evidenceQuality, _parseEvidenceStats, _shellGuardAnalyze, _claimFileInG
|
|
|
31
31
|
// 1.9.295 (UR-0025 4단계): 정적 데이터 카탈로그 모듈 분리 (비파괴, require-based).
|
|
32
32
|
const { CAPABILITY_SURFACE, POWERFUL_COMMANDS, ADAPTERS, REUSE_CATEGORIES, REUSE_CHECKLIST, _DEFAULT_PLATFORM_CONSTRAINTS, _DEFAULT_DOMAIN_CATALOG, _LSP_LANG_PATTERNS, OPTIMISM_PATTERNS, BUILT_IN_PERSONAS, STRINGS, BUILTIN_CATALOG, ROADMAP_STATUS_LABEL, ROADMAP_STATUS_COLOR, SECRET_PATTERNS, MERGE_OVERWRITE_FILES, MINIMAL_SKIP_KEYS, REQUIRED_WORKSPACE_FILES, KEYWORD_STOPWORDS, SKILL_CATALOG_PRESETS } = require('../lib/catalogs'); // 1.9.344/368/369 (UR-0025): catalog 분리 (MERGE_OVERWRITE_FILES/MINIMAL_SKIP_KEYS 포함)
|
|
33
33
|
|
|
34
|
-
const VERSION = '1.9.
|
|
34
|
+
const VERSION = '1.9.435';
|
|
35
35
|
|
|
36
36
|
// 1.9.290 (UR-0037, Codex gpt-5.5 #4 수렴): CLI 전용 부작용은 require 시 실행하지 않는다.
|
|
37
37
|
// 이전: warning listener 제거 / NODE_OPTIONS 변경 / chcp IIFE 가 top-level 즉시 실행 → require('harness') 시 호스트 프로세스 오염.
|
|
@@ -3267,6 +3267,10 @@ function _selfTestCases() {
|
|
|
3267
3267
|
const src = read(__filename);
|
|
3268
3268
|
return guard(hSrc) && guard(dSrc) && guard(src); // status(bin) 도 동일 가드
|
|
3269
3269
|
} },
|
|
3270
|
+
{ name: '11th 외부평가 Codex P2 (UR-0137): agents dispatch task 에 flag 값(--to/--model 등) 흡수 차단 (1.9.435)', run: () => {
|
|
3271
|
+
const modSrc = read(path.join(path.dirname(__filename), '..', 'lib', 'agents.js'));
|
|
3272
|
+
return modSrc.includes('const _taskArg = () =>') && modSrc.includes("const consumed = new Set([arg('--to', null)") && modSrc.includes('if (consumed.has(a)) continue;');
|
|
3273
|
+
} },
|
|
3270
3274
|
{ name: 'VERSION 형식 (x.y.z)', run: () => /^\d+\.\d+\.\d+$/.test(VERSION) }
|
|
3271
3275
|
];
|
|
3272
3276
|
}
|
package/lib/agents.js
CHANGED
|
@@ -12,6 +12,15 @@ const { EXTERNAL_AGENTS, AGENT_SLASH_COMMANDS } = require('./agent-registry');
|
|
|
12
12
|
function agentsCmd(root, sub, args = [], deps = {}) {
|
|
13
13
|
const { VERSION, has, arg, _agentSlashHint, _allProviders, _checkAgent, _cliChat, _dispatchCommand, _loadEnvFile, _normalizeRole, _policyEnforce, _readUserProviders, _recommendAgent, _recordRun, _resolveRole, _shellQuoteArg, lessonsPath, taskLogPath } = deps;
|
|
14
14
|
root = absRoot(root || process.cwd());
|
|
15
|
+
// 1.9.435 (11th 외부평가 Codex P2, UR-0137): dispatch/multi task 파싱 — flag 값이 task 본문에 흡수되던 버그 수정.
|
|
16
|
+
// 상위(bin)에서 args 는 '--to' flag 만 제거되고 값(codex)은 positional 로 남아 기존 filter 가 task 에 흡수시켰음.
|
|
17
|
+
// → flag 에서 break + lib 가 소비하는 값-flag(--to/--model/--role/--only) 값을 제외. 명시 task 는 --task 폴백.
|
|
18
|
+
const _taskArg = () => {
|
|
19
|
+
const consumed = new Set([arg('--to', null), arg('--model', null), arg('--role', null), arg('--only', null)].filter(Boolean));
|
|
20
|
+
const p = [];
|
|
21
|
+
for (const a of args) { if (a.startsWith('-')) break; if (consumed.has(a)) continue; p.push(a); }
|
|
22
|
+
return p.join(' ').trim() || arg('--task', null);
|
|
23
|
+
};
|
|
15
24
|
// .env 자동 로드 (1.9.22)
|
|
16
25
|
_loadEnvFile(root);
|
|
17
26
|
_loadEnvFile(path.join(root, '..'));
|
|
@@ -63,7 +72,7 @@ function agentsCmd(root, sub, args = [], deps = {}) {
|
|
|
63
72
|
// 1.9.152: agents multi — 1.9.151 install 복수 선택된 ready 에이전트들에 일괄 dispatch 명령 생성
|
|
64
73
|
// 단일 task → 활성 N개 에이전트 동시 dispatch 명령들. 사용자가 한 번에 복사 실행하거나 메인 에이전트가 spawn.
|
|
65
74
|
if (sub === 'multi') {
|
|
66
|
-
const task =
|
|
75
|
+
const task = _taskArg();
|
|
67
76
|
if (!task) { fail('multi "<task>" 또는 --task 필요'); return process.exit(1); }
|
|
68
77
|
const onlyArg = arg('--only', null); // 'claude,codex' 처럼 콤마 구분 — 활성 중에서 추가 필터
|
|
69
78
|
const writeMode = has('--write');
|
|
@@ -228,7 +237,7 @@ function agentsCmd(root, sub, args = [], deps = {}) {
|
|
|
228
237
|
return;
|
|
229
238
|
}
|
|
230
239
|
if (sub === 'dispatch') {
|
|
231
|
-
const task =
|
|
240
|
+
const task = _taskArg();
|
|
232
241
|
let target = arg('--to', null);
|
|
233
242
|
if (!task) { fail('dispatch "<task>" 또는 --task 필요'); return process.exit(1); }
|
|
234
243
|
// 1.9.152: --multi 또는 --to=all 또는 --to 없음 + 활성 ≥2 → multi 모드로 routing
|
|
@@ -308,7 +317,7 @@ function agentsCmd(root, sub, args = [], deps = {}) {
|
|
|
308
317
|
|
|
309
318
|
if (sub === 'bench') {
|
|
310
319
|
// 1.9.36: 같은 prompt를 ready CLI 모두에 동시 호출 + 시간/응답 길이/exit code 비교
|
|
311
|
-
const task =
|
|
320
|
+
const task = _taskArg();
|
|
312
321
|
if (!task) { fail('bench "<task>" 필요'); return process.exit(1); }
|
|
313
322
|
const timeoutS = parseInt(arg('--timeout', '60'), 10);
|
|
314
323
|
const writeMode = has('--write');
|
package/package.json
CHANGED
package/scripts/e2e.js
CHANGED
|
@@ -6056,5 +6056,22 @@ total++;
|
|
|
6056
6056
|
if (!ok) failed++;
|
|
6057
6057
|
}
|
|
6058
6058
|
|
|
6059
|
+
// 1.9.435 (11th 외부평가 Codex P2, UR-0137): agents dispatch task 에 flag 값(--to 의 codex) 흡수 금지.
|
|
6060
|
+
total++;
|
|
6061
|
+
{
|
|
6062
|
+
let ok = false;
|
|
6063
|
+
try {
|
|
6064
|
+
const d = fs.mkdtempSync(path.join(os.tmpdir(), 'leerness-disp-'));
|
|
6065
|
+
cp.spawnSync(process.execPath, [CLI, 'init', d, '--yes', '--language', 'ko'], { encoding: 'utf8', timeout: 30000 });
|
|
6066
|
+
const r = cp.spawnSync(process.execPath, [CLI, 'agents', 'dispatch', 'REVIEWTASK', '--to', 'codex', '--path', d], { encoding: 'utf8', timeout: 20000, env: { ...process.env, LEERNESS_ENABLE_CODEX: '1' } });
|
|
6067
|
+
const out = r.stdout || '';
|
|
6068
|
+
// dispatch 명령에 task 가 정확히 "REVIEWTASK" 로만 인용되어야(코덱스/경로 흡수 없음)
|
|
6069
|
+
ok = /"REVIEWTASK"/.test(out) && !/"REVIEWTASK codex"/.test(out) && !/REVIEWTASK.*tmp/.test(out);
|
|
6070
|
+
fs.rmSync(d, { recursive: true, force: true });
|
|
6071
|
+
} catch {}
|
|
6072
|
+
console.log(ok ? '✓ B(1.9.435) UR-0137: agents dispatch task 에 --to/경로 값 흡수 없음' : '✗ agents dispatch flag bleed');
|
|
6073
|
+
if (!ok) failed++;
|
|
6074
|
+
}
|
|
6075
|
+
|
|
6059
6076
|
console.log(`\nE2E result: ${total - failed}/${total} passed · ${((Date.now() - _e2eStart) / 1000).toFixed(0)}s`);
|
|
6060
6077
|
if (failed > 0) process.exit(1);
|