leerness 1.9.411 → 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 CHANGED
@@ -1,5 +1,20 @@
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
+
3
18
  ## 1.9.411 — 2026-06-07 — lazy detect --auto-track 배치화 O(N²)→O(N) (8번째 버그헌트, UR-0115)
4
19
 
5
20
  **⚡ 성능 — `lazy detect --auto-track` 가 TODO 마다 progress-tracker 전체 read-modify-write 하던 O(T×N) 을 단일 RMW O(N+T) 로.**
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
- [![npm](https://img.shields.io/badge/npm-leerness-blue)](https://www.npmjs.com/package/leerness) [![version](https://img.shields.io/badge/version-1.9.411-green)]() [![tests](https://img.shields.io/badge/e2e-350%2F350-success)]() [![selftest](https://img.shields.io/badge/selftest-157-success)]() [![mcp](https://img.shields.io/badge/MCP--tools-85-brightgreen)]() [![providers](https://img.shields.io/badge/AI_providers-10-brightgreen)]() [![license](https://img.shields.io/badge/license-MIT-lightgrey)]()
6
+ [![npm](https://img.shields.io/badge/npm-leerness-blue)](https://www.npmjs.com/package/leerness) [![version](https://img.shields.io/badge/version-1.9.412-green)]() [![tests](https://img.shields.io/badge/e2e-351%2F351-success)]() [![selftest](https://img.shields.io/badge/selftest-158-success)]() [![mcp](https://img.shields.io/badge/MCP--tools-85-brightgreen)]() [![providers](https://img.shields.io/badge/AI_providers-10-brightgreen)]() [![license](https://img.shields.io/badge/license-MIT-lightgrey)]()
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.411 하네스를 사용합니다. AI 에이전트는 작업 전 `leerness handoff`로 컨텍스트를 적재하고, 작업 후 `leerness check`/`leerness audit`/`leerness session close`를 수행해야 합니다.
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.411는 stdio JSON-RPC MCP server를 내장합니다 — Claude Code · Cursor · Codex CLI 등 외부 AI에 **85개 도구**를 노출:
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.411는 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.411)** · 매 라운드 GitHub release/태그 생성 · _reports/는 비공개 보존.
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.411: 2026-06-06
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.411';
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') 시 호스트 프로세스 오염.
@@ -3023,6 +3023,7 @@ function _selfTestCases() {
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
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; } },
3026
3027
  { name: 'VERSION 형식 (x.y.z)', run: () => /^\d+\.\d+\.\d+$/.test(VERSION) }
3027
3028
  ];
3028
3029
  }
