leerness 1.9.412 → 1.9.413
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 +15 -0
- package/README.md +5 -5
- package/bin/harness.js +10 -1
- package/package.json +1 -1
- package/scripts/e2e.js +25 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.413 — 2026-06-07 — action 명령 --json 구조화 출력 (6번째 외부평가 codex P2, UR-0101)
|
|
4
|
+
|
|
5
|
+
**🔌 자동화 일관성 완결 — task/decision/rule/lesson add 가 `--json` 을 무시하고 텍스트만 내던 것을 구조화 JSON 출력으로.**
|
|
6
|
+
|
|
7
|
+
### 배경 (6번째 외부평가 codex P2 / 2차 버그헌트 #9)
|
|
8
|
+
read 명령(list/show)은 --json JSON 을 내지만 action(쓰기) 명령은 --json 을 무시하고 `✓ task added: T-0002` 텍스트만 출력 → 외부 AI 가 결과를 구조화 파싱 못 함. 핵심 4개 memory-write action 에 --json 추가.
|
|
9
|
+
|
|
10
|
+
### 구현
|
|
11
|
+
- task add → `{ok,id,status,request}`, decision add → `{ok,title}`, rule add → `{ok,id,trigger,rule,skipped}`, lesson save → `{ok,text,tag}`.
|
|
12
|
+
- 코어 데이터 영속 후 JSON 1줄 출력 + return(사람용 ok 및 cosmetic auto-roadmap/interactive review-trigger 스킵 → stdout 오염 없음). --json 미사용 시 기존 텍스트 동작 불변.
|
|
13
|
+
|
|
14
|
+
### 검증 (회귀 0)
|
|
15
|
+
- **selftest 158→159 PASS** (4개 action JSON 출력 와이어).
|
|
16
|
+
- **E2E 351→352 PASS** (4개 --json → {ok:true} + 데이터 영속 + 사람용 텍스트 보존).
|
|
17
|
+
|
|
3
18
|
## 1.9.412 — 2026-06-07 — list-family positional path 지원 (6번째 외부평가 Opus P1, UR-0100)
|
|
4
19
|
|
|
5
20
|
**🧭 일관성 footgun 수정 — decision/feature/plan/runs/team `list` 이 positional path 를 조용히 무시하고 cwd 를 읽던 것을 positional 지원으로.**
|
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.413 하네스를 사용합니다. 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.413는 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.412는 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.413)** · 매 라운드 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.413: 2026-06-06
|
|
588
588
|
<!-- leerness:project-readme:end -->
|
|
589
589
|
|
package/bin/harness.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.413';
|
|
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') 시 호스트 프로세스 오염.
|
|
@@ -3024,6 +3024,7 @@ function _selfTestCases() {
|
|
|
3024
3024
|
{ name: '8번째 버그헌트 (UR-0114): absRoot 비문자열(--path 값없음 boolean true) → cwd 폴백(raw TypeError 차단) (1.9.410)', run: () => { const io = require('../lib/io'); const cwd = process.cwd(); const tBool = io.absRoot(true) === cwd; const tEmpty = io.absRoot('') === cwd; const tUndef = io.absRoot(undefined) === cwd; const tSpace = io.absRoot(' ') === cwd; const tReal = io.absRoot(os.tmpdir()) === path.resolve(os.tmpdir()); return tBool && tEmpty && tUndef && tSpace && tReal; } },
|
|
3025
3025
|
{ name: '8번째 버그헌트 (UR-0115): lazy detect --auto-track 단일 RMW 배치(O(T×N)→O(N+T)) (1.9.411)', run: () => { const src = read(__filename); const batched = src.includes("8번째 버그헌트, UR-0115") && /has\('--auto-track'\)[\s\S]{0,500}?_withLock\(progressPath\(root\), \(\) => \{[\s\S]{0,1200}?writeProgressRows/.test(src); const noPerTodoUpsert = !/for \(const t of newTodos\) \{\s*const id = nextId\(root, 'T'\);/.test(src); return batched && noPerTodoUpsert; } },
|
|
3026
3026
|
{ name: '6번째 외부평가 Opus P1 (UR-0100): list-family(decision/feature/plan/runs/team list) positional path 지원 (조용한 cwd 오독 차단) (1.9.412)', run: () => { const src = read(__filename); const L = '_resolveRoot('; const decOk = src.includes("decisionListCmd(absRoot(" + L + "args[2]))"); const planOk = src.includes("planListCmd(absRoot(" + L + "args[2]))"); const featOk = src.includes("featureListCmd(absRoot(" + L + "args[2]))"); const runsOk = src.includes("runsListCmd(absRoot(" + L + "args[2]))"); const teamOk = src.includes(L + "args[1] === 'list' ? args[2] : null)"); return decOk && planOk && featOk && runsOk && teamOk; } },
|
|
3027
|
+
{ name: '6번째 외부평가 codex P2 (UR-0101): action 명령(task/decision/rule/lesson add) --json 구조화 출력 (1.9.413)', run: () => { const src = read(__filename); const taskJ = src.includes("log(JSON.stringify({ ok: true, id, status: arg('--status', 'requested'), request: text }))"); const decJ = src.includes("log(JSON.stringify({ ok: true, title }))"); const lesJ = src.includes("log(JSON.stringify({ ok: true, text, tag: tag || null }))"); const ruleJ = src.includes("skipped: !!result.skip"); return taskJ && decJ && lesJ && ruleJ; } },
|
|
3027
3028
|
{ name: 'VERSION 형식 (x.y.z)', run: () => /^\d+\.\d+\.\d+$/.test(VERSION) }
|
|
3028
3029
|
];
|
|
3029
3030
|
}
|
|
@@ -6120,6 +6121,8 @@ function taskAdd(root, text) {
|
|
|
6120
6121
|
upsertProgress(root, { id: newId, status: arg('--status','requested'), request: text, evidence: arg('--evidence','user-request'), nextAction: arg('--next','다음 액션 작성') });
|
|
6121
6122
|
return newId;
|
|
6122
6123
|
});
|
|
6124
|
+
// 1.9.413 (6th외부평가 codex P2, UR-0101): --json 시 구조화 출력(코어 데이터는 이미 영속). 사람용 ok + cosmetic roadmap/interactive review 는 스킵.
|
|
6125
|
+
if (has('--json')) { log(JSON.stringify({ ok: true, id, status: arg('--status', 'requested'), request: text })); return; }
|
|
6123
6126
|
ok(`task added: ${id}`);
|
|
6124
6127
|
_autoRoadmap(absRoot(root), 'data-change');
|
|
6125
6128
|
// 1.9.177: task add 자동 review-request trigger (사용자 명시 1.9.176 자동화).
|
|
@@ -6471,6 +6474,8 @@ function lessonSave(root, text) {
|
|
|
6471
6474
|
all.push({ date: today(), text, tag: tag || null });
|
|
6472
6475
|
_saveLessons(root, all);
|
|
6473
6476
|
});
|
|
6477
|
+
// 1.9.413 (6th외부평가 codex P2, UR-0101): --json 구조화 출력(데이터 이미 영속).
|
|
6478
|
+
if (has('--json')) { log(JSON.stringify({ ok: true, text, tag: tag || null })); return; }
|
|
6474
6479
|
ok(`lesson saved`);
|
|
6475
6480
|
_autoRoadmap(absRoot(root), 'data-change');
|
|
6476
6481
|
}
|
|
@@ -6563,6 +6568,8 @@ function decisionAdd(root, title) {
|
|
|
6563
6568
|
});
|
|
6564
6569
|
_saveDecisions(root, all);
|
|
6565
6570
|
});
|
|
6571
|
+
// 1.9.413 (6th외부평가 codex P2, UR-0101): --json 구조화 출력(데이터 이미 영속).
|
|
6572
|
+
if (has('--json')) { log(JSON.stringify({ ok: true, title })); return; }
|
|
6566
6573
|
ok(`decision added: ${title}`);
|
|
6567
6574
|
// 1.9.43+ handoff lessons 회수 흐름과 자동 통합 (decisions.md fuzzy 매칭됨)
|
|
6568
6575
|
_autoRoadmap(absRoot(root), 'data-change');
|
|
@@ -13652,6 +13659,8 @@ function ruleAdd(root, description) {
|
|
|
13652
13659
|
writeRules(root, rules);
|
|
13653
13660
|
return { skip: false, id };
|
|
13654
13661
|
});
|
|
13662
|
+
// 1.9.413 (6th외부평가 codex P2, UR-0101): --json 구조화 출력(skip/added 구분, 데이터 이미 영속).
|
|
13663
|
+
if (has('--json')) { log(JSON.stringify({ ok: true, id: result.id, trigger, rule: description, skipped: !!result.skip })); return; }
|
|
13655
13664
|
if (result.skip) { ok(`rule exists (skip): ${result.id} [${trigger}] ${description} (--force 로 덮어쓰기)`); return; }
|
|
13656
13665
|
ok(`rule added: ${result.id} [${trigger}] ${description}`);
|
|
13657
13666
|
_autoRoadmap(root, 'data-change');
|
package/package.json
CHANGED
package/scripts/e2e.js
CHANGED
|
@@ -5873,5 +5873,30 @@ total++;
|
|
|
5873
5873
|
if (!ok) failed++;
|
|
5874
5874
|
}
|
|
5875
5875
|
|
|
5876
|
+
// 1.9.413 회귀 (6th외부평가 codex P2, UR-0101): action 명령 --json 구조화 출력 + 데이터 영속 + 사람용 보존
|
|
5877
|
+
total++;
|
|
5878
|
+
{
|
|
5879
|
+
let ok = false;
|
|
5880
|
+
try {
|
|
5881
|
+
const d = fs.mkdtempSync(path.join(os.tmpdir(), 'leerness-actionjson-'));
|
|
5882
|
+
cp.spawnSync(process.execPath, [CLI, 'init', d, '--yes', '--language', 'ko'], { encoding: 'utf8', timeout: 30000 });
|
|
5883
|
+
const j = (args) => { const r = cp.spawnSync(process.execPath, [CLI, ...args, '--path', d, '--json'], { encoding: 'utf8', timeout: 15000 }); try { const o = JSON.parse((r.stdout || '').trim().split('\n')[0]); return o.ok === true; } catch { return false; } };
|
|
5884
|
+
const taskJ = j(['task', 'add', 'AJtask', '--no-review']);
|
|
5885
|
+
const decJ = j(['decision', 'add', 'AJdec', '--reason', 'r']);
|
|
5886
|
+
const ruleJ = j(['rule', 'add', 'AJrule', '--trigger', 'every-session']);
|
|
5887
|
+
const lesJ = j(['lesson', 'save', 'AJlesson']);
|
|
5888
|
+
// 데이터 영속
|
|
5889
|
+
const tl = cp.spawnSync(process.execPath, [CLI, 'task', 'list', '--path', d], { encoding: 'utf8', timeout: 15000 });
|
|
5890
|
+
const persisted = /AJtask/.test(tl.stdout || '');
|
|
5891
|
+
// 사람용 보존(--json 없이 텍스트)
|
|
5892
|
+
const human = cp.spawnSync(process.execPath, [CLI, 'decision', 'add', 'AJhuman', '--reason', 'r', '--path', d], { encoding: 'utf8', timeout: 15000 });
|
|
5893
|
+
const humanOk = /✓/.test(human.stdout || '') && !/^\s*\{/.test(human.stdout || '');
|
|
5894
|
+
fs.rmSync(d, { recursive: true, force: true });
|
|
5895
|
+
ok = taskJ && decJ && ruleJ && lesJ && persisted && humanOk;
|
|
5896
|
+
} catch {}
|
|
5897
|
+
console.log(ok ? '✓ B(1.9.413) 6th외부평가 codex P2: action(task/decision/rule/lesson add) --json 구조화 + 데이터 영속 + 사람용 보존 (UR-0101)' : '✗ action --json 실패');
|
|
5898
|
+
if (!ok) failed++;
|
|
5899
|
+
}
|
|
5900
|
+
|
|
5876
5901
|
console.log(`\nE2E result: ${total - failed}/${total} passed · ${((Date.now() - _e2eStart) / 1000).toFixed(0)}s`);
|
|
5877
5902
|
if (failed > 0) process.exit(1);
|