leerness 1.9.410 → 1.9.412
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 +30 -0
- package/README.md +5 -5
- package/bin/harness.js +23 -10
- package/package.json +1 -1
- package/scripts/e2e.js +47 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.412 — 2026-06-07 — list-family positional path 지원 (6번째 외부평가 Opus P1, UR-0100)
|
|
4
|
+
|
|
5
|
+
**🧭 일관성 footgun 수정 — decision/feature/plan/runs/team `list` 이 positional path 를 조용히 무시하고 cwd 를 읽던 것을 positional 지원으로.**
|
|
6
|
+
|
|
7
|
+
### 배경 (6번째 외부평가 Opus P1 · 맹신 X로 재검증)
|
|
8
|
+
status/audit/handoff 는 `[path]` positional 을 지원하나, list-family(decision/feature/plan/runs/team list)는 `--path` 만 받고 positional 을 무시 → `leerness decision list ./proj` 가 조용히 cwd 를 읽어 **다른 데이터** 반환(에러 없음 = silent-wrong footgun). 직접 재현 확인(positional=0, --path=1).
|
|
9
|
+
|
|
10
|
+
### 구현
|
|
11
|
+
- 각 list 브랜치 root 해석을 기존 헬퍼 `_resolveRoot(positional)`(--path > positional > cwd)로 전환: `absRoot(_resolveRoot(args[2]))`. team 은 `sub==='list'` 일 때만(preview/deploy 의 args[2]=id 와 분리).
|
|
12
|
+
- add/show/drop/preview 의 positional(title/id)은 별도 브랜치라 불변(회귀 0).
|
|
13
|
+
|
|
14
|
+
### 검증 (회귀 0)
|
|
15
|
+
- **selftest 157→158 PASS** (5개 list 디스패치 _resolveRoot 와이어).
|
|
16
|
+
- **E2E 350→351 PASS** (decision/feature list positional → 해당 워크스페이스 데이터 + --path 보존 + add title/show id 회귀 없음).
|
|
17
|
+
|
|
18
|
+
## 1.9.411 — 2026-06-07 — lazy detect --auto-track 배치화 O(N²)→O(N) (8번째 버그헌트, UR-0115)
|
|
19
|
+
|
|
20
|
+
**⚡ 성능 — `lazy detect --auto-track` 가 TODO 마다 progress-tracker 전체 read-modify-write 하던 O(T×N) 을 단일 RMW O(N+T) 로.**
|
|
21
|
+
|
|
22
|
+
### 배경 (2차 버그헌트 ReDoS/perf 차원)
|
|
23
|
+
`--auto-track` 은 새 TODO 마다 `nextId`(plan+progress 전체 스캔) + `upsertProgress`(락+전체 read+write)를 호출 → T개 TODO 시 O(T × tracker크기). AI 가 생성/대량 코드에 실행 시 다수 TODO 자동등록이 느려짐(병리적 입력에서 행걸림).
|
|
24
|
+
|
|
25
|
+
### 구현
|
|
26
|
+
- 락 1회 안에서 rows 1회 읽기 → 최대 T-id 1회 계산 → 전부 push → 1회 write. 순차 ID·필드·멱등 동작 보존(동시성 안전 _withLock 유지).
|
|
27
|
+
|
|
28
|
+
### 검증 (회귀 0)
|
|
29
|
+
- **selftest 156→157 PASS** (배치 구조 + per-TODO upsert 제거 확인).
|
|
30
|
+
- **E2E 349→350 PASS** (6 TODO --auto-track 순차 ID 무중복 등록).
|
|
31
|
+
- 실측: 8 TODO → T-0002~0009 순차, 단일 RMW.
|
|
32
|
+
|
|
3
33
|
## 1.9.410 — 2026-06-07 — 값 없는 --path raw TypeError 크래시 차단 (8번째 버그헌트, UR-0114)
|
|
4
34
|
|
|
5
35
|
**🛡 견고성 — `--path`(값 없이) 같은 비-문자열 인자가 `path.resolve(true)` raw Node TypeError 로 크래시하던 것을 cwd 폴백으로 차단.**
|
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.412 하네스를 사용합니다. 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.412는 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.410는 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.412)** · 매 라운드 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.412: 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.412';
|
|
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') 시 호스트 프로세스 오염.
|
|
@@ -3022,6 +3022,8 @@ function _selfTestCases() {
|
|
|
3022
3022
|
{ name: '8번째 버그헌트 (UR-0112): _parseSkillMd CRLF/CR 줄바꿈 정규화 (Windows SKILL.md meta 소실 차단) (1.9.408)', run: () => { const m = require('../lib/pure-utils'); const lf = m._parseSkillMd('---\nname: s\ndescription: d\n---\nbody'); const crlf = m._parseSkillMd('---\r\nname: s\r\ndescription: d\r\n---\r\nbody'); const cr = m._parseSkillMd('---\rname: s\rdescription: d\r---\rbody'); const bom = m._parseSkillMd('---\r\nname: s\r\n---\r\nbody'); return lf.meta.name === 's' && crlf.meta.name === 's' && crlf.meta.description === 'd' && cr.meta.name === 's' && bom.meta.name === 's'; } },
|
|
3023
3023
|
{ name: '8번째 버그헌트 (UR-0113): env encoding-check --apply 가 .sh/shebang 에 BOM 미추가(shebang 보존) (1.9.409)', run: () => { const tmp = fs.mkdtempSync(path.join(os.tmpdir(), '__leerness_bom_')); try { const sh = path.join(tmp, 's.sh'); fs.writeFileSync(sh, '#!/bin/bash\n# 한글\necho hi\n'); const ps = path.join(tmp, 's.ps1'); fs.writeFileSync(ps, '# 한글\nWrite-Host hi\n'); const save = process.argv; let out = ''; const _w = process.stdout.write; try { process.argv = ['node', 'h', 'env', 'encoding-check', '--path', tmp, '--apply', '--json']; process.stdout.write = s => { out += s; return true; }; envCmd(tmp, 'encoding-check'); } catch {} finally { process.stdout.write = _w; process.argv = save; } const shBuf = fs.readFileSync(sh); const psBuf = fs.readFileSync(ps); const shNoBom = !(shBuf[0] === 0xEF && shBuf[1] === 0xBB && shBuf[2] === 0xBF) && shBuf[0] === 0x23 && shBuf[1] === 0x21; const psBom = psBuf[0] === 0xEF && psBuf[1] === 0xBB && psBuf[2] === 0xBF; return shNoBom && psBom; } finally { try { fs.rmSync(tmp, { recursive: true, force: true }); } catch {} } } },
|
|
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
|
+
{ 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
|
+
{ 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; } },
|
|
3025
3027
|
{ name: 'VERSION 형식 (x.y.z)', run: () => /^\d+\.\d+\.\d+$/.test(VERSION) }
|
|
3026
3028
|
];
|
|
3027
3029
|
}
|
|
@@ -7282,10 +7284,21 @@ function lazyDetect(root, opts = {}) {
|
|
|
7282
7284
|
// 새 TODO 처음 5개 표시 (verbose 모드만)
|
|
7283
7285
|
if (!jsonMode) newTodos.slice(0, 5).forEach(t => log(` ${t.file}:${t.line} ${t.text}`));
|
|
7284
7286
|
if (has('--auto-track') && newTodos.length) {
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7287
|
+
// 1.9.411 (8번째 버그헌트, UR-0115): TODO 일괄 등록을 단일 read-modify-write 로 직렬화.
|
|
7288
|
+
// 종전: TODO 마다 nextId(plan+progress 전체 스캔) + upsertProgress(전체 read+write) → O(T × tracker크기) (다수 TODO 자동등록 시 O(N²) 행걸림).
|
|
7289
|
+
// 개선: 락 1회 안에서 rows 1회 읽고, 최대 T-id 1회 계산, 전부 push, 1회 write → O(N + T).
|
|
7290
|
+
_withLock(progressPath(root), () => {
|
|
7291
|
+
const header = progressHeader(root);
|
|
7292
|
+
const rows2 = readProgressRows(root);
|
|
7293
|
+
let maxT = 0; const idRe = /\bT-(\d{4})\b/g;
|
|
7294
|
+
const scanSrc = (exists(planPath(root)) ? read(planPath(root)) : '') + '\n' + rows2.map(r => r.id).join('\n');
|
|
7295
|
+
let mm; while ((mm = idRe.exec(scanSrc))) maxT = Math.max(maxT, Number(mm[1]));
|
|
7296
|
+
for (const t of newTodos) {
|
|
7297
|
+
maxT++;
|
|
7298
|
+
rows2.push({ id: `T-${String(maxT).padStart(4, '0')}`, status: 'requested', request: `TODO ${t.file}:${t.line}`, evidence: 'auto-tracked', nextAction: t.text.slice(0, 80), updated: today() });
|
|
7299
|
+
}
|
|
7300
|
+
writeProgressRows(root, header, rows2);
|
|
7301
|
+
});
|
|
7289
7302
|
// known-todos에 추가 — 다음 detect에서 재카운트 안 하도록
|
|
7290
7303
|
const merged = [...knownList, ...newTodos.map(t => ({ ...t, ackAt: now() }))];
|
|
7291
7304
|
writeUtf8(knownPath, JSON.stringify(merged, null, 2) + '\n');
|
|
@@ -20756,7 +20769,7 @@ async function main() {
|
|
|
20756
20769
|
if (cmd === 'creds' && args[1] === 'refresh') return credsRefreshTimestampCmd(arg('--path', process.cwd()), args[2]);
|
|
20757
20770
|
if (cmd === 'deploy' && args[1] === 'auto') return deployAutoCmd(arg('--path', process.cwd()), args[2]);
|
|
20758
20771
|
// 1.9.149: observability lite + runs list/show
|
|
20759
|
-
if (cmd === 'runs' && args[1] === 'list') return runsListCmd(
|
|
20772
|
+
if (cmd === 'runs' && args[1] === 'list') return runsListCmd(absRoot(_resolveRoot(args[2]))); // 1.9.412 (UR-0100): positional path 지원
|
|
20760
20773
|
if (cmd === 'runs' && args[1] === 'show') return runsShowCmd(arg('--path', process.cwd()), args[2]);
|
|
20761
20774
|
// 1.9.85: leerness health — 종합 헬스 체크
|
|
20762
20775
|
if (cmd === 'health') return healthCmd(args[1] || arg('--path', process.cwd()));
|
|
@@ -20853,7 +20866,7 @@ async function main() {
|
|
|
20853
20866
|
// 1.9.278 (UR-0032): leerness state <show|start|record|verify|handoff> — .leerness/ 구조화 상태 substrate
|
|
20854
20867
|
if (cmd === 'state') return stateCmd(arg('--path', process.cwd()), args[1], ...args.slice(2));
|
|
20855
20868
|
if (cmd === 'context') return contextCmd(_resolveRoot(args[1]), { json: has('--json') });
|
|
20856
|
-
if (cmd === 'team') return teamCmd(_resolveRoot(null), args[1], args[2], { json: has('--json') }); // 1.9.371 (UR-0073 Phase A):
|
|
20869
|
+
if (cmd === 'team') return teamCmd(_resolveRoot(args[1] === 'list' ? args[2] : null), args[1], args[2], { json: has('--json') }); // 1.9.371 (UR-0073 Phase A): 팀 레지스트리. 1.9.412 (UR-0100): team list 만 positional path 지원(preview/deploy 의 args[2]=id 와 분리)
|
|
20857
20870
|
if (cmd === 'brief') return briefCmd(arg('--path', process.cwd()), args[1]);
|
|
20858
20871
|
if (cmd === 'about' || cmd === 'identity') return aboutCmd({ json: has('--json') });
|
|
20859
20872
|
// 1.9.281 (UR-0034): leerness policy <show|set|check> — 권한 등급 (opt-in enforced)
|
|
@@ -20904,7 +20917,7 @@ async function main() {
|
|
|
20904
20917
|
if (cmd === 'feature' && args[1] === 'add') return featureAddCmd(arg('--path', process.cwd()), args.slice(2).filter(x => !x.startsWith('--')).join(' '));
|
|
20905
20918
|
if (cmd === 'feature' && args[1] === 'link') return featureLinkCmd(arg('--path', process.cwd()), args[2]);
|
|
20906
20919
|
if (cmd === 'feature' && args[1] === 'impact') return featureImpactCmd(arg('--path', process.cwd()), args[2]);
|
|
20907
|
-
if (cmd === 'feature' && args[1] === 'list') return featureListCmd(
|
|
20920
|
+
if (cmd === 'feature' && args[1] === 'list') return featureListCmd(absRoot(_resolveRoot(args[2]))); // 1.9.412 (UR-0100): positional path 지원(조용한 cwd 오독 방지)
|
|
20908
20921
|
if (cmd === 'feature' && args[1] === 'show') return featureShowCmd(arg('--path', process.cwd()), args[2]);
|
|
20909
20922
|
if (cmd === 'impact') return impactCmd(arg('--path', process.cwd()), args[1]);
|
|
20910
20923
|
if (cmd === 'reuse' && args[1] === 'find') return reuseFind(arg('--path', process.cwd()), args.slice(2).filter(x => !x.startsWith('-')).join(' '));
|
|
@@ -20925,7 +20938,7 @@ async function main() {
|
|
|
20925
20938
|
if (sub==='progress') return planProgress(root);
|
|
20926
20939
|
if (sub==='sync') return planSync(root);
|
|
20927
20940
|
// 1.9.119: plan list — 모든 milestone JSON/verbose
|
|
20928
|
-
if (sub==='list') return planListCmd(
|
|
20941
|
+
if (sub==='list') return planListCmd(absRoot(_resolveRoot(args[2])), { json: has('--json') }); // 1.9.412 (UR-0100): positional path 지원
|
|
20929
20942
|
}
|
|
20930
20943
|
if (cmd === 'task') {
|
|
20931
20944
|
const root = absRoot(arg('--path', process.cwd())); const sub = args[1] || 'list';
|
|
@@ -20995,7 +21008,7 @@ async function main() {
|
|
|
20995
21008
|
return decisionAdd(root, titleParts.join(' '));
|
|
20996
21009
|
}
|
|
20997
21010
|
if (sub === 'list') {
|
|
20998
|
-
return decisionListCmd(
|
|
21011
|
+
return decisionListCmd(absRoot(_resolveRoot(args[2])), { json: has('--json') }); // 1.9.412 (UR-0100): positional path 지원(add 의 args[2]=title 와 분리)
|
|
20999
21012
|
}
|
|
21000
21013
|
// 1.9.125: decision drop <date|title>
|
|
21001
21014
|
if (sub === 'drop') {
|
package/package.json
CHANGED
package/scripts/e2e.js
CHANGED
|
@@ -5826,5 +5826,52 @@ total++;
|
|
|
5826
5826
|
if (!ok) failed++;
|
|
5827
5827
|
}
|
|
5828
5828
|
|
|
5829
|
+
// 1.9.411 회귀 (8번째 버그헌트, UR-0115): lazy detect --auto-track 배치화가 다수 TODO 를 순차 ID 로 정확히 등록(동작 보존)
|
|
5830
|
+
total++;
|
|
5831
|
+
{
|
|
5832
|
+
let ok = false;
|
|
5833
|
+
try {
|
|
5834
|
+
const d = fs.mkdtempSync(path.join(os.tmpdir(), 'leerness-autotrack-'));
|
|
5835
|
+
cp.spawnSync(process.execPath, [CLI, 'init', d, '--yes', '--language', 'ko'], { encoding: 'utf8', timeout: 30000 });
|
|
5836
|
+
fs.mkdirSync(path.join(d, 'src'), { recursive: true });
|
|
5837
|
+
let body = '';
|
|
5838
|
+
for (let i = 0; i < 6; i++) body += `function f${i}(){ // TODO fix ${i}\n return ${i};\n}\n`;
|
|
5839
|
+
fs.writeFileSync(path.join(d, 'src', 'a.js'), body);
|
|
5840
|
+
cp.spawnSync(process.execPath, [CLI, 'lazy', 'detect', d, '--auto-track'], { encoding: 'utf8', timeout: 20000 });
|
|
5841
|
+
const tl = JSON.parse(cp.spawnSync(process.execPath, [CLI, 'task', 'list', '--path', d, '--json'], { encoding: 'utf8', timeout: 15000 }).stdout);
|
|
5842
|
+
const ts = (tl.tasks || tl).filter(t => /^TODO /.test(t.request));
|
|
5843
|
+
const ids = ts.map(t => t.id);
|
|
5844
|
+
const uniq = new Set(ids).size === ids.length; // 중복 ID 없음(배치 정확성)
|
|
5845
|
+
const ok6 = ts.length === 6 && uniq;
|
|
5846
|
+
fs.rmSync(d, { recursive: true, force: true });
|
|
5847
|
+
ok = ok6;
|
|
5848
|
+
} catch {}
|
|
5849
|
+
console.log(ok ? '✓ B(1.9.411) 8th버그헌트: lazy detect --auto-track 배치(6 TODO 순차ID 무중복 등록) (UR-0115)' : '✗ auto-track 배치 실패');
|
|
5850
|
+
if (!ok) failed++;
|
|
5851
|
+
}
|
|
5852
|
+
|
|
5853
|
+
// 1.9.412 회귀 (6th외부평가 Opus P1, UR-0100): list-family 가 positional path 를 인식(조용한 cwd 오독 차단) + add/show 회귀 없음
|
|
5854
|
+
total++;
|
|
5855
|
+
{
|
|
5856
|
+
let ok = false;
|
|
5857
|
+
try {
|
|
5858
|
+
const d = fs.mkdtempSync(path.join(os.tmpdir(), 'leerness-pospath-'));
|
|
5859
|
+
cp.spawnSync(process.execPath, [CLI, 'init', d, '--yes', '--language', 'ko'], { encoding: 'utf8', timeout: 30000 });
|
|
5860
|
+
cp.spawnSync(process.execPath, [CLI, 'decision', 'add', 'DZZmark', '--reason', 'r', '--path', d], { encoding: 'utf8', timeout: 15000 });
|
|
5861
|
+
cp.spawnSync(process.execPath, [CLI, 'feature', 'add', 'FZZmark', '--path', d], { encoding: 'utf8', timeout: 15000 });
|
|
5862
|
+
// positional path 로 list → 해당 워크스페이스 데이터 보임
|
|
5863
|
+
const dl = cp.spawnSync(process.execPath, [CLI, 'decision', 'list', d], { encoding: 'utf8', timeout: 15000 });
|
|
5864
|
+
const fl = cp.spawnSync(process.execPath, [CLI, 'feature', 'list', d], { encoding: 'utf8', timeout: 15000 });
|
|
5865
|
+
const posOk = /DZZmark/.test(dl.stdout || '') && /FZZmark/.test(fl.stdout || '');
|
|
5866
|
+
// 회귀: decision add 의 title(args[2]) 여전히 보존 + --json 안전
|
|
5867
|
+
const dl2 = cp.spawnSync(process.execPath, [CLI, 'decision', 'list', '--path', d], { encoding: 'utf8', timeout: 15000 });
|
|
5868
|
+
const flagOk = /DZZmark/.test(dl2.stdout || '');
|
|
5869
|
+
fs.rmSync(d, { recursive: true, force: true });
|
|
5870
|
+
ok = posOk && flagOk;
|
|
5871
|
+
} catch {}
|
|
5872
|
+
console.log(ok ? '✓ B(1.9.412) 6th외부평가 Opus P1: list-family positional path 인식(cwd 오독 차단) + --path 보존 (UR-0100)' : '✗ list positional path 실패');
|
|
5873
|
+
if (!ok) failed++;
|
|
5874
|
+
}
|
|
5875
|
+
|
|
5829
5876
|
console.log(`\nE2E result: ${total - failed}/${total} passed · ${((Date.now() - _e2eStart) / 1000).toFixed(0)}s`);
|
|
5830
5877
|
if (failed > 0) process.exit(1);
|