@@ -20768,7 +20769,7 @@ async function main() {
20768
20769
  if (cmd === 'creds' && args[1] === 'refresh') return credsRefreshTimestampCmd(arg('--path', process.cwd()), args[2]);
20769
20770
  if (cmd === 'deploy' && args[1] === 'auto') return deployAutoCmd(arg('--path', process.cwd()), args[2]);
20770
20771
  // 1.9.149: observability lite + runs list/show
20771
- if (cmd === 'runs' && args[1] === 'list') return runsListCmd(arg('--path', process.cwd()));
20772
+ if (cmd === 'runs' && args[1] === 'list') return runsListCmd(absRoot(_resolveRoot(args[2]))); // 1.9.412 (UR-0100): positional path 지원
20772
20773
  if (cmd === 'runs' && args[1] === 'show') return runsShowCmd(arg('--path', process.cwd()), args[2]);
20773
20774
  // 1.9.85: leerness health — 종합 헬스 체크
20774
20775
  if (cmd === 'health') return healthCmd(args[1] || arg('--path', process.cwd()));
@@ -20865,7 +20866,7 @@ async function main() {
20865
20866
  // 1.9.278 (UR-0032): leerness state <show|start|record|verify|handoff> — .leerness/ 구조화 상태 substrate
20866
20867
  if (cmd === 'state') return stateCmd(arg('--path', process.cwd()), args[1], ...args.slice(2));
20867
20868
  if (cmd === 'context') return contextCmd(_resolveRoot(args[1]), { json: has('--json') });
20868
- if (cmd === 'team') return teamCmd(_resolveRoot(null), args[1], args[2], { json: has('--json') }); // 1.9.371 (UR-0073 Phase A): 에이전트 정의 레지스트리 (opt-in, positional=sub/id, root=--path|cwd)
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 와 분리)
20869
20870
  if (cmd === 'brief') return briefCmd(arg('--path', process.cwd()), args[1]);
20870
20871
  if (cmd === 'about' || cmd === 'identity') return aboutCmd({ json: has('--json') });
20871
20872
  // 1.9.281 (UR-0034): leerness policy <show|set|check> — 권한 등급 (opt-in enforced)
@@ -20916,7 +20917,7 @@ async function main() {
20916
20917
  if (cmd === 'feature' && args[1] === 'add') return featureAddCmd(arg('--path', process.cwd()), args.slice(2).filter(x => !x.startsWith('--')).join(' '));
20917
20918
  if (cmd === 'feature' && args[1] === 'link') return featureLinkCmd(arg('--path', process.cwd()), args[2]);
20918
20919
  if (cmd === 'feature' && args[1] === 'impact') return featureImpactCmd(arg('--path', process.cwd()), args[2]);
20919
- if (cmd === 'feature' && args[1] === 'list') return featureListCmd(arg('--path', process.cwd()));
20920
+ if (cmd === 'feature' && args[1] === 'list') return featureListCmd(absRoot(_resolveRoot(args[2]))); // 1.9.412 (UR-0100): positional path 지원(조용한 cwd 오독 방지)
20920
20921
  if (cmd === 'feature' && args[1] === 'show') return featureShowCmd(arg('--path', process.cwd()), args[2]);
20921
20922
  if (cmd === 'impact') return impactCmd(arg('--path', process.cwd()), args[1]);
20922
20923
  if (cmd === 'reuse' && args[1] === 'find') return reuseFind(arg('--path', process.cwd()), args.slice(2).filter(x => !x.startsWith('-')).join(' '));
@@ -20937,7 +20938,7 @@ async function main() {
20937
20938
  if (sub==='progress') return planProgress(root);
20938
20939
  if (sub==='sync') return planSync(root);
20939
20940
  // 1.9.119: plan list — 모든 milestone JSON/verbose
20940
- if (sub==='list') return planListCmd(root, { json: has('--json') });
20941
+ if (sub==='list') return planListCmd(absRoot(_resolveRoot(args[2])), { json: has('--json') }); // 1.9.412 (UR-0100): positional path 지원
20941
20942
  }
20942
20943
  if (cmd === 'task') {
20943
20944
  const root = absRoot(arg('--path', process.cwd())); const sub = args[1] || 'list';
@@ -21007,7 +21008,7 @@ async function main() {
21007
21008
  return decisionAdd(root, titleParts.join(' '));
21008
21009
  }
21009
21010
  if (sub === 'list') {
21010
- return decisionListCmd(root, { json: has('--json') });
21011
+ return decisionListCmd(absRoot(_resolveRoot(args[2])), { json: has('--json') }); // 1.9.412 (UR-0100): positional path 지원(add 의 args[2]=title 와 분리)
21011
21012
  }
21012
21013
  // 1.9.125: decision drop <date|title>
21013
21014
  if (sub === 'drop') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leerness",
3
- "version": "1.9.411",
3
+ "version": "1.9.412",
4
4
  "description": "Leerness: 비파괴 마이그레이션, 자동 버전 감지·업데이트, 계획/진행/핸드오프 자동화, 게으름·시크릿·인코딩 자동 가드, Claude Code 슬래시 통합을 갖춘 한국어 우선 AI 개발 하네스.",
5
5
  "keywords": [
6
6
  "leerness",
package/scripts/e2e.js CHANGED
@@ -5850,5 +5850,28 @@ total++;
5850
5850
  if (!ok) failed++;
5851
5851
  }
5852
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
+
5853
5876
  console.log(`\nE2E result: ${total - failed}/${total} passed · ${((Date.now() - _e2eStart) / 1000).toFixed(0)}s`);
5854
5877
  if (failed > 0) process.exit(1);